@amcharts/amcharts5 5.2.32 → 5.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.d.ts.map +1 -1
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js +2 -0
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js.map +1 -1
- package/.internal/charts/hierarchy/Sunburst.d.ts.map +1 -1
- package/.internal/charts/hierarchy/Sunburst.js +6 -2
- package/.internal/charts/hierarchy/Sunburst.js.map +1 -1
- package/.internal/charts/map/MapChart.d.ts +1 -1
- package/.internal/charts/map/MapChart.d.ts.map +1 -1
- package/.internal/charts/map/MapChart.js.map +1 -1
- package/.internal/charts/map/MapSeries.d.ts +0 -2
- package/.internal/charts/map/MapSeries.d.ts.map +1 -1
- package/.internal/charts/map/MapSeries.js +26 -0
- package/.internal/charts/map/MapSeries.js.map +1 -1
- package/.internal/charts/percent/PercentDefaultTheme.js +2 -2
- package/.internal/charts/percent/PercentDefaultTheme.js.map +1 -1
- package/.internal/core/Registry.js +1 -1
- package/.internal/core/Registry.js.map +1 -1
- package/.internal/core/render/Label.d.ts +3 -0
- package/.internal/core/render/Label.d.ts.map +1 -1
- package/.internal/core/render/Label.js.map +1 -1
- package/.internal/core/render/Series.d.ts +0 -9
- package/.internal/core/render/Series.d.ts.map +1 -1
- package/.internal/core/render/Series.js.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.d.ts +1 -0
- package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.js +212 -154
- package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
- package/.internal/core/render/patterns/PathPattern.d.ts +26 -0
- package/.internal/core/render/patterns/PathPattern.d.ts.map +1 -0
- package/.internal/core/render/patterns/PathPattern.js +100 -0
- package/.internal/core/render/patterns/PathPattern.js.map +1 -0
- package/CHANGELOG.md +15 -0
- package/examples/javascript/flow-chord/package.json +1 -1
- package/examples/javascript/flow-chord-directed/package.json +1 -1
- package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/javascript/flow-sankey/package.json +1 -1
- package/examples/javascript/gauge/package.json +1 -1
- package/examples/javascript/gauge-bands/package.json +1 -1
- package/examples/javascript/hierarchy-force-directed/package.json +1 -1
- package/examples/javascript/hierarchy-pack/package.json +1 -1
- package/examples/javascript/hierarchy-partition/package.json +1 -1
- package/examples/javascript/hierarchy-sunburst/package.json +1 -1
- package/examples/javascript/hierarchy-tree/package.json +1 -1
- package/examples/javascript/hierarchy-treemap/package.json +1 -1
- package/examples/javascript/jest/package.json +1 -1
- package/examples/javascript/json/package.json +1 -1
- package/examples/javascript/map-animating-along-lines/package.json +1 -1
- package/examples/javascript/map-day-and-night/package.json +1 -1
- package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/javascript/map-with-bubbles/package.json +1 -1
- package/examples/javascript/map-zoom-to-country/package.json +1 -1
- package/examples/javascript/misc-40-charts/package.json +1 -1
- package/examples/javascript/misc-microchart-grid/package.json +1 -1
- package/examples/javascript/pie-chart/package.json +1 -1
- package/examples/javascript/pie-donut-chart/package.json +1 -1
- package/examples/javascript/pie-variable-radius/package.json +1 -1
- package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
- package/examples/javascript/radar-heat-map/package.json +1 -1
- package/examples/javascript/radar-line/package.json +1 -1
- package/examples/javascript/radar-time-line/package.json +1 -1
- package/examples/javascript/sliced-funnel/package.json +1 -1
- package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/javascript/sliced-pyramid/package.json +1 -1
- package/examples/javascript/stock-chart/package.json +1 -1
- package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
- package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
- package/examples/javascript/stock-chart-intraday/package.json +1 -1
- package/examples/javascript/stock-chart-live/package.json +1 -1
- package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/javascript/venn-diagram/package.json +1 -1
- package/examples/javascript/wordcloud-with-data/package.json +1 -1
- package/examples/javascript/wordcloud-with-text/package.json +1 -1
- package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/javascript/xy-bubble/package.json +1 -1
- package/examples/javascript/xy-candlestick/package.json +1 -1
- package/examples/javascript/xy-clustered-column/package.json +1 -1
- package/examples/javascript/xy-column/package.json +1 -1
- package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/javascript/xy-data-grouping/package.json +1 -1
- package/examples/javascript/xy-draggable-range/package.json +1 -1
- package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/javascript/xy-dumbbell plot/package.json +1 -1
- package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/javascript/xy-line/package.json +1 -1
- package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/javascript/xy-live-data/package.json +1 -1
- package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/javascript/xy-ohlc/package.json +1 -1
- package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/javascript/xy-smoothed-line/package.json +1 -1
- package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/javascript/xy-stacked-column/package.json +1 -1
- package/examples/javascript/xy-stacked-step/package.json +1 -1
- package/examples/javascript/xy-stock/package.json +1 -1
- package/examples/javascript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/flow-chord/package.json +1 -1
- package/examples/typescript/flow-chord-directed/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/jest/package.json +1 -1
- package/examples/typescript/json/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/stock-chart/package.json +1 -1
- package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
- package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
- package/examples/typescript/stock-chart-intraday/package.json +1 -1
- package/examples/typescript/stock-chart-live/package.json +1 -1
- package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/typescript/venn-diagram/package.json +1 -1
- package/examples/typescript/wordcloud-with-data/package.json +1 -1
- package/examples/typescript/wordcloud-with-text/package.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Pattern, IPatternSettings, IPatternPrivate } from "./Pattern";
|
|
2
|
+
export interface IPathPatternSettings extends IPatternSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Use an SVG path as pattern.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths} for more information
|
|
7
|
+
*/
|
|
8
|
+
svgPath?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IPathPatternPrivate extends IPatternPrivate {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A pattern that uses an SVG path.
|
|
14
|
+
*
|
|
15
|
+
* @since 5.2.33
|
|
16
|
+
* @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/patterns/} for more info
|
|
17
|
+
*/
|
|
18
|
+
export declare class PathPattern extends Pattern {
|
|
19
|
+
_settings: IPathPatternSettings;
|
|
20
|
+
_privateSettings: IPathPatternPrivate;
|
|
21
|
+
static className: string;
|
|
22
|
+
static classNames: Array<string>;
|
|
23
|
+
_beforeChanged(): void;
|
|
24
|
+
protected _draw(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=PathPattern.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathPattern.d.ts","sourceRoot":"","sources":["../../../../../../src/.internal/core/render/patterns/PathPattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIvE,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAsC7D;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAEjB;AAED,MAAM,WAAW,mBAAoB,SAAQ,eAAe;CAC3D;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAO;IACxB,SAAS,EAAE,oBAAoB,CAAC;IAChC,gBAAgB,EAAE,mBAAmB,CAAC;IAErD,OAAc,SAAS,EAAE,MAAM,CAAiB;IAChD,OAAc,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAsD;IAEtF,cAAc;IAQrB,SAAS,CAAC,KAAK;CAkEf"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { Pattern } from "./Pattern";
|
|
3
|
+
/**
|
|
4
|
+
* A pattern that uses an SVG path.
|
|
5
|
+
*
|
|
6
|
+
* @since 5.2.33
|
|
7
|
+
* @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/patterns/} for more info
|
|
8
|
+
*/
|
|
9
|
+
var PathPattern = /** @class */ (function (_super) {
|
|
10
|
+
__extends(PathPattern, _super);
|
|
11
|
+
function PathPattern() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(PathPattern.prototype, "_beforeChanged", {
|
|
15
|
+
enumerable: false,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: function () {
|
|
19
|
+
_super.prototype._beforeChanged.call(this);
|
|
20
|
+
if (this.isDirty("svgPath")) {
|
|
21
|
+
this._clear = true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(PathPattern.prototype, "_draw", {
|
|
26
|
+
enumerable: false,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: function () {
|
|
30
|
+
_super.prototype._draw.call(this);
|
|
31
|
+
// const checkered = this.get("checkered", false);
|
|
32
|
+
// const centered = this.get("centered", true);
|
|
33
|
+
// const gap = this.get("gap", 0);
|
|
34
|
+
// const rotation = this.get("rotation", 0);
|
|
35
|
+
// let w = this.get("width", 100);
|
|
36
|
+
// let h = this.get("height", 100);
|
|
37
|
+
// let rectW = this.get("maxWidth", 5);
|
|
38
|
+
// let rectH = this.get("maxHeight", 5);
|
|
39
|
+
// let cellW = rectW + gap;
|
|
40
|
+
// let cellH = rectH + gap;
|
|
41
|
+
// let cols = Math.round(w / cellW);
|
|
42
|
+
// let rows = Math.round(h / cellH);
|
|
43
|
+
// cellW = w / cols;
|
|
44
|
+
// cellH = h / rows;
|
|
45
|
+
// if (rotation != 0) {
|
|
46
|
+
// // @todo this is probably not right
|
|
47
|
+
// this._display.x = cellW / 2 * $math.cos(rotation);
|
|
48
|
+
// this._display.y = -cellH / 2 * $math.sin(rotation);
|
|
49
|
+
// }
|
|
50
|
+
// for (let r = rotation == 0 ? 0 : -rows * 2; r < rows * 2; r++) {
|
|
51
|
+
// for (let c = rotation == 0 ? 0 : -cols * 2; c < cols * 2; c++) {
|
|
52
|
+
// if (!checkered || ((r & 1) != 1 && (c & 1) != 1) || ((r & 1) == 1 && (c & 1) == 1)) {
|
|
53
|
+
// let x = c * cellW;
|
|
54
|
+
// let y = r * cellH;
|
|
55
|
+
// if (centered) {
|
|
56
|
+
// x += (cellW - rectW) / 2;
|
|
57
|
+
// y += (cellH - rectH) / 2;
|
|
58
|
+
// }
|
|
59
|
+
// this._display.drawRect(x, y, rectW, rectH);
|
|
60
|
+
// }
|
|
61
|
+
// }
|
|
62
|
+
// }
|
|
63
|
+
// if (checkered) {
|
|
64
|
+
// w = w / 2 - gap * 2;
|
|
65
|
+
// h = h / 2 - gap * 2;
|
|
66
|
+
// }
|
|
67
|
+
// else {
|
|
68
|
+
// w -= gap;
|
|
69
|
+
// h -= gap;
|
|
70
|
+
// }
|
|
71
|
+
var svgPath = this.get("svgPath");
|
|
72
|
+
if (svgPath != null) {
|
|
73
|
+
this._display.svgPath(svgPath);
|
|
74
|
+
}
|
|
75
|
+
var color = this.get("color");
|
|
76
|
+
var colorOpacity = this.get("colorOpacity");
|
|
77
|
+
if (color || colorOpacity) {
|
|
78
|
+
// this._display.lineStyle(strokeWidth, stroke, colorOpacity);
|
|
79
|
+
// this._display.endStroke();
|
|
80
|
+
this._display.beginFill(color, colorOpacity);
|
|
81
|
+
this._display.endFill();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(PathPattern, "className", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
configurable: true,
|
|
88
|
+
writable: true,
|
|
89
|
+
value: "PathPattern"
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(PathPattern, "classNames", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true,
|
|
94
|
+
writable: true,
|
|
95
|
+
value: Pattern.classNames.concat([PathPattern.className])
|
|
96
|
+
});
|
|
97
|
+
return PathPattern;
|
|
98
|
+
}(Pattern));
|
|
99
|
+
export { PathPattern };
|
|
100
|
+
//# sourceMappingURL=PathPattern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathPattern.js","sourceRoot":"","sources":["../../../../../../src/.internal/core/render/patterns/PathPattern.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAqC,MAAM,WAAW,CAAC;AAsDvE;;;;;GAKG;AACH;IAAiC,+BAAO;IAAxC;;IAiFA,CAAC;;;;;eA1EA;YACC,iBAAM,cAAc,WAAE,CAAC;YAEvB,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;aACnB;QACF,CAAC;;;;;;eAED;YACC,iBAAM,KAAK,WAAE,CAAC;YAEd,kDAAkD;YAClD,+CAA+C;YAC/C,kCAAkC;YAClC,4CAA4C;YAC5C,kCAAkC;YAClC,mCAAmC;YACnC,uCAAuC;YACvC,wCAAwC;YAGxC,2BAA2B;YAC3B,2BAA2B;YAE3B,oCAAoC;YACpC,oCAAoC;YAEpC,oBAAoB;YACpB,oBAAoB;YAEpB,uBAAuB;YACvB,uCAAuC;YACvC,sDAAsD;YACtD,uDAAuD;YACvD,IAAI;YAEJ,mEAAmE;YACnE,oEAAoE;YACpE,0FAA0F;YAC1F,wBAAwB;YACxB,wBAAwB;YACxB,qBAAqB;YACrB,gCAAgC;YAChC,gCAAgC;YAChC,OAAO;YACP,iDAAiD;YACjD,MAAM;YACN,KAAK;YACL,IAAI;YAEJ,mBAAmB;YACnB,wBAAwB;YACxB,wBAAwB;YACxB,IAAI;YACJ,SAAS;YACT,aAAa;YACb,aAAa;YACb,IAAI;YAEJ,IAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACpC,IAAI,OAAO,IAAI,IAAI,EAAE;gBACpB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAQ,CAAC,CAAC;aAChC;YAED,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAChC,IAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAC9C,IAAI,KAAK,IAAI,YAAY,EAAE;gBAC1B,8DAA8D;gBAC9D,6BAA6B;gBAC7B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;gBAC7C,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;aACxB;QAEF,CAAC;;IA5ED;;;;eAAkC,aAAa;OAAC;IAChD;;;;eAA0C,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;OAAC;IA4E9F,kBAAC;CAAA,AAjFD,CAAiC,OAAO,GAiFvC;SAjFY,WAAW","sourcesContent":["import { Pattern, IPatternSettings, IPatternPrivate } from \"./Pattern\";\n\n//import * as $math from \"../../util/Math\";\n\nexport interface IPathPatternSettings extends IPatternSettings {\n\n\t// /**\n\t// * Gap between Paths, in pixels.\n\t// *\n\t// * @default 6\n\t// */\n\t// gap?: number;\n\n\t// /**\n\t// * Maximum width of the Path, in pixels.\n\t// *\n\t// * @default 5\n\t// */\n\t// maxWidth?: number;\n\n\t// /**\n\t// * Maximum height of the Path, in pixels.\n\t// *\n\t// * @default 5\n\t// */\n\t// maxHeight?: number;\n\n\t// /**\n\t// * If set to `true`, will place every second Path, creating checkered\n\t// * pattern.\n\t// *\n\t// * @default false\n\t// */\n\t// checkered?: boolean;\n\n\t// /**\n\t// * Center image.\n\t// *\n\t// * @default true\n\t// */\n\t// centered?: boolean;\n\n\t/**\n\t * Use an SVG path as pattern.\n\t *\n\t * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths} for more information\n\t */\n\tsvgPath?: string;\n\n}\n\nexport interface IPathPatternPrivate extends IPatternPrivate {\n}\n\n/**\n * A pattern that uses an SVG path.\n *\n * @since 5.2.33\n * @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/patterns/} for more info\n */\nexport class PathPattern extends Pattern {\n\tdeclare public _settings: IPathPatternSettings;\n\tdeclare public _privateSettings: IPathPatternPrivate;\n\n\tpublic static className: string = \"PathPattern\";\n\tpublic static classNames: Array<string> = Pattern.classNames.concat([PathPattern.className]);\n\n\tpublic _beforeChanged() {\n\t\tsuper._beforeChanged();\n\n\t\tif (this.isDirty(\"svgPath\")) {\n\t\t\tthis._clear = true;\n\t\t}\n\t}\n\n\tprotected _draw() {\n\t\tsuper._draw();\n\n\t\t// const checkered = this.get(\"checkered\", false);\n\t\t// const centered = this.get(\"centered\", true);\n\t\t// const gap = this.get(\"gap\", 0);\n\t\t// const rotation = this.get(\"rotation\", 0);\n\t\t// let w = this.get(\"width\", 100);\n\t\t// let h = this.get(\"height\", 100);\n\t\t// let rectW = this.get(\"maxWidth\", 5);\n\t\t// let rectH = this.get(\"maxHeight\", 5);\n\n\n\t\t// let cellW = rectW + gap;\n\t\t// let cellH = rectH + gap;\n\n\t\t// let cols = Math.round(w / cellW);\n\t\t// let rows = Math.round(h / cellH);\n\n\t\t// cellW = w / cols;\n\t\t// cellH = h / rows;\n\n\t\t// if (rotation != 0) {\n\t\t// \t// @todo this is probably not right\n\t\t// \tthis._display.x = cellW / 2 * $math.cos(rotation);\n\t\t// \tthis._display.y = -cellH / 2 * $math.sin(rotation);\n\t\t// }\n\n\t\t// for (let r = rotation == 0 ? 0 : -rows * 2; r < rows * 2; r++) {\n\t\t// \tfor (let c = rotation == 0 ? 0 : -cols * 2; c < cols * 2; c++) {\n\t\t// \t\tif (!checkered || ((r & 1) != 1 && (c & 1) != 1) || ((r & 1) == 1 && (c & 1) == 1)) {\n\t\t// \t\t\tlet x = c * cellW;\n\t\t// \t\t\tlet y = r * cellH;\n\t\t// \t\t\tif (centered) {\n\t\t// \t\t\t\tx += (cellW - rectW) / 2;\n\t\t// \t\t\t\ty += (cellH - rectH) / 2;\n\t\t// \t\t\t}\n\t\t// \t\t\tthis._display.drawRect(x, y, rectW, rectH);\n\t\t// \t\t}\n\t\t// \t}\n\t\t// }\n\n\t\t// if (checkered) {\n\t\t// \tw = w / 2 - gap * 2;\n\t\t// \th = h / 2 - gap * 2;\n\t\t// }\n\t\t// else {\n\t\t// \tw -= gap;\n\t\t// \th -= gap;\n\t\t// }\n\n\t\tconst svgPath = this.get(\"svgPath\");\n\t\tif (svgPath != null) {\n\t\t\tthis._display.svgPath(svgPath!);\n\t\t}\n\n\t\tconst color = this.get(\"color\");\n\t\tconst colorOpacity = this.get(\"colorOpacity\");\n\t\tif (color || colorOpacity) {\n\t\t\t// this._display.lineStyle(strokeWidth, stroke, colorOpacity);\n\t\t\t// this._display.endStroke();\n\t\t\tthis._display.beginFill(color, colorOpacity);\n\t\t\tthis._display.endFill();\n\t\t}\n\n\t}\n}\n"]}
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|
|
5
5
|
Please note, that this project, while following numbering syntax, it DOES NOT
|
|
6
6
|
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.
|
|
7
7
|
|
|
8
|
+
## [5.2.33] - 2022-11-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- New pattern type `PathPattern`. Allows using SVG paths as patterns. [More info](https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/patterns/).
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- Circular labels (`RadialLabel` with `textType: "circular"`) now have a limited support for `oversizedBehavior`. `"hide"` and `"truncate"` are now supported. The latter will not respect `breakWords` setting, though.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Hovering, clicking, and unhovering a `PieSeries` slice would not reset its size properly.
|
|
18
|
+
- `Label` background was not being sized properly when `fontWeight: bold` was set.
|
|
19
|
+
- Dynamically setting `include` or `exclude` on a `MapPolygonSeries` was not updating it until data was re-validated.
|
|
20
|
+
- Circular labels on a `Sunburst` diagram were not being positioned properly.
|
|
21
|
+
|
|
22
|
+
|
|
8
23
|
## [5.2.32] - 2022-11-15
|
|
9
24
|
|
|
10
25
|
### Added
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "amcharts5-example-xy-animated-bullet-at-the-end-of-the-series",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@amcharts/amcharts5": "^5.2.
|
|
6
|
+
"@amcharts/amcharts5": "^5.2.33",
|
|
7
7
|
"source-map-loader": "^3.0.0",
|
|
8
8
|
"webpack": "^5.1.3",
|
|
9
9
|
"webpack-cli": "^4.1.0",
|