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uG,EAAIlB,EAAGrF,GAAK,EAC/B,IAAK,IAAI+I,EAAIzC,EAAGyC,EAAIzC,EAAInB,EAAG4D,GAAK,EAE/B,GAAiB,GAAbF,GADM7I,EAAI,GAAK2E,GAAQA,EAAOoE,IAEjC,OAAO,EAKX,OAAO,CACR,EAjgBA,qC,gDAAkC,cAClC,sC,gDAA0CjH,EAAA,EAAO2J,WAAWC,OAAO,CAAC7J,EAAU8J,a,iEC1KxE,MAAMC,E","sources":["webpack://@amcharts/amcharts5/./src/.internal/charts/wordcloud/WordCloudDefaultTheme.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/wordcloud/WordCloud.ts","webpack://@amcharts/amcharts5/./tmp/webpack/wc.js"],"sourcesContent":["import { Theme } from \"../../core/Theme\";\r\nimport { percent, p100, p50 } from \"../../core/util/Percent\";\r\nimport { Rectangle } from \"../../core/render/Rectangle\";\r\n\r\nimport * as $ease from \"../../core/util/Ease\";\r\n\r\n\r\n/**\r\n * @ignore\r\n */\r\nexport class WordCloudDefaultTheme extends Theme {\r\n\tprotected setupDefaultRules() {\r\n\t\tsuper.setupDefaultRules();\r\n\r\n\t\tconst ic = this._root.interfaceColors;\r\n\t\tconst r = this.rule.bind(this);\r\n\r\n\t\tr(\"WordCloud\").setAll({\r\n\t\t\twidth: p100,\r\n\t\t\theight: p100,\r\n\t\t\tminFontSize: percent(2),\r\n\t\t\tmaxFontSize: percent(15),\r\n\t\t\texcludeWords: [],\r\n\t\t\tangles: [0, -90],\r\n\t\t\tminWordLength: 1,\r\n\t\t\tstep: 15,\r\n\t\t\trandomness: 0,\r\n\t\t\tautoFit: true,\r\n\t\t\tanimationEasing: $ease.out($ease.cubic)\r\n\t\t});\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Label\", [\"wordcloud\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\ttext: \"{category}\",\r\n\t\t\t\tcenterX: p50,\r\n\t\t\t\tcenterY: p50,\r\n\t\t\t\tposition: \"absolute\",\r\n\t\t\t\tlineHeight: p100,\r\n\t\t\t\tpopulateText: true\r\n\t\t\t});\r\n\r\n\t\t\trule.setup = (target) => {\r\n\t\t\t\ttarget.set(\"background\", Rectangle.new(this._root, {\r\n\t\t\t\t\tfill: ic.get(\"background\"),\r\n\t\t\t\t\tfillOpacity: 0\r\n\t\t\t\t}));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n}\r\n","import type { DataItem } from \"../../core/render/Component\";\nimport type { CanvasLayer } from \"../../core/render/backend/CanvasRenderer\";\nimport type { ColorSet } from \"../../core/util/ColorSet\";\nimport type { Percent } from \"../../core/util/Percent\";\nimport type { IPoint } from \"../../core/util/IPoint\";\nimport type { IDisposer } from \"../../core/util/Disposer\";\nimport type { Time } from \"../../core/util/Animation\";\n\nimport { WordCloudDefaultTheme } from \"./WordCloudDefaultTheme\";\nimport { Series, ISeriesSettings, ISeriesDataItem, ISeriesPrivate } from \"../../core/render/Series\";\nimport { Template } from \"../../core/util/Template\";\nimport { Label } from \"../../core/render/Label\";\nimport { Container } from \"../../core/render/Container\";\nimport { ListTemplate } from \"../../core/util/List\";\nimport { Color } from \"../../core/util/Color\";\nimport type { IBounds } from \"../../core/util/IBounds\";\n\nimport * as $utils from \"../../core/util/Utils\";\nimport * as $array from \"../../core/util/Array\";\nimport * as $math from \"../../core/util/Math\";\nimport * as $type from \"../../core/util/Type\";\n\nexport interface IWordCloudDataItem extends ISeriesDataItem {\n\n\t/**\n\t * Category.\n\t */\n\tcategory: string;\n\n\t/**\n\t * Label.\n\t */\n\tlabel: Label;\n\n\t/**\n\t * Label.\n\t */\n\tghostLabel: Label;\n\n\t/**\n\t * Fill color used for the slice and related elements, e.g. legend marker.\n\t */\n\tfill: Color;\n\n\t/**\n\t * @ignore\n\t */\n\tset: number;\n\n\t/**\n\t * @ignore\n\t */\n\tangle: number;\n\n\t/**\n\t * @ignore\n\t */\n\tfontSize: number;\n}\n\nexport interface IWordCloudSettings extends ISeriesSettings {\n\n\t/**\n\t * Duration of word animation when chart resizes.\n\t */\n\tanimationDuration?: number;\n\n\t/**\n\t * An easing function to use for word animations.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/concepts/animations/#Easing_functions} for more info\n\t * @default am5.ease.out($ease.cubic)\n\t */\n\tanimationEasing?: (t: Time) => Time;\n\n\t/**\n\t * @default false\n\t */\n\tautoFit?: boolean;\n\n\t/**\n\t * Progress of current word layout animation. (0-1)\n\t * \n\t * @readonly\n\t */\n\tprogress?: number;\n\n\t/**\n\t * A [[ColorSet]] to use when asigning colors for slices.\n\t */\n\tcolors?: ColorSet;\n\n\t/**\n\t * A field in data that holds category names.\n\t */\n\tcategoryField?: string;\n\n\t/**\n\t * A field that holds color for label fill.\n\t */\n\tfillField?: string;\n\n\t/**\n\t * Source text from which words are extracted.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Absolute or relative font size for the smallest words.\n\t */\n\tminFontSize?: number | Percent;\n\n\t/**\n\t * Absolute or relative font size for the biggest words.\n\t */\n\tmaxFontSize?: number | Percent;\n\n\t/**\n\t * Minimum occurances for a word to be included into cloud.\n\t */\n\tminValue?: number;\n\n\t/**\n\t * Maximum number of words to show.\n\t */\n\tmaxCount?: number;\n\n\t/**\n\t * Array of words exclude from cloud.\n\t */\n\texcludeWords?: Array;\n\n\t/**\n\t * Randomness of word placement (0-1).\n\t */\n\trandomness?: number;\n\n\t/**\n\t * Minimum number of characters for a word to be included in the cloud.\n\t */\n\tminWordLength?: number;\n\n\t/**\n\t * An array of possible rotation angles for words.\n\t */\n\tangles?: number[];\n\n\t/**\n\t * Step for next word placement.\n\t */\n\tstep?: number;\n}\n\nexport interface IWordCloudPrivate extends ISeriesPrivate {\n\n\t/**\n\t * Indicates whether size of the font was adjusted for better fit.\n\t */\n\tadjustedFontSize: number;\n\n}\n\n/**\n * Creates a [[WordlCloud]] series.\n *\n * @see {@link https://www.amcharts.com/docs/v5/charts/word-cloud/} for more info\n * @important\n */\nexport class WordCloud extends Series {\n\n\tpublic static className: string = \"WordCloud\";\n\tpublic static classNames: Array = Series.classNames.concat([WordCloud.className]);\n\n\tdeclare public _settings: IWordCloudSettings;\n\tdeclare public _privateSettings: IWordCloudPrivate;\n\tdeclare public _dataItemSettings: IWordCloudDataItem;\n\n\tprotected _currentIndex: number = 0;\n\tprotected _timeoutDP?: IDisposer;\n\n\tprotected _ghostContainer = this.children.push(Container.new(this._root, { layer: 99, opacity: 0.01 }))\n\n\tprotected _pointSets: Array> = [];\n\tprotected _sets: number = 3;\n\n\tprotected _process = false;\n\n\tprotected _buffer: Array = [];\n\n\tprotected _boundsToAdd?: IBounds;\n\n\tprotected _afterNew() {\n\t\tthis._defaultThemes.push(WordCloudDefaultTheme.new(this._root));\n\n\t\tthis.fields.push(\"category\", \"fill\");\n\t\tthis._setDefault(\"valueField\", \"value\");\n\t\tthis._setDefault(\"categoryField\", \"category\");\n\t\tthis._setDefault(\"fillField\", \"fill\");\n\n\t\tsuper._afterNew();\n\n\t\tthis._root.events.on(\"frameended\", () => {\n\t\t\tthis.set(\"progress\", this._currentIndex / this.dataItems.length);\n\t\t})\n\t}\n\n\n\t/**\n\t * A [[ListTemplate]] of all labels in series.\n\t *\n\t * `labels.template` can also be used to configure labels.\n\t */\n\tpublic readonly labels: ListTemplate