Skip to content

Commit

Permalink
Version 4.9.24
Browse files Browse the repository at this point in the history
  • Loading branch information
martynasma committed May 29, 2020
1 parent 1d4fb42 commit 41242af
Show file tree
Hide file tree
Showing 58 changed files with 669 additions and 159 deletions.
18 changes: 18 additions & 0 deletions dist/ember/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
Please note, that this project, while following numbering syntax, it DOES NOT
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.

## [4.9.24] - 2020-05-29

### Added
- Export: New image export options: `minWidth`, `minHeight`, `maxWidth`, and `maxHeight`. Control minimum and maximum dimensions of the target image.
- Chart can now be initialized without target container (`am4core.create(undefined, ...)`) then, when needed placed into container using `chart.moveHtmlContainer(target)` (where `target` can either be id or a reference of DOM element).
- `groupInterval` property added to `DateAxis`. You can use it to force certain grouping internal when `groupData = true` instead of one chosen dynamically.

### Changed
- `stroke`/`fill` settings will now accept values as RGB objects (e.g.: `{ r: 255, g: 0, b: 0 }`).
- Export: `scale` now scales source SVG before converting to image, instead of resampling target image.
- Chart will no longer error out if target container by supplied id is not available at the moment of chart's instantiation. It will still error if such container is not available when DOM is ready. This allows placing chart code before actual chart target markup.
- If Axis has `syncWithAxis = true` set, it is excluded from common zoom range for better syncing.

### Fixed
- Sometimes responsive rules were not being applied on chart load in Angular apps.
- `XYCursor` setting `snapToSeries` now uses better precision in placing cursor lines/axis tooltips.


## [4.9.23] - 2020-05-19

### Added
Expand Down
2 changes: 1 addition & 1 deletion dist/ember/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amcharts/amcharts4-ember",
"version": "4.9.23",
"version": "4.9.24",
"description": "Ember add-on for amCharts 4",
"keywords": [
"ember-addon",
Expand Down
18 changes: 18 additions & 0 deletions dist/ember/vendor/script/amcharts4/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
Please note, that this project, while following numbering syntax, it DOES NOT
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.

## [4.9.24] - 2020-05-29

### Added
- Export: New image export options: `minWidth`, `minHeight`, `maxWidth`, and `maxHeight`. Control minimum and maximum dimensions of the target image.
- Chart can now be initialized without target container (`am4core.create(undefined, ...)`) then, when needed placed into container using `chart.moveHtmlContainer(target)` (where `target` can either be id or a reference of DOM element).
- `groupInterval` property added to `DateAxis`. You can use it to force certain grouping internal when `groupData = true` instead of one chosen dynamically.

### Changed
- `stroke`/`fill` settings will now accept values as RGB objects (e.g.: `{ r: 255, g: 0, b: 0 }`).
- Export: `scale` now scales source SVG before converting to image, instead of resampling target image.
- Chart will no longer error out if target container by supplied id is not available at the moment of chart's instantiation. It will still error if such container is not available when DOM is ready. This allows placing chart code before actual chart target markup.
- If Axis has `syncWithAxis = true` set, it is excluded from common zoom range for better syncing.

### Fixed
- Sometimes responsive rules were not being applied on chart load in Angular apps.
- `XYCursor` setting `snapToSeries` now uses better precision in placing cursor lines/axis tooltips.


## [4.9.23] - 2020-05-19

### Added
Expand Down
2 changes: 1 addition & 1 deletion dist/ember/vendor/script/amcharts4/core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ember/vendor/script/amcharts4/core.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/charts/axes/Axis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/charts/axes/Axis.js.map

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions dist/es2015/.internal/charts/axes/DateAxis.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ export interface IDateAxisProperties extends IValueAxisProperties {
* @since 4.7.0
*/
groupCount?: number;
/**
* Disables automatic selection of data grouping intervals and always uses
* `groupInterval` if set. Works only if `groupData = true`.
*
* @since 4.9.24
*/
groupInterval?: ITimeInterval;
/**
*
* Indicates by how many minutes the timestamps in your data are offset from GMT.
Expand Down Expand Up @@ -1020,6 +1027,17 @@ export declare class DateAxis<T extends AxisRenderer = AxisRenderer> extends Val
* @return Group data points?
*/
groupData: boolean;
/**
* Disables automatic selection of data grouping intervals and always uses
* `groupInterval` if set. Works only if `groupData = true`.
*
* @since 4.9.24
* @param value Interval
*/
/**
* @return Interval
*/
groupInterval: ITimeInterval;
/**
* Indicates threshold of data items in selected range at which to start
* aggregating data items if `groupData = true`.
Expand Down
35 changes: 32 additions & 3 deletions dist/es2015/.internal/charts/axes/DateAxis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/charts/axes/DateAxis.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/charts/elements/HeatLegend.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/charts/elements/HeatLegend.js.map

Large diffs are not rendered by default.

26 changes: 15 additions & 11 deletions dist/es2015/.internal/charts/types/XYChart.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/charts/types/XYChart.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/es2015/.internal/core/Container.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,16 @@ export declare class Container extends Sprite {
protected handleTapToActivate(): void;
protected handleTapToActivateDeactivation(): void;
protected initTapTimeout(): void;
/**
* Moves the whole chart to other HTML container.
*
* `htmlElement` can either be a reference to a DOM element, or an id of
* such element.
*
* @since 4.9.24
* @param htmlElement Target element
*/
moveHtmlContainer(htmlElement: string | HTMLElement): void;
/**
* @ignore
* @return Has license?
Expand Down
24 changes: 24 additions & 0 deletions dist/es2015/.internal/core/Container.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/core/Container.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/es2015/.internal/core/Sprite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/core/Sprite.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/core/System.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/core/System.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/core/elements/3d/Rectangle3D.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/.internal/core/elements/3d/Rectangle3D.js.map

Large diffs are not rendered by default.

45 changes: 44 additions & 1 deletion dist/es2015/.internal/core/export/Export.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,38 @@ export interface IExportImageOptions {
* @default 1
*/
scale?: number;
/**
* Minimum width in pixels of the exported image. If source chart is smaller
* thank this, it will be scaled up.
*
* @since 4.9.24
*/
minWidth?: number;
/**
* Minimum height in pixels of the exported image. If source chart is smaller
* thank this, it will be scaled up.
*
* @since 4.9.24
*/
minHeight?: number;
/**
* Maximum width in pixels of the exported image. If source chart is bigger
* thank this, it will be scaled down.
*
* NOTE: this setting might be overidden by `minWidth`.
*
* @since 4.9.24
*/
maxWidth?: number;
/**
* Maximum height in pixels of the exported image. If source chart is bigger
* thank this, it will be scaled down.
*
* NOTE: this setting might be overidden by `minHeight`.
*
* @since 4.9.24
*/
maxHeight?: number;
/**
* Normally, Export removes "tainted" images (images that are loaded from
* other host than the chart itself) before export.
Expand Down Expand Up @@ -1250,6 +1282,17 @@ export declare class Export extends Validatable {
* @return Pixel ratio
*/
protected getPixelRatio(options?: IExportImageOptions): number;
/**
* Calculates adjusted scale if image does not fit or is larger than min/max
* settings.
*
* @param width Width of the source image
* @param height Height of the source image
* @param scale Current scale
* @param options Options
* @return Adjusted scale
*/
protected getAdjustedScale(width: number, height: number, scale: number, options?: IExportImageOptions): number;
/**
* Converts all `<image>` tags in SVG to use data uris instead of external
* URLs
Expand Down Expand Up @@ -1373,7 +1416,7 @@ export declare class Export extends Validatable {
* @return Output SVG
* @todo Add style params to existing <svg>
*/
normalizeSVG(svg: string, options?: IExportSVGOptions, width?: number, height?: number, font?: string, fontSize?: string, background?: Color): string;
normalizeSVG(svg: string, options?: IExportSVGOptions, width?: number, height?: number, scale?: number, font?: string, fontSize?: string, background?: Color): string;
/**
* Serializes an element and returns its contents.
*
Expand Down
Loading

0 comments on commit 41242af

Please sign in to comment.