Files
ai/charting_library/bundles/line-tool-flag-mark.1a583a950733a8c3fdd6.js

1 line
1.2 KiB
JavaScript

"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1911],{19645:(e,r,o)=>{o.r(r),o.d(r,{LineToolFlagMark:()=>a});var t=o(57415),n=o(82014),i=o(93445),s=o(33993);class a extends n.LineDataSource{constructor(e,r,n,i){super(e,r??a.createProperties(e.backgroundTheme().spawnOwnership()),n,i),Promise.all([o.e(8263),o.e(144),o.e(4073),o.e(1912),o.e(1495)]).then(o.bind(o,22619)).then((({FlagMarkPaneView:e})=>{const r=new e(this,this.model());r.setAnchors(new t.Point(0,0)),this._setPaneViews([r])}))}pointsCount(){return 1}name(){return"Flag Mark"}static createProperties(e,r){r&&void 0===r.flagColor&&(r.flagColor="#318757");const o=new i.DefaultProperty({defaultName:"linetoolflagmark",state:r,theme:e});return this._configureProperties(o),o}_normalizePoint(e,r){return super._normalizePointWithoutOffset(e)??super._normalizePoint(e,r)}_getPropertyDefinitionsViewModelClass(){return Promise.all([o.e(1982),o.e(7686),o.e(2428),o.e(3920),o.e(9328)]).then(o.bind(o,88736)).then((e=>e.FlagMarkDefinitionsViewModel))}static _configureProperties(e){super._configureProperties(e),e.addChild("backgroundsColors",new s.LineToolColorsProperty([e.childs().flagColor])),e.addExcludedKey("backgroundsColors",3)}}a.version=2}}]);