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,SAAUC,GAAO,OAAQjL,EAAOiL,GAAOuuD,EAAOvuD,EAAO,GAEzF,EACS4wC,EAAK,EAAG6d,EAASviB,EAAM0E,EAAK6d,EAAO3uD,OAAQ8wC,IAEhD0d,EADaG,EAAO7d,IAGxB,OAAO77C,CACX,E,qECnBG,MAAM25D,E","sources":["webpack://@amcharts/amcharts5/./src/.internal/charts/stock/PanelControls.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/StockIcons.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/StockChartDefaultTheme.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/StockControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/Dropdown.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DropdownColors.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/StockToolbarCSS.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/ColorControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/SettingsModal.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/StockChart.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/Indicator.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/StockLegend.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/StockPanel.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/ChartIndicator.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/OverboughtOversold.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/MovingAverage.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/Momentum.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/VWAP.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/MovingAverageEnvelope.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/MovingAverageDeviation.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/AccelerationBands.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/BollingerBands.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/RelativeStrengthIndex.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/AccumulationDistribution.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/AccumulativeSwingIndex.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/Aroon.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/MACD.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/MACross.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/ChaikinMoneyFlow.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/ChaikinOscillator.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/BullBearPower.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/OnBalanceVolume.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/PVT.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/StochasticOscillator.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/StochasticMomentumIndex.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/AwesomeOscillator.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/WilliamsR.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/Volume.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/VolumeProfile.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/CommodityChannelIndex.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/DisparityIndex.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/StandardDeviation.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/TypicalPrice.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/Trix.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/MedianPrice.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/ZigZag.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/indicators/AverageTrueRange.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/DrawingSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/PolylineSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/SimpleLineSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/RectangleSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/ParallelChannelSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/LineArrowSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/HorizontalLineSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/VerticalLineSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/AverageSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/RegressionSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/DoodleSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/IconSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/LabelSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/CalloutSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/EllipseSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/TrendLineSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/QuadrantLineSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/FibonacciSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/FibonacciTimezoneSeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/HorizontalRaySeries.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/drawing/Measure.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/StockToolbar.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DropdownList.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DrawingToolControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DropdownListControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DropdownControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/IconControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DrawingControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/IndicatorControl.ts","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/types/options.js","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/l10n/default.js","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/utils/index.js","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/utils/dom.js","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/utils/formatting.js","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/utils/dates.js","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/index.js","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DateRangeSelector.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/PeriodSelector.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/SeriesTypeControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/IntervalControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/ResetControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/DataSaveControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/SettingsControl.ts","webpack://@amcharts/amcharts5/./src/.internal/charts/stock/toolbar/ComparisonControl.ts","webpack://@amcharts/amcharts5/./node_modules/flatpickr/dist/esm/utils/polyfills.js","webpack://@amcharts/amcharts5/./tmp/webpack/stock.js"],"sourcesContent":["import type { StockChart } from \"./StockChart\";\r\nimport type { StockPanel } from \"./StockPanel\";\r\n\r\nimport { Container, IContainerPrivate, IContainerSettings } from \"../../core/render/Container\";\r\nimport { Button } from \"../../core/render/Button\";\r\nimport { Graphics } from \"../../core/render/Graphics\";\r\n\r\nexport interface IPanelControlsSettings extends IContainerSettings {\r\n\r\n\t/**\r\n\t * A target [[StockChart]].\r\n\t */\r\n\tstockChart: StockChart;\r\n\r\n\t/**\r\n\t * A target [[StockPanel]].\r\n\t */\r\n\tstockPanel: StockPanel\r\n\r\n}\r\n\r\nexport interface IPanelControlsPrivate extends IContainerPrivate {\r\n\r\n}\r\n\r\n/**\r\n * Creates a button set for [[StockChart]] panels (move up/down, close, etc.)\r\n *\r\n * @see {@link https://www.amcharts.com/docs/v5/charts/stock/panels/#Panel_controls} for more info\r\n */\r\nexport class PanelControls extends Container {\r\n\r\n\tdeclare public _settings: IPanelControlsSettings;\r\n\tdeclare public _privateSettings: IPanelControlsPrivate;\r\n\r\n\tpublic static className: string = \"PanelControls\";\r\n\tpublic static classNames: Array = Container.classNames.concat([PanelControls.className]);\r\n\r\n\t/**\r\n\t * A [[Button]] which moves panel up.\r\n\t *\r\n\t * @default Button.new()\r\n\t */\r\n\tpublic upButton = this.children.push(Button.new(this._root, {\r\n\t\tthemeTags: [\"up\", \"control\", \"panel\"],\r\n\t\ticon: Graphics.new(this._root, {\r\n\t\t\tthemeTags: [\"icon\", \"button\"]\r\n\t\t})\r\n\t}))\r\n\r\n\t/**\r\n\t * A [[Button]] which moves panel down.\r\n\t *\r\n\t * @default Button.new()\r\n\t */\r\n\tpublic downButton = this.children.push(Button.new(this._root, {\r\n\t\tthemeTags: [\"down\", \"control\", \"panel\"],\r\n\t\ticon: Graphics.new(this._root, {\r\n\t\t\tthemeTags: [\"icon\", \"button\"]\r\n\t\t})\r\n\t}))\r\n\r\n\t/**\r\n\t * A [[Button]] which expands/collapses the panel.\r\n\t *\r\n\t * @default Button.new()\r\n\t */\r\n\tpublic expandButton = this.children.push(Button.new(this._root, {\r\n\t\tthemeTags: [\"expand\", \"control\", \"panel\"],\r\n\t\ticon: Graphics.new(this._root, {\r\n\t\t\tthemeTags: [\"icon\", \"button\"]\r\n\t\t})\r\n\t}))\r\n\r\n\t/**\r\n\t * A [[Button]] which closes the panel.\r\n\t *\r\n\t * @default Button.new()\r\n\t */\r\n\tpublic closeButton = this.children.push(Button.new(this._root, {\r\n\t\tthemeTags: [\"close\", \"control\", \"panel\"],\r\n\t\ticon: Graphics.new(this._root, {\r\n\t\t\tthemeTags: [\"icon\", \"button\"]\r\n\t\t})\r\n\t}))\r\n\r\n\tprotected _afterNew() {\r\n\t\tsuper._afterNew();\r\n\r\n\r\n\t\tconst upButton = this.upButton;\r\n\t\tconst downButton = this.downButton;\r\n\r\n\t\tdownButton.events.on(\"click\", () => {\r\n\t\t\tconst stockPanel = this.get(\"stockPanel\");\r\n\t\t\tstockPanel.moveDown();\r\n\t\t});\r\n\r\n\t\tupButton.events.on(\"click\", () => {\r\n\t\t\tconst stockPanel = this.get(\"stockPanel\");\r\n\t\t\tstockPanel.moveUp();\r\n\t\t});\r\n\r\n\t\tthis.closeButton.events.on(\"click\", () => {\r\n\t\t\tconst stockPanel = this.get(\"stockPanel\");\r\n\t\t\tstockPanel.close();\r\n\t\t});\r\n\r\n\t\tthis.expandButton.events.on(\"click\", () => {\r\n\t\t\tconst stockPanel = this.get(\"stockPanel\");\r\n\t\t\tstockPanel.expand();\r\n\t\t});\r\n\r\n\t}\r\n}\r\n","export interface StockIcon {\r\n\tviewbox: string;\r\n\tpath: string;\r\n\tstyle?: string;\r\n}\r\n\r\n/**\r\n * A collection of icons used in [[StockChart]].\r\n */\r\nexport class StockIcons {\r\n\tpublic static icons: { [index: string]: StockIcon } = {\r\n\t\t// Misc\r\n\t\t\"Default\": { viewbox: \"0 0 50 50\", path: \"M 25 10 L 25 40 M 10 25 L 41 25\" },\r\n\t\t\"Indicator\": { viewbox: \"0 0 50 50\", path: \"M 2 10 C 28 27 31 1 48 11 M 1 49 C 24 22 25 38 48 44 M 3 25 L 48 25 L 41 19 M 48 25 L 41 31\" },\r\n\t\t\"Color\": { viewbox: \"0 0 50 50\", path: \"\" },\r\n\t\t\"Dash\": { viewbox: \"0 0 60 16\", path: \"M0,8 60,8\" },\r\n\r\n\t\t\"Calendar\": { viewbox: \"0 0 50 50\", path: \"M 3 8 L 47 8 L 47 48 L 3 48 L 3 8 M 3 19 L 47 19 M 9 28 L 15 28 M 22 28 L 28 28 M 35 28 L 41 28 M 9 39 L 15 39 M 22 39 L 28 39 M 35 39 L 41 39 M 12 14 L 12 1 M 38 14 L 38 1\" },\r\n\t\t\"Period\": { viewbox: \"0 0 50 50\", path: \"M 3 3 L 47 3 L 47 48 L 3 48 L 3 3 M 3 12 L 47 12 M 9 21 L 15 21 M 22 21 L 28 21 M 35 21 L 41 21 M 9 30 L 15 30 M 22 30 L 28 30 M 35 30 L 41 30 M 9 39 L 15 39 M 22 39 L 28 39 M 35 39 L 41 39\" },\r\n\t\t\"Interval\": { viewbox: \"0 0 50 50\", path: \"M 3 10 L 3 48 M 3 10 L 43 10 M 13 10 L 13 36 M 23 10 L 23 36 M 43 10 L 43 48 M 33 10 L 33 36\" },\r\n\t\t\"Comparison\": { viewbox: \"0 0 50 50\", path: \"M 25 10 L 25 40 M 10 25 L 41 25\" },\r\n\t\t\"Settings\": { viewbox: \"0 0 50 50\", path: \"M49,25 L47.6,33.2 L41.3,32.6 L39.7,35.3 L43.4,40.4 L37,45.8 L32.6,41.3 L29.7,42.4 L29.2,48.6 L20.8,48.6 L20.3,42.4 L17.4,41.3 L13,45.8 L6.6,40.4 L10.3,35.3 L8.7,32.6 L2.4,33.2 L1,25 L7.1,23.4 L7.6,20.3 L2.4,16.8 L6.6,9.6 L12.3,12.3 L14.7,10.3 L13,4.2 L20.8,1.4 L23.4,7.1 L26.6,7.1 L29.2,1.4 L37,4.2 L35.3,10.3 L37.7,12.3 L43.4,9.6 L47.6,16.8 L42.4,20.3 L42.9,23.4 L49,25 M 17 25 A 1 1 0 0 0 33 25 A 1 1 0 0 0 17 25\" },\r\n\t\t\"Save\": { viewbox: \"0 0 50 50\", path: \"M47 47 47 15 35 3 3 3 3 47 47 47ZM13 3 13 13 33 13 33 3M9 42 9 25 39 25 39 42 9 42\" },\r\n\r\n\t\t// Chart types\r\n\t\t\"Line Series\": { viewbox: \"0 0 50 50\", path: \"M 3 28 L 14 18 L 25 32 L 36 9 L 47 19\" },\r\n\t\t\"Area Series\": { viewbox: \"0 0 50 50\", path: \"M 3 20 L 14 13 L 25 20.95 L 37 9 L 48 16 L 48 48 M 8 17 L 8 48 M 13 14 L 13 48 M 18 16 L 18 48 M 23 20 L 23 48 M 28 18 L 28 48 M 33 13 L 33 48 M 38 10 L 38 48 M 43 13 L 43 48 M 3 20 L 3 48\" },\r\n\t\t\"Candlestick Series\": { viewbox: \"0 0 50 50\", path: \"M 3 17 L 3 37 L 19 37 M 19 37 L 19 17 L 3 17 M 11 17 L 11 6 M 11 37 L 11 50 M 30 11 L 30 31 L 46 31 L 46 11 L 30 11 M 38 11 L 38 0 M 38 31 L 38 44 M 3 22 L 19 22 M 3 27 L 19 27 M 3 32 L 19 32 M 30 16 L 46 16 M 30 21 L 46 21 M 30 26 L 46 26\" },\r\n\t\t\"Pro Candlestick Series\": { viewbox: \"0 0 50 50\", path: \"M 3 10 L 3 31 L 19 31 M 19 31 L 19 10 L 3 10 M 11 10 L 11 0 M 11 31 L 11 43 M 30 17 L 30 37 L 46 37 L 46 17 L 30 17 M 38 17 L 38 4 M 38 37 L 38 50 M 30 22 L 46 22 M 30 27 L 46 27 M 30 32 L 46 32\" },\r\n\t\t\"OHLC Series\": { viewbox: \"0 0 50 50\", path: \"M 11 31 L 20 31 M 11 3 L 11 43 M 38 5 L 38 50 M 29 36 L 38 36 M 38 12 L 47 12 M 11 17 L 2 17\" },\r\n\r\n\t\t// Drawing tools\r\n\t\t\"Draw\": { viewbox: \"0 0 50 50\", path: \"M 29 2 L 48 21 L 22 47 L 3 47 L 3 28 L 29 2 M 23 8 L 42 27 M 3 42 L 8 47 M 18 39 L 36 21 M 11 32 L 29 14 M 3 28 L 11 32 L 13 38 L 18 39 L 22 47 M 25 6 L 44 25 M 27 4 L 46 23 M 3 44 L 6 47 M 3 40 L 10 47\" },\r\n\t\t\"Average\": { viewbox: \"0 0 50 50\", path: \"M2 24a5 5 0 1 0 10 0 5 5 0 1 0-10 0M12 24h26M38 24a5 5 0 1 0 10 0 5 5 0 1 0-10 0\" },\r\n\t\t\"Callout\": { viewbox: \"0 0 50 50\", path: \"M 3 3 L 47 3 L 47 39 L 31 39 L 25 45 L 19 39 L 3 39 L 3 3 M 11 12 L 39 12 M 11 20 L 39 20 M 11 28 L 39 28\" },\r\n\t\t\"Doodle\": { viewbox: \"0 0 48 48\", path: \"M 43.036,2.509 C 32.59,9.83 8.05,6.67 6.29,15.01 5.19,26.29 34.40,18.9 37.4,27.5 c 1.4,3.78 -4.0,8 -15.7,13.18\" },\r\n\t\t\"Ellipse\": { viewbox: \"0 0 50 50\", path: \"M 25 5 a 22 20 0 1 0 1 0 z\" },\r\n\t\t\"Fibonacci\": { viewbox: \"0 0 50 50\", path: \"M2 3 h46 M2 11.5 h46 M2 24 h46 M2 49 h46\" },\r\n\t\t\"Fibonacci Timezone\": { viewbox: \"0 0 50 50\", path: \"M5 2.5 v46 M13.5 2.5 v46 M26 2.5 v46 M46.5 2.5 v46\" },\r\n\t\t\"Horizontal Line\": { viewbox: \"0 0 50 50\", path: \"M20 24a5 5 0 1 0 10 0 5 5 0 1 0-10 0M2 24h18 M32,24 h18\" },\r\n\t\t\"Horizontal Ray\": { viewbox: \"0 0 50 50\", path: \"M2 24a5 5 0 1 0 10 0 5 5 0 1 0-10 0 M14,24 h36\" },\r\n\t\t\"Arrows & Icons\": { viewbox: \"0 0 50 50\", path: \"M 5 35 L 5 15 L 26 15 M 26 15 L 26 5 L 45 26 L 26 45 L 26 35 L 5 35\" },\r\n\t\t\"Label\": { viewbox: \"0 0 50 50\", path: \"M 10 45 l 15 -32 l 15 32 m -24 -13 l 18 0\", style: \"stroke-width: 1.2px\" },\r\n\t\t\"Line\": { viewbox: \"0 0 50 50\", path: \"M 4 46 L 46 4\" },\r\n\t\t\"Line Arrow\": { viewbox: \"0 0 50 50\", path: \"M 4 46 L 46 4 M 30 4 L 46 4 L 46 20\" },\r\n\t\t\"Polyline\": { viewbox: \"0 0 50 50\", path: \"M 2 15 L 16 42 L 36 22 L 48 29\" },\r\n\t\t\"Polyfill\": { viewbox: \"0 0 50 50\", path: \"M 2 15 L 8 44 L 20 26 L 41 32 L 47 13 L 24 4 L 2 15\" },\r\n\t\t\"Quadrant Line\": { viewbox: \"0 0 50 50\", path: \"M2 3 h46 M2 15 h46 M2 29 h46 M2 43 h46\" },\r\n\t\t\"Rectangle\": { viewbox: \"0 0 50 50\", path: \"M3 3 L47 3 L47 47 L3 47 L3 3\" },\r\n\t\t\"Regression\": { viewbox: \"0 0 50 50\", path: \"M 2 15 a 5 5 0 1 0 10 0 a 5 5 0 1 0 -10 0 M 11.36 17.369 L 38.661 32.505 M 38 35 a 5 5 0 1 0 10 0 a 5 5 0 1 0 -10 0\" },\r\n\t\t\"Trend Line\": { viewbox: \"0 0 50 50\", path: \"M 2 35 a 5 5 0 1 0 10 0 a 5 5 0 1 0 -10 0 M 11.343 32.542 L 38.614 17.398 M 38 15 a 5 5 0 1 0 10 0 a 5 5 0 1 0 -10 0\" },\r\n\t\t\"Triangle\": { viewbox: \"0 0 50 50\", path: \"M 2 15 L 22 47 L 48 20 L 2 15\" },\r\n\t\t\"Vertical Line\": { viewbox: \"0 0 50 50\", path: \"M19 25a5 5 0 1 0 10 0 5 5 0 1 0-10 0M24 2v18 M24,32 v18\" },\r\n\t\t\"Parallel Channel\": { viewbox: \"0 0 50 50\", path: \"M 3 37 L 37 3 M 13 47 L 47 13\" },\r\n\r\n\t\t\"Eraser\": { viewbox: \"0 0 50 50\", path: \"M 13 48 L 21 48 L 45 24 L 29 8 L 1 36 L 13 48 M 32 48 L 38 48 M 43 48 L 49 48 M 23 14 L 39 30 M 20 17 L 36 33 M 26 11 L 42 27\" },\r\n\t\t\"Select\": { viewbox: \"0 0 50 50\", path: \"M 8 6 L 35 18 L 24 25 L 38 43 L 33 47 L 20 28 L 11 36 L 8 6\" },\r\n\t\t\"Clear\": { viewbox: \"0 0 50 50\", path: \"M 6 10 L 12 48 L 38 48 L 44 10 L 6 10 M 14 14 L 18 43 M 25 14 L 25 43 M 36 14 L 32 43 M 6 8 L 44 8 M 21 8 L 21 3 L 30 3 L 30 8\" },\r\n\t\t\"Bold\": { viewbox: \"0 0 50 50\", path: \"M 12 4 L 12 47 L 32 47 C 45 47 47 23 32 23 C 42 23 42 4 31 4 L 12 4 Z M 32 23 L 12 23 Z\", style: \"stroke-width: 1.8px\" },\r\n\t\t\"Italic\": { viewbox: \"0 0 50 50\", path: \"M 17 5 L 38 5 M 27 5 L 18 47 M 8 47 L 28 47\" },\r\n\t\t\"Show Extension\": { viewbox: \"0 0 50 50\", path: \"M 10 15 a 5 5 0 1 0 10 0 a 5 5 0 1 0 -10 0 M 30 36 a 5 5 0 1 0 10 0 a 5 5 0 1 0 -10 0 M 40 41 L 50 50 M 20 20 L 30 30 M 10 10 L 0 0\" },\r\n\t\t\"Snap\": { viewbox: \"0 0 50 50\", path: \"M 17 29 L 29 29 M 33 39 a 5 5 0 1 0 15 0 a 5 5 0 1 0 -15 0 M 29 17 L 29 29 L 3 3\" },\r\n\t\t\"Reset\": { viewbox: \"0 0 50 50\", path: \"M 4 25 A 1 1 0 0 0 46 25 Q 46 4 25 4 Q 18 4 11 10 L 5 4 L 5 16 L 17 16 L 11 10\" },\r\n\t\t\"Search\": { viewbox: \"0 0 50 50\", path: \"M 5 11 A 1 1 90 0 0 36 27 A 1 1 90 0 0 5 11 M 34 30 L 49 45 L 47 47 L 32 32\" },\r\n\t\t\"Measure\": { viewbox: \"0 0 50 50\", path: \"M 3 38 L 35 6 L 46 17 L 14 49 L 3 38 M 10 31 L 16 37 M 16 25 L 20 29 M 22 19 L 26 23 M 28 13 L 34 19 M 50 50\" }\r\n\t};\r\n\r\n\tpublic static getIcon(id: string): SVGElement {\r\n\t\tconst icons: any = StockIcons.icons;\r\n\t\tconst icon: any = icons[id] || icons[\"Default\"];\r\n\t\treturn StockIcons._getSVG(icon);\r\n\t}\r\n\r\n\tpublic static _getSVG(icon: any): SVGElement {\r\n\t\tconst svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\r\n\t\tsvg.setAttribute(\"viewBox\", icon.viewbox);\r\n\t\tsvg.setAttribute(\"class\", \"am5stock_control_default_icon\");\r\n\r\n\t\tconst path = document.createElementNS('http://www.w3.org/2000/svg', 'path');\r\n\t\tpath.setAttribute(\"d\", icon.path);\r\n\t\tsvg.appendChild(path);\r\n\r\n\t\tif (icon.style) {\r\n\t\t\tpath.setAttribute(\"style\", icon.style);\r\n\t\t}\r\n\t\treturn svg;\r\n\t}\r\n}","import { Theme } from \"../../core/Theme\";\r\nimport { p100, p50, p0, percent } from \"../../core/util/Percent\";\r\nimport { setColor } from \"../../themes/DefaultTheme\";\r\nimport { Color, color } from \"../../core/util/Color\";\r\nimport { ColorSet } from \"../../core/util/ColorSet\";\r\nimport { StockIcons } from \"./toolbar/StockIcons\";\r\n\r\nimport * as $math from \"../../core/util/Math\";\r\n\r\n/**\r\n * @ignore\r\n */\r\nexport class StockChartDefaultTheme extends Theme {\r\n\tprotected setupDefaultRules() {\r\n\t\tsuper.setupDefaultRules();\r\n\r\n\t\tconst l = this._root.language;\r\n\t\tconst r = this.rule.bind(this);\r\n\t\tconst verticalLayout = this._root.verticalLayout;\r\n\t\tconst ic = this._root.interfaceColors;\r\n\r\n\t\t/**\r\n\t\t * ========================================================================\r\n\t\t * charts/xy\r\n\t\t * ========================================================================\r\n\t\t */\r\n\r\n\t\tr(\"StockChart\").setAll({\r\n\t\t\tpaddingLeft: 18,\r\n\t\t\tpaddingRight: 18,\r\n\t\t\tpaddingTop: 5,\r\n\t\t\tpaddingBottom: 15,\r\n\t\t\twidth: p100,\r\n\t\t\theight: p100,\r\n\t\t\tlayout: verticalLayout,\r\n\t\t\tpercentScaleSeriesSettings: {\r\n\t\t\t\tvalueYShow: \"valueYChangeSelectionPercent\",\r\n\t\t\t\topenValueYShow: \"openValueYChangeSelectionPercent\",\r\n\t\t\t\thighValueYShow: \"highValueYChangeSelectionPercent\",\r\n\t\t\t\tlowValueYShow: \"lowValueYChangeSelectionPercent\"\r\n\t\t\t},\r\n\t\t\tpercentScaleValueAxisSettings: {\r\n\t\t\t\tnumberFormat: \"#.##'%'\",\r\n\t\t\t\tinterpolationDuration: 0,\r\n\t\t\t\textraMax: 0.05,\r\n\t\t\t\tstrictMinMaxSelection: true\r\n\t\t\t},\r\n\t\t\tautoSetPercentScale: true,\r\n\t\t\tdrawingSelectionEnabled: false\r\n\t\t});\r\n\r\n\t\tr(\"StockPanel\").setAll({\r\n\t\t\tpanY: true,\r\n\t\t\twheelY: \"zoomX\",\r\n\t\t\tpanX: true,\r\n\t\t\tminHeight: 1\r\n\t\t});\r\n\r\n\t\tr(\"StockPanel\").states.create(\"hidden\", {\r\n\t\t\theight: p0,\r\n\t\t\tvisible: false\r\n\t\t});\r\n\r\n\t\tr(\"XYChart\", [\"stock\"]).setAll({\r\n\t\t\tpaddingLeft: 0,\r\n\t\t\tpaddingRight: 0,\r\n\t\t\tpaddingBottom: 0,\r\n\t\t\tpaddingTop: 15,\r\n\t\t\tminHeight: 80,\r\n\t\t\twheelZoomPositionX: 1\r\n\t\t});\r\n\r\n\t\tr(\"XYChart\", [\"stock\", \"scrollbar\"]).setAll({\r\n\t\t\tminHeight: 0\r\n\t\t});\r\n\r\n\t\tr(\"StockLegend\").setAll({\r\n\t\t\tclickTarget: \"marker\"\r\n\t\t});\r\n\r\n\t\tr(\"Label\").setAll({\r\n\t\t\tfontSize: \"0.8em\"\r\n\t\t});\r\n\r\n\t\tr(\"Legend\", [\"stocklegend\"]).setAll({\r\n\t\t\tpaddingTop: 6,\r\n\t\t\tpaddingLeft: 6\r\n\t\t})\r\n\r\n\t\tr(\"Container\", [\"itemcontainer\", \"legend\", \"stocklegend\"]).setAll({\r\n\t\t\tmarginLeft: 2,\r\n\t\t\tmarginRight: 2,\r\n\t\t\tmarginTop: 2,\r\n\t\t\tmarginBottom: 2\r\n\t\t})\r\n\r\n\t\tr(\"Label\", [\"legend\", \"value\", \"label\", \"stocklegend\"]).setAll({\r\n\t\t\twidth: null,\r\n\t\t\tpaddingRight: 5\r\n\t\t})\r\n\r\n\t\tr(\"ColumnSeries\").setAll({\r\n\t\t\tuseLastColorForLegendMarker: true\r\n\t\t})\r\n\r\n\t\tr(\"Grid\", [\"middlegrid\"]).setAll({\r\n\t\t\tforceHidden: false,\r\n\t\t\tstrokeOpacity: .4,\r\n\t\t\tstrokeDasharray: [2, 2]\r\n\t\t})\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"RoundedRectangle\", [\"legend\", \"itemcontainer\", \"background\", \"stocklegend\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tfillOpacity: 1,\r\n\t\t\t\tcornerRadiusBL: 4,\r\n\t\t\t\tcornerRadiusBR: 4,\r\n\t\t\t\tcornerRadiusTL: 4,\r\n\t\t\t\tcornerRadiusTR: 4,\r\n\t\t\t\tshadowOffsetX: 0,\r\n\t\t\t\tshadowOffsetY: 0,\r\n\t\t\t\tshadowOpacity: 0.3,\r\n\t\t\t\tshadowBlur: 5,\r\n\t\t\t\tinteractive: true\r\n\t\t\t});\r\n\t\t\tsetColor(rule, \"shadowColor\", ic, \"alternativeBackground\");\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t}\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Rectangle\", [\"panelresizer\"]);\r\n\t\t\trule.setAll({\r\n\t\t\t\twidth: p100,\r\n\t\t\t\theight: 15,\r\n\t\t\t\tcenterY: p100,\r\n\t\t\t\tfillOpacity: 0,\r\n\t\t\t\tfill: ic.get(\"alternativeBackground\"),\r\n\t\t\t\tcursorOverStyle: \"row-resize\",\r\n\t\t\t\tinteractive: true\r\n\t\t\t})\r\n\r\n\t\t\trule.states.create(\"hover\", { fillOpacity: 0.07 });\r\n\t\t}\r\n\r\n\r\n\t\tr(\"Grid\", [\"renderer\", \"base\", \"y\"]).setAll({\r\n\t\t\tstrokeOpacity: 0.4\r\n\t\t})\r\n\r\n\t\tr(\"Button\", [\"zoom\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\tr(\"AxisRendererY\", [\"y\"]).setAll({\r\n\t\t\topposite: true,\r\n\t\t\tpan: \"zoom\"\r\n\t\t})\r\n\r\n\t\tr(\"Container\", [\"legend\", \"item\"]).setAll({\r\n\r\n\t\t})\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"axis\", \"fill\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tvisible: true,\r\n\t\t\t\t//isMeasured: false,\r\n\t\t\t\tposition: \"absolute\",\r\n\t\t\t\tfillOpacity: 0.05,\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"fill\", ic, \"alternativeBackground\");\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Panel Controls\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"PanelControls\");\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tx: p100,\r\n\t\t\t\ty: 0,\r\n\t\t\t\tcenterX: p100,\r\n\t\t\t\tpaddingTop: 10,\r\n\t\t\t\tpaddingRight: 10,\r\n\t\t\t\tlayer: 30,\r\n\t\t\t\tlayout: this._root.horizontalLayout,\r\n\t\t\t\topacity: 0.5\r\n\t\t\t});\r\n\r\n\t\t\trule.states.create(\"hover\", { opacity: 1 });\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Control Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tr(\"Button\", [\"control\", \"item\"]).setAll({\r\n\t\t\tpaddingTop: 1,\r\n\t\t\tpaddingBottom: 1,\r\n\t\t\tpaddingLeft: 2,\r\n\t\t\tpaddingRight: 2,\r\n\t\t\tcenterX: p50,\r\n\t\t\tcenterY: p50,\r\n\t\t\tforceHidden: true\r\n\t\t});\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Button\", [\"control\", \"item\", \"settings\"])\r\n\t\t\trule.setAll({\r\n\t\t\t\tforceHidden: false\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"RoundedRectangle\", [\"background\", \"control\", \"button\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tfillOpacity: 0,\r\n\t\t\t\tstrokeOpacity: 0\r\n\t\t\t});\r\n\t\t}\r\n\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"control\", \"button\", \"icon\"]).states.create(\"hover\", {\r\n\t\t\t\tfillOpacity: 0.3\r\n\t\t\t});\r\n\t\t\tsetColor(rule, \"fill\", ic, \"secondaryButtonHover\");\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * PanelControls Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tr(\"Button\", [\"panel\"]).setAll({\r\n\t\t\tscale: 1.2,\r\n\t\t\tpaddingLeft: 0,\r\n\t\t\tpaddingRight: 0,\r\n\t\t\tmarginLeft: 6\r\n\t\t});\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Close Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"close\", \"button\", \"icon\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0.7,\r\n\t\t\t\tstrokeWidth: 0.5,\r\n\t\t\t\tdraw: (display: any) => {\r\n\t\t\t\t\tlet r = 5;\r\n\t\t\t\t\tdisplay.moveTo(-r, -r);\r\n\t\t\t\t\tdisplay.lineTo(r, r);\r\n\t\t\t\t\tdisplay.moveTo(-r, r);\r\n\t\t\t\t\tdisplay.lineTo(r, -r);\r\n\t\t\t\t\tdisplay.moveTo(0, 0);\r\n\t\t\t\t\tdisplay.drawCircle(0, 0, r * 2);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"secondaryButtonText\");\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Settings Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"settings\", \"button\", \"icon\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0.7,\r\n\t\t\t\tstrokeWidth: 0.5,\r\n\t\t\t\tdraw: (display: any) => {\r\n\t\t\t\t\tconst r = 10;\r\n\t\t\t\t\tconst ir = 8;\r\n\t\t\t\t\tconst spikes = 9;\r\n\t\t\t\t\tconst angleStep = 360 / spikes * $math.RADIANS / 2;\r\n\t\t\t\t\tdisplay.moveTo(r, 0)\r\n\t\t\t\t\tlet angle = 0;\r\n\t\t\t\t\tlet dAngle = 5 * $math.RADIANS;\r\n\t\t\t\t\tfor (let i = 0; i < spikes; i++) {\r\n\t\t\t\t\t\tangle += angleStep;\r\n\t\t\t\t\t\tdisplay.lineTo(r * Math.cos(angle), r * Math.sin(angle));\r\n\t\t\t\t\t\tdisplay.lineTo(ir * Math.cos(angle + dAngle), ir * Math.sin(angle + dAngle));\r\n\t\t\t\t\t\tangle += angleStep;\r\n\t\t\t\t\t\tdisplay.lineTo(ir * Math.cos(angle - dAngle), ir * Math.sin(angle - dAngle));\r\n\t\t\t\t\t\tdisplay.lineTo(r * Math.cos(angle), r * Math.sin(angle));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdisplay.drawCircle(0, 0, 4);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"secondaryButtonText\");\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Up Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"up\", \"button\", \"icon\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0.7,\r\n\t\t\t\tstrokeWidth: 0.5,\r\n\t\t\t\tdraw: (display: any) => {\r\n\t\t\t\t\tlet r = 5;\r\n\t\t\t\t\tdisplay.moveTo(0, 5);\r\n\t\t\t\t\tdisplay.lineTo(0, -5);\r\n\t\t\t\t\tdisplay.moveTo(0, -5);\r\n\t\t\t\t\tdisplay.lineTo(-5, 0);\r\n\t\t\t\t\tdisplay.moveTo(0, -5);\r\n\t\t\t\t\tdisplay.lineTo(5, 0);\r\n\t\t\t\t\tdisplay.drawCircle(0, 0, 2 * r);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"secondaryButtonText\");\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Expand Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"expand\", \"button\", \"icon\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0.7,\r\n\t\t\t\tstrokeWidth: 0.5,\r\n\t\t\t\tdraw: (display: any) => {\r\n\t\t\t\t\tlet r = 5;\r\n\t\t\t\t\tdisplay.moveTo(-5, -2);\r\n\t\t\t\t\tdisplay.lineTo(-5, -5);\r\n\t\t\t\t\tdisplay.lineTo(5, -5);\r\n\t\t\t\t\tdisplay.lineTo(5, -2);\r\n\r\n\t\t\t\t\tdisplay.moveTo(5, 2);\r\n\t\t\t\t\tdisplay.lineTo(5, 5);\r\n\t\t\t\t\tdisplay.lineTo(-5, 5);\r\n\t\t\t\t\tdisplay.lineTo(-5, 2);\r\n\r\n\t\t\t\t\tdisplay.drawCircle(0, 0, 2 * r);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"secondaryButtonText\");\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Down Button\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"down\", \"button\", \"icon\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0.7,\r\n\t\t\t\tstrokeWidth: 0.5,\r\n\t\t\t\tdraw: (display: any) => {\r\n\t\t\t\t\tlet r = 5;\r\n\t\t\t\t\tdisplay.moveTo(0, -5);\r\n\t\t\t\t\tdisplay.lineTo(0, 5);\r\n\t\t\t\t\tdisplay.moveTo(0, 5);\r\n\t\t\t\t\tdisplay.lineTo(-5, 0);\r\n\t\t\t\t\tdisplay.moveTo(0, 5);\r\n\t\t\t\t\tdisplay.lineTo(5, 0);\r\n\t\t\t\t\tdisplay.drawCircle(0, 0, 2 * r);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"secondaryButtonText\");\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t}\r\n\r\n\t\t// Class: Inicator\r\n\t\tr(\"Indicator\").setAll({\r\n\t\t\tposition: \"absolute\"\r\n\t\t});\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Drawing related\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tr(\"DrawingSeries\").setAll({\r\n\t\t\tfield: \"value\",\r\n\t\t\tselectorPadding: 10\r\n\t\t})\r\n\r\n\r\n\t\t// bullet of all drawing series\r\n\t\t{\r\n\t\t\tconst rule = r(\"Container\", [\"drawing\", \"grip\"]);\r\n\t\t\trule.states.create(\"hover\", {});\r\n\t\t}\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Circle\", [\"drawing\", \"grip\"]);\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0.7,\r\n\t\t\t\tstrokeWidth: 1,\r\n\t\t\t\tradius: 5\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"fill\", ic, \"background\");\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"alternativeBackground\");\r\n\r\n\t\t\tconst stateRule = rule.states.create(\"hover\", { strokeWidth: 2 });\r\n\t\t\tsetColor(stateRule, \"stroke\", ic, \"negative\");\r\n\t\t}\r\n\r\n\t\tr(\"Circle\", [\"drawing\", \"grip\", \"outline\"]).setAll({\r\n\t\t\tradius: 8,\r\n\t\t\tstrokeWidth: 4,\r\n\t\t\tstrokeOpacity: 0,\r\n\t\t\tfillOpacity: 0\r\n\t\t})\r\n\r\n\t\tr(\"Circle\", [\"drawing\", \"grip\", \"outline\"]).states.create(\"hover\", {\r\n\t\t\tradius: 10,\r\n\t\t\tstrokeWidth: 4,\r\n\t\t\tstrokeOpacity: 0.3\r\n\t\t})\r\n\r\n\t\tr(\"Circle\", [\"drawing\", \"grip\", \"outline\", \"label\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\tr(\"Circle\", [\"drawing\", \"grip\", \"label\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\tr(\"Circle\", [\"drawing\", \"grip\", \"callout\"]).setAll({\r\n\t\t\tfillOpacity: 0,\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\tr(\"Circle\", [\"drawing\", \"grip\", \"outline\", \"callout\"]).setAll({\r\n\t\t\tforceHidden: false\r\n\t\t})\r\n\r\n\t\tr(\"Triangle\", [\"drawing\", \"arrow\"]).setAll({\r\n\t\t\twidth: 20,\r\n\t\t\theight: 15\r\n\t\t})\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"series\", \"fill\", \"drawing\"])\r\n\r\n\t\t\trule.setAll({\r\n\t\t\t\tfillOpacity: 0.2,\r\n\t\t\t\tvisible: true,\r\n\t\t\t\tdraggable: true\r\n\t\t\t});\r\n\r\n\t\t\trule.states.create(\"hover\", {\r\n\t\t\t\tfillOpacity: 0.4\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\tr(\"Line\", [\"drawing\"]).setAll({\r\n\t\t\tstrokeDasharray: [2, 2],\r\n\t\t\tstrokeWidth: 1,\r\n\t\t\tdraggable: true\r\n\t\t});\r\n\r\n\t\tr(\"Line\", [\"drawing\", \"hit\"]).setAll({\r\n\t\t\tstrokeWidth: 22,\r\n\t\t\tstrokeOpacity: 0,\r\n\t\t\tstrokeDasharray: 0,\r\n\t\t\tdraggable: true\r\n\t\t});\r\n\r\n\t\tr(\"Line\", [\"drawing\", \"hit\", \"horizontal\"]).setAll({\r\n\t\t\tstrokeWidth: 22\r\n\t\t});\r\n\r\n\t\tr(\"Line\", [\"drawing\", \"hit\", \"vertical\"]).setAll({\r\n\t\t\tstrokeWidth: 22\r\n\t\t});\r\n\r\n\t\tr(\"Line\", [\"drawing\", \"hit\", \"ray\"]).setAll({\r\n\t\t\tstrokeWidth: 22\r\n\t\t});\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"series\", \"fill\", \"drawing\", \"doodle\"])\r\n\t\t\trule.setAll({\r\n\t\t\t\tfillOpacity: 0\r\n\t\t\t});\r\n\r\n\t\t\trule.states.create(\"hover\", { fillOpacity: 0 })\r\n\t\t}\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"series\", \"stroke\", \"drawing\", \"measure\"])\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 0\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tr(\"Line\", [\"drawing\", \"measure\"]).setAll({\r\n\t\t\tstrokeDasharray: [],\r\n\t\t\tstrokeWidth: 1,\r\n\t\t\tcrisp: true,\r\n\t\t\tstrokeOpacity: 0.7,\r\n\t\t\tdraggable: false\r\n\t\t});\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"line\", \"series\", \"stroke\", \"drawing\"]);\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeWidth: 2,\r\n\t\t\t\tdraggable: true\r\n\t\t\t});\r\n\r\n\t\t\tconst stateRule = rule.states.create(\"hover\", {});\r\n\t\t\tsetColor(stateRule, \"stroke\", ic, \"negative\");\r\n\t\t}\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Graphics\", [\"drawing\", \"icon\"])\r\n\t\t\trule.setAll({\r\n\t\t\t\tcenterX: p50,\r\n\t\t\t\tcenterY: p100,\r\n\t\t\t\tstrokeOpacity: 1,\r\n\t\t\t\tstrokeWidth: 2\r\n\t\t\t});\r\n\r\n\t\t\tconst hoverRule = rule.states.create(\"hover\", {})\r\n\t\t\tsetColor(hoverRule, \"stroke\", ic, \"negative\")\r\n\t\t}\r\n\r\n\t\tr(\"Label\", [\"drawing\", \"label\"]).setAll({\r\n\t\t\tcenterX: p0,\r\n\t\t\tcenterY: p50,\r\n\t\t\tminHeight: 28,\r\n\t\t\tminWidth: 28\r\n\t\t});\r\n\r\n\t\tr(\"Label\", [\"drawing\", \"measure\"]).setAll({\r\n\t\t\tcenterX: p50,\r\n\t\t\tcenterY: p50,\r\n\t\t\tfill: ic.get(\"alternativeText\"),\r\n\t\t\ttextAlign: \"center\"\r\n\t\t});\r\n\r\n\t\tr(\"RoundedRectangle\", [\"background\", \"drawing\", \"measure\"]).setAll({\r\n\t\t\tcenterX: p50,\r\n\t\t\tcenterY: p50,\r\n\t\t\tfillOpacity: 0.7\r\n\t\t});\r\n\r\n\t\tr(\"PointedRectangle\", [\"drawing\", \"callout\"]).setAll({\r\n\t\t\tfillOpacity: 1,\r\n\t\t\tstrokeOpacity: 0\r\n\t\t});\r\n\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Ellipse\", [\"drawing\"]);\r\n\t\t\trule.setAll({\r\n\t\t\t\tstrokeOpacity: 1,\r\n\t\t\t\tstrokeWidth: 2,\r\n\t\t\t\tisMeasured: false,\r\n\t\t\t\tposition: \"absolute\",\r\n\t\t\t\tdraggable: true,\r\n\t\t\t\tfillOpacity: 0.25\r\n\t\t\t})\r\n\r\n\t\t\tconst stateRule = rule.states.create(\"hover\", {\r\n\t\t\t\tfillOpacity: 0.5\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(stateRule, \"stroke\", ic, \"negative\");\r\n\t\t}\r\n\r\n\t\tr(\"FibonacciSeries\").setAll({\r\n\t\t\tsequence: [0, 0.236, 0.382, 0.5, 0.618, 0.768, 1, 1.618, 2.618, 3.618, 4.236],\r\n\t\t\tcolors: [\r\n\t\t\t\tcolor(0x868686),\r\n\t\t\t\tcolor(0xed483c),\r\n\t\t\t\tcolor(0x83c486),\r\n\t\t\t\tcolor(0x4fab53),\r\n\t\t\t\tcolor(0x059183),\r\n\t\t\t\tcolor(0x69b4f1),\r\n\t\t\t\tcolor(0x868686),\r\n\t\t\t\tcolor(0x3065f8),\r\n\t\t\t\tcolor(0xed483c),\r\n\t\t\t\tcolor(0x982bab),\r\n\t\t\t\tcolor(0xe22465)\r\n\t\t\t]\r\n\t\t})\r\n\r\n\t\tr(\"Graphics\", [\"line\", \"series\", \"stroke\", \"drawing\", \"fibonacci\"]).setAll({\r\n\t\t\tstrokeWidth: 0.5,\r\n\t\t\tstrokeOpacity: 1\r\n\t\t});\r\n\r\n\t\tr(\"Label\", [\"fibonacci\"]).setAll({\r\n\t\t\tpopulateText: true,\r\n\t\t\ttext: \"{sequence} ({value.formatNumber('#.00')})\",\r\n\t\t\tcenterX: p100,\r\n\t\t\tcenterY: p100,\r\n\t\t\tpaddingBottom: 2,\r\n\t\t\tfontSize: \"0.8em\"\r\n\t\t})\r\n\r\n\t\tr(\"Label\", [\"fibonaccitimezone\"]).setAll({\r\n\t\t\tpopulateText: true,\r\n\t\t\ttext: \"{value.formatNumber('#')}\",\r\n\t\t\tcenterX: 0,\r\n\t\t\tcenterY: p100,\r\n\t\t\tpaddingBottom: 2,\r\n\t\t\tpaddingLeft: 3,\r\n\t\t\tfontSize: \"0.8em\"\r\n\t\t})\r\n\r\n\t\tr(\"FibonacciTimezoneSeries\").setAll({\r\n\t\t\tsequence: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89],\r\n\t\t\tcolors: []\r\n\t\t})\r\n\r\n\r\n\t\tr(\"Graphics\", [\"line\", \"series\", \"fill\", \"drawing\", \"fibonaccitimezone\"]).setAll({\r\n\t\t\tdraggable: false,\r\n\t\t\tfillOpacity: 0.1\r\n\t\t});\r\n\r\n\r\n\t\tr(\"Graphics\", [\"line\", \"series\", \"stroke\", \"drawing\", \"fibonaccitimezone\"]).setAll({\r\n\t\t\tdraggable: false,\r\n\t\t\tstrokeWidth: 0.5,\r\n\t\t\tstrokeOpacity: 1\r\n\t\t});\r\n\r\n\r\n\t\tr(\"Grid\", [\"overbought\"]).setAll({\r\n\t\t\tstrokeOpacity: 0.4\r\n\t\t});\r\n\r\n\r\n\t\tr(\"Grid\", [\"oversold\"]).setAll({\r\n\t\t\tstrokeOpacity: 0.4,\r\n\t\t});\r\n\r\n\t\t// series fill below oversold\r\n\t\tr(\"Graphics\", [\"overboughtoversold\", \"oversold\", \"fill\"]).setAll({\r\n\t\t\tvisible: true,\r\n\t\t\tfillOpacity: 0.2\r\n\t\t});\r\n\r\n\t\t// series fill above oversold\r\n\t\tr(\"Graphics\", [\"overboughtoversold\", \"overbought\", \"fill\"]).setAll({\r\n\t\t\tvisible: true,\r\n\t\t\tfillOpacity: 0.2\r\n\t\t});\r\n\r\n\t\tr(\"Graphics\", [\"fill\", \"bollingerbands\", \"upper\"]).setAll({\r\n\t\t\tfillOpacity: 0.2\r\n\t\t})\r\n\r\n\t\tr(\"Graphics\", [\"fill\", \"movingaverageenvelope\", \"upper\"]).setAll({\r\n\t\t\tfillOpacity: 0.2\r\n\t\t})\r\n\r\n\t\tr(\"Graphics\", [\"series\", \"line\", \"accumulativeswingindex\"]).setAll({\r\n\t\t\tfillOpacity: 0.2,\r\n\t\t\tvisible: true\r\n\t\t})\r\n\r\n\t\tr(\"XYChart\", [\"indicator\"]).setAll({\r\n\t\t\theight: percent(30),\r\n\t\t\tminHeight: 80\r\n\t\t})\r\n\r\n\t\tr(\"AxisLabel\", [\"x\", \"indicator\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\r\n\t\tr(\"XYSeries\", [\"indicator\"]).setAll({\r\n\t\t\tlegendLabelText: \"{name}\"\r\n\t\t})\r\n\r\n\r\n\t\t/// LEGEND LABELS\r\n\r\n\t\tr(\"LineSeries\", [\"accumulationdistribution\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.000a')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({useVolume})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"accumulativeswingindex\"]).setAll({\r\n\t\t\tlegendValueText: \"[{swingColor} bold]{valueY.formatNumber('#.0000')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({limitMoveValue})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"aroon\"]).setAll({\r\n\t\t\tlegendValueText: \"[{upColor} bold]{up.formatNumber('#.00')}%[/] [{downColor} bold]{down.formatNumber('#.00')}%[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"ColumnSeries\", [\"awesomeoscillator\"]).setAll({\r\n\t\t\tlegendValueText: \"[{oscillatorColor}; bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"indicator\", \"bollingerbands\"]).setAll({\r\n\t\t\tlegendValueText: \"[{lowerColor} bold]{lower.formatNumber('#.00')}[/] [{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{upperColor} bold]{upper.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field},{standardDeviations.formatNumber('#.')},{type})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"indicator\", \"macross\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{fastColor} bold]{maf.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{fastPeriod.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"indicator\", \"accelerationbands\"]).setAll({\r\n\t\t\tlegendValueText: \"[{lowerColor} bold]{lower.formatNumber('#.00')}[/] [{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{upperColor} bold]{upper.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{factor.formatNumber('#.#####')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"chaikinmoneyflow\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"chaikinoscillator\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.000a')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{slowPeriod.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"bullbearpower\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber()}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"commoditychannelindex\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"disparityindex\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field},{movingAverageType})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"macd\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{signalColor} bold]{signal.formatNumber('#.00')}[/] [bold {differenceColor}]{difference.formatNumber('#.00')}[/b]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({fastPeriod.formatNumber('#.')},{slowPeriod.formatNumber('#.')},{signalPeriod.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"medianprice\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"momentum\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"movingaverage\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field},{type},{offset.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"ColumnSeries\", [\"movingaveragedeviation\"]).setAll({\r\n\t\t\tlegendValueText: \"[{deviationColor}; bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"indicator\", \"movingaverageenvelope\"]).setAll({\r\n\t\t\tlegendValueText: \"[{lowerColor} bold]{lower.formatNumber('#.00')}[/] [{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{upperColor} bold]{upper.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field},{shiftType},{shift.formatNumber('#.')},{type})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"onbalancevolume\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.000a')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName}\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"pvt\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.000a')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName}\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"rsi\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{smaColor} bold]{sma.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{smaPeriod.formatNumber('#.')},{field})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"standarddeviation\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field})\"\r\n\t\t})\r\n\r\n\r\n\t\tr(\"LineSeries\", [\"stochasticmomentum\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{emaColor} bold]{ema.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{dPeriod.formatNumber('#.')},{emaPeriod.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"stochastic\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{slowColor} bold]{slow.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{kSmoothing.formatNumber('#.')},{dSmoothing.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"trix\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/] [{signalColor} bold]{signal.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"typicalprice\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"averagetruerange\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\tr(\"ColumnSeries\", [\"volume\"]).setAll({\r\n\t\t\tlegendValueText: \"[{volumeColor}; bold]{valueY.formatNumber('#.000a')}[/]\",\r\n\t\t})\r\n\r\n\t\tr(\"ColumnSeries\", [\"volumeprofile\"]).setAll({\r\n\t\t\tlegendLabelText: \"Volume Profile\",\r\n\t\t\tlegendValueText: \"[{downColor}; bold]{down.formatNumber('#.000a')}[/] [{upColor}; bold]{up.formatNumber('#.000a')}[/] [bold]{total.formatNumber('#.000a')}[/]\"\r\n\t\t})\r\n\r\n\t\tr(\"LineSeries\", [\"vwap\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')},{field})\"\r\n\t\t})\r\n\r\n\r\n\t\tr(\"LineSeries\", [\"williamsr\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({period.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\r\n\t\tr(\"LineSeries\", [\"zigzag\"]).setAll({\r\n\t\t\tlegendValueText: \"[{seriesColor} bold]{valueY.formatNumber('#.00')}[/]\",\r\n\t\t\tlegendLabelText: \"{shortName} ({deviation.formatNumber('#.')}, {depth.formatNumber('#.')})\"\r\n\t\t})\r\n\r\n\t\t// end of legend labels\r\n\r\n\t\tr(\"RoundedRectangle\", [\"series\", \"column\", \"volumeprofile\"]).setAll({\r\n\t\t\tfillOpacity: .3,\r\n\t\t\tstrokeWidth: 2,\r\n\t\t\tstrokeOpacity: 0\r\n\t\t})\r\n\r\n\t\tr(\"RoundedRectangle\", [\"series\", \"column\", \"volumeprofile\"]).states.create(\"hover\", {\r\n\t\t\tstrokeOpacity: 1\r\n\t\t})\r\n\r\n\t\tr(\"RoundedRectangle\", [\"macd\", \"difference\"]).setAll({\r\n\t\t\tfillOpacity: 0.5,\r\n\t\t\tstrokeOpacity: 0\r\n\t\t})\r\n\r\n\t\tr(\"RoundedRectangle\", [\"series\", \"column\", \"awesomeoscillator\"]).setAll({\r\n\t\t\tfillOpacity: 0.5,\r\n\t\t\tstrokeOpacity: 0\r\n\t\t})\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"RoundedRectangle\", [\"series\", \"column\", \"volume\"]);\r\n\t\t\trule.setAll({\r\n\t\t\t\tfillOpacity: 0.5,\r\n\t\t\t\tstroke: ic.get(\"background\"),\r\n\t\t\t\tstrokeOpacity: 0.2\r\n\t\t\t})\r\n\r\n\t\t\trule.adapters.add(\"fill\", (fill, target: any) => {\r\n\t\t\t\tconst dataItem = target.dataItem;\r\n\t\t\t\tif (dataItem) {\r\n\t\t\t\t\tconst dataContext = dataItem.dataContext as any;\r\n\t\t\t\t\tif (dataContext.volumeColor != null) {\r\n\t\t\t\t\t\treturn dataContext.volumeColor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn fill;\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\tr(\"RoundedRectangle\", [\"series\", \"column\", \"movingaveragedeviation\"]).setAll({\r\n\t\t\tfillOpacity: 0.5,\r\n\t\t\tstrokeOpacity: 0\r\n\t\t})\r\n\r\n\t\t// Y Axis of overbought/oversold indicators\r\n\t\tr(\"Grid\", [\"renderer\", \"y\", \"overboughtoversold\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\t// Y Axis of indicators\r\n\t\tr(\"Grid\", [\"renderer\", \"y\", \"overboughtoversold\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\tr(\"AxisLabel\", [\"renderer\", \"y\", \"overboughtoversold\"]).setAll({\r\n\t\t\tforceHidden: true\r\n\t\t})\r\n\r\n\t\tr(\"MovingAverage\").setAll({\r\n\t\t\tname: \"Moving Average\",\r\n\t\t\tshortName: \"MA\",\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\ttype: \"simple\",\r\n\t\t\tfield: \"close\",\r\n\t\t\tperiod: 20,\r\n\t\t\toffset: 0\r\n\t\t})\r\n\r\n\t\tr(\"MACross\").setAll({\r\n\t\t\tname: \"Moving Average Cross\",\r\n\t\t\tshortName: \"MACross\",\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\tfastColor: color(0x1772DE),\r\n\t\t\tfield: \"close\",\r\n\t\t\tperiod: 9,\r\n\t\t\tfastPeriod: 21\r\n\t\t})\r\n\r\n\t\tr(\"ZigZag\").setAll({\r\n\t\t\tname: \"ZigZag\",\r\n\t\t\tshortName: \"ZigZag\",\r\n\t\t\tseriesColor: ic.get(\"alternativeBackground\"),\r\n\t\t\tdeviation: 5,\r\n\t\t\tdepth: 3\r\n\t\t})\r\n\r\n\t\tr(\"MovingAverageEnvelope\").setAll({\r\n\t\t\tname: \"Moving Average Envelope\",\r\n\t\t\tshortName: \"MA ENV\",\r\n\t\t\tseriesColor: color(0xff903f),\r\n\t\t\tupperColor: color(0xffc948),\r\n\t\t\tlowerColor: color(0xffaf74),\r\n\t\t\ttype: \"simple\",\r\n\t\t\tfield: \"close\",\r\n\t\t\tperiod: 20,\r\n\t\t\toffset: 0,\r\n\t\t\tshift: 5,\r\n\t\t\tshiftType: \"percent\"\r\n\t\t})\r\n\r\n\t\tr(\"MovingAverageDeviation\").setAll({\r\n\t\t\tname: \"Moving Average Deviation\",\r\n\t\t\tshortName: \"MA Dev\",\r\n\t\t\tincreasingColor: ic.get(\"positive\"),\r\n\t\t\tdecreasingColor: ic.get(\"negative\"),\r\n\t\t\ttype: \"simple\",\r\n\t\t\tfield: \"close\",\r\n\t\t\tperiod: 20\r\n\t\t})\r\n\r\n\t\tr(\"StandardDeviation\").setAll({\r\n\t\t\tname: \"Standard Deviation\",\r\n\t\t\tseriesColor: ic.get(\"alternativeBackground\"),\r\n\t\t\tshortName: \"STDEV\",\r\n\t\t\tfield: \"close\",\r\n\t\t\tperiod: 20\r\n\t\t})\r\n\r\n\t\tr(\"TypicalPrice\").setAll({\r\n\t\t\tname: \"Typical Price\",\r\n\t\t\tseriesColor: ic.get(\"alternativeBackground\"),\r\n\t\t\tshortName: \"Typical Price\",\r\n\t\t\tfield: \"hlc/3\",\r\n\t\t\tperiod: 20\r\n\t\t})\r\n\r\n\t\tr(\"AverageTrueRange\").setAll({\r\n\t\t\tname: \"Average True Range\",\r\n\t\t\tseriesColor: color(0xff903f),\r\n\t\t\tshortName: \"ATR\",\r\n\t\t\tperiod: 14\r\n\t\t})\r\n\r\n\t\tr(\"Trix\").setAll({\r\n\t\t\tname: \"Trix\",\r\n\t\t\tseriesColor: ic.get(\"alternativeBackground\"),\r\n\t\t\tsignalColor: color(0xff903f),\r\n\t\t\tshortName: \"Trix\",\r\n\t\t\tfield: \"close\",\r\n\t\t\tperiod: 20,\r\n\t\t\tsignalPeriod: 9\r\n\t\t})\r\n\r\n\t\tr(\"MedianPrice\").setAll({\r\n\t\t\tname: \"Median Price\",\r\n\t\t\tseriesColor: ic.get(\"alternativeBackground\"),\r\n\t\t\tshortName: \"Median Price\",\r\n\t\t\tfield: \"hl/2\",\r\n\t\t\tperiod: 20\r\n\t\t})\r\n\r\n\r\n\t\tr(\"VWAP\").setAll({\r\n\t\t\tname: \"Volume-Weighted Average Price\",\r\n\t\t\tshortName: \"VWAP\",\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\tfield: \"hlc/3\",\r\n\t\t\tperiod: 30\r\n\t\t})\r\n\r\n\t\tr(\"AccumulationDistribution\").setAll({\r\n\t\t\tname: \"Accumulation/Distribution\",\r\n\t\t\tshortName: \"Accum/Dist\",\r\n\t\t\tseriesColor: color(0x707070),\r\n\t\t\tuseVolume: true\r\n\t\t})\r\n\r\n\t\tr(\"DisparityIndex\").setAll({\r\n\t\t\tname: \"Disparity Index\",\r\n\t\t\tshortName: \"Disparity\",\r\n\t\t\tseriesColor: color(0x707070),\r\n\t\t\tperiod: 14,\r\n\t\t\tfield: \"close\",\r\n\t\t\tmovingAverageType: \"simple\"\r\n\t\t})\r\n\r\n\r\n\t\tr(\"ChaikinMoneyFlow\").setAll({\r\n\t\t\tname: \"Chaikin Money Flow\",\r\n\t\t\tshortName: \"Chaikin MF\",\r\n\t\t\tseriesColor: color(0x707070),\r\n\t\t\tperiod: 20\r\n\t\t})\r\n\r\n\t\tr(\"ChaikinOscillator\").setAll({\r\n\t\t\tname: \"Chaikin Oscillator\",\r\n\t\t\tperiod: 3,\r\n\t\t\tslowPeriod: 10,\r\n\t\t\tshortName: \"Chaikin Osc\",\r\n\t\t\tseriesColor: color(0x707070)\r\n\t\t})\r\n\r\n\t\tr(\"BullBearPower\").setAll({\r\n\t\t\tname: \"Bull Bear Power\",\r\n\t\t\tperiod: 13,\r\n\t\t\tshortName: \"BBP\",\r\n\t\t\tseriesColor: color(0x707070)\r\n\t\t})\r\n\r\n\t\tr(\"OnBalanceVolume\").setAll({\r\n\t\t\tname: \"On Balance Volume\",\r\n\t\t\tshortName: \"On Bal Vol\",\r\n\t\t\tseriesColor: color(0x707070)\r\n\t\t})\r\n\r\n\t\tr(\"PVT\").setAll({\r\n\t\t\tname: \"Price Volume Trend\",\r\n\t\t\tshortName: \"PVT\",\r\n\t\t\tseriesColor: color(0x707070)\r\n\t\t})\r\n\r\n\t\tr(\"BollingerBands\").setAll({\r\n\t\t\tname: \"Bollinger Bands\",\r\n\t\t\tshortName: \"Bollinger\",\r\n\t\t\tstandardDeviations: 2,\r\n\t\t\tseriesColor: color(0xff903f),\r\n\t\t\tupperColor: color(0xffc948),\r\n\t\t\tlowerColor: color(0xffaf74)\r\n\t\t});\r\n\r\n\t\tr(\"AccelerationBands\").setAll({\r\n\t\t\tname: \"Acceleration Bands\",\r\n\t\t\tshortName: \"Acceleration\",\r\n\t\t\tfactor: 0.001,\r\n\t\t\tperiod: 20,\r\n\t\t\tseriesColor: color(0xff903f),\r\n\t\t\tupperColor: color(0xe64c9b),\r\n\t\t\tlowerColor: color(0xe64c9b)\r\n\t\t});\r\n\r\n\r\n\t\tr(\"RelativeStrengthIndex\").setAll({\r\n\t\t\tname: \"Relative Strength Index\",\r\n\t\t\tshortName: \"RSI\",\r\n\t\t\tperiod: 14,\r\n\t\t\tsmaPeriod: 3,\r\n\t\t\tfield: \"close\",\r\n\t\t\toverSold: 20,\r\n\t\t\toverBought: 80,\r\n\t\t\toverSoldColor: color(0xe40000),\r\n\t\t\toverBoughtColor: color(0x67b7dc),\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\tsmaColor: color(0xff903f)\r\n\t\t})\r\n\r\n\t\tr(\"Momentum\").setAll({\r\n\t\t\tname: \"Momentum\",\r\n\t\t\tshortName: \"Mom\",\r\n\t\t\tperiod: 14,\r\n\t\t\tfield: \"close\",\r\n\t\t\tseriesColor: color(0xab82da)\r\n\t\t})\r\n\r\n\t\tr(\"WilliamsR\").setAll({\r\n\t\t\tname: \"Williams %R\",\r\n\t\t\tshortName: \"Williams %R\",\r\n\t\t\tperiod: 14,\r\n\t\t\tfield: \"close\",\r\n\t\t\toverSold: -80,\r\n\t\t\toverBought: -20,\r\n\t\t\toverSoldColor: color(0xe40000),\r\n\t\t\toverBoughtColor: color(0x67b7dc),\r\n\t\t\tseriesColor: color(0xab82da)\r\n\t\t})\r\n\r\n\t\tr(\"CommodityChannelIndex\").setAll({\r\n\t\t\tname: \"Commodity Channel Index\",\r\n\t\t\tshortName: \"CCI\",\r\n\t\t\tperiod: 20,\r\n\t\t\tfield: \"close\",\r\n\t\t\toverSold: -100,\r\n\t\t\toverBought: 100,\r\n\t\t\toverSoldColor: color(0xe40000),\r\n\t\t\toverBoughtColor: color(0x67b7dc),\r\n\t\t\tseriesColor: color(0xab82da)\r\n\t\t})\r\n\r\n\t\tr(\"StochasticOscillator\").setAll({\r\n\t\t\tname: \"Stochastic Oscillator\",\r\n\t\t\tshortName: \"Stochastic Osc\",\r\n\t\t\tperiod: 14,\r\n\t\t\tkSmoothing: 1,\r\n\t\t\tdSmoothing: 3,\r\n\t\t\tfield: \"close\",\r\n\t\t\toverSold: 20,\r\n\t\t\toverBought: 80,\r\n\t\t\toverSoldColor: color(0xe40000),\r\n\t\t\toverBoughtColor: color(0x67b7dc),\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\tslowColor: color(0xff903f)\r\n\t\t})\r\n\r\n\t\tr(\"StochasticMomentumIndex\").setAll({\r\n\t\t\tname: \"Stochastic Momentum Index\",\r\n\t\t\tshortName: \"Stochastic MI\",\r\n\t\t\tperiod: 10,\r\n\t\t\tdPeriod: 3,\r\n\t\t\temaPeriod: 3,\r\n\t\t\tfield: \"close\",\r\n\t\t\toverSold: -40,\r\n\t\t\toverBought: 40,\r\n\t\t\toverSoldColor: color(0xe40000),\r\n\t\t\toverBoughtColor: color(0x67b7dc),\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\temaColor: color(0xff903f)\r\n\t\t})\r\n\r\n\t\tr(\"AccumulativeSwingIndex\").setAll({\r\n\t\t\tname: \"Accumulative Swing Index\",\r\n\t\t\tshortName: \"ACC Swing\",\r\n\t\t\tlimitMoveValue: 1000,\r\n\t\t\tpositiveColor: ic.get(\"positive\"),\r\n\t\t\tnegativeColor: ic.get(\"negative\")\r\n\t\t})\r\n\r\n\t\tr(\"Aroon\").setAll({\r\n\t\t\tname: \"Aroon\",\r\n\t\t\tshortName: \"Aroon\",\r\n\t\t\tperiod: 14,\r\n\t\t\tupColor: ic.get(\"positive\"),\r\n\t\t\tdownColor: ic.get(\"negative\")\r\n\t\t})\r\n\r\n\t\tr(\"AwesomeOscillator\").setAll({\r\n\t\t\tname: \"Awesome Oscillator\",\r\n\t\t\tshortName: \"Awesome\",\r\n\t\t\tincreasingColor: ic.get(\"positive\"),\r\n\t\t\tdecreasingColor: ic.get(\"negative\")\r\n\t\t});\r\n\r\n\t\tr(\"Volume\").setAll({\r\n\t\t\tname: \"Volume\",\r\n\t\t\tshortName: \"Volume\",\r\n\t\t\tincreasingColor: ic.get(\"positive\"),\r\n\t\t\tdecreasingColor: ic.get(\"negative\")\r\n\t\t});\r\n\r\n\t\tr(\"VolumeProfile\").setAll({\r\n\t\t\tname: \"Volume Profile\",\r\n\t\t\tshortName: \"VP\",\r\n\t\t\tupColor: Color.fromHex(0xE3B30C),\r\n\t\t\tdownColor: Color.fromHex(0x2E78E3),\r\n\t\t\tcountType: \"rows\",\r\n\t\t\tcount: 24,\r\n\t\t\taxisWidth: 40,\r\n\t\t\tvalueArea: 70,\r\n\t\t\tvalueAreaOpacity: 0.7\r\n\t\t});\r\n\r\n\t\tr(\"MACD\").setAll({\r\n\t\t\tname: \"MACD\",\r\n\t\t\tfield: \"close\",\r\n\t\t\tshortName: \"MACD\",\r\n\t\t\tfastPeriod: 12,\r\n\t\t\tslowPeriod: 26,\r\n\t\t\tsignalPeriod: 9,\r\n\t\t\tincreasingColor: ic.get(\"positive\"),\r\n\t\t\tdecreasingColor: ic.get(\"negative\"),\r\n\t\t\tseriesColor: color(0xab82da),\r\n\t\t\tsignalColor: color(0xff903f)\r\n\t\t});\r\n\r\n\t\tr(\"Grid\", [\"cursor\", \"y\", \"indicator\"]).set(\"forceHidden\", true);\r\n\r\n\t\t/**\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t * Toolbar\r\n\t\t * ------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tr(\"StockControl\").setAll({\r\n\t\t\tvisible: true,\r\n\t\t\tactive: false\r\n\t\t});\r\n\r\n\t\tr(\"IndicatorControl\").setAll({\r\n\t\t\tname: l.translateAny(\"Indicators\"),\r\n\t\t\tscrollable: true,\r\n\t\t\tfixedLabel: true,\r\n\t\t\tsearchable: true,\r\n\t\t\tindicators: [\"Acceleration Bands\", \"Accumulation Distribution\", \"Accumulative Swing Index\", \"Aroon\", \"Average True Range\", \"Awesome Oscillator\", \"Bollinger Bands\", \"Bull Bear Power\", \"Chaikin Money Flow\", \"Chaikin Oscillator\", \"Commodity Channel Index\", \"Disparity Index\", \"MACD\", \"Median Price\", \"Momentum\", \"Moving Average\", \"Moving Average Cross\", \"Moving Average Deviation\", \"Moving Average Envelope\", \"On Balance Volume\", \"Price Volume Trend\", \"Relative Strength Index\", \"Standard Deviation\", \"Stochastic Momentum Index\", \"Stochastic Oscillator\", \"Trix\", \"Typical Price\", \"Volume\", \"Volume Profile\", \"VWAP\", \"Williams R\", \"ZigZag\"]\r\n\t\t});\r\n\r\n\t\tr(\"ComparisonControl\").setAll({\r\n\t\t\tname: l.translateAny(\"Comparison\")\r\n\t\t});\r\n\r\n\t\tconst drawingIcons = [{\r\n\t\t\tsvgPath: \"M 5 35 L 5 15 L 26 15 L 26 5 L 45 25 L 26 45 L 26 35 L 5 35 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(100),\r\n\t\t\tcenterY: percent(50)\r\n\t\t}, {\r\n\t\t\tsvgPath: \"M 45 35 L 45 15 L 24 15 L 24 5 L 5 25 L 24 45 L 24 35 L 45 35 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(0),\r\n\t\t\tcenterY: percent(50)\r\n\t\t}, {\r\n\t\t\tsvgPath: \"M 35 5 L 15 5 L 15 26 L 5 26 L 25 45 L 45 26 L 35 26 L 35 5 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(100)\r\n\t\t}, {\r\n\t\t\tsvgPath: \"M 35 45 L 15 45 L 15 24 L 5 24 L 25 5 L 45 24 L 35 24 L 35 45 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(0)\r\n\t\t},\r\n\t\t// :)\r\n\t\t{\r\n\t\t\tsvgPath: \"M 5 25 A 1 1 0 0 0 45 25 A 1 1 0 0 0 5 25 M 14 19 A 1 1 0 0 0 19 19 A 1 1 0 0 0 14 19 M 36 19 A 1 1 0 0 0 31 19 A 1 1 0 0 0 36 19 M 16 32 C 20 39 30 39 34 32\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(50)\r\n\t\t},\r\n\t\t// :(\r\n\t\t{\r\n\t\t\tsvgPath: \"M 5 25 A 1 1 0 0 0 45 25 A 1 1 0 0 0 5 25 M 14 19 A 1 1 0 0 0 19 19 A 1 1 0 0 0 14 19 M 36 19 A 1 1 0 0 0 31 19 A 1 1 0 0 0 36 19 M 33 37 C 28 32 21 32 16 37\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(50)\r\n\t\t},\r\n\t\t// :|\r\n\t\t{\r\n\t\t\tsvgPath: \"M 5 25 A 1 1 0 0 0 45 25 A 1 1 0 0 0 5 25 M 14 19 A 1 1 0 0 0 19 19 A 1 1 0 0 0 14 19 M 36 19 A 1 1 0 0 0 31 19 A 1 1 0 0 0 36 19 M 32 35 L 18 35\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(50)\r\n\t\t}, {\r\n\t\t\tsvgPath: \"M 25 46 C 25 38 -6 18 10 5 C 16 1 25 3 25 10 C 25 3 34 1 40 5 C 56 18 25 38 25 46\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(100)\r\n\t\t},\r\n\t\t// Flag right\r\n\t\t{\r\n\t\t\tsvgPath: \"M 2 43 L 2 4 L 26 4 L 17 15 L 26 26 L 2 26 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(0),\r\n\t\t\tcenterY: percent(100)\r\n\t\t},\r\n\t\t// star 5\r\n\t\t{\r\n\t\t\tsvgPath: \"M 25,2 L 25,2 L 33,14 L 47,18 L 37,29 L 39,44 L 25,38 L 11,44 L 13,29 L 3,18 L 17,14 L 25,2 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(50)\r\n\t\t},\r\n\t\t// star 8\r\n\t\t{\r\n\t\t\tsvgPath: \"M 25,2 L 25,2 L 30,13 L 41,9 L 37,20 L 48,25 L 37,30 L 41,41 L 30,37 L 25,48 L 20,37 L 9,41 L 13,30 L 2,25 L 13,20 L 9,9 L 20,13 L 25,2 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(50)\r\n\t\t},\r\n\t\t// star 10\r\n\t\t{\r\n\t\t\tsvgPath: \"M 25,2 L 25,2 L 30,10 L 39,6 L 38,16 L 47,18 L 41,25 L 47,32 L 38,34 L 39,44 L 30,40 L 25,48 L 20,40 L 11,44 L 12,34 L 3,32 L 9,25 L 3,18 L 12,16 L 11,6 L 20,10 L 25,2 Z\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(50),\r\n\t\t\tcenterY: percent(50),\r\n\t\t\tstyle: { fillOpacity: 0 }\r\n\t\t},\r\n\t\t// >>\r\n\t\t{\r\n\t\t\tsvgPath: \"M 8 8 L 25 25 L 8 42 M 20 8 L 37 25 L 20 42\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(100),\r\n\t\t\tcenterY: percent(50),\r\n\t\t\tfillDisabled: true\r\n\t\t},\r\n\t\t// <<\r\n\t\t{\r\n\t\t\tsvgPath: \"M 42 8 L 25 25 L 42 42 M 30 8 L 13 25 L 30 42\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(0),\r\n\t\t\tcenterY: percent(50),\r\n\t\t\tfillDisabled: true\r\n\t\t},\r\n\t\t// ^^\r\n\t\t{\r\n\t\t\tsvgPath: \"M 42 42 L 25 25 L 9 42 M 9 29 L 25 13 L 42 30\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(100),\r\n\t\t\tcenterY: percent(50),\r\n\t\t\tfillDisabled: true\r\n\t\t},\r\n\t\t// vv\r\n\t\t{\r\n\t\t\tsvgPath: \"M 42 8 L 25 25 L 8 8 M 8 20 L 25 37 L 42 20\",\r\n\t\t\tscale: 1,\r\n\t\t\tcenterX: percent(100),\r\n\t\t\tcenterY: percent(50),\r\n\t\t\tfillDisabled: true\r\n\t\t}]\r\n\r\n\r\n\r\n\t\tr(\"DrawingControl\").setAll({\r\n\t\t\tname: l.translateAny(\"Draw\"),\r\n\t\t\ttool: \"Line\",\r\n\t\t\ttools: [\"Arrows & Icons\", \"Average\", \"Callout\", \"Doodle\", \"Ellipse\", \"Fibonacci\", \"Fibonacci Timezone\", \"Horizontal Line\", \"Horizontal Ray\", \"Label\", \"Line\", \"Line Arrow\", \"Measure\", \"Parallel Channel\", \"Polyline\", \"Polyfill\", \"Quadrant Line\", \"Rectangle\", \"Regression\", \"Trend Line\", \"Triangle\", \"Vertical Line\"],\r\n\t\t\ttogglable: true,\r\n\t\t\tstrokeColor: color(0x882dff),\r\n\t\t\tstrokeWidth: 2,\r\n\t\t\tstrokeWidths: [1, 2, 4, 8, 16],\r\n\t\t\tstrokeDasharray: [],\r\n\t\t\tstrokeDasharrays: [[], [2, 2], [6, 3], [8, 4, 2, 4]],\r\n\t\t\tstrokeOpacity: 1,\r\n\t\t\tshowExtension: true,\r\n\t\t\tfillColor: color(0xad6eff),\r\n\t\t\tfillOpacity: 0.2,\r\n\t\t\tlabelFill: color(0x000000),\r\n\t\t\tlabelFontSize: \"12px\",\r\n\t\t\tlabelFontSizes: [\"8px\", \"10px\", \"11px\", \"12px\", \"14px\", \"16px\", \"20px\", \"24px\", \"36px\", \"48px\"],\r\n\t\t\tlabelFontWeight: \"normal\",\r\n\t\t\tlabelFontStyle: \"normal\",\r\n\t\t\tlabelFontFamily: \"Arial\",\r\n\t\t\tlabelFontFamilies: [\"Arial\", \"Courier New\", \"Garamond\", \"Georgia\", \"Times New Roman\"],\r\n\t\t\tdrawingIcon: drawingIcons[0],\r\n\t\t\tdrawingIcons: drawingIcons,\r\n\t\t\tsnapToData: false,\r\n\t\t\tscrollable: true\r\n\t\t});\r\n\r\n\t\tr(\"ColorControl\").setAll({\r\n\t\t\tuseOpacity: true\r\n\t\t});\r\n\r\n\t\tr(\"DateRangeSelector\").setAll({\r\n\t\t\tdescription: l.translateAny(\"Date Range\"),\r\n\t\t\tminDate: \"auto\",\r\n\t\t\tmaxDate: \"auto\"\r\n\t\t});\r\n\r\n\t\tr(\"PeriodSelector\").setAll({\r\n\t\t\tdescription: l.translateAny(\"Period selector\"),\r\n\t\t\ttogglable: false,\r\n\t\t\ticon: \"none\",\r\n\t\t\tperiods: [\r\n\t\t\t\t//{ timeUnit: \"day\", count: 1, name: \"1\" + l.translateAny(\"D\") },\r\n\t\t\t\t{ timeUnit: \"day\", count: 5, name: \"5\" + l.translateAny(\"D\") },\r\n\t\t\t\t{ timeUnit: \"month\", count: 1, name: \"1\" + l.translateAny(\"M\") },\r\n\t\t\t\t{ timeUnit: \"month\", count: 3, name: \"3\" + l.translateAny(\"M\") },\r\n\t\t\t\t{ timeUnit: \"month\", count: 6, name: \"6\" + l.translateAny(\"M\") },\r\n\t\t\t\t{ timeUnit: \"ytd\", name: l.translateAny(\"YTD\") },\r\n\t\t\t\t{ timeUnit: \"year\", count: 1, name: \"1\" + l.translateAny(\"Y\") },\r\n\t\t\t\t{ timeUnit: \"year\", count: 2, name: \"2\" + l.translateAny(\"Y\") },\r\n\t\t\t\t{ timeUnit: \"year\", count: 5, name: \"5\" + l.translateAny(\"Y\") },\r\n\t\t\t\t{ timeUnit: \"max\", name: l.translateAny(\"Max\") },\r\n\t\t\t]\r\n\t\t});\r\n\r\n\t\t// r(\"IconControl\").setAll({\r\n\t\t// });\r\n\r\n\t\t// r(\"DrawingToolControl\").setAll({\r\n\t\t// \t//name: l.translateAny(\"Draw\"),\r\n\t\t// \t//tools: [\"Average\", \"Callout\", \"Doodle\", \"Ellipse\", \"Fibonacci\", \"Horizontal Line\", \"Horizontal Ray\", \"Arrows & Icons\", \"Label\", \"Line\", \"Polyline\", \"Quadrant Line\", \"Rectangle\", \"Regression\", \"Trend Line\", \"Vertical Line\"]\r\n\t\t// });\r\n\r\n\t\tr(\"DropdownListControl\").setAll({\r\n\t\t\tfixedLabel: false\r\n\t\t});\r\n\r\n\t\tr(\"DropdownList\").setAll({\r\n\t\t\tsearchable: true,\r\n\t\t\tmaxSearchItems: 10,\r\n\t\t\titems: []\r\n\t\t});\r\n\r\n\t\tr(\"ComparisonControl\").setAll({\r\n\t\t\tfixedLabel: true\r\n\t\t});\r\n\r\n\t\tr(\"SeriesTypeControl\").setAll({\r\n\t\t\tcurrentItem: \"candlestick\",\r\n\t\t\titems: [{\r\n\t\t\t\tid: \"line\",\r\n\t\t\t\tlabel: l.translateAny(\"Line\"),\r\n\t\t\t\ticon: StockIcons.getIcon(\"Line Series\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"candlestick\",\r\n\t\t\t\tlabel: l.translateAny(\"Candles\"),\r\n\t\t\t\ticon: StockIcons.getIcon(\"Candlestick Series\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"procandlestick\",\r\n\t\t\t\tlabel: l.translateAny(\"Hollow Candles\"),\r\n\t\t\t\ticon: StockIcons.getIcon(\"Pro Candlestick Series\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"ohlc\",\r\n\t\t\t\tlabel: l.translateAny(\"Sticks\"),\r\n\t\t\t\ticon: StockIcons.getIcon(\"OHLC Series\")\r\n\t\t\t}]\r\n\t\t});\r\n\r\n\t\tr(\"IntervalControl\").setAll({\r\n\t\t\tcurrentItem: \"1 day\",\r\n\t\t\titems: [\r\n\t\t\t\t{ id: \"1 minute\", label: \"1 \" + l.translateAny(\"minute\"), interval: { timeUnit: \"minute\", count: 1 } },\r\n\t\t\t\t{ id: \"2 minute\", label: \"2 \" + l.translateAny(\"minutes\"), interval: { timeUnit: \"minute\", count: 2 } },\r\n\t\t\t\t{ id: \"5 minute\", label: \"5 \" + l.translateAny(\"minutes\"), interval: { timeUnit: \"minute\", count: 5 } },\r\n\t\t\t\t{ id: \"15 minute\", label: \"15 \" + l.translateAny(\"minutes\"), interval: { timeUnit: \"minute\", count: 15 } },\r\n\t\t\t\t{ id: \"30 minute\", label: \"30 \" + l.translateAny(\"minutes\"), interval: { timeUnit: \"minute\", count: 30 } },\r\n\t\t\t\t{ id: \"1 hour\", label: \"1 \" + l.translateAny(\"hour\"), interval: { timeUnit: \"hour\", count: 1 } },\r\n\t\t\t\t{ id: \"4 hour\", label: \"4 \" + l.translateAny(\"hours\"), interval: { timeUnit: \"hour\", count: 4 } },\r\n\t\t\t\t{ id: \"1 day\", label: \"1 \" + l.translateAny(\"day\"), interval: { timeUnit: \"day\", count: 1 } },\r\n\t\t\t\t{ id: \"1 week\", label: \"1 \" + l.translateAny(\"week\"), interval: { timeUnit: \"week\", count: 1 } },\r\n\t\t\t\t{ id: \"1 month\", label: \"1 \" + l.translateAny(\"month\"), interval: { timeUnit: \"month\", count: 1 } },\r\n\t\t\t\t{ id: \"1 year\", label: \"1 \" + l.translateAny(\"year\"), interval: { timeUnit: \"year\", count: 1 } }\r\n\t\t\t]\r\n\t\t});\r\n\r\n\t\tr(\"DropdownColors\").setAll({\r\n\t\t\tcolors: ColorSet.new(this._root, {\r\n\t\t\t\tcolors: [\r\n\t\t\t\t\tcolor(0x000000), color(0x464e56), color(0x5b636a), color(0x767d84), color(0xb9bdc5), color(0xe0e4e9), color(0xf7f8ff), color(0xffffff),\r\n\t\t\t\t\tcolor(0x72d3ff), color(0xad6eff), color(0xff80c5), color(0xffbd74), color(0xffe786), color(0x64f1d9), color(0xff8084), color(0x79f4bd),\r\n\t\t\t\t\tcolor(0x2bbcff), color(0x882dff), color(0xff4aad), color(0xffa33f), color(0xffdb48), color(0x22dbbc), color(0xff333a), color(0x00b061),\r\n\t\t\t\t\tcolor(0x0780eb), color(0x6500e8), color(0xc70085), color(0xe5632a), color(0xefbb00), color(0x00a19a), color(0xdc142d), color(0x009c56),\r\n\t\t\t\t\tcolor(0x0061cb), color(0x4300ac), color(0x970064), color(0xc73b0a), color(0xe09c00), color(0x006c84), color(0xae1125), color(0x00894c),\r\n\t\t\t\t]\r\n\t\t\t})\r\n\t\t});\r\n\r\n\t\tr(\"ResetControl\").setAll({\r\n\t\t\tdescription: l.translateAny(\"Reset\"),\r\n\t\t\ttogglable: false,\r\n\t\t\t//align: \"right\"\r\n\t\t});\r\n\r\n\t\tr(\"SettingsControl\").setAll({\r\n\t\t\tdescription: l.translateAny(\"Settings\"),\r\n\t\t\ttogglable: true,\r\n\t\t\tfixedLabel: true,\r\n\t\t\t//align: \"right\",\r\n\t\t\titems: [{\r\n\t\t\t\tid: \"fills\",\r\n\t\t\t\tlabel: l.translateAny(\"X-axis fills\"),\r\n\t\t\t\tclassName: \"am5stock-list-info am5stock-list-heading\"\r\n\t\t\t}, {\r\n\t\t\t\tform: \"checkbox\",\r\n\t\t\t\tid: \"fills\",\r\n\t\t\t\tlabel: l.translateAny(\"Fills\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"y-scale\",\r\n\t\t\t\tlabel: l.translateAny(\"Y-axis scale\"),\r\n\t\t\t\tclassName: \"am5stock-list-info am5stock-list-heading\"\r\n\t\t\t}, {\r\n\t\t\t\tid: \"y-scale\",\r\n\t\t\t\tform: \"radio\",\r\n\t\t\t\tvalue: \"percent\",\r\n\t\t\t\tlabel: l.translateAny(\"Change percent\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"y-scale\",\r\n\t\t\t\tform: \"radio\",\r\n\t\t\t\tvalue: \"regular\",\r\n\t\t\t\tlabel: l.translateAny(\"Regular\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"y-scale\",\r\n\t\t\t\tform: \"radio\",\r\n\t\t\t\tvalue: \"logarithmic\",\r\n\t\t\t\tlabel: l.translateAny(\"Logarithmic\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"autosave\",\r\n\t\t\t\tlabel: l.translateAny(\"Drawings & Indicators\"),\r\n\t\t\t\tclassName: \"am5stock-list-info am5stock-list-heading\"\r\n\t\t\t}, {\r\n\t\t\t\tid: \"autosave\",\r\n\t\t\t\tform: \"checkbox\",\r\n\t\t\t\tlabel: l.translateAny(\"Auto-save\")\r\n\t\t\t},]\r\n\t\t});\r\n\r\n\t\tr(\"DataSaveControl\").setAll({\r\n\t\t\tdescription: l.translateAny(\"Save drawings and indicators\"),\r\n\t\t\ttogglable: true,\r\n\t\t\tfixedLabel: true,\r\n\t\t\tautoSave: false,\r\n\t\t\titems: [{\r\n\t\t\t\tid: \"autosave\",\r\n\t\t\t\tform: \"checkbox\",\r\n\t\t\t\tlabel: l.translateAny(\"Auto-save drawings and indicators\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"save\",\r\n\t\t\t\tlabel: l.translateAny(\"Save drawings & indicators\"),\r\n\t\t\t\tsubLabel: l.translateAny(\"Saves drawings/indicators to browser local storage\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"restore\",\r\n\t\t\t\tlabel: l.translateAny(\"Restore saved data\"),\r\n\t\t\t\tsubLabel: l.translateAny(\"Restores saved data from browser local storage\")\r\n\t\t\t}, {\r\n\t\t\t\tid: \"clear\",\r\n\t\t\t\tlabel: l.translateAny(\"Clear\"),\r\n\t\t\t\tsubLabel: l.translateAny(\"Clears saved data from browser local storage\")\r\n\t\t\t}]\r\n\t\t});\r\n\r\n\t\tr(\"Measure\").setAll({\r\n\t\t\tlabelText: \"{value} ({percent})\\n{count.formatNumber('#,###.')} \" + l.translateAny(\"bars\") + \" {intervalCount.formatNumber('#,###.')} {intervalUnit}\",\r\n\t\t\tlabelVolumeText: \"\\nVolume: {volume.formatNumber('#.##a')}\",\r\n\t\t});\r\n\r\n\t\t{\r\n\t\t\tconst rule = r(\"Rectangle\", [\"selector\"]);\r\n\t\t\trule.setAll({\r\n\t\t\t\tisMeasured: false,\r\n\t\t\t\tstrokeDasharray: [2, 2],\r\n\t\t\t\tstrokeOpacity: 0.5,\r\n\t\t\t\tstrokeWidth: 1\r\n\t\t\t});\r\n\r\n\t\t\tsetColor(rule, \"stroke\", ic, \"alternativeBackground\");\r\n\t\t}\r\n\r\n\t}\r\n\r\n}","import { Entity, IEntitySettings, IEntityPrivate, IEntityEvents } from \"../../../core/util/Entity\"\r\nimport { StockIcons } from \"./StockIcons\";\r\n\r\nimport type { IPointerEvent } from \"../../../core/render/backend/Renderer\";\r\nimport type { StockToolbar } from \"./StockToolbar\";\r\nimport type { StockChart } from \"../StockChart\";\r\n\r\n//import * as $array from \"../../core/util/Array\";\r\nimport * as $utils from \"../../../core/util/Utils\";\r\n\r\nexport interface IStockControlSettings extends IEntitySettings {\r\n\r\n\t/**\r\n\t * A [[StockChart]] the toolbar is for.\r\n\t */\r\n\tstockChart: StockChart;\r\n\r\n\t/**\r\n\t * Is control visible?\r\n\t * \r\n\t * @default true\r\n\t */\r\n\tvisible?: boolean;\r\n\r\n\t/**\r\n\t * Force this control to always be invisible.\r\n\t *\r\n\t * @since 5.8.5\r\n\t * @defaul false\r\n\t */\r\n\tforceHidden?: boolean;\r\n\r\n\t/**\r\n\t * Name of the control. Used for the label.\r\n\t */\r\n\tname?: string;\r\n\r\n\t/**\r\n\t * Description of what the button does.\r\n\t */\r\n\tdescription?: string;\r\n\r\n\t/**\r\n\t * An element with control icon. If not set, each control will aytomatically\r\n\t * create an icon.\r\n\t */\r\n\ticon?: HTMLElement | SVGElement | \"none\";\r\n\r\n\t/**\r\n\t * Indicates if control is active.\r\n\t * \r\n\t * @default false\r\n\t */\r\n\tactive?: boolean;\r\n\r\n\t/**\r\n\t * If set to `true`, control can be toggle on and off by clicking on it.\r\n\t * \r\n\t * @default true\r\n\t */\r\n\ttogglable?: boolean;\r\n\r\n\t/**\r\n\t * Alignment of the control in a toolbar.\r\n\t *\r\n\t * @default \"left\"\r\n\t */\r\n\talign?: \"left\" | \"right\";\r\n\r\n}\r\n\r\n\r\nexport interface IStockControlPrivate extends IEntityPrivate {\r\n\ttoolbar: StockToolbar;\r\n\tbutton?: HTMLDivElement;\r\n\ticon?: HTMLElement;\r\n\tlabel?: HTMLDivElement;\r\n}\r\n\r\nexport interface IStockControlEvents extends IEntityEvents {\r\n\tclick: {\r\n\t\toriginalEvent: IPointerEvent\r\n\t}\r\n}\r\n\r\n/**\r\n * A base class for controls on [[StockToolbar]].\r\n */\r\nexport class StockControl extends Entity {\r\n\tpublic static className: string = \"StockControl\";\r\n\tpublic static classNames: Array = Entity.classNames.concat([StockControl.className]);\r\n\r\n\tdeclare public _settings: IStockControlSettings;\r\n\tdeclare public _privateSettings: IStockControlPrivate;\r\n\tdeclare public _events: IStockControlEvents;\r\n\r\n\t// private _itemDisposers: Array = [];\r\n\r\n\tprotected _afterNew() {\r\n\t\tsuper._afterNew();\r\n\r\n\t\tthis.get(\"stockChart\").controls.push(this);\r\n\r\n\t\t// Inherit default themes from chart\r\n\t\tthis._defaultThemes = this.get(\"stockChart\")._defaultThemes;\r\n\t\tsuper._afterNewApplyThemes();\r\n\r\n\t\tthis._initElements();\r\n\t\tthis._applyClassNames();\r\n\t\tthis._maybeMakeAccessible();\r\n\r\n\t\tthis._root.addDisposer(this);\r\n\t}\r\n\r\n\tprotected _initElements(): void {\r\n\t\t// Create button\r\n\t\tconst button = document.createElement(\"div\");\r\n\t\tbutton.setAttribute(\"title\", this.get(\"description\", this.get(\"name\", \"\")));\r\n\t\tthis.setPrivate(\"button\", button);\r\n\r\n\t\t// Create icon\r\n\t\tconst icon = document.createElement(\"div\");\r\n\t\ticon.appendChild(this._getIcon());\r\n\t\tif (this.get(\"icon\") == \"none\") {\r\n\t\t\ticon.style.display = \"none\";\r\n\t\t}\r\n\t\tbutton.appendChild(icon);\r\n\t\tthis.setPrivate(\"icon\", icon);\r\n\r\n\t\t// Create label\r\n\t\tconst name = this.get(\"name\", \"\");\r\n\t\tconst label = document.createElement(\"div\");\r\n\t\tlabel.innerHTML = name;\r\n\t\tif (name == \"\") {\r\n\t\t\tlabel.style.display = \"none\";\r\n\t\t}\r\n\t\tbutton.appendChild(label);\r\n\t\tthis.setPrivate(\"label\", label);\r\n\r\n\t\t// Add click event\r\n\t\tthis._disposers.push($utils.addEventListener(button, \"click\", (ev) => {\r\n\t\t\t//ev.stopImmediatePropagation();\r\n\t\t\tif (this.get(\"togglable\") != false) {\r\n\t\t\t\tthis._handleClick();\r\n\t\t\t}\r\n\r\n\t\t\tif (this.events.isEnabled(\"click\")) {\r\n\t\t\t\tthis.events.dispatch(\"click\", {\r\n\t\t\t\t\ttype: \"click\",\r\n\t\t\t\t\ttarget: this,\r\n\t\t\t\t\toriginalEvent: ev\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}));\r\n\t}\r\n\r\n\tprotected _applyClassNames(): void {\r\n\t\tthis.getPrivate(\"button\")!.className = \"am5stock am5stock-control am5stock-control-button\";\r\n\t\tthis.getPrivate(\"label\")!.className = \"am5stock-control-label\";\r\n\t\tthis.getPrivate(\"icon\")!.className = \"am5stock-control-icon\";\r\n\t}\r\n\r\n\tprotected _getIcon(): HTMLElement | SVGElement {\r\n\t\tconst userIcon = this.get(\"icon\");\r\n\t\tif (userIcon && userIcon != \"none\") {\r\n\t\t\treturn userIcon;\r\n\t\t}\r\n\t\treturn this._getDefaultIcon();\r\n\t}\r\n\r\n\tprotected _getDefaultIcon(): SVGElement {\r\n\t\treturn StockIcons.getIcon(\"Default\");\r\n\t}\r\n\r\n\tpublic _beforeChanged() {\r\n\t\tsuper._beforeChanged();\r\n\r\n\t\tif (this.isDirty(\"visible\") && !this.get(\"visible\")) {\r\n\t\t\tthis.getPrivate(\"button\")!.style.display = \"none\";\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"forceHidden\") && this.get(\"forceHidden\")) {\r\n\t\t\tthis.getPrivate(\"button\")!.style.display = \"none\";\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"name\")) {\r\n\t\t\tthis._setLabel(this.get(\"name\", \"\"));\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"active\")) {\r\n\t\t\tconst button = this.getPrivate(\"button\")!;\r\n\t\t\tif (this.get(\"active\")) {\r\n\t\t\t\t$utils.addClass(button, \"am5stock-control-button-active\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$utils.removeClass(button, \"am5stock-control-button-active\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"align\")) {\r\n\t\t\tif (this.get(\"align\") == \"right\") {\r\n\t\t\t\t$utils.addClass(this.getPrivate(\"button\")!, \"am5stock-align-right\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$utils.removeClass(this.getPrivate(\"button\")!, \"am5stock-align-right\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.isPrivateDirty(\"toolbar\")) {\r\n\t\t\tthis._maybeMakeAccessible();\r\n\t\t}\r\n\r\n\t\t// todo icon\r\n\t}\r\n\r\n\tprotected _dispose(): void {\r\n\t\tsuper._dispose();\r\n\t\t$utils.removeElement(this.getPrivate(\"button\")!);\r\n\t}\r\n\r\n\tprotected _setLabel(name: string): void {\r\n\t\tconst label = this.getPrivate(\"label\")!;\r\n\t\tlabel.innerHTML = name;\r\n\t\tif (name == \"\") {\r\n\t\t\tlabel.style.display = \"none\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlabel.style.display = \"\";\r\n\t\t}\r\n\r\n\t\tconst button = this.getPrivate(\"button\")!;\r\n\t\tbutton.setAttribute(\"title\", this.get(\"description\", this.get(\"name\", \"\")));\r\n\t}\r\n\r\n\tpublic hide(): void {\r\n\t\tthis.getPrivate(\"button\")!.style.display = \"none\";\r\n\t}\r\n\r\n\tpublic show(): void {\r\n\t\tif (this.get(\"forceHidden\") !== true) {\r\n\t\t\tthis.getPrivate(\"button\")!.style.display = \"\";\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _handleClick(): void {\r\n\t\tthis.set(\"active\", !this.get(\"active\"));\r\n\t}\r\n\r\n\tprotected _maybeMakeAccessible() {\r\n\t\tif (this.isAccessible()) {\r\n\t\t\tconst button = this.getPrivate(\"button\")!;\r\n\t\t\tbutton.setAttribute(\"tabindex\", this._root.tabindex.toString());\r\n\t\t\tbutton.setAttribute(\"role\", \"button\");\r\n\r\n\t\t\tif ($utils.supports(\"keyboardevents\")) {\r\n\t\t\t\tbutton.setAttribute(\"aria-label\", button.getAttribute(\"title\") + \"; \" + this._t(\"Press ENTER to toggle\"));\r\n\t\t\t\tthis._disposers.push($utils.addEventListener(document, \"keydown\", (ev: KeyboardEvent) => {\r\n\t\t\t\t\tif (document.activeElement == button && ev.keyCode == 13) {\r\n\t\t\t\t\t\t// ENTER\r\n\t\t\t\t\t\tif (this.get(\"togglable\")) {\r\n\t\t\t\t\t\t\tthis._handleClick();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t(document.activeElement as HTMLElement).click();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tpublic isAccessible(): boolean {\r\n\t\tconst toolbar = this.getPrivate(\"toolbar\");\r\n\t\treturn toolbar && toolbar.get(\"focusable\") ? true : false;\r\n\t}\r\n\r\n}","import type { StockControl } from \"./StockControl\";\r\nimport { Entity, IEntitySettings, IEntityPrivate, IEntityEvents } from \"../../../core/util/Entity\"\r\n//import type { IDisposer } from \"../../../core/util/Disposer\";\r\n\r\nimport * as $utils from \"../../../core/util/Utils\"\r\n\r\n\r\nexport interface IDropdownSettings extends IEntitySettings {\r\n\tcontrol: StockControl;\r\n\tparent?: HTMLElement;\r\n\tscrollable?: boolean;\r\n}\r\n\r\nexport interface IDropdownPrivate extends IEntityPrivate {\r\n\tcontainer?: HTMLDivElement;\r\n\tarrow?: HTMLDivElement;\r\n}\r\n\r\nexport interface IDropdownEvents extends IEntityEvents {\r\n\topened: {};\r\n\tclosed: {};\r\n}\r\n\r\n/**\r\n * A dropdown control for [[StockToolbar]].\r\n */\r\nexport class Dropdown extends Entity {\r\n\tpublic static className: string = \"Dropdown\";\r\n\tpublic static classNames: Array = Entity.classNames.concat([Dropdown.className]);\r\n\r\n\tdeclare public _settings: IDropdownSettings;\r\n\tdeclare public _privateSettings: IDropdownPrivate;\r\n\tdeclare public _events: IDropdownEvents;\r\n\r\n\t// private _itemDisposers: Array = [];\r\n\r\n\tprotected _afterNew() {\r\n\t\tsuper._afterNew();\r\n\r\n\t\t// Inherit default themes from chart\r\n\t\tthis._defaultThemes = this.get(\"control\")._defaultThemes;\r\n\t\tsuper._afterNewApplyThemes();\r\n\r\n\t\tthis._initElements();\r\n\t\tthis._root.addDisposer(this);\r\n\r\n\t\t// Close on ESC\r\n\t\tif ($utils.supports(\"keyboardevents\")) {\r\n\t\t\tthis._disposers.push($utils.addEventListener(document, \"keydown\", (ev: KeyboardEvent) => {\r\n\t\t\t\tif (this.isOpen() && ev.keyCode == 27) {\r\n\t\t\t\t\tthis.hide();\r\n\t\t\t\t}\r\n\t\t\t}));\r\n\t\t}\r\n\r\n\t\tthis._disposers.push($utils.addEventListener(this.getPrivate(\"container\")!, \"click\", (ev: PointerEvent) => {\r\n\t\t\tif (this.isOpen()) {\r\n\t\t\t\tev.preventDefault();\r\n\t\t\t}\r\n\t\t}));\r\n\r\n\t\tthis._disposers.push($utils.addEventListener(document, \"click\", () => {\r\n\t\t\tif (this.isOpen()) {\r\n\t\t\t\tthis.hide();\r\n\t\t\t}\r\n\t\t}));\r\n\t}\r\n\r\n\tprotected _initElements(): void {\r\n\t\t// Create container\r\n\t\tconst container = document.createElement(\"div\");\r\n\t\tcontainer.className = \"am5stock-control-list-container\";\r\n\t\tthis._disposers.push($utils.addEventListener(container, \"click\", (ev) => {\r\n\t\t\tev.stopPropagation();\r\n\t\t}));\r\n\r\n\t\tthis.setPrivate(\"container\", container);\r\n\r\n\t\tconst arrow = document.createElement(\"div\");\r\n\t\tarrow.className = \"am5stock-control-list-arrow\";\r\n\t\tcontainer.appendChild(arrow);\r\n\t\tthis.setPrivate(\"arrow\", arrow);\r\n\r\n\t\tconst parent = this.get(\"parent\");\r\n\t\tif (parent) {\r\n\t\t\tparent.appendChild(container);\r\n\t\t}\r\n\r\n\t\tif (this.get(\"scrollable\")) {\r\n\t\t\tthis._sizeItems();\r\n\t\t\tthis.root.container.onPrivate(\"height\", () => {\r\n\t\t\t\tthis._sizeItems();\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}\r\n\r\n\tprotected _sizeItems(): void {\r\n\t\tconst container = this.getPrivate(\"container\")!;\r\n\t\tcontainer.style.maxHeight = (this.root.container.height() - 100) + \"px\";\r\n\t\tcontainer.style.overflow = \"auto\";\r\n\t}\r\n\r\n\tpublic _beforeChanged() {\r\n\t\tsuper._beforeChanged();\r\n\r\n\t\tif (this.isDirty(\"parent\")) {\r\n\t\t\tconst parent = this.get(\"parent\");\r\n\t\t\tconst container = this.getPrivate(\"container\");\r\n\t\t\tif (parent && container) {\r\n\t\t\t\tparent.appendChild(container);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _dispose(): void {\r\n\t\tsuper._dispose();\r\n\t}\r\n\r\n\t/**\r\n\t * Returns `true` if dropdown is currently open.\r\n\t * \r\n\t * @return Dropdown open?\r\n\t */\r\n\tpublic isOpen(): boolean {\r\n\t\treturn this.getPrivate(\"container\")!.style.display != \"none\";\r\n\t}\r\n\r\n\tpublic hide(): void {\r\n\t\tconst arrow = this.getPrivate(\"arrow\")!;\r\n\t\tconst container = this.getPrivate(\"container\")!;\r\n\t\tcontainer.style.display = \"none\";\r\n\t\tthis.events.dispatch(\"closed\", {\r\n\t\t\ttype: \"closed\",\r\n\t\t\ttarget: this\r\n\t\t});\r\n\r\n\t\tcontainer.style.marginLeft = \"\";\r\n\t\tarrow.style.marginLeft = \"\";\r\n\t}\r\n\r\n\tpublic show(): void {\r\n\t\tconst arrow = this.getPrivate(\"arrow\")!;\r\n\t\tconst container = this.getPrivate(\"container\")!;\r\n\t\tcontainer.style.display = \"\";\r\n\r\n\t\tlet offset = 0;\r\n\t\tconst toolbar = this.get(\"control\").getPrivate(\"toolbar\");\r\n\t\tif (toolbar) {\r\n\t\t\tconst toolbarContainer = this.get(\"control\").getPrivate(\"toolbar\").get(\"container\");\r\n\t\t\toffset = Math.round(toolbarContainer.getBoundingClientRect().right - container.getBoundingClientRect().right);\r\n\t\t}\r\n\r\n\t\tif (offset < 0) {\r\n\t\t\tcontainer.style.marginLeft = offset + \"px\";\r\n\t\t\tarrow.style.marginLeft = Math.abs(offset) + \"px\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcontainer.style.marginLeft = \"\";\r\n\t\t\tarrow.style.marginLeft = \"\";\r\n\t\t}\r\n\r\n\t\tthis.events.dispatch(\"opened\", {\r\n\t\t\ttype: \"opened\",\r\n\t\t\ttarget: this\r\n\t\t});\r\n\t}\r\n\r\n\tpublic toggle(): void {\r\n\t\tconst container = this.getPrivate(\"container\")!;\r\n\t\tif (container.style.display == \"none\") {\r\n\t\t\tthis.show();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.hide();\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _maybeMakeAccessible() {\r\n\t\tif (this.isAccessible()) {\r\n\t\t}\r\n\t}\r\n\r\n\tpublic isAccessible(): boolean {\r\n\t\tconst toolbar = this.get(\"control\").getPrivate(\"toolbar\");\r\n\t\treturn toolbar && toolbar.get(\"focusable\") ? true : false;\r\n\t}\r\n\r\n}","import { Color, color } from \"../../../core/util/Color\";\r\n\r\nimport { ColorSet } from \"../../../core/util/ColorSet\";\r\nimport { Dropdown, IDropdownSettings, IDropdownPrivate, IDropdownEvents } from \"./Dropdown\"\r\n\r\nimport * as $array from \"../../../core/util/Array\";\r\nimport * as $utils from \"../../../core/util/Utils\";\r\n\r\nexport interface IDropdownColorsSettings extends IDropdownSettings {\r\n\tcolors?: ColorSet;\r\n\tuseOpacity?: boolean;\r\n}\r\n\r\n\r\nexport interface IDropdownColorsPrivate extends IDropdownPrivate {\r\n\tlist?: HTMLUListElement;\r\n\tcolor?: Color;\r\n\topacity?: number;\r\n}\r\n\r\nexport interface IDropdownColorsEvents extends IDropdownEvents {\r\n\tinvoked: {\r\n\t\tcolor: Color;\r\n\t};\r\n\r\n\tinvokedOpacity: {\r\n\t\topacity: number;\r\n\t};\r\n}\r\n\r\n/**\r\n * A dropdown used for color picker control.\r\n *\r\n * Should not be used as standalone control.\r\n */\r\nexport class DropdownColors extends Dropdown {\r\n\tpublic static className: string = \"DropdownColors\";\r\n\tpublic static classNames: Array = Dropdown.classNames.concat([DropdownColors.className]);\r\n\r\n\tdeclare public _settings: IDropdownColorsSettings;\r\n\tdeclare public _privateSettings: IDropdownColorsPrivate;\r\n\tdeclare public _events: IDropdownColorsEvents;\r\n\r\n\t// private _itemDisposers: Array = [];\r\n\r\n\tprotected _afterNew() {\r\n\t\tsuper._afterNew();\r\n\t\tthis._setupKeyboardNav();\r\n\t\tthis._root.addDisposer(this);\r\n\t}\r\n\r\n\tprotected _initElements(): void {\r\n\t\tsuper._initElements();\r\n\r\n\t\t// Create container\r\n\t\tconst container = this.getPrivate(\"container\")!;\r\n\r\n\t\t// Create list\r\n\t\tconst list = document.createElement(\"ul\");\r\n\t\tlist.className = \"am5stock-control-colors\";\r\n\t\tcontainer.appendChild(list);\r\n\t\tthis.setPrivate(\"list\", list);\r\n\r\n\t\tthis._initItems();\r\n\t}\r\n\r\n\tprotected _initItems(): void {\r\n\t\tconst list = this.getPrivate(\"list\")!;\r\n\t\tlist.innerHTML = \"\";\r\n\r\n\t\tlet cs = this.get(\"colors\");\r\n\t\tif (!cs) {\r\n\t\t\tcs = ColorSet.new(this._root, {});\r\n\t\t}\r\n\t\tconst colors = cs.get(\"colors\", []);\r\n\t\t$array.each(colors, (item) => {\r\n\t\t\tthis.addItem(item);\r\n\t\t});\r\n\t\tthis._initOpacity();\r\n\t\tthis._maybeMakeAccessible();\r\n\t}\r\n\r\n\tpublic _beforeChanged() {\r\n\t\tsuper._beforeChanged();\r\n\r\n\t\tif (this.isDirty(\"colors\") || this.isDirty(\"useOpacity\") || this.isPrivateDirty(\"color\") || this.isPrivateDirty(\"opacity\")) {\r\n\t\t\tthis._initItems();\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"control\")) {\r\n\t\t\tthis._maybeMakeAccessible();\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tprotected _dispose(): void {\r\n\t\tsuper._dispose();\r\n\t}\r\n\r\n\tpublic addItem(color: Color): void {\r\n\t\tconst currentColor = this.getPrivate(\"color\") ? this.getPrivate(\"color\")!.hex : 0;\r\n\t\tconst list = this.getPrivate(\"list\")!;\r\n\t\tconst item = document.createElement(\"li\");\r\n\t\titem.className = \"am5stock-control-color\";\r\n\t\tif (currentColor == color.hex) {\r\n\t\t\titem.className += \" am5stock-control-active\";\r\n\t\t}\r\n\t\titem.style.background = color.toCSS();\r\n\t\tlist.appendChild(item);\r\n\r\n\t\t// Add click event\r\n\t\tthis._disposers.push($utils.addEventListener(item, \"click\", (_ev) => {\r\n\t\t\tthis.hide();\r\n\t\t\tthis.events.dispatch(\"invoked\", {\r\n\t\t\t\ttype: \"invoked\",\r\n\t\t\t\tcolor: color,\r\n\t\t\t\ttarget: this\r\n\t\t\t});\r\n\t\t}));\r\n\t}\r\n\r\n\tprotected _initOpacity(): void {\r\n\t\tif (this.get(\"useOpacity\")) {\r\n\t\t\tconst currentOpacity = this.getPrivate(\"opacity\", 1);\r\n\t\t\tconst list = this.getPrivate(\"list\")!;\r\n\t\t\tconst hr = document.createElement(\"hr\");\r\n\t\t\tlist.appendChild(hr);\r\n\r\n\t\t\tfor (let opacity = 100; opacity >= 0; opacity -= 25) {\r\n\t\t\t\tconst fill = color(0x000000);\r\n\t\t\t\tconst item = document.createElement(\"li\");\r\n\t\t\t\titem.innerHTML = opacity + \"%\";\r\n\t\t\t\titem.className = \"am5stock-control-opacity am5stock-control-opacity-\" + opacity;\r\n\t\t\t\tif (currentOpacity * 100 == opacity) {\r\n\t\t\t\t\titem.className += \" am5stock-control-active\";\r\n\t\t\t\t}\r\n\t\t\t\titem.style.background = fill.toCSS(opacity / 100);\r\n\t\t\t\tlist.appendChild(item);\r\n\r\n\t\t\t\t// Add click event\r\n\t\t\t\tthis._disposers.push($utils.addEventListener(item, \"click\", (_ev) => {\r\n\t\t\t\t\tthis.hide();\r\n\t\t\t\t\tthis.events.dispatch(\"invokedOpacity\", {\r\n\t\t\t\t\t\ttype: \"invokedOpacity\",\r\n\t\t\t\t\t\topacity: opacity / 100,\r\n\t\t\t\t\t\ttarget: this\r\n\t\t\t\t\t});\r\n\t\t\t\t}));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _setupKeyboardNav(): void {\r\n\t\tif ($utils.supports(\"keyboardevents\")) {\r\n\t\t\tconst button = this.get(\"control\").getPrivate(\"button\")!;\r\n\t\t\tthis._disposers.push($utils.addEventListener(document, \"keydown\", (ev: KeyboardEvent) => {\r\n\t\t\t\tif (this.isAccessible()) {\r\n\t\t\t\t\tif (document.activeElement && (document.activeElement === button || $utils.contains(button, document.activeElement))) {\r\n\t\t\t\t\t\tif (ev.keyCode == 13) {\r\n\t\t\t\t\t\t\t// ENTER\r\n\t\t\t\t\t\t\tif (document.activeElement !== button) {\r\n\t\t\t\t\t\t\t\t(document.activeElement as HTMLElement).click();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ([37, 38, 39, 40].indexOf(ev.keyCode) !== -1) {\r\n\t\t\t\t\t\t\tconst dir = ev.keyCode == 37 || ev.keyCode == 38 ? -1 : 1;\r\n\t\t\t\t\t\t\tconst items = this._getActiveItems();\r\n\t\t\t\t\t\t\tconst selected = button.querySelectorAll(\".am5stock-control-color:focus, .am5stock-control-opacity:focus\");\r\n\t\t\t\t\t\t\tlet index: number = -1;\r\n\t\t\t\t\t\t\tif (selected.length > 0) {\r\n\t\t\t\t\t\t\t\titems.forEach((item, key) => {\r\n\t\t\t\t\t\t\t\t\tif (item === selected.item(0)) {\r\n\t\t\t\t\t\t\t\t\t\tindex = key;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tindex += dir;\r\n\t\t\t\t\t\t\tif (index < 0) {\r\n\t\t\t\t\t\t\t\tindex = items.length - 1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (index >= items.length) {\r\n\t\t\t\t\t\t\t\tindex = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$utils.focus(items.item(index) as HTMLElement);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}));\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _maybeMakeAccessible(): void {\r\n\t\tsuper._maybeMakeAccessible();\r\n\t\tif (this.isAccessible()) {\r\n\t\t\t//const tabindex = this._root.tabindex.toString();\r\n\t\t\t//const list = this.getPrivate(\"list\")!;\r\n\t\t\tconst items = this._getActiveItems();\r\n\t\t\titems.forEach((item, key) => {\r\n\t\t\t\t(item as HTMLElement).setAttribute(\"tabindex\", \"-1\");\r\n\t\t\t\t(item as HTMLElement).setAttribute(\"aria-label\", this.root.language.translateAny(\"Selection\") + \" #\" + (key + 1));\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _getActiveItems(): NodeList {\r\n\t\treturn this.getPrivate(\"list\")!.querySelectorAll(\".am5stock-control-color, .am5stock-control-opacity\");\r\n\t}\r\n\r\n}","import type { Root } from \"../../../core/Root\"\n\nimport { StyleRule } from \"../../../core/util/Utils\"\nimport { MultiDisposer, IDisposer, CounterDisposer } from \"../../../core/util/Disposer\";\n\n/**\n * @ignore\n */\nlet rules: CounterDisposer | undefined;\n\n/**\n * @ignore\n */\nexport default function(element: ShadowRoot | null, root: Root, _prefix?: string): IDisposer {\n\tconst ic = root.interfaceColors;\n\tconst active = ic.get(\"secondaryButton\")!.toCSS();\n\tconst hover = ic.get(\"secondaryButtonHover\")!.toCSS();\n\t//const border = ic.get(\"secondaryButtonStroke\")!.toCSS();\n\tconst text = ic.get(\"text\")!.toCSS();\n\tconst textDisabled = ic.get(\"disabled\")!.toCSS();\n\tconst border = ic.get(\"secondaryButtonActive\")!.toCSS();\n\tconst bg = ic.get(\"background\")!.toCSS();\n\tconst link = ic.get(\"primaryButton\")!.toCSS();\n\n\tif (!rules) {\n\t\tconst disposer = new MultiDisposer([\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button\", {\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"position\": \"relative\",\n\t\t\t\t\"border\": \"1px solid \" + border,\n\t\t\t\t\"border-radius\": \"4px\",\n\t\t\t\t\"padding\": \"3px 0 3px 5px\",\n\t\t\t\t\"margin\": \"2px\",\n\t\t\t\t\"z-index\": \"1\",\n\t\t\t\t\"cursor\": \"default\",\n\t\t\t\t\"line-height\": \"1.5em\",\n\t\t\t\t\"color\": text\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button div\", {\n\t\t\t\t\"box-sizing\": \"initial\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button:hover\", {\n\t\t\t\t//\"background\": hover\n\t\t\t\t\"border-color\": hover\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button.am5stock-no-hover:hover\", {\n\t\t\t\t\"background\": \"initial\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5-modal-content .am5stock-control-button\", {\n\t\t\t\t\"padding\": \"5px 6px\",\n\t\t\t\t\"line-height\": \"0.8em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-color .am5stock-control-icon\", {\n\t\t\t\t\"border-radius\": \"3px\",\n\t\t\t\t\"min-height\": \"1em\",\n\t\t\t\t\"max-width\": \"50px\",\n\t\t\t\t\"line-height\": \"0.8em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5-modal-content .am5stock-control-color .am5stock-control-icon\", {\n\t\t\t\t\"margin\": \"0\",\n\t\t\t\t\"width\": \"48px\",\n\t\t\t\t\"min-height\": \"1em\",\n\t\t\t\t\"max-width\": \"50px\",\n\t\t\t\t\"line-height\": \"0.8em\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5-modal-content .am5stock-control-button .am5stock-control-icon > .am5stock-control-icon-color\", {\n\t\t\t\t\"width\": \"1px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5-modal-content input[type=\\\"text\\\"], .am5-modal-content input[type=\\\"number\\\"], .am5-modal-content select\", {\n\t\t\t\t\"border\": \"1px solid \" + border,\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button.am5stock-align-right\", {\n\t\t\t\t\"float\": \"right\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button.am5stock-control-button-active\", {\n\t\t\t\t\"background\": active,\n\t\t\t\t\"z-index\": \"2\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button.am5stock-control-dropdown.am5stock-control-button-active\", {\n\t\t\t\t\"z-index\": \"3\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5-modal-content .am5stock-control-button.am5stock-control-button-active, .am5-modal-content .am5stock-control-button:hover\", {\n\t\t\t\t\"background\": \"none\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5-modal-content .am5-modal-link-reset\", {\n\t\t\t\t\"display\": \"block\",\n\t\t\t\t\"color\": link,\n\t\t\t\t\"text-transform\": \"uppercase\",\n\t\t\t\t\"font-weight\": \"500\",\n\t\t\t\t\"margin-top\": \"0.5em\",\n\t\t\t\t\"font-size\": \"0.8em\",\n\t\t\t\t\"cursor\": \"pointer\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-icon\", {\n\t\t\t\t\"min-width\": \"1.2em\",\n\t\t\t\t\"min-height\": \"1.2em\",\n\t\t\t\t\"max-width\": \"1.2em\",\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"position\": \"relative\",\n\t\t\t\t\"margin\": \"0 5px 0 0\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-icon.am5stock-icon-wide\", {\n\t\t\t\t\"max-width\": \"60px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-icon > *\", {\n\t\t\t\t\"vertical-align\": \"sub\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-icon > .am5stock-control-icon-color\", {\n\t\t\t\t\"max-width\": \"20px\",\n\t\t\t\t\"width\": \"20px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-icon > .am5stock-control-icon-color-bg\", {\n\t\t\t\t\"width\": \"100%\",\n\t\t\t\t\"height\": \"100%\",\n\t\t\t\t\"display\": \"block\",\n\t\t\t\t\"position\": \"absolute\",\n\t\t\t\t\"left\": \"0\",\n\t\t\t\t\"top\": \"0\",\n\t\t\t\t\"z-index\": \"-1\",\n\t\t\t\t\"overflow\": \"hidden\",\n\t\t\t\t\"border-radius\": \"3px\",\n\t\t\t\t\"background-image\": \"linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%)\",\n\t\t\t\t\"background-size\": \"10px 10px\",\n\t\t\t\t\"background-position\": \"0 0, 0 5px, 5px -5px, -5px 0px\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-button path\", {\n\t\t\t\t\"stroke-width\": \"0.5\",\n\t\t\t\t\"stroke\": text,\n\t\t\t\t\"fill\": \"none\",\n\t\t\t\t\"vector-effect\": \"non-scaling-stroke\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-label\", {\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"margin\": \"0 5px 0 0\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list-container\", {\n\t\t\t\t\"position\": \"absolute\",\n\t\t\t\t\"left\": \"0\",\n\t\t\t\t\"top\": \"100%\",\n\t\t\t\t\"margin-top\": \"10px\",\n\t\t\t\t\"background\": bg,\n\t\t\t\t\"border\": \"1px solid \" + border,\n\t\t\t\t\"border-radius\": \"3px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-align-right .am5stock-control-list-container\", {\n\t\t\t\t\"left\": \"auto\",\n\t\t\t\t\"right\": \"0\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list-arrow\", {\n\t\t\t\t\"position\": \"absolute\",\n\t\t\t\t\"left\": \"5px\",\n\t\t\t\t\"top\": \"-5px\",\n\t\t\t\t\"border\": \"solid \" + border,\n\t\t\t\t\"border-width\": \"0 1px 1px 0\",\n\t\t\t\t\"background\": bg,\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"padding\": \"5px\",\n\t\t\t\t\"transform\": \"rotate(-135deg)\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-align-right .am5stock-control-list-arrow\", {\n\t\t\t\t\"right\": \"5px\",\n\t\t\t\t\"left\": \"auto\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list\", {\n\t\t\t\t\"list-style\": \"none\",\n\t\t\t\t\"margin\": \"5px\",\n\t\t\t\t\"padding\": \"2px\",\n\t\t\t\t\"white-space\": \"nowrap\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li\", {\n\t\t\t\t\"padding\": \"2px 6px 2px 6px\",\n\t\t\t\t\"position\": \"relative\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li:hover\", {\n\t\t\t\t\"background\": active\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li.am5stock-list-info\", {\n\t\t\t\t\"font-style\": \"italic\",\n\t\t\t\t\"color\": hover\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list .am5stock-list-sub\", {\n\t\t\t\t\"font-size\": \"0.7em\",\n\t\t\t\t\"color\": hover,\n\t\t\t\t\"display\": \"block\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li.am5stock-list-info:hover\", {\n\t\t\t\t\"background\": \"none\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li.am5stock-list-heading\", {\n\t\t\t\t\"font-style\": \"normal\",\n\t\t\t\t\"font-weight\": \"bold\",\n\t\t\t\t\"color\": \"initial\",\n\t\t\t\t\"margin-top\": \"0.3em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li.am5stock-disabled:hover, .am5stock-control-list li.am5stock-disabled > *\", {\n\t\t\t\t\"background\": \"none\",\n\t\t\t\t\"color\": textDisabled\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li svg\", {\n\t\t\t\t\"max-width\": \"1em\",\n\t\t\t\t\"max-height\": \"1em\",\n\t\t\t\t\"margin-right\": \"0.8em\",\n\t\t\t\t//\"position\": \"absolute\",\n\t\t\t\t\"left\": \"0px\",\n\t\t\t\t\"top\": \"2px\",\n\t\t\t\t\"display\": \"inline-block\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li svg.am5stock-icon-wide, .am5stock-control-icon > *.am5stock-icon-wide\", {\n\t\t\t\t\"width\": \"60px\",\n\t\t\t\t\"max-width\": \"60px\",\n\t\t\t\t\"margin-right\": \"0\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li div, .am5stock-control-list li label\", {\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"margin-right\": \"1em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-list li input\", {\n\t\t\t\t\"margin-right\": \"1em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-list-search\", {\n\t\t\t\t//\"display\": \"inline-block\",\n\t\t\t\t\"margin\": \"0.5em 0.7em\",\n\t\t\t\t\"padding-bottom\": \"0.25em\",\n\t\t\t\t//\"padding-left\": \"30px\",\n\t\t\t\t//\"border-bottom\": \"1px solid \" + active,\n\t\t\t\t\"position\": \"relative\",\n\t\t\t\t//\"background\": \"url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyNCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjEwLjUiIHI9IjcuNSIvPjxsaW5lIHgxPSIyMSIgeDI9IjE1LjgiIHkxPSIyMSIgeTI9IjE1LjgiLz48L3N2Zz4=) left / 20px 20px no-repeat\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-list-search input\", {\n\t\t\t\t\"border\": \"1px solid \" + active,\n\t\t\t\t\"padding\": \"6px 10px 6px 30px\",\n\t\t\t\t\"margin-top\": \"5px\",\n\t\t\t\t\"background\": \"url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyNCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjEwLjUiIHI9IjcuNSIvPjxsaW5lIHgxPSIyMSIgeDI9IjE1LjgiIHkxPSIyMSIgeTI9IjE1LjgiLz48L3N2Zz4=) 5px / 20px 20px no-repeat\",\n\t\t\t\t\"background-color\": \"#fff\",\n\t\t\t\t//\"background-color\": active,\n\t\t\t\t\"color\": \"#888\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-list-search input::placeholder\", {\n\t\t\t\t\"color\": \"#888\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-colors, .am5stock-control-icons\", {\n\t\t\t\t\"list-style\": \"none\",\n\t\t\t\t\"margin\": \"5px\",\n\t\t\t\t\"padding\": \"2px\",\n\t\t\t\t//\"white-space\": \"nowrap\",\n\t\t\t\t\"width\": \"240px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-colors li, .am5stock-control-icons li\", {\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"padding\": \"0\",\n\t\t\t\t\"margin\": \"0\",\n\t\t\t\t\"border\": \"3px solid \" + bg,\n\t\t\t\t\"width\": \"24px\",\n\t\t\t\t\"height\": \"24px\",\n\t\t\t\t\"position\": \"relative\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-colors li:hover, .am5stock-control-colors li.am5stock-control-active, .am5stock-control-icons li:hover, .am5stock-control-icons li.am5stock-control-active\", {\n\t\t\t\t\"border-color\": \"rgba(200, 200, 200, 1)\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-colors li.am5stock-control-opacity\", {\n\t\t\t\t\"width\": \"42px\",\n\t\t\t\t\"text-align\": \"center\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-colors li.am5stock-control-opacity\", {\n\t\t\t\t\"width\": \"42px\",\n\t\t\t\t\"text-align\": \"center\",\n\t\t\t\t\"font-size\": \"12px\",\n\t\t\t\t\"line-height\": \"24px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-control-opacity-100, .am5stock-control-opacity-75, .am5stock-control-opacity-50\", {\n\t\t\t\t\"color\": \"#fff\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-row\", {\n\t\t\t\t\"display\": \"flex\",\n\t\t\t\t\"flex-direction\": \"row\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-column\", {\n\t\t\t\t\"min-width\": \"200px\",\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"padding\": \"1em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-group\", {\n\t\t\t\t\"white-space\": \"nowrap\",\n\t\t\t\t//\"margin\": \"0.5em 1em\",\n\t\t\t\t\"padding-bottom\": \"0.25em\",\n\t\t\t\t\"border-bottom\": \"1px solid \" + active,\n\t\t\t\t\"position\": \"relative\",\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-group input\", {\n\t\t\t\t\"border\": \"none\",\n\t\t\t\t\"padding\": \"3px 5px\",\n\t\t\t\t//\"margin-top\": \"5px\",\n\t\t\t\t\"width\": \"100%\",\n\t\t\t\t\"box-sizing\": \"border-box\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-small\", {\n\t\t\t\t\"font-size\": \"0.7em\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-link\", {\n\t\t\t\t\"display\": \"inline-block\",\n\t\t\t\t\"margin\": \"0 0.15em\",\n\t\t\t\t\"padding\": \"0 3px\",\n\t\t\t\t\"border-radius\": \"3px\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-link.am5stock-active, .am5stock-link:hover\", {\n\t\t\t\t//\"font-weight\": \"bold\"\n\t\t\t\t\"background\": active\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-link.am5stock-hidden\", {\n\t\t\t\t\"display\": \"none\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-drawing-label-wrapper\", {\n\t\t\t\t//\"font-weight\": \"bold\"\n\t\t\t\t\"background-color\": bg,\n\t\t\t\t\"bakcground-opacity\": \"0.5\",\n\t\t\t\t\"padding\": \"0.5em\",\n\t\t\t\t\"border-radius\": \"4px\",\n\t\t\t\t\"-webkit-box-shadow\": \"0px 0px 36px 0px rgba(0,0,0,0.45)\",\n\t\t\t\t\"box-shadow\": \"0px 0px 36px 0px rgba(0,0,0,0.45)\"\n\t\t\t}, root.nonce),\n\n\t\t\tnew StyleRule(element, \".am5stock-drawing-label-input\", {\n\t\t\t\t\"width\": \"250px\",\n\t\t\t\t\"min-height\": \"50px\",\n\t\t\t}, root.nonce),\n\n\t\t]);\n\n\t\trules = new CounterDisposer(() => {\n\t\t\trules = undefined;\n\t\t\tdisposer.dispose();\n\t\t});\n\t}\n\n\treturn rules.increment();\n}","import type { ColorSet } from \"../../../core/util/ColorSet\";\r\nimport type { Color } from \"../../../core/util/Color\";\r\n\r\nimport { StockControl, IStockControlSettings, IStockControlPrivate, IStockControlEvents } from \"./StockControl\";\r\nimport { DropdownColors } from \"./DropdownColors\";\r\nimport { StockIcons } from \"./StockIcons\";\r\n\r\nimport * as $utils from \"../../../core/util/Utils\";\r\nimport StockToolbarCSS from \"./StockToolbarCSS\";\r\n\r\nexport interface IColorControlSettings extends IStockControlSettings {\r\n\tcolors?: ColorSet;\r\n\tuseOpacity?: boolean;\r\n}\r\n\r\nexport interface IColorControlPrivate extends IStockControlPrivate {\r\n\tdropdown?: DropdownColors;\r\n\tcolor?: Color;\r\n\topacity?: number;\r\n}\r\n\r\nexport interface IColorControlEvents extends IStockControlEvents {\r\n\tselected: {\r\n\t\tcolor: Color\r\n\t}\r\n\tselectedOpacity: {\r\n\t\topacity: number\r\n\t}\r\n}\r\n\r\n/**\r\n * Color picker control.\r\n */\r\nexport class ColorControl extends StockControl {\r\n\tpublic static className: string = \"ColorControl\";\r\n\tpublic static classNames: Array = StockControl.classNames.concat([ColorControl.className]);\r\n\r\n\tdeclare public _settings: IColorControlSettings;\r\n\tdeclare public _privateSettings: IColorControlPrivate;\r\n\tdeclare public _events: IColorControlEvents;\r\n\r\n\tprotected _afterNew() {\r\n\r\n\t\t// Do parent stuff\r\n\t\tsuper._afterNew();\r\n\r\n\t\t// Control\r\n\t\tconst button = this.getPrivate(\"button\")!;\r\n\t\tbutton.className = button.className + \" am5stock-control-color\";\r\n\r\n\t\t// Create list of tools\r\n\t\tconst dropdownSettings: any = {\r\n\t\t\tcontrol: this,\r\n\t\t\tparent: this.getPrivate(\"button\"),\r\n\t\t\tuseOpacity: this.get(\"useOpacity\")\r\n\t\t}\r\n\t\tif (this.get(\"colors\")) {\r\n\t\t\tdropdownSettings.colors = this.get(\"colors\");\r\n\t\t}\r\n\t\tconst dropdown = DropdownColors.new(this._root, dropdownSettings);\r\n\t\tthis.setPrivate(\"dropdown\", dropdown);\r\n\r\n\t\tdropdown.events.on(\"closed\", (_ev) => {\r\n\t\t\tthis.set(\"active\", false);\r\n\t\t});\r\n\r\n\t\tdropdown.events.on(\"invoked\", (ev) => {\r\n\t\t\tthis.setPrivate(\"color\", ev.color);\r\n\t\t\tthis.events.dispatch(\"selected\", {\r\n\t\t\t\ttype: \"selected\",\r\n\t\t\t\tcolor: ev.color,\r\n\t\t\t\ttarget: this\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tdropdown.events.on(\"invokedOpacity\", (ev) => {\r\n\t\t\tthis.setPrivate(\"opacity\", ev.opacity);\r\n\t\t\tthis.events.dispatch(\"selectedOpacity\", {\r\n\t\t\t\ttype: \"selectedOpacity\",\r\n\t\t\t\topacity: ev.opacity,\r\n\t\t\t\ttarget: this\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tthis.on(\"active\", (active) => {\r\n\t\t\tif (active) {\r\n\t\t\t\tdropdown.setPrivate(\"color\", this.getPrivate(\"color\"));\r\n\t\t\t\tdropdown.setPrivate(\"opacity\", this.getPrivate(\"opacity\"));\r\n\t\t\t\tthis.setTimeout(() => dropdown.show(), 10);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdropdown.hide();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.onPrivate(\"color\", () => {\r\n\t\t\tconst color = this.getPrivate(\"color\");\r\n\t\t\tthis.getPrivate(\"icon\")!.style.backgroundColor = color ? color.toCSS(this.getPrivate(\"opacity\", 1)) : \"\";\r\n\t\t});\r\n\r\n\t\tthis.onPrivate(\"opacity\", () => {\r\n\t\t\tconst color = this.getPrivate(\"color\");\r\n\t\t\tthis.getPrivate(\"icon\")!.style.backgroundColor = color ? color.toCSS(this.getPrivate(\"opacity\", 1)) : \"\";\r\n\t\t});\r\n\r\n\t\t// Add checkered background for showing opacity\r\n\t\tconst bg = document.createElement(\"div\");\r\n\t\tbg.className = \"am5stock-control-icon-color-bg\";\r\n\t\tthis.getPrivate(\"icon\")!.appendChild(bg);\r\n\r\n\t\tthis.loadDefaultCSS();\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Sets color.\r\n\t * \r\n\t * @param color Color\r\n\t * @since 5.9.0\r\n\t */\r\n\tpublic setColor(color: Color) {\r\n\t\tthis.setPrivate(\"color\", color);\r\n\t\tthis.events.dispatch(\"selected\", {\r\n\t\t\ttype: \"selected\",\r\n\t\t\tcolor: color,\r\n\t\t\ttarget: this\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Sets opacity.\r\n\t * \r\n\t * @param opacity Opacity\r\n\t * @since 5.9.0\r\n\t */\r\n\tpublic setOpacity(opacity: number) {\r\n\t\tthis.setPrivate(\"opacity\", opacity);\r\n\t\tthis.events.dispatch(\"selectedOpacity\", {\r\n\t\t\ttype: \"selectedOpacity\",\r\n\t\t\topacity: opacity,\r\n\t\t\ttarget: this\r\n\t\t});\r\n\t}\r\n\r\n\tprotected _getDefaultIcon(): SVGElement {\r\n\t\tconst icon = StockIcons.getIcon(\"Color\");\r\n\t\t$utils.addClass(icon, \"am5stock-control-icon-color\");\r\n\t\treturn icon;\r\n\t}\r\n\r\n\t/**\r\n\t * Loads the default CSS.\r\n\t *\r\n\t * @ignore Exclude from docs\r\n\t */\r\n\tpublic loadDefaultCSS(): void {\r\n\t\tconst disposer = StockToolbarCSS($utils.getShadowRoot(this._root.dom), this._root);\r\n\t\tthis._disposers.push(disposer);\r\n\t}\r\n\r\n\tpublic hide(): void {\r\n\t\tsuper.hide();\r\n\t}\r\n\r\n\tprotected _maybeMakeAccessible(): void {\r\n\t\tsuper._maybeMakeAccessible();\r\n\t\tif (this.isAccessible()) {\r\n\t\t\tconst button = this.getPrivate(\"button\")!;\r\n\t\t\tbutton.setAttribute(\"aria-label\", button.getAttribute(\"title\") + \"; \" + this._t(\"Press ENTER or use arrow keys to navigate\"));\r\n\r\n\t\t\tif ($utils.supports(\"keyboardevents\")) {\r\n\t\t\t\tthis._disposers.push($utils.addEventListener(document, \"keydown\", (ev: KeyboardEvent) => {\r\n\t\t\t\t\tif (document.activeElement == button) {\r\n\t\t\t\t\t\tif (ev.keyCode == 38 || ev.keyCode == 40) {\r\n\t\t\t\t\t\t\t// Open on arrows\r\n\t\t\t\t\t\t\tif (!this.get(\"active\")) {\r\n\t\t\t\t\t\t\t\tthis._handleClick();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}","import type { Indicator, IIndicatorEditableSetting } from \"./indicators/Indicator\";\r\nimport type { StockChart } from \"./StockChart\";\r\nimport type { XYSeries } from \"../xy/series/XYSeries\";\r\n\r\nimport { CandlestickSeries } from \"../xy/series/CandlestickSeries\";\r\nimport { LineSeries } from \"../xy/series/LineSeries\";\r\nimport { Modal, IModalSettings, IModalPrivate, IModalEvents } from \"../../core/util/Modal\";\r\nimport { ColorControl } from \"./toolbar/ColorControl\";\r\n\r\nimport * as $array from \"../../core/util/Array\";\r\nimport * as $object from \"../../core/util/Object\";\r\nimport * as $utils from \"../../core/util/Utils\";\r\nimport * as $type from \"../../core/util/Type\";\r\n\r\n\r\nexport interface ISettingsModalSettings extends IModalSettings {\r\n\r\n\t/**\r\n\t * A target [[StockChart]].\r\n\t */\r\n\tstockChart: StockChart;\r\n\r\n\t/**\r\n\t * Show the \"Reset to default\" link?\r\n\t *\r\n\t * @default true\r\n\t * @since 5.9.0\r\n\t */\r\n\tshowResetLink?: boolean;\r\n\r\n}\r\n\r\nexport interface ISettingsModalPrivate extends IModalPrivate {\r\n}\r\n\r\nexport interface ISettingsModalEvents extends IModalEvents {\r\n\r\n\t/**\r\n\t * Invoked when modal is closed/saved.\r\n\t */\r\n\tdone: {\r\n\t\tsettings?: any,\r\n\t\tsettingsTarget?: Indicator | XYSeries\r\n\t}\r\n\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\ninterface ISeriesEditableSetting extends IIndicatorEditableSetting {\r\n\tid?: string;\r\n\ttarget?: any;\r\n\tadditionalKeys?: string[];\r\n\tcurrentValue?: any;\r\n\tinvalidateTarget?: XYSeries;\r\n}\r\n\r\n/**\r\n * Used to display a modal dialog with HTML content.\r\n */\r\nexport class SettingsModal extends Modal {\r\n\tpublic static className: string = \"SettingsModal\";\r\n\tpublic static classNames: Array = Modal.classNames.concat([Modal.className]);\r\n\r\n\tdeclare public _settings: ISettingsModalSettings;\r\n\tdeclare public _privateSettings: ISettingsModalPrivate;\r\n\tdeclare public _events: ISettingsModalEvents;\r\n\r\n\tprotected _updatedSettings: { [index: string]: any } = {};\r\n\tprotected _settingsTarget?: Indicator | XYSeries;\r\n\tprotected _colorControl?: ColorControl;\r\n\r\n\tprotected _afterNew() {\r\n\t\tsuper._afterNew();\r\n\t}\r\n\r\n\tpublic _beforeChanged() {\r\n\t\tsuper._beforeChanged();\r\n\r\n\t\t// if (this.isDirty(\"content\")) {\r\n\t\t// \tthis.getPrivate(\"content\").innerHTML = this.get(\"content\", \"\");\r\n\t\t// }\r\n\t}\r\n\r\n\t/**\r\n\t * Opens settings modal for an [[Indicator]].\r\n\t * \r\n\t * @param target Target indicator\r\n\t */\r\n\tpublic openIndicator(target: Indicator): void {\r\n\t\tthis._settingsTarget = target;\r\n\t\tthis.initContent(target._editableSettings, target);\r\n\t}\r\n\r\n\t/**\r\n\t * Opens settings editing for the any [[XYSeries]].\r\n\t * \r\n\t * @param series target series\r\n\t */\r\n\tpublic openSeries(series: XYSeries): void {\r\n\t\tthis._settingsTarget = series;\r\n\r\n\t\tconst l = this._root.language;\r\n\t\tconst stockChart = this.get(\"stockChart\");\r\n\t\tconst isline = series instanceof LineSeries;\r\n\r\n\t\tlet settings: ISeriesEditableSetting[] = [];\r\n\r\n\t\tif (series == stockChart.get(\"stockSeries\") && !isline) {\r\n\t\t\tsettings.push({\r\n\t\t\t\tid: \"stockPositiveColor\",\r\n\t\t\t\tkey: \"stockPositiveColor\",\r\n\t\t\t\tname: l.translateAny(\"Increase\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tcurrentValue: stockChart.get(\"stockPositiveColor\", this._root.interfaceColors.get(\"positive\")),\r\n\t\t\t\ttarget: stockChart\r\n\t\t\t});\r\n\r\n\t\t\tsettings.push({\r\n\t\t\t\tid: \"stockNegativeColor\",\r\n\t\t\t\tkey: \"stockNegativeColor\",\r\n\t\t\t\tname: l.translateAny(\"Decrease\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tcurrentValue: stockChart.get(\"stockNegativeColor\", this._root.interfaceColors.get(\"negative\")),\r\n\t\t\t\ttarget: stockChart\r\n\t\t\t});\r\n\t\t}\r\n\t\telse if (series == stockChart.get(\"volumeSeries\") && !isline) {\r\n\t\t\tsettings.push({\r\n\t\t\t\tid: \"volumePositiveColor\",\r\n\t\t\t\tkey: \"volumePositiveColor\",\r\n\t\t\t\tname: l.translateAny(\"Increase\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tcurrentValue: stockChart.get(\"volumePositiveColor\", this._root.interfaceColors.get(\"positive\")),\r\n\t\t\t\ttarget: stockChart\r\n\t\t\t});\r\n\r\n\t\t\tsettings.push({\r\n\t\t\t\tid: \"volumeNegativeColor\",\r\n\t\t\t\tkey: \"volumeNegativeColor\",\r\n\t\t\t\tname: l.translateAny(\"Decrease\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tcurrentValue: stockChart.get(\"volumeNegativeColor\", this._root.interfaceColors.get(\"negative\")),\r\n\t\t\t\ttarget: stockChart\r\n\t\t\t});\r\n\t\t}\r\n\t\telse if (series instanceof CandlestickSeries && series.columns.length) {\r\n\t\t\tconst column = series.columns.getIndex(0);\r\n\t\t\tsettings.push({\r\n\t\t\t\tid: \"riseFromOpen.fill\",\r\n\t\t\t\tkey: \"fill\",\r\n\t\t\t\tadditionalKeys: [\"stroke\"],\r\n\t\t\t\tname: l.translateAny(\"Increase\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tcurrentValue: column!.states.lookup(\"riseFromOpen\")!.get(\"fill\"),\r\n\t\t\t\ttarget: series.columns.template.states.create(\"riseFromOpen\", {}),\r\n\t\t\t\tinvalidateTarget: series\r\n\t\t\t});\r\n\r\n\t\t\tsettings.push({\r\n\t\t\t\tid: \"dropFromOpen.fill\",\r\n\t\t\t\tkey: \"fill\",\r\n\t\t\t\tadditionalKeys: [\"stroke\"],\r\n\t\t\t\tname: l.translateAny(\"Decrease\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tcurrentValue: column!.states.lookup(\"dropFromOpen\")!.get(\"fill\"),\r\n\t\t\t\ttarget: series.columns.template.states.create(\"dropFromOpen\", {}),\r\n\t\t\t\tinvalidateTarget: series\r\n\t\t\t});\r\n\t\t}\r\n\t\telse if (isline) {\r\n\t\t\tsettings = [{\r\n\t\t\t\tkey: \"stroke\",\r\n\t\t\t\tname: l.translateAny(\"Line\"),\r\n\t\t\t\ttype: \"color\",\r\n\t\t\t\tadditionalKeys: [\"fill\"],\r\n\t\t\t\ttarget: (series),\r\n\t\t\t}, {\r\n\t\t\t\tkey: \"strokeWidth\",\r\n\t\t\t\tname: l.translateAny(\"Line\"),\r\n\t\t\t\ttype: \"dropdown\",\r\n\t\t\t\toptions: [\r\n\t\t\t\t\t{ value: 1, text: \"1px\" },\r\n\t\t\t\t\t{ value: 2, text: \"2px\" },\r\n\t\t\t\t\t{ value: 4, text: \"4px\" },\r\n\t\t\t\t\t{ value: 10, text: \"10px\" }\r\n\t\t\t\t],\r\n\t\t\t\tcurrentValue: (series).strokes.template.get(\"strokeWidth\", 1),\r\n\t\t\t\ttarget: (series).strokes.template,\r\n\t\t\t\tinvalidateTarget: series\r\n\t\t\t}];\r\n\t\t\tif ((series).fills.template.get(\"visible\")) {\r\n\t\t\t\tsettings.push({\r\n\t\t\t\t\tkey: \"fill\",\r\n\t\t\t\t\tname: l.translateAny(\"Fill\"),\r\n\t\t\t\t\ttype: \"color\"\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsettings = [{\r\n\t\t\t\tkey: \"stroke\",\r\n\t\t\t\tname: l.translateAny(\"Line\"),\r\n\t\t\t\ttype: \"color\"\r\n\t\t\t}, {\r\n\t\t\t\tkey: \"fill\",\r\n\t\t\t\tname: l.translateAny(\"Fill\"),\r\n\t\t\t\ttype: \"color\"\r\n\t\t\t}];\r\n\t\t}\r\n\t\tthis.initContent(settings, series);\r\n\t}\r\n\r\n\tprivate initContent(settings: ISeriesEditableSetting[], target: any) {\r\n\t\tthis._updatedSettings = {};\r\n\t\tconst content = this.getPrivate(\"content\");\r\n\r\n\t\t// Clear\r\n\t\tthis.clear();\r\n\r\n\t\t// Title\r\n\t\tconst title = document.createElement(\"h1\");\r\n\t\ttitle.innerHTML = target.get(\"name\");\r\n\t\tcontent.appendChild(title);\r\n\r\n\t\t// Add fields\r\n\t\tconst table = document.createElement(\"div\");\r\n\t\ttable.className = \"am5-modal-table\";\r\n\t\tcontent.appendChild(table);\r\n\r\n\t\t// Log defaults\r\n\t\tlet populateDefaults = false;\r\n\t\tlet defaults: any = {};\r\n\t\tif (!target.get(\"userData\")) {\r\n\t\t\ttarget.set(\"userData\", {});\r\n\t\t}\r\n\t\tif (!target.get(\"userData\")[\"__defaults\"]) {\r\n\t\t\ttarget.get(\"userData\")[\"__defaults\"] = defaults;\r\n\t\t\tpopulateDefaults = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdefaults = target.get(\"userData\")[\"__defaults\"];\r\n\t\t}\r\n\r\n\t\tconst settingInputs: { [index: string]: HTMLInputElement | HTMLSelectElement } = {};\r\n\t\tconst controls: { [index: string]: ColorControl } = {};\r\n\t\tconst settingsWithTarget: { [index: string]: any } = {};\r\n\t\tlet prevName = \"\";\r\n\t\tlet prevLine: HTMLDivElement;\r\n\t\t$array.each(settings, (setting) => {\r\n\t\t\tconst key = this._getSettingKey(setting);\r\n\t\t\tconst keyTarget = setting.target || target;\r\n\t\t\tconst currentValue = setting.currentValue || keyTarget.get(setting.key);\r\n\r\n\t\t\tif (populateDefaults) {\r\n\t\t\t\tdefaults[key] = currentValue;\r\n\t\t\t}\r\n\r\n\t\t\tif (setting.target) {\r\n\t\t\t\tsettingsWithTarget[key] = setting;\r\n\t\t\t}\r\n\r\n\t\t\tlet element: HTMLElement | undefined;\r\n\t\t\tswitch (setting.type) {\r\n\t\t\t\tcase \"dropdown\":\r\n\t\t\t\t\telement = this.getDropdown(setting, currentValue);\r\n\t\t\t\t\tsettingInputs[key] = element;\r\n\t\t\t\t\tthis._disposers.push($utils.addEventListener(element, \"change\", (ev: any) => {\r\n\t\t\t\t\t\tconst input: HTMLSelectElement = ev.target!;\r\n\t\t\t\t\t\tconst option = input.options[input!.selectedIndex];\r\n\t\t\t\t\t\tconst extTarget = option.getAttribute(\"data-target\");\r\n\t\t\t\t\t\tif (extTarget) {\r\n\t\t\t\t\t\t\tsettingInputs[extTarget].value = option.getAttribute(\"data-target-value\") + \"\";\r\n\t\t\t\t\t\t\tsettingInputs[extTarget].setAttribute(\"data-min-value\", option.getAttribute(\"data-target-min-value\") + \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"number\":\r\n\t\t\t\t\telement = this.getNumber(setting, currentValue);\r\n\t\t\t\t\tsettingInputs[key] = element;\r\n\t\t\t\t\tif (setting.minValue !== undefined) {\r\n\t\t\t\t\t\telement.setAttribute(\"data-min-value\", setting.minValue + \"\");\r\n\t\t\t\t\t\tthis._disposers.push($utils.addEventListener(element, \"change\", (ev: any) => {\r\n\t\t\t\t\t\t\tconst input: HTMLInputElement = ev.target!;\r\n\t\t\t\t\t\t\tconst minValue = Number(input.getAttribute(\"data-min-value\"));\r\n\t\t\t\t\t\t\tconst value = Number(input.value);\r\n\t\t\t\t\t\t\tif (value < minValue) {\r\n\t\t\t\t\t\t\t\tinput.value = minValue + \"\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"color\":\r\n\t\t\t\t\tconst control = this.getColor(setting, currentValue);\r\n\t\t\t\t\telement = control.getPrivate(\"button\")!;\r\n\t\t\t\t\tcontrols[key] = control;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"checkbox\":\r\n\t\t\t\t\telement = this.getCheckbox(setting, currentValue);\r\n\t\t\t\t\tsettingInputs[key] = element;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t// case \"text\":\r\n\t\t\t\t// \telement = this.getText(setting, currentValue);\r\n\t\t\t\t// \tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif (element) {\r\n\r\n\t\t\t\tlet line: HTMLDivElement;\r\n\t\t\t\tif (setting.name == prevName && prevLine) {\r\n\t\t\t\t\tline = prevLine;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tline = document.createElement(\"div\");\r\n\t\t\t\t\tline.className = \"am5-modal-table-row\";\r\n\t\t\t\t\ttable.appendChild(line);\r\n\r\n\t\t\t\t\tconst heading = document.createElement(\"div\");\r\n\t\t\t\t\theading.className = \"am5-modal-table-heading\";\r\n\t\t\t\t\theading.innerHTML = setting.name;\r\n\t\t\t\t\tline.appendChild(heading);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst cell = document.createElement(\"div\");\r\n\t\t\t\tcell.className = \"am5-modal-table-cell\";\r\n\t\t\t\tline.appendChild(cell);\r\n\t\t\t\tcell.appendChild(element);\r\n\r\n\t\t\t\tprevName = setting.name;\r\n\t\t\t\tprevLine = line;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reset\r\n\t\tif (this.get(\"showResetLink\", true)) {\r\n\t\t\tconst resetLink = document.createElement(\"a\");\r\n\t\t\tresetLink.className = \"am5-modal-link am5-modal-table-cell am5-modal-link-reset\";\r\n\t\t\tresetLink.innerHTML = this._root.language.translateAny(\"Reset to default\");\r\n\t\t\ttable.appendChild(resetLink);\r\n\r\n\t\t\tthis._disposers.push($utils.addEventListener(resetLink, \"click\", () => {\r\n\t\t\t\tconst defaults = target.get(\"userData\")[\"__defaults\"];\r\n\t\t\t\t$object.each(settingInputs, (key, element) => {\r\n\t\t\t\t\tif (element.type === \"checkbox\") {\r\n\t\t\t\t\t\t(element as HTMLInputElement).checked = defaults[key];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\telement.value = defaults[key];\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t$object.each(controls, (key, control) => {\r\n\t\t\t\t\tcontrol.setColor(defaults[key]);\r\n\t\t\t\t});\r\n\t\t\t}));\r\n\t\t}\r\n\r\n\t\t// Buttons\r\n\t\tconst saveButton = document.createElement(\"input\");\r\n\t\tsaveButton.type = \"button\";\r\n\t\tsaveButton.value = this._root.language.translateAny(\"Save\");\r\n\t\tsaveButton.className = \"am5-modal-button am5-modal-primary\";\r\n\t\tcontent.appendChild(saveButton);\r\n\r\n\t\tthis._disposers.push($utils.addEventListener(saveButton, \"click\", () => {\r\n\t\t\t$object.each(settingInputs, (key, element) => {\r\n\t\t\t\tif (element.type == \"checkbox\") {\r\n\t\t\t\t\tthis._updatedSettings[key] = (element).checked;\r\n\t\t\t\t}\r\n\t\t\t\telse if (element.type == \"number\") {\r\n\t\t\t\t\tthis._updatedSettings[key] = $type.toNumber(element.value);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis._updatedSettings[key] = element.value;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$object.each(this._updatedSettings, (key, value) => {\r\n\t\t\t\tconst targetKey = (key).split(\".\").pop();\r\n\t\t\t\tif ($type.isObject(value) && value.value) {\r\n\t\t\t\t\tif (value.setting && value.setting.target) {\r\n\t\t\t\t\t\tvalue.setting.target.set(targetKey, value.value);\r\n\t\t\t\t\t\tif (value.setting.additionalKeys) {\r\n\t\t\t\t\t\t\t$array.each(value.setting.additionalKeys, (additionalKey) => {\r\n\t\t\t\t\t\t\t\tvalue.setting.target.set(additionalKey, value.value);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttarget.set(targetKey, value.value);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (settingsWithTarget[targetKey!]) {\r\n\t\t\t\t\tsettingsWithTarget[targetKey!].target.set(targetKey, value);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttarget.set(targetKey, value);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (value.setting && value.setting.invalidateTarget) {\r\n\t\t\t\t\tvalue.setting.invalidateTarget.markDirtyValues();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.close();\r\n\t\t}));\r\n\r\n\t\tconst cancelButton = document.createElement(\"input\");\r\n\t\tcancelButton.type = \"button\";\r\n\t\tcancelButton.value = this._root.language.translateAny(\"Cancel\");\r\n\t\tcancelButton.className = \"am5-modal-button am5-modal-scondary\";\r\n\t\tcontent.appendChild(cancelButton);\r\n\r\n\t\tthis._disposers.push($utils.addEventListener(cancelButton, \"click\", () => {\r\n\t\t\tthis.cancel();\r\n\t\t}));\r\n\r\n\t\t// Open modal\r\n\t\tthis.open();\r\n\r\n\t\t// Auto-focus Save button\r\n\t\tthis.setTimeout(() => {\r\n\t\t\t// Delayed so that pressing ENTER in the list does not trigger save, too\r\n\t\t\tsaveButton.focus();\r\n\t\t}, 10);\r\n\r\n\t}\r\n\r\n\tprivate getDropdown(setting: any, currentValue: any): HTMLSelectElement {\r\n\t\tconst element = document.createElement(\"select\");\r\n\t\t$array.each(setting.options, (option) => {\r\n\t\t\tif (option) {\r\n\t\t\t\tconst optionElement = document.createElement(\"option\");\r\n\t\t\t\tlet value;\r\n\t\t\t\tif ($type.isObject(option)) {\r\n\t\t\t\t\toptionElement.value = ((option).value);\r\n\t\t\t\t\toptionElement.text = ((option).text);\r\n\t\t\t\t\tvalue = ((option).value);\r\n\r\n\t\t\t\t\tif ((option as any).minValue) {\r\n\t\t\t\t\t\toptionElement.setAttribute(\"data-min-value\", (option as any).minValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((option as any).extTarget) {\r\n\t\t\t\t\t\toptionElement.setAttribute(\"data-target\", (option as any).extTarget);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((option as any).extTargetValue) {\r\n\t\t\t\t\t\toptionElement.setAttribute(\"data-target-value\", (option as any).extTargetValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((option as any).extTargetMinValue) {\r\n\t\t\t\t\t\toptionElement.setAttribute(\"data-target-min-value\", (option as any).extTargetMinValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toptionElement.value = option;\r\n\t\t\t\t\toptionElement.text = option;\r\n\t\t\t\t\tvalue = option;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (value == currentValue) {\r\n\t\t\t\t\toptionElement.selected = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telement.appendChild(optionElement);\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn element;\r\n\t}\r\n\r\n\tprivate getNumber(_setting: any, currentValue: any): HTMLInputElement {\r\n\t\tconst element = document.createElement(\"input\");\r\n\t\telement.type = \"number\";\r\n\t\telement.value = currentValue;\r\n\t\telement.className = \"am5-modal-input-narrow\"\r\n\t\treturn element;\r\n\t}\r\n\r\n\tprivate getCheckbox(_setting: any, currentValue: any): HTMLInputElement {\r\n\t\tconst element = document.createElement(\"input\");\r\n\t\telement.type = \"checkbox\";\r\n\t\telement.checked = currentValue === true;\r\n\t\treturn element;\r\n\t}\r\n\r\n\tprivate getColor(setting: any, currentValue: any): ColorControl {\r\n\t\tconst control = ColorControl.new(this.root, {\r\n\t\t\tstockChart: this.get(\"stockChart\"),\r\n\t\t\tuseOpacity: false\r\n\t\t});\r\n\t\tcontrol.setPrivate(\"color\", currentValue);\r\n\t\tcontrol.events.on(\"selected\", (ev) => {\r\n\t\t\tthis._updatedSettings[this._getSettingKey(setting)] = {\r\n\t\t\t\tvalue: ev.color,\r\n\t\t\t\tsetting: setting\r\n\t\t\t};\r\n\t\t});\r\n\t\tthis._disposers.push(control);\r\n\t\treturn control;\r\n\t}\r\n\r\n\t/**\r\n\t * Closes the modal, saving settings.\r\n\t */\r\n\tpublic close(): void {\r\n\t\tsuper.close();\r\n\t\tthis.events.dispatch(\"done\", {\r\n\t\t\ttype: \"done\",\r\n\t\t\tsettings: this._updatedSettings,\r\n\t\t\tsettingsTarget: this._settingsTarget,\r\n\t\t\ttarget: this\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Closes the modal without applying any changes.\r\n\t */\r\n\tpublic cancel(): void {\r\n\t\tsuper.cancel();\r\n\t\tthis.events.dispatch(\"done\", {\r\n\t\t\ttype: \"done\",\r\n\t\t\tsettings: null,\r\n\t\t\ttarget: this\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Clears contents of the modal.\r\n\t */\r\n\tpublic clear(): void {\r\n\t\tconst content = this.getPrivate(\"content\");\r\n\t\tcontent.innerHTML = \"\";\r\n\t\tif (this._colorControl) {\r\n\t\t\tthis._colorControl.dispose();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate _getSettingKey(setting: ISeriesEditableSetting): string {\r\n\t\treturn setting.id || setting.key;\r\n\t}\r\n\r\n}","import type { StockPanel } from \"./StockPanel\";\nimport type { StockLegend, IStockLegendDataItem } from \"./StockLegend\";\nimport type { Axis } from \"../xy/axes/Axis\";\nimport type { DateAxis } from \"../xy/axes/DateAxis\";\nimport type { AxisRenderer } from \"../xy/axes/AxisRenderer\";\nimport type { BaseColumnSeries } from \"../xy/series/BaseColumnSeries\";\nimport type { IValueAxisSettings, ValueAxis } from \"../xy/axes/ValueAxis\";\nimport type { XYSeries, IXYSeriesDataItem, IXYSeriesSettings } from \"../xy/series/XYSeries\";\nimport type { DataItem } from \"../../core/render/Component\";\nimport type { Indicator } from \"./indicators/Indicator\";\nimport type { DrawingSeries } from \"./drawing/DrawingSeries\";\nimport type { StockControl } from \"./toolbar/StockControl\";\nimport { MultiDisposer, IDisposer } from \"../../core/util/Disposer\";\n\nimport { SpriteResizer } from \"../../core/render/SpriteResizer\";\nimport { PanelControls } from \"./PanelControls\";\nimport { StockChartDefaultTheme } from \"./StockChartDefaultTheme\";\nimport { XYChartDefaultTheme } from \"../xy/XYChartDefaultTheme\";\nimport { Container, IContainerPrivate, IContainerSettings, IContainerEvents } from \"../../core/render/Container\";\nimport { ListAutoDispose } from \"../../core/util/List\";\nimport { Rectangle } from \"../../core/render/Rectangle\";\nimport { p100, percent, Percent } from \"../../core/util/Percent\";\nimport { SettingsModal } from \"./SettingsModal\";\nimport { Color } from \"../../core/util/Color\";\nimport { registry } from \"../../core/Registry\";\nimport { registerCustomClass } from \"../../plugins/json/Json\";\n\nimport * as $array from \"../../core/util/Array\";\nimport * as $utils from \"../../core/util/Utils\";\nimport * as $object from \"../../core/util/Object\";\nimport type { GaplessDateAxis } from \"../xy/axes/GaplessDateAxis\";\nimport type { ChartIndicator } from \"./indicators/ChartIndicator\";\nimport type { ISpritePointerEvent } from \"../../core/render/Sprite\";\n\n\nexport interface IStockChartSettings extends IContainerSettings {\n\n\t/**\n\t * Main value series.\n\t *\n\t * This series is used to target by settings, as well as calculating\n\t * indicators, and annotations.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Setting_main_series}\n\t */\n\tstockSeries?: XYSeries;\n\n\t/**\n\t * Main volume series.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Setting_main_series}\n\t */\n\tvolumeSeries?: XYSeries;\n\n\t/**\n\t * @ignore\n\t */\n\tcomparingSeriesSettings?: Partial;\n\n\t/**\n\t * Settings to be applied to the the main value series, when chart is\n\t * switched to \"percent scale\".\n\t * \n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/percent-mode/#Configuring} for more info\n\t */\n\tpercentScaleSeriesSettings?: Partial;\n\n\t/**\n\t * Settings to be applied to the [[ValueAxis]] of the main value series,\n\t * when chart is switched to \"percent scale\".\n\t * \n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/percent-mode/#Configuring} for more info\n\t */\n\tpercentScaleValueAxisSettings?: Partial>;\n\n\t/**\n\t * If set to `true`, the chart will go into \"percent scale\" when compared\n\t * series are added to chart, and will exit it when all of the comparisons\n\t * are removed.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/percent-mode/} for more info\n\t * @default true\n\t */\n\tautoSetPercentScale?: boolean;\n\n\t/**\n\t * This color will be applied to columns/candles on the main value series (series\n\t * set as `stockSeries`) where the open value is lower or equal to the close\n\t * value.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Positive_negative_colors} for more info\n\t */\n\tstockPositiveColor?: Color | null;\n\n\t/**\n\t * This color will be applied to columns/candles on the main value series (series\n\t * set as `stockSeries`) where the open value is higher than the close value.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Positive_negative_colors} for more info\n\t */\n\tstockNegativeColor?: Color | null;\n\n\t/**\n\t * This color will be applied to columns/candles on the main volume series (series\n\t * set as `stockSeries`) where the open value is lower or equal to the close\n\t * value.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Positive_negative_colors} for more info\n\t */\n\tvolumePositiveColor?: Color | null;\n\n\t/**\n\t * This color will be applied to columns/candles on the main volume series (series\n\t * set as `stockSeries`) where the open value is higher than the close value.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Positive_negative_colors} for more info\n\t */\n\tvolumeNegativeColor?: Color | null;\n\n\t/**\n\t * If set to `true`, all drawings will be selectable.\n\t *\n\t * Selectable drawings can be moved, rotated, or deleted.\n\t * \n\t * @default false\n\t * @since 5.9.1\n\t */\n\tdrawingSelectionEnabled?: boolean;\n\n\t/**\n\t * If set to `true`, clicking on drawings will delete them.\n\t *\n\t * @default false\n\t * @since 5.9.2\n\t */\n\terasingEnabled?: boolean;\n\n}\n\nexport interface IStockChartPrivate extends IContainerPrivate {\n\n\t/**\n\t * A instance of [[SettingsModal]].\n\t */\n\tsettingsModal: SettingsModal;\n\n\t/**\n\t * Indicates if chart has currently have any \"compared\" series set.\n\t */\n\tcomparing?: boolean;\n\n\t/**\n\t * A list of compared series.\n\t */\n\tcomparedSeries?: XYSeries[];\n\n\t/**\n\t * Main Date axis of a Stock chart\n\t */\n\tmainAxis?: DateAxis\n}\n\nexport interface IStockChartEvents extends IContainerEvents {\n\t/**\n\t * Kicks in when drawings change.\n\t */\n\tdrawingsupdated: {};\n\n\t/**\n\t * Kicks in when indicators change.\n\t */\n\tindicatorsupdated: {};\n\n\t/**\n\t * Kicks in when a drawing is added.\n\t *\n\t * @since 5.9.0\n\t */\n\tdrawingadded: { drawingId: string, series: DrawingSeries, index: number };\n\n\t/**\n\t * Kicks in when a drawing is removed.\n\t *\n\t * @since 5.9.0\n\t */\n\tdrawingremoved: { drawingId: string, series: DrawingSeries, index: number };\n\n\t/**\n\t * Kicks in when a drawing is selected.\n\t *\n\t * @since 5.9.0\n\t */\n\tdrawingselected: { drawingId: string, series: DrawingSeries, index: number };\n\n\t/**\n\t * Kicks in when a drawing is unselected.\n\t *\n\t * @since 5.9.0\n\t */\n\tdrawingunselected: { drawingId: string, series: DrawingSeries, index: number };\n}\n\n\n/**\n * A main class for the Stock Chart.\n *\n * @see {@link https://www.amcharts.com/docs/v5/charts/stock/} for more info\n * @important\n */\nexport class StockChart extends Container {\n\n\tpublic static className: string = \"StockChart\";\n\tpublic static classNames: Array = Container.classNames.concat([StockChart.className]);\n\n\n\tdeclare public _settings: IStockChartSettings;\n\tdeclare public _privateSettings: IStockChartPrivate;\n\tdeclare public _events: IStockChartEvents;\n\n\tprotected _xAxes: Array> = [];\n\tprotected _downY?: number;\n\tprotected _upperPanel?: StockPanel;\n\tprotected _dhp?: Percent;\n\tprotected _uhp?: Percent;\n\tprotected _downResizer?: Rectangle;\n\tprotected _syncExtremesDp?: MultiDisposer;\n\tprotected _drawingsChanged = false;\n\tprotected _indicatorsChanged = false;\n\tprotected _baseDP?: IDisposer;\n\n\tpublic _selectionWasOn: boolean = false;\n\n\t/**\n\t * A list of stock panels.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Panels} for more info\n\t */\n\tpublic readonly panels: ListAutoDispose = new ListAutoDispose();\n\n\t/**\n\t * A list of indicators on chart.\n\t *\n\t * @see {@link https://www.amcharts.com/docs/v5/charts/stock/indicators/} for more info\n\t */\n\tpublic readonly indicators: ListAutoDispose = new ListAutoDispose();\n\n\t/**\n\t * A [[Container]], resiting on top of the charts, suitable for additional\n\t * tools, like [[Scrollbar]].\n\t * \n\t * @default Container.new()\n\t */\n\tpublic readonly toolsContainer: Container = this.children.push(Container.new(this._root, { width: p100, themeTags: [] }));\n\n\t/**\n\t * A [[Container]] where all the stock panels are placed into.\n\t * \n\t * @default Container.new()\n\t */\n\tpublic readonly panelsContainer: Container = this.children.push(Container.new(this._root, { width: p100, height: p100, layout: this._root.verticalLayout, themeTags: [\"chartscontainer\"] }));\n\n\t/**\n\t * An array of all Stock Controls that are created for this chart.\n\t *\n\t * @since 5.7.0\n\t */\n\tpublic readonly controls: StockControl[] = [];\n\n\t/**\n\t * An instance of [[SpriteResizer]] used for various drawing tools.\n\t * \n\t * @since 5.7.0\n\t */\n\tpublic spriteResizer = this.children.push(SpriteResizer.new(this._root, {}));\n\n\n\tprotected _afterNew() {\n\t\tthis._settings.themeTags = $utils.mergeTags(this._settings.themeTags, [\"stock\"]);\n\t\tthis._defaultThemes.push(StockChartDefaultTheme.new(this._root));\n\t\tthis._defaultThemes.push(XYChartDefaultTheme.new(this._root));\n\n\t\tconst tooltipContainer = this._root.tooltipContainer;\n\t\ttooltipContainer.set(\"themeTags\", $utils.mergeTags(tooltipContainer.get(\"themeTags\", []), [\"stock\"]));\n\n\t\tsuper._afterNew();\n\n\t\tif ($utils.supports(\"keyboardevents\")) {\n\t\t\tthis._disposers.push($utils.addEventListener(document, \"keyup\", (e: KeyboardEvent) => {\n\t\t\t\tif (e.keyCode == 46) {\n\t\t\t\t\tthis.deleteSelectedDrawings();\n\t\t\t\t}\n\t\t\t\tif (e.keyCode == 27) {\n\t\t\t\t\tthis.unselectDrawings();\n\t\t\t\t\tthis.cancelDrawing();\n\t\t\t\t\tthis.spriteResizer.set(\"sprite\", undefined);\n\t\t\t\t}\n\t\t\t}));\n\t\t}\n\n\t\tconst children = this.panelsContainer.children;\n\t\tthis._disposers.push(this.panels.events.onAll((change) => {\n\t\t\tif (change.type === \"clear\") {\n\t\t\t\t$array.each(change.oldValues, (chart) => {\n\t\t\t\t\tthis._removePanel(chart);\n\t\t\t\t})\n\t\t\t} else if (change.type === \"push\") {\n\t\t\t\tchildren.moveValue(change.newValue);\n\t\t\t\tthis._processPanel(change.newValue);\n\t\t\t} else if (change.type === \"setIndex\") {\n\t\t\t\tchildren.setIndex(change.index, change.newValue);\n\t\t\t\tthis._processPanel(change.newValue);\n\t\t\t} else if (change.type === \"insertIndex\") {\n\t\t\t\tchildren.insertIndex(change.index, change.newValue);\n\t\t\t\tthis._processPanel(change.newValue);\n\t\t\t} else if (change.type === \"removeIndex\") {\n\t\t\t\tthis._removePanel(change.oldValue);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unknown IListEvent type\");\n\t\t\t}\n\t\t}));\n\n\t\tthis._disposers.push(this.indicators.events.onAll((change) => {\n\t\t\tif (change.type === \"clear\") {\n\t\t\t\t$array.each(change.oldValues, (indicator) => {\n\t\t\t\t\tthis._removeIndicator(indicator);\n\t\t\t\t})\n\t\t\t} else if (change.type === \"push\") {\n\t\t\t\tthis._processIndicator(change.newValue);\n\t\t\t} else if (change.type === \"setIndex\") {\n\t\t\t\tthis._processIndicator(change.newValue);\n\t\t\t} else if (change.type === \"insertIndex\") {\n\t\t\t\tthis._processIndicator(change.newValue);\n\t\t\t} else if (change.type === \"removeIndex\") {\n\t\t\t\tthis._removeIndicator(change.oldValue);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unknown IListEvent type\");\n\t\t\t}\n\t\t}));\n\n\t\tthis.setPrivateRaw(\"settingsModal\", SettingsModal.new(this.root, {\n\t\t\tstockChart: this\n\t\t}));\n\n\t\tlet license = false;\n\t\tfor (let i = 0; i < registry.licenses.length; i++) {\n\t\t\tif (registry.licenses[i].match(/^AM5S.{5,}/i)) {\n\t\t\t\tlicense = true;\n\t\t\t}\n\t\t}\n\t\tif (!license) {\n\t\t\tthis._root._showBranding();\n\t\t}\n\t\telse {\n\t\t\tthis._root._licenseApplied();\n\t\t}\n\t}\n\n\tpublic dispose() {\n\t\tsuper.dispose();\n\t\tconst settingsModal = this.getPrivate(\"settingsModal\");\n\t\tif (settingsModal) {\n\t\t\tsettingsModal.dispose();\n\t\t}\n\t}\n\n\t/**\n\t * Forces redrawing of all annotations (drfawings).\n\t */\n\tpublic markDirtyDrawings() {\n\t\tthis._drawingsChanged = true;\n\t\tthis.markDirty();\n\t}\n\n\t/**\n\t * Forces redrawing of Indicators.\n\t */\n\tpublic markDirtyIndicators() {\n\t\tthis._indicatorsChanged = true;\n\t\tthis.markDirty();\n\t}\n\n\n\tpublic _prepareChildren() {\n\n\t\tif (this.isDirty(\"drawingSelectionEnabled\")) {\n\t\t\tconst enabled = this.get(\"drawingSelectionEnabled\", false);\n\t\t\tif (!enabled) {\n\t\t\t\tthis.unselectDrawings();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.set(\"erasingEnabled\", false);\n\t\t\t}\n\n\t\t\tthis.panels.each((panel) => {\n\t\t\t\tpanel.series.each((series) => {\n\t\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\t\tseries.enableDrawingSelection(enabled);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\n\t\tif (this.isDirty(\"erasingEnabled\")) {\n\t\t\tconst enabled = this.get(\"erasingEnabled\", false);\n\t\t\tif (enabled) {\n\t\t\t\tthis.set(\"drawingSelectionEnabled\", false);\n\t\t\t}\n\t\t\tthis.panels.each((panel) => {\n\t\t\t\tpanel.series.each((series) => {\n\t\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\t\tif (enabled) {\n\t\t\t\t\t\t\tseries.enableErasing();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tseries.disableErasing();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\n\t\tif (this.isDirty(\"volumeNegativeColor\") || this.isDirty(\"volumePositiveColor\")) {\n\t\t\tconst volumeSeries = this.get(\"volumeSeries\");\n\t\t\tif (volumeSeries && volumeSeries.isType(\"BaseColumnSeries\")) {\n\t\t\t\tvolumeSeries.columns.each((column) => {\n\t\t\t\t\tcolumn._markDirtyKey(\"fill\");\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\n\t\tif (this.isDirty(\"stockSeries\")) {\n\t\t\tif (stockSeries) {\n\t\t\t\tconst previous = this._prevSettings.stockSeries;\n\t\t\t\tthis.indicators.each((indicator) => {\n\t\t\t\t\tif (previous == indicator.get(\"stockSeries\")) {\n\t\t\t\t\t\tindicator.set(\"stockSeries\", stockSeries);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tindicator._setSoft(\"stockSeries\", stockSeries);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tconst mainChart = stockSeries.chart;\n\n\t\t\t\tif (mainChart) {\n\t\t\t\t\tmainChart.series.each((series) => {\n\t\t\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\t\t\tlet s = series.get(\"series\");\n\t\t\t\t\t\t\tif (s == previous) {\n\t\t\t\t\t\t\t\tseries.set(\"series\", stockSeries);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tseries._setSoft(\"series\", stockSeries);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tconst xAxis = mainChart.xAxes.getIndex(0) as DateAxis;\n\t\t\t\t\tif (xAxis) {\n\t\t\t\t\t\tif (this._syncExtremesDp) {\n\t\t\t\t\t\t\tthis._syncExtremesDp.dispose();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.setPrivateRaw(\"mainAxis\", xAxis);\n\n\t\t\t\t\t\tif (this._baseDP) {\n\t\t\t\t\t\t\tthis._baseDP.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis._baseDP = xAxis.on(\"baseInterval\", (baseInterval) => {\n\t\t\t\t\t\t\tthis.indicators.each((indicator) => {\n\t\t\t\t\t\t\t\tif (indicator.isType(\"ChartIndicator\")) {\n\t\t\t\t\t\t\t\t\tindicator.xAxis.set(\"baseInterval\", baseInterval);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tthis._syncExtremesDp = new MultiDisposer([\n\t\t\t\t\t\t\txAxis.onPrivate(\"max\", () => {\n\t\t\t\t\t\t\t\tthis._syncExtremes();\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\txAxis.onPrivate(\"min\", () => {\n\t\t\t\t\t\t\t\tthis._syncExtremes();\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t])\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (this.getPrivate(\"comparing\")) {\n\t\t\t\t\tthis.setPercentScale(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tsuper._prepareChildren();\n\t}\n\n\tpublic _afterChanged() {\n\t\tsuper._afterChanged();\n\t\tif (this._drawingsChanged) {\n\t\t\tthis._drawingsChanged = false;\n\t\t\tconst type = \"drawingsupdated\";\n\t\t\tif (this.events.isEnabled(type)) {\n\t\t\t\tthis.events.dispatch(type, { type: type, target: this });\n\t\t\t}\n\t\t}\n\n\t\tif (this._indicatorsChanged) {\n\t\t\tthis._indicatorsChanged = false;\n\t\t\tconst type = \"indicatorsupdated\";\n\t\t\tif (this.events.isEnabled(type)) {\n\t\t\t\tthis.events.dispatch(type, { type: type, target: this });\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic _updateChildren() {\n\t\tsuper._updateChildren()\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\n\t\tif (this.isDirty(\"volumeSeries\")) {\n\t\t\tconst volumeSeries = this.get(\"volumeSeries\");\n\t\t\tif (volumeSeries) {\n\t\t\t\tconst volumePanel = volumeSeries.chart;\n\t\t\t\tif (volumePanel) {\n\t\t\t\t\tvolumePanel.series.events.on(\"removeIndex\", (event) => {\n\t\t\t\t\t\tif (event.oldValue == volumeSeries) {\n\t\t\t\t\t\t\tthis.set(\"volumeSeries\", undefined);\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.isDirty(\"stockNegativeColor\") || this.isDirty(\"stockPositiveColor\") || this.isDirty(\"stockSeries\")) {\n\t\t\tif (stockSeries && stockSeries.isType(\"BaseColumnSeries\")) {\n\t\t\t\tconst ic = this._root.interfaceColors;\n\t\t\t\tconst stockNegativeColor = this.get(\"stockNegativeColor\", ic.get(\"negative\"));\n\t\t\t\tconst stockPositiveColor = this.get(\"stockPositiveColor\", ic.get(\"positive\"));\n\t\t\t\tlet previous = stockSeries.dataItems[0];\n\n\t\t\t\tif (stockPositiveColor && stockPositiveColor) {\n\t\t\t\t\t$array.each(stockSeries.dataItems, (dataItem) => {\n\t\t\t\t\t\tconst column = dataItem.get(\"graphics\");\n\t\t\t\t\t\tif (column) {\n\t\t\t\t\t\t\tconst dropFromOpen = column.states.lookup(\"dropFromOpen\");\n\t\t\t\t\t\t\tif (dropFromOpen) {\n\t\t\t\t\t\t\t\tdropFromOpen.setAll({ fill: stockNegativeColor, stroke: stockNegativeColor });\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst riseFromOpen = column.states.lookup(\"riseFromOpen\");\n\t\t\t\t\t\t\tif (riseFromOpen) {\n\t\t\t\t\t\t\t\triseFromOpen.setAll({ fill: stockPositiveColor, stroke: stockPositiveColor });\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst dropFromPrevious = column.states.lookup(\"dropFromPrevious\");\n\t\t\t\t\t\t\tif (dropFromPrevious) {\n\t\t\t\t\t\t\t\tdropFromPrevious.setAll({ fill: stockNegativeColor, stroke: stockNegativeColor });\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst riseFromPrevious = column.states.lookup(\"riseFromPrevious\");\n\t\t\t\t\t\t\tif (riseFromPrevious) {\n\t\t\t\t\t\t\t\triseFromPrevious.setAll({ fill: stockPositiveColor, stroke: stockPositiveColor });\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tstockSeries._applyGraphicsStates(dataItem, previous);\n\t\t\t\t\t\t\tprevious = dataItem;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\n\t\t\t\t\tconst states = stockSeries.columns.template.states;\n\n\t\t\t\t\tconst riseFromOpen = states.lookup(\"riseFromOpen\");\n\t\t\t\t\tconst themeTags = stockSeries.columns.template.get(\"themeTags\");\n\n\t\t\t\t\tif (stockPositiveColor) {\n\t\t\t\t\t\tif (riseFromOpen) {\n\t\t\t\t\t\t\triseFromOpen.setAll({ fill: stockPositiveColor, stroke: stockPositiveColor });\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstates.create(\"riseFromOpen\", { fill: stockPositiveColor, stroke: stockPositiveColor });\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tconst riseFromPrevious = states.lookup(\"riseFromPrevious\");\n\t\t\t\t\t\tif (riseFromPrevious) {\n\t\t\t\t\t\t\triseFromPrevious.setAll({ fill: stockPositiveColor, stroke: stockPositiveColor });\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif (themeTags && themeTags.indexOf(\"pro\") != -1) {\n\t\t\t\t\t\t\t\tstates.create(\"riseFromPrevious\", { fill: stockPositiveColor, stroke: stockPositiveColor });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (stockNegativeColor) {\n\t\t\t\t\t\tconst dropFromOpen = states.lookup(\"dropFromOpen\");\n\t\t\t\t\t\tif (dropFromOpen) {\n\t\t\t\t\t\t\tdropFromOpen.setAll({ fill: stockNegativeColor, stroke: stockNegativeColor });\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstates.create(\"dropFromOpen\", { fill: stockNegativeColor, stroke: stockNegativeColor });\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst dropFromPrevious = states.lookup(\"dropFromPrevious\");\n\t\t\t\t\t\tif (dropFromPrevious) {\n\t\t\t\t\t\t\tdropFromPrevious.setAll({ fill: stockNegativeColor, stroke: stockNegativeColor });\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif (themeTags && themeTags.indexOf(\"pro\") != -1) {\n\t\t\t\t\t\t\t\tstates.create(\"dropFromPrevious\", { fill: stockNegativeColor, stroke: stockNegativeColor });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tstockSeries.markDirtyValues();\n\t\t\t}\n\t\t}\n\t}\n\n\n\t/**\n\t * Enables or disables percent scale mode.\n\t *\n\t * If `percentScale` is not set, it will try to determine the status on its own.\n\t *\n\t * In percent scale mode `percentScaleSeriesSettings` and `percentScaleValueAxisSettings` will\n\t * be applied to the regular series on the main panel and its Y axis.\n\t * \n\t * @param percentScale Comparison mode active\n\t */\n\tpublic setPercentScale(percentScale?: boolean): void {\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\t\tconst seriesSettings = this.get(\"percentScaleSeriesSettings\");\n\t\tconst axisSettings = this.get(\"percentScaleValueAxisSettings\");\n\t\tif (stockSeries) {\n\t\t\tconst mainChart = stockSeries.chart;\n\t\t\tconst yAxis = stockSeries.get(\"yAxis\") as ValueAxis;\n\t\t\tyAxis.set(\"logarithmic\", false);\n\n\t\t\tthis._maybePrepAxisDefaults();\n\t\t\tif (mainChart) {\n\t\t\t\tconst seriesList: XYSeries[] = [];\n\t\t\t\tmainChart.series.each((series) => {\n\t\t\t\t\tif (series.get(\"yAxis\") == yAxis) {\n\t\t\t\t\t\tseriesList.push(series);\n\t\t\t\t\t\tthis._maybePrepSeriesDefaults(series);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (percentScale == undefined) {\n\t\t\t\t\tpercentScale = this.getPrivate(\"comparedSeries\", []).length > 0;\n\t\t\t\t}\n\n\t\t\t\tthis.setPrivate(\"comparing\", percentScale);\n\n\t\t\t\tif (seriesSettings) {\n\t\t\t\t\t$array.each(seriesList, (series) => {\n\t\t\t\t\t\tif (percentScale) {\n\t\t\t\t\t\t\tseries.setAll(seriesSettings);\n\t\t\t\t\t\t\tseries.states.lookup(\"default\")!.setAll(seriesSettings);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tseries.states.apply(\"comparingDefaults\");\n\t\t\t\t\t\t\tconst seriesDefaults = series.states.lookup(\"comparingDefaults\");\n\t\t\t\t\t\t\tif (seriesDefaults) {\n\t\t\t\t\t\t\t\tseries.states.lookup(\"default\")!.setAll(seriesDefaults._settings);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (axisSettings) {\n\t\t\t\t\tif (percentScale) {\n\t\t\t\t\t\tyAxis.setAll(axisSettings);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tyAxis.states.apply(\"comparingDefaults\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.indicators.each((indicator) => {\n\t\t\tindicator.markDataDirty();\n\t\t})\n\t}\n\n\t/**\n\t * Adds a \"compared\" series to chart. Returns the same series.\n\t *\n\t * @param series Compared series\n\t * @return Compared series\n\t */\n\tpublic addComparingSeries(series: XYSeries): XYSeries {\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\t\tif (stockSeries) {\n\t\t\tconst chart = stockSeries.chart;\n\t\t\tif (chart) {\n\t\t\t\tchart.series.push(series);\n\t\t\t}\n\n\t\t\t// Apply comparingSeriesSettings\n\t\t\tconst comparingSeriesSettings = this.get(\"comparingSeriesSettings\");\n\t\t\tif (comparingSeriesSettings) {\n\t\t\t\tseries.setAll(comparingSeriesSettings);\n\t\t\t}\n\n\t\t\tconst comparedSeries = this.getPrivate(\"comparedSeries\");\n\t\t\tif (comparedSeries) {\n\t\t\t\tcomparedSeries.push(series);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.setPrivate(\"comparedSeries\", [series]);\n\t\t\t}\n\n\t\t\tconst legendDataItem = stockSeries.get(\"legendDataItem\");\n\n\t\t\tif (legendDataItem) {\n\t\t\t\tconst legend = legendDataItem.component;\n\t\t\t\tif (legend.isType(\"StockLegend\")) {\n\t\t\t\t\tlegend.data.push(series);\n\t\t\t\t\tconst ldi = series.get(\"legendDataItem\") as DataItem;\n\t\t\t\t\tif (ldi) {\n\t\t\t\t\t\tconst closeButton = ldi.get(\"closeButton\");\n\t\t\t\t\t\tcloseButton.set(\"forceHidden\", false);\n\t\t\t\t\t\tcloseButton.events.on(\"click\", () => {\n\t\t\t\t\t\t\tthis.removeComparingSeries(series);\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.get(\"autoSetPercentScale\")) {\n\t\t\t\tthis.setPercentScale(true);\n\t\t\t}\n\n\t\t}\n\t\treturn series;\n\t}\n\n\t/**\n\t * Removes compared series.\n\t * \n\t * @param series Compared series\n\t */\n\tpublic removeComparingSeries(series: XYSeries) {\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\t\tif (stockSeries) {\n\t\t\tconst chart = stockSeries.chart;\n\t\t\tif (chart) {\n\t\t\t\tchart.series.removeValue(series);\n\t\t\t}\n\n\t\t\tconst comparedSeries = this.getPrivate(\"comparedSeries\");\n\t\t\tif (comparedSeries) {\n\t\t\t\t$array.remove(comparedSeries, series);\n\t\t\t\tif (comparedSeries.length == 0 && this.get(\"autoSetPercentScale\")) {\n\t\t\t\t\tthis.setPercentScale(false);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tconst ldi = series.get(\"legendDataItem\") as DataItem;\n\t\tif (ldi) {\n\t\t\tconst legend = ldi.component;\n\t\t\tlegend.data.removeValue(series);\n\t\t}\n\n\t}\n\n\tprotected _maybePrepSeriesDefaults(series: XYSeries): void {\n\t\tif (!series.states.lookup(\"comparingDefaults\")) {\n\t\t\tconst seriesSettings = this.get(\"percentScaleSeriesSettings\");\n\t\t\tconst defaults: any = {};\n\t\t\t$object.each(seriesSettings, (key, _val) => {\n\t\t\t\tdefaults[key] = (series).get(key);\n\t\t\t});\n\t\t\tseries.states.create(\"comparingDefaults\", defaults);\n\t\t}\n\t}\n\n\tpublic getSeriesDefault(series: XYSeries, setting: keyof IXYSeriesSettings): any {\n\t\tconst defaults = series.states.lookup(\"comparingDefaults\");\n\t\treturn defaults ? defaults.get(setting) : series.get(setting);\n\t}\n\n\tprotected _maybePrepAxisDefaults(): void {\n\t\tconst stockSeries = this.get(\"stockSeries\")!;\n\t\tconst axis = stockSeries.get(\"yAxis\");\n\t\tif (!axis.states.lookup(\"comparingDefaults\")) {\n\t\t\tconst axisSettings = this.get(\"percentScaleValueAxisSettings\");\n\t\t\tconst defaults: any = {};\n\t\t\t$object.each(axisSettings, (key, _val) => {\n\t\t\t\tdefaults[key] = (axis).get(key);\n\t\t\t});\n\t\t\taxis.states.create(\"comparingDefaults\", defaults);\n\t\t}\n\t}\n\n\tprotected _processIndicator(indicator: Indicator) {\n\t\tthis.children.push(indicator);\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\t\tif (stockSeries) {\n\t\t\tindicator._setSoft(\"stockSeries\", stockSeries);\n\t\t}\n\n\t\tconst volumeSeries = this.get(\"volumeSeries\");\n\t\tif (volumeSeries) {\n\t\t\tindicator._setSoft(\"volumeSeries\", volumeSeries);\n\t\t}\n\n\t\tif (this.getPrivate(\"comparing\")) {\n\t\t\tthis.setPercentScale(true);\n\t\t}\n\n\n\t\t$array.each(indicator._editableSettings, (setting) => {\n\t\t\tindicator.on((setting as any).key, () => {\n\t\t\t\tthis.markDirtyIndicators();\n\t\t\t})\n\t\t})\n\n\t\tthis.markDirtyIndicators();\n\n\t\t//indicator.markDataDirty(); // not good, shows zoomed out value axis\n\t\tindicator.prepareData();\n\n\t\tthis._syncExtremes();\n\t}\n\n\tprotected _removeIndicator(indicator: Indicator) {\n\t\tthis.children.removeValue(indicator);\n\t\tthis.markDirtyIndicators();\n\t}\n\n\tprotected _removePanel(chart: StockPanel) {\n\t\tthis.panelsContainer.children.removeValue(chart);\n\t}\n\n\tpublic _updateControls() {\n\t\tconst stockSeries = this.get(\"stockSeries\");\n\t\tthis.panels.each((panel) => {\n\t\t\tconst panelControls = panel.panelControls;\n\t\t\tconst index = this.panelsContainer.children.indexOf(panel);\n\t\t\tconst len = this.panels.length;\n\t\t\tconst visible = \"visible\"\n\n\t\t\tpanelControls.upButton.setPrivate(visible, false);\n\t\t\tpanelControls.downButton.setPrivate(visible, false);\n\t\t\tpanelControls.expandButton.setPrivate(visible, false);\n\t\t\tpanelControls.closeButton.setPrivate(visible, false);\n\n\t\t\tif (len > 1) {\n\t\t\t\tpanelControls.expandButton.setPrivate(visible, true);\n\n\t\t\t\tif (index != 0) {\n\t\t\t\t\tpanelControls.upButton.setPrivate(visible, true);\n\t\t\t\t}\n\t\t\t\tif (index != len - 1) {\n\t\t\t\t\tpanelControls.downButton.setPrivate(visible, true);\n\t\t\t\t}\n\n\t\t\t\tif (!stockSeries || stockSeries.chart != panel) {\n\t\t\t\t\tpanelControls.closeButton.setPrivate(visible, true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (stockSeries) {\n\t\t\t\tthis.indicators.each((indicator) => {\n\t\t\t\t\tindicator.set(\"stockSeries\", stockSeries);\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\n\t\tthis._updateResizers();\n\t}\n\n\tprotected _processPanel(panel: StockPanel) {\n\n\t\tpanel.setPrivate(\"otherCharts\", this.panels.values);\n\t\tpanel.setPrivate(\"stockChart\", this);\n\t\tpanel.panelControls = panel.topPlotContainer.children.push(PanelControls.new(this._root, { stockPanel: panel, stockChart: this }));\n\t\tthis._updateControls();\n\n\n\t\tconst resizer = panel.children.push(Rectangle.new(this._root, { themeTags: [\"panelresizer\"] }))\n\n\t\tpanel.panelResizer = resizer;\n\n\t\tresizer.events.on(\"pointerdown\", (e) => {\n\t\t\tconst chartsContainer = this.panelsContainer;\n\t\t\tthis._downResizer = e.target;\n\t\t\tthis.panels.each((chart) => {\n\t\t\t\tchart.set(\"height\", percent(chart.height() / chartsContainer.height() * 100))\n\t\t\t})\n\n\t\t\tthis._downY = chartsContainer.toLocal(e.point).y;\n\n\t\t\tconst upperChart = chartsContainer.children.getIndex(chartsContainer.children.indexOf(panel) - 1) as StockPanel;\n\t\t\tthis._upperPanel = upperChart;\n\t\t\tif (upperChart) {\n\t\t\t\tthis._uhp = upperChart.get(\"height\") as Percent;\n\t\t\t}\n\n\t\t\tthis._dhp = panel.get(\"height\") as Percent;\n\t\t})\n\n\t\tresizer.events.on(\"pointerup\", () => {\n\t\t\tthis._downResizer = undefined;\n\t\t})\n\n\t\tresizer.events.on(\"globalpointermove\", (e) => {\n\t\t\tif (e.target == this._downResizer) {\n\t\t\t\tconst chartsContainer = this.panelsContainer;\n\t\t\t\tconst height = chartsContainer.height();\n\t\t\t\tconst upperChart = this._upperPanel;\n\n\t\t\t\tif (upperChart) {\n\t\t\t\t\tconst index = chartsContainer.children.indexOf(upperChart) + 2\n\t\t\t\t\tlet max = height - panel.get(\"minHeight\", 0);\n\t\t\t\t\tconst lowerChart = chartsContainer.children.getIndex(index);\n\t\t\t\t\tif (lowerChart) {\n\t\t\t\t\t\tmax = lowerChart.y() - panel.get(\"minHeight\", 0);\n\t\t\t\t\t}\n\t\t\t\t\t//console.log(upperChart.get(\"minHeight\", 0))\n\t\t\t\t\tconst y = Math.max(upperChart.y() + upperChart.get(\"minHeight\", 0) + upperChart.get(\"paddingTop\", 0), Math.min(chartsContainer.toLocal(e.point).y, max));\n\n\t\t\t\t\tconst downY = this._downY;\n\t\t\t\t\tconst dhp = this._dhp;\n\t\t\t\t\tconst uhp = this._uhp;\n\t\t\t\t\tif (downY != null && dhp != null && uhp != null) {\n\t\t\t\t\t\tconst diff = (downY - y) / height;\n\t\t\t\t\t\tpanel.set(\"height\", percent((dhp.value + diff) * 100));\n\t\t\t\t\t\tupperChart.set(\"height\", percent((uhp.value - diff) * 100))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\tpanel.xAxes.events.onAll((change) => {\n\t\t\tif (change.type === \"clear\") {\n\t\t\t\t$array.each(change.oldValues, (axis) => {\n\t\t\t\t\tthis._removeXAxis(axis);\n\t\t\t\t})\n\t\t\t} else if (change.type === \"push\") {\n\t\t\t\tthis._processXAxis(change.newValue);\n\t\t\t} else if (change.type === \"setIndex\") {\n\t\t\t\tthis._processXAxis(change.newValue);\n\t\t\t} else if (change.type === \"insertIndex\") {\n\t\t\t\tthis._processXAxis(change.newValue);\n\t\t\t} else if (change.type === \"removeIndex\") {\n\t\t\t\tthis._removeXAxis(change.oldValue);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unknown IListEvent type\");\n\t\t\t}\n\t\t})\n\n\t\tpanel.leftAxesContainer.events.on(\"boundschanged\", () => {\n\t\t\tthis._syncYAxesSize();\n\t\t})\n\n\t\tpanel.rightAxesContainer.events.on(\"boundschanged\", () => {\n\t\t\tthis._syncYAxesSize();\n\t\t})\n\n\t\tthis._updateResizers();\n\t}\n\n\tpublic _updateResizers() {\n\t\tthis.panels.each((panel) => {\n\t\t\tlet hidden = false;\n\t\t\tif (this.panelsContainer.children.indexOf(panel) == 0) {\n\t\t\t\thidden = true;\n\t\t\t}\n\t\t\tpanel.panelResizer?.set(\"forceHidden\", hidden);\n\t\t})\n\t}\n\n\tprotected _syncYAxesSize() {\n\t\tlet maxLeft = 0;\n\t\tlet maxRight = 0;\n\t\tthis.panels.each((chart) => {\n\t\t\tlet lw = chart.leftAxesContainer.width();\n\t\t\tlet rw = chart.rightAxesContainer.width();\n\t\t\tif (lw > maxLeft) {\n\t\t\t\tmaxLeft = lw;\n\t\t\t}\n\t\t\tif (rw > maxRight) {\n\t\t\t\tmaxRight = rw;\n\t\t\t}\n\t\t})\n\t\tthis.panels.each((chart) => {\n\t\t\tchart.leftAxesContainer.set(\"minWidth\", maxLeft);\n\t\t\tchart.rightAxesContainer.set(\"minWidth\", maxRight);\n\t\t})\n\n\t\tthis.toolsContainer.set(\"paddingLeft\", maxLeft);\n\t\tthis.toolsContainer.set(\"paddingRight\", maxRight);\n\n\t}\n\n\tprotected _removeXAxis(_axis: Axis) {\n\n\t}\n\n\tprotected _processXAxis(axis: Axis) {\n\t\t$array.move(this._xAxes, axis);\n\t\taxis.on(\"start\", () => {\n\t\t\tif (axis._skipSync != true) {\n\t\t\t\tthis._syncXAxes(axis);\n\t\t\t}\n\t\t})\n\t\taxis.on(\"end\", () => {\n\t\t\tif (axis._skipSync != true) {\n\t\t\t\tthis._syncXAxes(axis);\n\t\t\t}\n\t\t})\n\n\t\tif (this._xAxes[0]) {\n\t\t\tthis._root.events.once(\"frameended\", () => {\n\t\t\t\tthis._syncXAxes(this._xAxes[0])\n\t\t\t})\n\t\t}\n\t}\n\n\tprotected _syncExtremes() {\n\n\t\tconst mainAxis = this.getPrivate(\"mainAxis\");\n\t\tif (mainAxis) {\n\t\t\tconst min = mainAxis.getPrivate(\"min\");\n\t\t\tconst max = mainAxis.getPrivate(\"max\");\n\n\t\t\tthis.panels.each((panel) => {\n\t\t\t\tpanel.xAxes.each((xAxis) => {\n\t\t\t\t\tif (xAxis != mainAxis && xAxis.isType(\"DateAxis\")) {\n\t\t\t\t\t\tlet axisMin = xAxis.getPrivate(\"min\" as any);\n\t\t\t\t\t\tlet axisMax = xAxis.getPrivate(\"max\" as any);\n\n\t\t\t\t\t\tif (axisMin != min) {\n\t\t\t\t\t\t\txAxis.set(\"min\" as any, min);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (axisMax != max) {\n\t\t\t\t\t\t\txAxis.set(\"max\" as any, max);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst type = \"GaplessDateAxis\";\n\t\t\t\t\t\tif (xAxis.isType>(type) && mainAxis.isType>(type)) {\n\t\t\t\t\t\t\txAxis._customDates = mainAxis._dates;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\t}\n\n\tprotected _syncXAxes(axis: Axis) {\n\t\t$array.each(this._xAxes, (xAxis) => {\n\t\t\tif (xAxis != axis && xAxis.isType(\"DateAxis\")) {\n\t\t\t\txAxis._skipSync = true;\n\t\t\t\txAxis.set(\"start\", axis.get(\"start\"));\n\t\t\t\txAxis.set(\"end\", axis.get(\"end\"));\n\t\t\t\txAxis._skipSync = false;\n\t\t\t}\n\t\t})\n\t}\n\n\t/**\n\t * Returns a color for volume, based on current and previous close.\n\t *\n\t * * `positiveColor` - close is greater or euqal than close of the previous period.\n\t * * `negativeColor` - close is lower than close of the previous period.\n\t * \n\t * @param dataItem Target data item\n\t * @param negativeColor \"Negative color\" (red)\n\t * @param positiveColor \"Positive color\" (green)\n\t * @return Color\n\t */\n\tpublic getVolumeColor(dataItem: DataItem, negativeColor?: Color, positiveColor?: Color): Color | undefined {\n\t\tif (dataItem) {\n\t\t\tconst stockSeries = this.get(\"stockSeries\");\n\t\t\tconst volumeSeries = dataItem.component;\n\n\t\t\tif (!negativeColor) {\n\t\t\t\tnegativeColor = this.get(\"volumeNegativeColor\", this.root.interfaceColors.get(\"negative\", Color.fromHex(0xff0000)));\n\t\t\t}\n\n\t\t\tif (!positiveColor) {\n\t\t\t\tpositiveColor = this.get(\"volumePositiveColor\", this.root.interfaceColors.get(\"positive\", Color.fromHex(0x00FF00)));\n\t\t\t}\n\n\n\t\t\tif (negativeColor && positiveColor) {\n\t\t\t\tif (stockSeries && volumeSeries) {\n\t\t\t\t\tconst index = volumeSeries.dataItems.indexOf(dataItem);\n\t\t\t\t\tif (index > 0) {\n\t\t\t\t\t\tlet stockDataItem = stockSeries.dataItems[index];\n\t\t\t\t\t\tif (stockDataItem) {\n\t\t\t\t\t\t\tlet close = stockDataItem.get(\"valueY\");\n\t\t\t\t\t\t\tif (close != null) {\n\t\t\t\t\t\t\t\tfor (let i = index - 1; i >= 0; i--) {\n\t\t\t\t\t\t\t\t\tlet di = stockSeries.dataItems[i];\n\t\t\t\t\t\t\t\t\tlet previousClose = di.get(\"valueY\");\n\n\t\t\t\t\t\t\t\t\tif (previousClose != null) {\n\t\t\t\t\t\t\t\t\t\tif (close < previousClose) {\n\t\t\t\t\t\t\t\t\t\t\treturn negativeColor;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\treturn positiveColor;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn positiveColor;\n\t}\n\n\t/**\n\t * Returns a first [[StockControl]] of specific type.\n\t *\n\t * @since 5.7.0\n\t * @param type Control name\n\t * @return Control\n\t */\n\tpublic getControl(type: string): StockControl | undefined {\n\t\tlet found: StockControl | undefined;\n\t\t$array.eachContinue(this.controls, (control: StockControl) => {\n\t\t\tif (control.className == type) {\n\t\t\t\tfound = control;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t});\n\t\treturn found;\n\t}\n\n\tpublic _dragStartDrawing(event: ISpritePointerEvent) {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries._dragStart(event);\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\tpublic _dragStopDrawing(event: ISpritePointerEvent) {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries._dragStop(event);\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\t/**\n\t * Enables or disables interactivity of annotations (drawings).\n\t * \n\t * @param value Drawings interactive?\n\t * @since 5.4.9\n\t */\n\tpublic drawingsInteractive(value: boolean, except?: DrawingSeries) {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series != except) {\n\t\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\t\tseries.setInteractive(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\t/**\n\t * Unselect all currently selected drawings.\n\t *\n\t * @since 5.9.0\n\t */\n\tpublic unselectDrawings(): number {\n\t\tlet count = 0;\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tcount += series.unselectDrawings();\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\n\t\tthis.spriteResizer.set(\"sprite\", undefined);\n\n\t\treturn count;\n\t}\n\n\t/**\n\t * Cancels drawing and deletes drawing which is now being drawn.\n\t *\n\t * @since 5.9.0\n\t */\n\tpublic cancelDrawing() {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries.cancelDrawing();\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\t/**\n\t * Deletes all currently selected drawings.\n\t *\n\t * @since 5.9.0\n\t *\n\t */\n\tpublic deleteSelectedDrawings() {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries.deleteSelected();\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\t/**\n\t * Selects drawing by its ID.\n\t *\n\t * @param id Drawing ID\n\t * @param keepSelection Keep existing selections\n\t * @since 5.9.0\n\t */\n\tpublic selectDrawing(id: string, keepSelection?: boolean) {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries.selectDrawing(id, keepSelection);\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\t/**\n\t * Unselects drawing by ID.\n\t * \n\t * @param id Drawing ID\n\t * @since 5.9.0\n\t */\n\tpublic unselectDrawing(id: string) {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries.unselectDrawing(id);\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\t/**\n\t * Deletes drawing by drawingId.\n\t *\n\t * @param id Drawing ID\n\t * @since 5.9.0\n\t */\n\tpublic deleteDrawing(id: string) {\n\t\tthis.panels.each((panel) => {\n\t\t\tpanel.series.each((series) => {\n\t\t\t\tif (series.isType(\"DrawingSeries\")) {\n\t\t\t\t\tseries.deleteDrawing(id);\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n}\n\n/**\n * Registers a custom class so that objects (e.g. indicators) using it can be\n * serialized and restored later.\n * \n * @param name Class name\n * @param ref Class reference\n * @since 5.7.2\n */\nexport function registerClass(name: string, ref: any) {\n\tref.className = name;\n\tregisterCustomClass(name, ref);\n}","import type { XYSeries, IXYSeriesDataItem } from \"../../xy/series/XYSeries\";\r\nimport type { StockLegend } from \"../StockLegend\";\r\nimport type { StockChart } from \"../StockChart\";\r\nimport type { DataItem } from \"../../../core/render/Component\";\r\nimport type { Color } from \"../../../core/util/Color\";\r\n\r\nimport { Container, IContainerSettings, IContainerPrivate, IContainerEvents } from \"../../../core/render/Container\";\r\nimport { LineSeries } from \"../../xy/series/LineSeries\";\r\nimport { BaseColumnSeries } from \"../../xy/series/BaseColumnSeries\";\r\nimport { MultiDisposer } from \"../../../core/util/Disposer\";\r\n\r\nimport * as $array from \"../../../core/util/Array\";\r\n\r\nexport interface IIndicatorEditableSetting {\r\n\r\n\t/**\r\n\t * Setting key.\r\n\t */\r\n\tkey: string;\r\n\r\n\t/**\r\n\t * Name of the setting (displayed in edit modal).\r\n\t *\r\n\t * Settings with the same name will be grouped in modal.\r\n\t */\r\n\tname: string;\r\n\r\n\t/**\r\n\t * Type of the control to show for editing the setting in modal.\r\n\t */\r\n\ttype: \"color\" | \"number\" | \"dropdown\" | \"checkbox\";\r\n\r\n\t/**\r\n\t * Minimum numeric value allowable in this field.\r\n\t *\r\n\t * @since 5.8.1\r\n\t */\r\n\tminValue?: number;\r\n\r\n\t/**\r\n\t * If `type: \"dropdown\"`, `options` should contain a list of items it.\r\n\t */\r\n\toptions?: Array;\r\n\r\n}\r\n\r\nexport interface IIndicatorSettings extends IContainerSettings {\r\n\r\n\t/**\r\n\t * An instance of target [[StockChart]].\r\n\t */\r\n\tstockChart: StockChart;\r\n\r\n\t/**\r\n\t * A main series indicator will be based on.\r\n\t */\r\n\tstockSeries: XYSeries;\r\n\r\n\t/**\r\n\t * A volume series indicator will be based on, if it reaquires one.\r\n\t */\r\n\tvolumeSeries?: XYSeries;\r\n\r\n\t/**\r\n\t * If set to a reference to [[StockLegend]], indicator will add itself into\r\n\t * the legend.\r\n\t */\r\n\tlegend?: StockLegend;\r\n\r\n\t/**\r\n\t * Period.\r\n\t */\r\n\tperiod?: number;\r\n\r\n\t/**\r\n\t * A value field to use.\r\n\t */\r\n\tfield?: \"open\" | \"close\" | \"low\" | \"high\" | \"hl/2\" | \"hlc/3\" | \"hlcc/4\" | \"ohlc/4\";\r\n\r\n\t/**\r\n\t * Indicator name, e.g. \"Moving Average\".\r\n\t */\r\n\tname?: string;\r\n\r\n\t/**\r\n\t * Short name for the indicator, e.g. \"MA\" (for \"Moving Average\").\r\n\t *\r\n\t * Mainly used for the legend.\r\n\t */\r\n\tshortName?: string;\r\n\r\n\t/**\r\n\t * A color to use for the indicator series.\r\n\t */\r\n\tseriesColor?: Color;\r\n\r\n}\r\n\r\nexport interface IIndicatorPrivate extends IContainerPrivate {\r\n}\r\n\r\nexport interface IIndicatorEvents extends IContainerEvents {\r\n}\r\n\r\n/**\r\n * Base class for [[StockChart]] indicators.\r\n *\r\n * @see {@link https://www.amcharts.com/docs/v5/charts/stock/indicators/} for more info\r\n */\r\nexport abstract class Indicator extends Container {\r\n\tpublic static className: string = \"Indicator\";\r\n\tpublic static classNames: Array = Container.classNames.concat([Indicator.className]);\r\n\r\n\tdeclare public _settings: IIndicatorSettings;\r\n\tdeclare public _privateSettings: IIndicatorPrivate;\r\n\tdeclare public _events: IIndicatorEvents;\r\n\r\n\tpublic _editableSettings: IIndicatorEditableSetting[] = [];\r\n\r\n\tpublic series!: XYSeries;\r\n\r\n\tprotected _dataDirty = false;\r\n\r\n\tprotected _sDP?: MultiDisposer;\r\n\tprotected _vDP?: MultiDisposer;\r\n\r\n\tpublic _prepareChildren() {\r\n\t\tsuper._prepareChildren();\r\n\r\n\t\tif (this.isDirty(\"stockSeries\") || this.isDirty(\"volumeSeries\")) {\r\n\t\t\tthis.markDataDirty();\r\n\r\n\t\t\tconst stockSeries = this.get(\"stockSeries\");\r\n\t\t\tconst previousS = this._prevSettings.stockSeries;\r\n\t\t\tif (previousS && this._sDP) {\r\n\t\t\t\tthis._sDP.dispose();\r\n\t\t\t}\r\n\t\t\tif (stockSeries) {\r\n\t\t\t\tthis._sDP = new MultiDisposer([\r\n\t\t\t\t\tstockSeries.events.on(\"datavalidated\", () => {\r\n\t\t\t\t\t\tthis._markDataDirty();\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tstockSeries.events.on(\"datasetchanged\", () => {\r\n\t\t\t\t\t\tthis._markDataDirty();\r\n\t\t\t\t\t})\r\n\t\t\t\t])\r\n\t\t\t}\r\n\r\n\t\t\tconst previousV = this._prevSettings.volumeSeries;\r\n\t\t\tif (previousV && this._vDP) {\r\n\t\t\t\tthis._vDP.dispose();\r\n\t\t\t}\r\n\t\t\tconst volumeSeries = this.get(\"volumeSeries\");\r\n\t\t\tif (volumeSeries) {\r\n\t\t\t\tthis._vDP = new MultiDisposer([\r\n\t\t\t\t\tvolumeSeries.events.on(\"datavalidated\", () => {\r\n\t\t\t\t\t\tthis._markDataDirty();\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tvolumeSeries.events.on(\"datasetchanged\", () => {\r\n\t\t\t\t\t\tthis._markDataDirty();\r\n\t\t\t\t\t})\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"field\")) {\r\n\t\t\tif (this.get(\"field\")) {\r\n\t\t\t\tthis.markDataDirty();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.isDirty(\"period\")) {\r\n\t\t\tthis.markDataDirty();\r\n\t\t\tthis.setCustomData(\"period\", this.get(\"period\"));\r\n\t\t}\r\n\r\n\r\n\t\tif (this._dataDirty) {\r\n\t\t\tthis.prepareData();\r\n\t\t\tthis._dataDirty = false;\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _markDataDirty() {\r\n\t\tthis._dataDirty = true;\r\n\t\tthis.markDirty();\r\n\t}\r\n\r\n\tpublic markDataDirty() {\r\n\t\tthis._root.events.once(\"frameended\", () => {\r\n\t\t\tthis._markDataDirty();\r\n\t\t})\r\n\t}\r\n\r\n\tpublic _updateChildren() {\r\n\t\tsuper._updateChildren();\r\n\r\n\t\tif (this.isDirty(\"seriesColor\")) {\r\n\t\t\tthis._updateSeriesColor(this.series, this.get(\"seriesColor\"), \"seriesColor\");\r\n\t\t}\r\n\r\n\t\tthis.setCustomData(\"period\", this.get(\"period\"));\r\n\t\tthis.setCustomData(\"field\", this.get(\"field\"));\r\n\t\tthis.setCustomData(\"name\", this.get(\"name\"));\r\n\t\tthis.setCustomData(\"shortName\", this.get(\"shortName\"));\r\n\t}\r\n\r\n\tprotected _dispose() {\r\n\t\tsuper._dispose();\r\n\r\n\t\tif (this._sDP) {\r\n\t\t\tthis._sDP.dispose();\r\n\t\t}\r\n\t\tif (this._vDP) {\r\n\t\t\tthis._vDP.dispose();\r\n\t\t}\r\n\r\n\t\tconst series = this.series;\r\n\t\tif (series) {\r\n\t\t\tseries.dispose();\r\n\r\n\t\t\tconst yAxis = series.get(\"yAxis\");\r\n\t\t\tif (yAxis) {\r\n\t\t\t\tyAxis.markDirtySelectionExtremes();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tconst stockChart = this.get(\"stockChart\");\r\n\t\tif (stockChart) {\r\n\t\t\tconst legend = this.get(\"legend\");\r\n\t\t\tif (legend) {\r\n\t\t\t\tconst legendDataItem = series.get(\"legendDataItem\");\r\n\t\t\t\tif (legendDataItem) {\r\n\t\t\t\t\tlegend.disposeDataItem(legendDataItem as any);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tstockChart.indicators.removeValue(this);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic async hide(duration?: number): Promise {\r\n\t\treturn Promise.all([\r\n\t\t\tsuper.hide(duration),\r\n\t\t\tthis.series.hide(duration)\r\n\t\t]);\r\n\t}\r\n\r\n\tpublic async show(duration?: number): Promise {\r\n\t\treturn Promise.all([\r\n\t\t\tsuper.show(duration),\r\n\t\t\tthis.series.show(duration)\r\n\t\t]);\r\n\t}\r\n\r\n\tprotected _handleLegend(series: XYSeries) {\r\n\t\tconst legend = this.get(\"legend\");\r\n\t\tif (legend) {\r\n\t\t\tlegend.data.push(series);\r\n\r\n\t\t\tconst legendDataItem = legend.dataItems[legend.dataItems.length - 1];\r\n\t\t\tlegendDataItem.get(\"marker\").set(\"forceHidden\", true);\r\n\r\n\t\t\tconst closeButton = legendDataItem.get(\"closeButton\");\r\n\t\t\tcloseButton.set(\"forceHidden\", false);\r\n\t\t\tcloseButton.events.on(\"click\", () => {\r\n\t\t\t\tthis.dispose();\r\n\t\t\t})\r\n\r\n\t\t\tconst settingsButton = legendDataItem.get(\"settingsButton\");\r\n\t\t\tsettingsButton.setPrivate(\"customData\", this);\r\n\r\n\t\t\tconst editableSettings = this._editableSettings;\r\n\t\t\tif (!editableSettings || editableSettings.length == 0) {\r\n\t\t\t\tsettingsButton.set(\"forceHidden\", true);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprotected _updateSeriesColor(series?: XYSeries, color?: Color, contextName?: string) {\r\n\t\tif (series) {\r\n\t\t\tseries.set(\"stroke\", color);\r\n\t\t\tseries.set(\"fill\", color);\r\n\t\t\tif (series instanceof LineSeries) {\r\n\t\t\t\tseries.strokes.template.set(\"stroke\", color);\r\n\t\t\t\tseries.fills.template.set(\"fill\", color);\r\n\t\t\t}\r\n\r\n\t\t\tif (series instanceof BaseColumnSeries) {\r\n\t\t\t\tseries.columns.template.setAll({ stroke: color, fill: color });\r\n\t\t\t}\r\n\r\n\t\t\tif (contextName && color) {\r\n\t\t\t\tthis.setCustomData(contextName, color.toCSSHex());\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tpublic setCustomData(name: string, value?: any) {\r\n\t\tconst customData = this.series.getPrivate(\"customData\");\r\n\t\tif (customData) {\r\n\t\t\tcustomData[name] = value;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * @ignore\r\n\t */\r\n\tpublic prepareData() {\r\n\r\n\t}\r\n\r\n\tprotected _getValue(dataItem: DataItem): number | undefined {\r\n\t\tconst field = this.get(\"field\");\r\n\r\n\t\tlet o = dataItem.get(\"openValueY\") as number;\r\n\t\tlet h = dataItem.get(\"highValueY\") as number;\r\n\t\tlet l = dataItem.get(\"lowValueY\") as number;\r\n\t\tlet c = dataItem.get(\"valueY\") as number;\r\n\r\n\t\tswitch (field) {\r\n\t\t\tcase \"close\":\r\n\t\t\t\treturn c;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"open\":\r\n\t\t\t\treturn o;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"high\":\r\n\t\t\t\treturn h;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"low\":\r\n\t\t\t\treturn l;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"hl/2\":\r\n\t\t\t\treturn (h + l) / 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"hlc/3\":\r\n\t\t\t\treturn (h + l + c) / 3;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"hlcc/4\":\r\n\t\t\t\treturn (h + l + c + c) / 4;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"ohlc/4\":\r\n\t\t\t\treturn (o + h + l + c) / 4;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * @ignore\r\n\t */\r\n\tprotected _getDataArray(dataItems: Array>): Array {\r\n\t\tconst data: Array = [];\r\n\t\t$array.each(dataItems, (dataItem) => {\r\n\t\t\tdata.push({ valueX: dataItem.get(\"valueX\"), value_y: this._getValue(dataItem) });\r\n\t\t})\r\n\t\treturn data;\r\n\t}\r\n\r\n\t/**\r\n\t * @ignore\r\n\t */\r\n\tprotected _getTypicalPrice(dataItems: Array>): Array {\r\n\t\tconst data: Array = [];\r\n\t\t$array.each(dataItems, (dataItem) => {\r\n\t\t\tdata.push({ valueX: dataItem.get(\"valueX\"), value_y: (dataItem.get(\"valueY\", 0) + dataItem.get(\"highValueY\", 0) + dataItem.get(\"lowValueY\", 0)) / 2 });\r\n\t\t})\r\n\t\treturn data;\r\n\t}\r\n\r\n\tprotected _sma(data: Array, period: number, field: string, toField: string) {\r\n\t\tlet i = 0;\r\n\t\tlet index = 0;\r\n\t\tlet ma = 0;\r\n\t\t$array.each(data, (dataItem) => {\r\n\t\t\tlet value = dataItem[field];\r\n\t\t\tif (value != null) {\r\n\t\t\t\ti++;\r\n\t\t\t\tma += value / period;\r\n\r\n\t\t\t\tif (i >= period) {\r\n\t\t\t\t\tif (i > period) {\r\n\t\t\t\t\t\tlet valueToRemove = data[index - period][field];\r\n\t\t\t\t\t\tif (valueToRemove != null) {\r\n\t\t\t\t\t\t\tma -= valueToRemove / period;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdataItem[toField] = ma;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tindex++;\r\n\t\t})\r\n\t}\r\n\r\n\tprotected _wma(data: Array, period: number, field: string, toField: string) {\r\n\t\tlet i = 0;\r\n\t\tlet index = 0;\r\n\t\tlet ma = 0;\r\n\t\t$array.each(data, (dataItem) => {\r\n\t\t\tlet value = dataItem[field];\r\n\t\t\tif (value != null) {\r\n\t\t\t\ti++;\r\n\t\t\t\tif (i >= period) {\r\n\t\t\t\t\tlet sum = 0;\r\n\t\t\t\t\tlet m = 0;\r\n\t\t\t\t\tlet count = 0;\r\n\t\t\t\t\tlet k = 0\r\n\t\t\t\t\tfor (let n = index; n >= 0; n--) {\r\n\t\t\t\t\t\tlet pValue = data[n][field];\r\n\r\n\t\t\t\t\t\tif (pValue != null) {\r\n\t\t\t\t\t\t\tsum += pValue * (period - m);\r\n\t\t\t\t\t\t\tcount += (period - m);\r\n\t\t\t\t\t\t\tk++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tm++;\r\n\r\n\t\t\t\t\t\tif (k == period) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tma = sum / count;\r\n\t\t\t\t\tdataItem[toField] = ma;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tindex++;\r\n\t\t})\r\n\t}\r\n\r\n\tprotected _ema(data: Array, period: number, field: string, toField: string) {\r\n\t\tlet i = 0;\r\n\t\tlet ma = 0;\r\n\t\tlet multiplier = 2 / (1 + period);\r\n\t\t$array.each(data, (dataItem) => {\r\n\t\t\tlet value = dataItem[field];\r\n\t\t\tif (value != null) {\r\n\t\t\t\ti++;\r\n\r\n\t\t\t\tif (i > period) {\r\n\t\t\t\t\tma = value * multiplier + ma * (1 - multiplier);\r\n\t\t\t\t\tdataItem[toField] = ma;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tma += value / period;\r\n\t\t\t\t\tif (i == period) {\r\n\t\t\t\t\t\tdataItem[toField] = ma;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprotected _dema(data: Array, period: number, field: string, toField: string) {\r\n\t\tlet i = 0;\r\n\t\tlet ema2 = 0;\r\n\t\tlet multiplier = 2 / (1 + period);\r\n\r\n\t\tthis._ema(data, period, field, \"ema\");\r\n\r\n\t\t$array.each(data, (dataItem) => {\r\n\t\t\tlet ema = dataItem.ema;\r\n\t\t\tif (ema != null) {\r\n\t\t\t\ti++;\r\n\t\t\t\tif (i > period) {\r\n\t\t\t\t\tema2 = ema * multiplier + ema2 * (1 - multiplier);\r\n\t\t\t\t\tdataItem[toField] = 2 * ema - ema2;\r\n\t\t\t\t\tdataItem.ema2 = ema2;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tema2 += ema / period;\r\n\t\t\t\t\tif (i == period) {\r\n\t\t\t\t\t\tdataItem[toField] = 2 * ema - ema2;\r\n\t\t\t\t\t\tdataItem.ema2 = ema2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprotected _tema(data: Array, period: number, field: string, toField: string) {\r\n\t\tlet i = 0;\r\n\t\tlet ema3 = 0;\r\n\t\tlet multiplier = 2 / (1 + period);\r\n\r\n\t\tthis._dema(data, period, field, \"dema\");\r\n\r\n\t\t$array.each(data, (dataItem) => {\r\n\t\t\tlet ema = dataItem.ema;\r\n\t\t\tlet ema2 = dataItem.ema2;\r\n\r\n\t\t\tif (ema2 != null) {\r\n\t\t\t\ti++;\r\n\t\t\t\tif (i > period) {\r\n\t\t\t\t\tema3 = ema2 * multiplier + ema3 * (1 - multiplier);\r\n\t\t\t\t\tdataItem[toField] = 3 * ema - 3 * ema2 + ema3;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tema3 += ema2 / period;\r\n\t\t\t\t\tif (i == period) {\r\n\t\t\t\t\t\tdataItem[toField] = 3 * ema - 3 * ema2 + ema3;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n}","import type { DataItem } from \"../../core/render/Component\";\r\nimport type { StockChart } from \"./StockChart\";\r\nimport type { StockPanel } from \"./StockPanel\";\r\n\r\nimport { Legend, ILegendPrivate, ILegendSettings, ILegendEvents, ILegendDataItem } from \"../../core/render/Legend\";\r\nimport { Button } from \"../../core/render/Button\";\r\nimport { Graphics } from \"../../core/render/Graphics\";\r\nimport { Template } from \"../../core/util/Template\";\r\nimport { ListTemplate } from \"../../core/util/List\";\r\nimport { Indicator } from \"./indicators/Indicator\";\r\n\r\nimport * as $utils from \"../../core/util/Utils\";\r\n\r\nexport interface IStockLegendDataItem extends ILegendDataItem {\r\n\r\n\t/**\r\n\t * Legend item \"close\" [[Button]].\r\n\t */\r\n\tcloseButton: Button;\r\n\r\n\t/**\r\n\t * Legend item \"settings\" [[Button]].\r\n\t */\r\n\tsettingsButton: Button;\r\n\r\n\t/**\r\n\t * Target [[StockPanel]] legend item is attached to.\r\n\t */\r\n\tpanel: StockPanel;\r\n\r\n}\r\n\r\n\r\nexport interface IStockLegendSettings extends ILegendSettings {\r\n\r\n\t/**\r\n\t * A target [[StockChart]].\r\n\t */\r\n\tstockChart: StockChart;\r\n\r\n}\r\n\r\nexport interface IStockLegendPrivate extends ILegendPrivate {\r\n}\r\n\r\nexport interface IStockLegendEvents extends ILegendEvents {\r\n}\r\n\r\n/**\r\n * A legend, specifically designed for use in a [[StockChart]].\r\n *\r\n * @see {@link https://www.amcharts.com/docs/v5/charts/stock/#Legend} for more info\r\n * @important\r\n */\r\nexport class StockLegend extends Legend {\r\n\r\n\tpublic static className: string = \"StockLegend\";\r\n\tpublic static classNames: Array = Legend.classNames.concat([StockLegend.className]);\r\n\r\n\tdeclare public _settings: IStockLegendSettings;\r\n\tdeclare public _privateSettings: IStockLegendPrivate;\r\n\tdeclare public _events: IStockLegendEvents;\r\n\tdeclare public _dataItemSettings: IStockLegendDataItem;\r\n\r\n\tprotected _afterNew() {\r\n\t\tthis._settings.themeTags = $utils.mergeTags(this._settings.themeTags, [\"stocklegend\"]);\r\n\t\tsuper._afterNew();\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * @ignore\r\n\t */\r\n\tpublic makeCloseButton(): Button {\r\n\t\tconst button = this.closeButtons.make();\r\n\t\tthis.closeButtons.push(button);\r\n\t\treturn button;\r\n\t}\r\n\r\n\t/**\r\n\t * A list of \"close\" buttons in legend items.\r\n\t *\r\n\t * @default new ListTemplate