@vninvestcharts/widget 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE.md +83 -0
- package/README.md +851 -3
- package/dist/AlertsModal-WKEUDTUZ.js +2 -0
- package/dist/ConnectedTradingPanel-KWJMIKTN.css +2 -0
- package/dist/ConnectedTradingPanel-XDKMOQY5.js +2 -0
- package/dist/PineEditorPanel-AUXB4FD3.js +2 -0
- package/dist/PineEditorPanel-V6YN2OTU.css +2 -0
- package/dist/RightSidebarDockHost-6FPZ6EKV.css +2 -0
- package/dist/RightSidebarDockHost-OBFXKSIY.js +2 -0
- package/dist/StrategyTesterPanel-6IUTS2P4.js +2 -0
- package/dist/StrategyTesterPanel-LEWEUMXP.css +2 -0
- package/dist/VolumeProfileWorker-UREKVPUE.js +189 -0
- package/dist/adapters/index.cjs +2532 -0
- package/dist/adapters/index.d.mts +673 -0
- package/dist/adapters/index.d.ts +673 -0
- package/dist/adapters/index.js +2521 -0
- package/dist/adapters/index.umd.js +2535 -0
- package/dist/chunk-5T6DGB3V.js +2 -0
- package/dist/chunk-66JBEGR3.js +4 -0
- package/dist/chunk-6D7DVBIK.js +2 -0
- package/dist/chunk-76E7CKUD.js +2 -0
- package/dist/chunk-AKWVXRQ6.js +2 -0
- package/dist/chunk-FHHSTO6Z.js +2 -0
- package/dist/chunk-HPL723JA.js +2 -0
- package/dist/chunk-NVGTF73S.js +2 -0
- package/dist/chunk-PNIB4OM3.js +2 -0
- package/dist/chunk-UKJ5AKQX.js +595 -0
- package/dist/chunk-UYJTX3SD.js +2 -0
- package/dist/combined.css +3068 -0
- package/dist/css-modules-manifest.json +297 -0
- package/dist/dist-Y6PZ2RN3.js +12 -0
- package/dist/drawing/index.cjs +53 -0
- package/dist/drawing/index.d.mts +2 -0
- package/dist/drawing/index.d.ts +2 -0
- package/dist/drawing/index.js +2 -0
- package/dist/drawing/index.umd.js +54 -0
- package/dist/dts/drawing-shim.d.ts +3 -0
- package/dist/dts/index.d.ts +31 -0
- package/dist/dts/lib/Chart.d.ts +31 -0
- package/dist/dts/lib/ChartContext.d.ts +10 -0
- package/dist/dts/lib/EventCapture.d.ts +3 -0
- package/dist/dts/lib/GenericChartComponent.d.ts +5 -0
- package/dist/dts/lib/GenericComponent.d.ts +124 -0
- package/dist/dts/lib/StockChartContext.d.ts +53 -0
- package/dist/dts/lib/adapters/BaseAdapter.d.ts +25 -0
- package/dist/dts/lib/adapters/BinanceAdapter.d.ts +51 -0
- package/dist/dts/lib/adapters/CSVAdapter.d.ts +17 -0
- package/dist/dts/lib/adapters/ContinuousContractAdapter.d.ts +63 -0
- package/dist/dts/lib/adapters/ContinuousContractTypes.d.ts +154 -0
- package/dist/dts/lib/adapters/DBAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/DataAdapter.d.ts +136 -0
- package/dist/dts/lib/adapters/DjangoVnstockAdapter.d.ts +15 -0
- package/dist/dts/lib/adapters/LocalCacheAdapter.d.ts +18 -0
- package/dist/dts/lib/adapters/MockAdapter.d.ts +22 -0
- package/dist/dts/lib/adapters/RESTAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/StockDataAdapter.d.ts +1 -0
- package/dist/dts/lib/adapters/UDFDataAdapter.d.ts +29 -0
- package/dist/dts/lib/adapters/VNStocksAdapter.d.ts +8 -0
- package/dist/dts/lib/adapters/WSAdapter.d.ts +30 -0
- package/dist/dts/lib/adapters/gapFixture.d.ts +71 -0
- package/dist/dts/lib/adapters/index.d.ts +15 -0
- package/dist/dts/lib/adapters/rollAlgorithms.d.ts +68 -0
- package/dist/dts/lib/advisory/AdvisoryPanel.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertEvaluator.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertManager.d.ts +123 -0
- package/dist/dts/lib/alerts/types.d.ts +58 -0
- package/dist/dts/lib/cache/cacheDebug.d.ts +3 -0
- package/dist/dts/lib/calendars/ExchangeCalendar.d.ts +23 -0
- package/dist/dts/lib/calendars/calendarRegistry.d.ts +10 -0
- package/dist/dts/lib/calendars/index.d.ts +3 -0
- package/dist/dts/lib/core/ChartPane.d.ts +8 -0
- package/dist/dts/lib/core/ChartSplitter.d.ts +70 -0
- package/dist/dts/lib/core/ChartTerminal.d.ts +12 -0
- package/dist/dts/lib/core/ErrorBoundary.d.ts +17 -0
- package/dist/dts/lib/core/IndicatorLegend.d.ts +47 -0
- package/dist/dts/lib/core/PaneHeader.d.ts +24 -0
- package/dist/dts/lib/core/PaneLabel.d.ts +8 -0
- package/dist/dts/lib/core/PaneSplitter.d.ts +9 -0
- package/dist/dts/lib/core/SeriesPicker.d.ts +10 -0
- package/dist/dts/lib/core/calculators/alignBarsByDate.d.ts +38 -0
- package/dist/dts/lib/core/calculators/buildIndicatorComputationPlan.d.ts +16 -0
- package/dist/dts/lib/core/calculators/calcCVDApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/calcStrengthElder.d.ts +7 -0
- package/dist/dts/lib/core/calculators/calcWhaleApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/computationHelpers.d.ts +12 -0
- package/dist/dts/lib/core/calculators/computeIndicatorComputationResult.d.ts +3 -0
- package/dist/dts/lib/core/calculators/computeMarketStructure.d.ts +8 -0
- package/dist/dts/lib/core/calculators/computeMomentum.d.ts +22 -0
- package/dist/dts/lib/core/calculators/computeMovingAverage.d.ts +15 -0
- package/dist/dts/lib/core/calculators/computeProfile.d.ts +9 -0
- package/dist/dts/lib/core/calculators/computeTrend.d.ts +10 -0
- package/dist/dts/lib/core/calculators/computeVolatility.d.ts +14 -0
- package/dist/dts/lib/core/calculators/computeVolumeFlow.d.ts +19 -0
- package/dist/dts/lib/core/calculators/enrichData.d.ts +7 -0
- package/dist/dts/lib/core/calculators/enrichDataWithCanonicalStore.d.ts +33 -0
- package/dist/dts/lib/core/calculators/exoticChartData.d.ts +140 -0
- package/dist/dts/lib/core/calculators/fixtures/mockData.d.ts +2 -0
- package/dist/dts/lib/core/calculators/indicatorComputation.d.ts +27 -0
- package/dist/dts/lib/core/calculators/indicatorComputationTypes.d.ts +249 -0
- package/dist/dts/lib/core/calculators/materializeIndicatorValues.d.ts +3 -0
- package/dist/dts/lib/core/calculators/normalizePrices.d.ts +36 -0
- package/dist/dts/lib/core/calculators/resolveCalculationOrder.d.ts +17 -0
- package/dist/dts/lib/core/calculators/types.d.ts +269 -0
- package/dist/dts/lib/core/canvas/ChartRenderContext.d.ts +14 -0
- package/dist/dts/lib/core/canvas/OverlayCanvas.d.ts +19 -0
- package/dist/dts/lib/core/context/ChartSyncContext.d.ts +21 -0
- package/dist/dts/lib/core/context/DataContext.d.ts +15 -0
- package/dist/dts/lib/core/context/PaneManagerContext.d.ts +10 -0
- package/dist/dts/lib/core/hooks/paneSizingHelpers.d.ts +13 -0
- package/dist/dts/lib/core/hooks/useCanvasResize.d.ts +8 -0
- package/dist/dts/lib/core/hooks/useChartTheme.d.ts +12 -0
- package/dist/dts/lib/core/hooks/useDynamicPanes.d.ts +155 -0
- package/dist/dts/lib/core/hooks/useIndicatorSets.d.ts +20 -0
- package/dist/dts/lib/core/hooks/usePaneManager.d.ts +39 -0
- package/dist/dts/lib/core/hooks/usePaneSizes.d.ts +52 -0
- package/dist/dts/lib/core/index.d.ts +41 -0
- package/dist/dts/lib/core/paneScaleSlotDomains.d.ts +3 -0
- package/dist/dts/lib/core/registry/SeriesRegistry.d.ts +22 -0
- package/dist/dts/lib/core/registry/filterPanesBySeriesTier.d.ts +43 -0
- package/dist/dts/lib/core/registry/marketStructure.d.ts +7 -0
- package/dist/dts/lib/core/registry/momentum.d.ts +20 -0
- package/dist/dts/lib/core/registry/movingAverage.d.ts +14 -0
- package/dist/dts/lib/core/registry/priceChartTypes.d.ts +16 -0
- package/dist/dts/lib/core/registry/profile.d.ts +8 -0
- package/dist/dts/lib/core/registry/registerAll.d.ts +1 -0
- package/dist/dts/lib/core/registry/registerPhaseOne.d.ts +3 -0
- package/dist/dts/lib/core/registry/registryCore.d.ts +77 -0
- package/dist/dts/lib/core/registry/trend.d.ts +11 -0
- package/dist/dts/lib/core/registry/volatility.d.ts +11 -0
- package/dist/dts/lib/core/registry/volumeFlow.d.ts +20 -0
- package/dist/dts/lib/core/replay/BarReplayController.d.ts +62 -0
- package/dist/dts/lib/core/replay/ReplayEventBus.d.ts +68 -0
- package/dist/dts/lib/core/replay/ReplayFillSimulator.d.ts +33 -0
- package/dist/dts/lib/core/replay/ReplayOrderBook.d.ts +24 -0
- package/dist/dts/lib/core/replay/ReplayPositionManager.d.ts +30 -0
- package/dist/dts/lib/core/replay/ReplaySessionAnalytics.d.ts +31 -0
- package/dist/dts/lib/core/replay/createReplayTradeMarkerPrimitives.d.ts +7 -0
- package/dist/dts/lib/core/replay/pnlUtils.d.ts +2 -0
- package/dist/dts/lib/core/replay/replayBrokerAdapters.d.ts +51 -0
- package/dist/dts/lib/core/replay/replayTradingTypes.d.ts +61 -0
- package/dist/dts/lib/core/scales/computeScales.d.ts +8 -0
- package/dist/dts/lib/core/seriesValueResolver.d.ts +27 -0
- package/dist/dts/lib/core/sets/builtins.d.ts +2 -0
- package/dist/dts/lib/core/sets/indicatorSetCodec.d.ts +15 -0
- package/dist/dts/lib/core/trading/AnalyticsEngine.d.ts +56 -0
- package/dist/dts/lib/core/trading/BrokerAPI.d.ts +40 -0
- package/dist/dts/lib/core/trading/ExecutionSimulator.d.ts +53 -0
- package/dist/dts/lib/core/trading/FillSettlement.d.ts +38 -0
- package/dist/dts/lib/core/trading/MarketDataPort.d.ts +41 -0
- package/dist/dts/lib/core/trading/MarketRules.d.ts +58 -0
- package/dist/dts/lib/core/trading/OrderManagementSystem.d.ts +57 -0
- package/dist/dts/lib/core/trading/PositionManager.d.ts +79 -0
- package/dist/dts/lib/core/trading/RiskEngine.d.ts +40 -0
- package/dist/dts/lib/core/trading/SettlementCalendar.d.ts +10 -0
- package/dist/dts/lib/core/trading/VirtualBrokerEngine.d.ts +92 -0
- package/dist/dts/lib/core/trading/orderMargin.d.ts +3 -0
- package/dist/dts/lib/core/trading/storage/InMemoryStorageAdapter.d.ts +10 -0
- package/dist/dts/lib/core/trading/storage/TradingStorage.d.ts +34 -0
- package/dist/dts/lib/core/trading/types.d.ts +99 -0
- package/dist/dts/lib/core/types/chart.d.ts +21 -0
- package/dist/dts/lib/core/types/indicator-catalog.d.ts +38 -0
- package/dist/dts/lib/core/types/indicator-set.d.ts +19 -0
- package/dist/dts/lib/core/types/pane-descriptor.d.ts +46 -0
- package/dist/dts/lib/core/types/seriesComponents.d.ts +15 -0
- package/dist/dts/lib/credentials/credentialStore.d.ts +93 -0
- package/dist/dts/lib/helper/SaveChartAsImage.d.ts +90 -0
- package/dist/dts/lib/indicator/defaultOptionsForAppearance.d.ts +105 -0
- package/dist/dts/lib/indicators/builtin/MTFWrapper.d.ts +3 -0
- package/dist/dts/lib/indicators/builtin/VolumeProfileWorker.d.ts +19 -0
- package/dist/dts/lib/indicators/builtin/ac.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/alligator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/anchoredVwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ao.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bbi.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/bias.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bollinger.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/brar.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/chaikinOscillator.d.ts +14 -0
- package/dist/dts/lib/indicators/builtin/chaikinVol.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cmf.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cr.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cvd.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/deltaProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/dema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dmi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/donchian.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/emv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/footprint.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/fractals.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/gator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/hma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/hv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ichimoku.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/kdj.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/keltner.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ma.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/maRibbon.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/macd.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/marketProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/mfi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/mtm.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/obv.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/pivotHighLow.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/pivotStandard.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/psy.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/pvt.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/roc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/rsi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/sar.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/sma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/smfi.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/stdDev.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/strengthRelative.d.ts +7 -0
- package/dist/dts/lib/indicators/builtin/supertrend.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/tema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/trix.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volOsc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volume.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volumeProfile.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/vr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/vwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/vwma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/wyckoffWave.d.ts +15 -0
- package/dist/dts/lib/indicators/index.d.ts +63 -0
- package/dist/dts/lib/indicators/indicatorValueShapes.d.ts +15 -0
- package/dist/dts/lib/indicators/outputKeys.d.ts +50 -0
- package/dist/dts/lib/indicators/overlays/CVDIndicator.d.ts +26 -0
- package/dist/dts/lib/indicators/overlays/DarkFlowBadge.d.ts +19 -0
- package/dist/dts/lib/indicators/overlays/ExternalCVDOverlay.d.ts +15 -0
- package/dist/dts/lib/indicators/overlays/WhaleBubbleOverlay.d.ts +14 -0
- package/dist/dts/lib/indicators/overlays/WhaleMarketBubbleOverlay.d.ts +27 -0
- package/dist/dts/lib/indicators/overlays/whaleDetector.d.ts +66 -0
- package/dist/dts/lib/indicators/registry.d.ts +6 -0
- package/dist/dts/lib/indicators/types.d.ts +5 -0
- package/dist/dts/lib/indicators/utils.d.ts +259 -0
- package/dist/dts/lib/pinescript/PineCompiler.d.ts +34 -0
- package/dist/dts/lib/pinescript/ast.d.ts +73 -0
- package/dist/dts/lib/pinescript/compile.d.ts +40 -0
- package/dist/dts/lib/pinescript/grammar.d.ts +12 -0
- package/dist/dts/lib/pinescript/pine.worker.d.ts +1 -0
- package/dist/dts/lib/pinescript/pineBlocks.d.ts +54 -0
- package/dist/dts/lib/pinescript/pineBuiltins.d.ts +47 -0
- package/dist/dts/lib/pinescript/pineEnv.d.ts +46 -0
- package/dist/dts/lib/pinescript/pineMath.d.ts +13 -0
- package/dist/dts/lib/pinescript/pineParse.d.ts +25 -0
- package/dist/dts/lib/pinescript/pineStrings.d.ts +50 -0
- package/dist/dts/lib/pinescript/runtime.d.ts +5 -0
- package/dist/dts/lib/pinescript/scriptRegistry.d.ts +40 -0
- package/dist/dts/lib/pinescript/series-value.d.ts +64 -0
- package/dist/dts/lib/pinescript/vnscript-completion.d.ts +1 -0
- package/dist/dts/lib/pinescript/vnscript-grammar.d.ts +19 -0
- package/dist/dts/lib/scale/discontinuousTimeScaleProvider.d.ts +3 -0
- package/dist/dts/lib/scale/financeDiscontinuousScale.d.ts +15 -0
- package/dist/dts/lib/scale/index.d.ts +1 -0
- package/dist/dts/lib/scale/levels.d.ts +12 -0
- package/dist/dts/lib/series/AlternatingFillAreaSeries.d.ts +13 -0
- package/dist/dts/lib/series/AreaOnlySeries.d.ts +10 -0
- package/dist/dts/lib/series/AreaSeries.d.ts +30 -0
- package/dist/dts/lib/series/BarSeries.d.ts +40 -0
- package/dist/dts/lib/series/BollingerSeries.d.ts +11 -0
- package/dist/dts/lib/series/CandlestickSeries.d.ts +56 -0
- package/dist/dts/lib/series/CircleMarker.d.ts +28 -0
- package/dist/dts/lib/series/ElderRaySeries.d.ts +14 -0
- package/dist/dts/lib/series/FootprintSeries.d.ts +21 -0
- package/dist/dts/lib/series/GroupedBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/HTFOverlaySeries.d.ts +32 -0
- package/dist/dts/lib/series/HistogramSeries.d.ts +51 -0
- package/dist/dts/lib/series/KagiSeries.d.ts +9 -0
- package/dist/dts/lib/series/LineBreakSeries.d.ts +28 -0
- package/dist/dts/lib/series/LineSeries.d.ts +54 -0
- package/dist/dts/lib/series/MACDSeries.d.ts +28 -0
- package/dist/dts/lib/series/MarketProfileSeries.d.ts +18 -0
- package/dist/dts/lib/series/OHLCSeries.d.ts +9 -0
- package/dist/dts/lib/series/OverlayBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/PointAndFigureSeries.d.ts +45 -0
- package/dist/dts/lib/series/RSISeries.d.ts +38 -0
- package/dist/dts/lib/series/RenkoSeries.d.ts +9 -0
- package/dist/dts/lib/series/SARSeries.d.ts +10 -0
- package/dist/dts/lib/series/SVGComponent.d.ts +5 -0
- package/dist/dts/lib/series/ScatterSeries.d.ts +9 -0
- package/dist/dts/lib/series/SquareMarker.d.ts +28 -0
- package/dist/dts/lib/series/StackedBarSeries.d.ts +19 -0
- package/dist/dts/lib/series/StochasticSeries.d.ts +9 -0
- package/dist/dts/lib/series/StraightLine.d.ts +18 -0
- package/dist/dts/lib/series/TriangleMarker.d.ts +30 -0
- package/dist/dts/lib/series/VolumeProfileSeries.d.ts +9 -0
- package/dist/dts/lib/series/index.d.ts +28 -0
- package/dist/dts/lib/strategy/BrokerSimulator.d.ts +11 -0
- package/dist/dts/lib/strategy/types.d.ts +35 -0
- package/dist/dts/lib/tape/TapePanel.d.ts +5 -0
- package/dist/dts/lib/types/adapter.d.ts +1 -0
- package/dist/dts/lib/types/index.d.ts +5 -0
- package/dist/dts/lib/types/indicator.d.ts +11 -0
- package/dist/dts/lib/types/ohlcv.d.ts +1 -0
- package/dist/dts/lib/types/pane.d.ts +23 -0
- package/dist/dts/lib/types/runtime.d.ts +11 -0
- package/dist/dts/lib/types/vninvest.d.ts +320 -0
- package/dist/dts/lib/types.d.ts +45 -0
- package/dist/dts/lib/utils/ChartDataUtil.d.ts +26 -0
- package/dist/dts/lib/utils/PureComponent.d.ts +5 -0
- package/dist/dts/lib/utils/accumulatingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/axisPriceFormat.d.ts +6 -0
- package/dist/dts/lib/utils/barWidth.d.ts +14 -0
- package/dist/dts/lib/utils/identity.d.ts +1 -0
- package/dist/dts/lib/utils/index.d.ts +70 -0
- package/dist/dts/lib/utils/logger.d.ts +28 -0
- package/dist/dts/lib/utils/mappedSlidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/merge.d.ts +6 -0
- package/dist/dts/lib/utils/noop.d.ts +1 -0
- package/dist/dts/lib/utils/rebind.d.ts +1 -0
- package/dist/dts/lib/utils/shallowEqual.d.ts +1 -0
- package/dist/dts/lib/utils/slidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/storage.d.ts +32 -0
- package/dist/dts/lib/utils/strokeDasharray.d.ts +3 -0
- package/dist/dts/lib/utils/timezoneFormatter.d.ts +14 -0
- package/dist/dts/lib/utils/zipper.d.ts +4 -0
- package/dist/dts/public-api.d.ts +31 -0
- package/dist/dts/widget/BackfillWorkerFlags.d.ts +12 -0
- package/dist/dts/widget/CanaryRollbackHelper.d.ts +95 -0
- package/dist/dts/widget/CanaryRolloutConfig.d.ts +100 -0
- package/dist/dts/widget/DrawingPriceLabelsOverlay.d.ts +20 -0
- package/dist/dts/widget/ForkDrawingsOverlay.d.ts +16 -0
- package/dist/dts/widget/MeasurementOverlay.d.ts +24 -0
- package/dist/dts/widget/VNInvestCharts.d.ts +5 -0
- package/dist/dts/widget/VNInvestChartsProps.d.ts +302 -0
- package/dist/dts/widget/VNInvestMultiCharts.d.ts +8 -0
- package/dist/dts/widget/VNInvestMultiCharts.types.d.ts +130 -0
- package/dist/dts/widget/WidgetEmptyState.d.ts +11 -0
- package/dist/dts/widget/WidgetErrorBoundary.d.ts +26 -0
- package/dist/dts/widget/adapters/ContinuousFuturesStockDataAdapter.d.ts +18 -0
- package/dist/dts/widget/adapters/DataProviderAdapterWrapper.d.ts +14 -0
- package/dist/dts/widget/adapters/MultiSourceDataAdapter.d.ts +24 -0
- package/dist/dts/widget/adapters/VNInvestClient.d.ts +161 -0
- package/dist/dts/widget/adapters/VNInvestDataAdapter.d.ts +77 -0
- package/dist/dts/widget/adapters/VNInvestWebSocketClient.d.ts +79 -0
- package/dist/dts/widget/adapters/barsPagingPolicy.d.ts +18 -0
- package/dist/dts/widget/adapters/corporateEvents.d.ts +13 -0
- package/dist/dts/widget/adapters/index.d.ts +20 -0
- package/dist/dts/widget/adapters/nativeShapes.d.ts +32 -0
- package/dist/dts/widget/adapters/watchlistRealtimeSync.d.ts +16 -0
- package/dist/dts/widget/alerts/DrawingAlertsHost.d.ts +18 -0
- package/dist/dts/widget/alerts/useDrawingAlerts.d.ts +37 -0
- package/dist/dts/widget/canaryBarFiltering.d.ts +35 -0
- package/dist/dts/widget/capabilities/CapabilityResolver.d.ts +71 -0
- package/dist/dts/widget/capabilities/capabilityProbe.d.ts +28 -0
- package/dist/dts/widget/capabilities/useTierGatedFeatures.d.ts +48 -0
- package/dist/dts/widget/components/BottomPanelHost.d.ts +80 -0
- package/dist/dts/widget/components/BottomPanelSplitter.d.ts +15 -0
- package/dist/dts/widget/components/CapabilityGate.d.ts +65 -0
- package/dist/dts/widget/components/ChartDiagOverlay.d.ts +31 -0
- package/dist/dts/widget/components/ConfirmDialog.d.ts +12 -0
- package/dist/dts/widget/components/DowngradeBanner.d.ts +9 -0
- package/dist/dts/widget/components/ForkPaneSeparators.d.ts +11 -0
- package/dist/dts/widget/components/ForkPaneTooltips.d.ts +23 -0
- package/dist/dts/widget/components/ForkXAxisOverlay.d.ts +11 -0
- package/dist/dts/widget/components/ForkYAxisCrosshairLabels.d.ts +9 -0
- package/dist/dts/widget/components/LayoutDesigner.d.ts +26 -0
- package/dist/dts/widget/components/PremiumFeatureGate.d.ts +10 -0
- package/dist/dts/widget/components/ShortcutHelpModal.d.ts +44 -0
- package/dist/dts/widget/components/SystemMenu.d.ts +66 -0
- package/dist/dts/widget/components/Toast.d.ts +20 -0
- package/dist/dts/widget/components/canvas/BarCountdownBadge.d.ts +8 -0
- package/dist/dts/widget/components/canvas/ChartA11ySummary.d.ts +40 -0
- package/dist/dts/widget/components/canvas/ChartStatusLine.d.ts +39 -0
- package/dist/dts/widget/components/canvas/PricePaneHeader.d.ts +24 -0
- package/dist/dts/widget/components/canvas/PriceScaleMenu.d.ts +27 -0
- package/dist/dts/widget/components/canvas/TimeAxisScrollbar.d.ts +18 -0
- package/dist/dts/widget/components/common/Icons.d.ts +67 -0
- package/dist/dts/widget/components/dock/DataWindow.d.ts +7 -0
- package/dist/dts/widget/components/dock/DockUpgradeNudge.d.ts +10 -0
- package/dist/dts/widget/components/dock/RightSidebarDockHost.d.ts +57 -0
- package/dist/dts/widget/components/dock/WatchlistPanel.d.ts +7 -0
- package/dist/dts/widget/components/dock/WorkspaceRightDockSlot.d.ts +46 -0
- package/dist/dts/widget/components/dock/dockAccess.d.ts +20 -0
- package/dist/dts/widget/components/dock/drawingDockContentBuilders.d.ts +29 -0
- package/dist/dts/widget/components/drawing/DrawingDock.d.ts +47 -0
- package/dist/dts/widget/components/drawing/DrawingInspector.d.ts +94 -0
- package/dist/dts/widget/components/drawing/DrawingListPanel.d.ts +62 -0
- package/dist/dts/widget/components/drawing/DrawingSemanticPointLegend.d.ts +14 -0
- package/dist/dts/widget/components/drawing/FloatingDrawingInspector.d.ts +18 -0
- package/dist/dts/widget/components/drawing/IconPickerPanel.d.ts +5 -0
- package/dist/dts/widget/components/drawing/InlineTextEditor.d.ts +20 -0
- package/dist/dts/widget/components/drawing/PatternScanPanel.d.ts +27 -0
- package/dist/dts/widget/components/drawing/TemplateManagerPanel.d.ts +18 -0
- package/dist/dts/widget/components/events/CorporateEventsOverlay.d.ts +23 -0
- package/dist/dts/widget/components/events/EventMarkerIcon.d.ts +6 -0
- package/dist/dts/widget/components/footer/ChartFooter.d.ts +26 -0
- package/dist/dts/widget/components/footer/MultiChartsFooter.d.ts +37 -0
- package/dist/dts/widget/components/footer/TimeframeFooter.d.ts +25 -0
- package/dist/dts/widget/components/footer/useBarCountdown.d.ts +5 -0
- package/dist/dts/widget/components/header/OHLCHeader.d.ts +72 -0
- package/dist/dts/widget/components/layout/DrawingConflictNotice.d.ts +4 -0
- package/dist/dts/widget/components/layout/GridContainer.d.ts +70 -0
- package/dist/dts/widget/components/layout/GridSlotErrorBoundary.d.ts +17 -0
- package/dist/dts/widget/components/layout/Splitter.d.ts +23 -0
- package/dist/dts/widget/components/layout/gridSplitterMath.d.ts +40 -0
- package/dist/dts/widget/components/layout/useGridSplitterDrag.d.ts +18 -0
- package/dist/dts/widget/components/mobile/MobileChartCarousel.d.ts +11 -0
- package/dist/dts/widget/components/mobile/MobileToolbar.d.ts +29 -0
- package/dist/dts/widget/components/overlays/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/TapePanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/WhalePanel.d.ts +5 -0
- package/dist/dts/widget/components/panels/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/panels/PineEditorPanel.d.ts +18 -0
- package/dist/dts/widget/components/panels/StrategyTesterPanel.d.ts +7 -0
- package/dist/dts/widget/components/panels/TapePanel.d.ts +17 -0
- package/dist/dts/widget/components/panels/index.d.ts +8 -0
- package/dist/dts/widget/components/replay/FloatingReplayToolbar.d.ts +24 -0
- package/dist/dts/widget/components/replay/ReplayCutOverlay.d.ts +8 -0
- package/dist/dts/widget/components/search/SymbolCompareModal.d.ts +24 -0
- package/dist/dts/widget/components/search/SymbolSearchModal.d.ts +12 -0
- package/dist/dts/widget/components/search/VNSymbolSearch.d.ts +83 -0
- package/dist/dts/widget/components/settings/AlertsModal.d.ts +74 -0
- package/dist/dts/widget/components/settings/SettingsContext.d.ts +58 -0
- package/dist/dts/widget/components/settings/SettingsModal.d.ts +78 -0
- package/dist/dts/widget/components/settings/SettingsRangeSlider.d.ts +17 -0
- package/dist/dts/widget/components/settings/SnapshotPreviewModal.d.ts +16 -0
- package/dist/dts/widget/components/settings/WorkspaceSettingsContext.d.ts +27 -0
- package/dist/dts/widget/components/settings/helpers/seriesFormatters.d.ts +11 -0
- package/dist/dts/widget/components/settings/model/appearancePayload.d.ts +31 -0
- package/dist/dts/widget/components/settings/model/chartSettingsSchema.d.ts +100 -0
- package/dist/dts/widget/components/settings/model/defaultSettings.d.ts +5 -0
- package/dist/dts/widget/components/settings/model/indicatorShare.d.ts +29 -0
- package/dist/dts/widget/components/settings/storageKeys.d.ts +29 -0
- package/dist/dts/widget/components/settings/tabs/AppearanceSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorParamsForm.d.ts +12 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorsSettingsTab.d.ts +34 -0
- package/dist/dts/widget/components/settings/tabs/LicensingSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/PanesLayoutSettingsTab.d.ts +11 -0
- package/dist/dts/widget/components/settings/tabs/ResetSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/settings/tabs/ScalesSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/StatusLineSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/SymbolSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/ThemePaletteSettingsTab.d.ts +9 -0
- package/dist/dts/widget/components/settings/tabs/TradingEventsSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/toolbar/DrawingToolIcon.d.ts +10 -0
- package/dist/dts/widget/components/toolbar/DrawingToolbar.d.ts +33 -0
- package/dist/dts/widget/components/toolbar/FloatingChartBar.d.ts +20 -0
- package/dist/dts/widget/components/toolbar/FloatingFavoritesBar.d.ts +18 -0
- package/dist/dts/widget/components/toolbar/MultiChartTopbar.d.ts +47 -0
- package/dist/dts/widget/components/toolbar/UnifiedDrawingToolbar.d.ts +28 -0
- package/dist/dts/widget/components/trading/PaperTradePanel.d.ts +41 -0
- package/dist/dts/widget/components/workspace/WorkspaceToolbar.d.ts +25 -0
- package/dist/dts/widget/config/toolGroups.d.ts +11 -0
- package/dist/dts/widget/config/toolShortcuts.d.ts +27 -0
- package/dist/dts/widget/constants/comparison.d.ts +1 -0
- package/dist/dts/widget/constants/symbolSearch.d.ts +14 -0
- package/dist/dts/widget/constants/vn30.d.ts +7 -0
- package/dist/dts/widget/context/DataProviderContext.d.ts +7 -0
- package/dist/dts/widget/context/HoverEmitter.d.ts +50 -0
- package/dist/dts/widget/context/SyncContextShare.d.ts +11 -0
- package/dist/dts/widget/context/VNInvestChartsConfigContext.d.ts +24 -0
- package/dist/dts/widget/context/VNInvestChartsContext.d.ts +70 -0
- package/dist/dts/widget/context/VNInvestChartsStateContext.d.ts +50 -0
- package/dist/dts/widget/context/WidgetI18nContext.d.ts +25 -0
- package/dist/dts/widget/context/WorkspaceLiveTradingContext.d.ts +30 -0
- package/dist/dts/widget/context/WorkspacePaperVisibilityContext.d.ts +23 -0
- package/dist/dts/widget/context/WorkspaceReplayTradingContext.d.ts +36 -0
- package/dist/dts/widget/contexts/SaaSFeatureContext.d.ts +23 -0
- package/dist/dts/widget/data/DataEnvelope.d.ts +100 -0
- package/dist/dts/widget/drawingPriceLabelInputs.d.ts +3 -0
- package/dist/dts/widget/export/chartCsv.d.ts +59 -0
- package/dist/dts/widget/forkAnchorReconciliation.d.ts +6 -0
- package/dist/dts/widget/forkInteractionHelpers.d.ts +69 -0
- package/dist/dts/widget/grid/DeviceProfiles.d.ts +49 -0
- package/dist/dts/widget/grid/GridChartRegistry.d.ts +9 -0
- package/dist/dts/widget/grid/MemoryBudgetManager.d.ts +63 -0
- package/dist/dts/widget/grid/PerformanceMonitor.d.ts +70 -0
- package/dist/dts/widget/grid/customPresets.d.ts +42 -0
- package/dist/dts/widget/grid/presets.d.ts +18 -0
- package/dist/dts/widget/grid/types.d.ts +39 -0
- package/dist/dts/widget/history/BackfillDedupContext.d.ts +63 -0
- package/dist/dts/widget/history/RequestCoordinator.d.ts +59 -0
- package/dist/dts/widget/history/SharedBarStoreContext.d.ts +22 -0
- package/dist/dts/widget/history/cache/IndexedDBCacheMatrix.d.ts +16 -0
- package/dist/dts/widget/history/cache/LocalCacheMatrix.d.ts +86 -0
- package/dist/dts/widget/history/cache/index.d.ts +3 -0
- package/dist/dts/widget/history/chunkStore.d.ts +77 -0
- package/dist/dts/widget/history/externalBarsNormalization.d.ts +9 -0
- package/dist/dts/widget/history/externalBarsNormalization.worker.d.ts +1 -0
- package/dist/dts/widget/history/externalBarsNormalizationAsync.d.ts +25 -0
- package/dist/dts/widget/history/historyDataUtils.d.ts +82 -0
- package/dist/dts/widget/history/historyWindowPlanner.d.ts +89 -0
- package/dist/dts/widget/history/inflightController.d.ts +15 -0
- package/dist/dts/widget/history/requestCoalescing.d.ts +10 -0
- package/dist/dts/widget/history/sessionGuards.d.ts +3 -0
- package/dist/dts/widget/history/singleWriterLane.d.ts +4 -0
- package/dist/dts/widget/history/useExternalBarsNormalization.d.ts +5 -0
- package/dist/dts/widget/hooks/ShortcutManager.d.ts +65 -0
- package/dist/dts/widget/hooks/overlays/PaneHeaderWrapper.d.ts +11 -0
- package/dist/dts/widget/hooks/overlays/overlayHelpers.d.ts +60 -0
- package/dist/dts/widget/hooks/overlays/useDrawingDockNode.d.ts +15 -0
- package/dist/dts/widget/hooks/overlays/useLegendChrome.d.ts +36 -0
- package/dist/dts/widget/hooks/overlays/useMultiSelectActions.d.ts +22 -0
- package/dist/dts/widget/hooks/overlays/useSidebarResize.d.ts +13 -0
- package/dist/dts/widget/hooks/resolveEntitlement.d.ts +73 -0
- package/dist/dts/widget/hooks/useBottomPanelBehavior.d.ts +38 -0
- package/dist/dts/widget/hooks/useBottomPanelHeight.d.ts +39 -0
- package/dist/dts/widget/hooks/useCanvasTheme.d.ts +24 -0
- package/dist/dts/widget/hooks/useChartImperativeHandle.d.ts +57 -0
- package/dist/dts/widget/hooks/useClockAdapter.d.ts +11 -0
- package/dist/dts/widget/hooks/useComparisonState.d.ts +29 -0
- package/dist/dts/widget/hooks/useDialogFocus.d.ts +25 -0
- package/dist/dts/widget/hooks/useDrawingToolShortcuts.d.ts +16 -0
- package/dist/dts/widget/hooks/useFeatureGate.d.ts +28 -0
- package/dist/dts/widget/hooks/useFloatingChartBar.d.ts +33 -0
- package/dist/dts/widget/hooks/useForkRuntime.d.ts +155 -0
- package/dist/dts/widget/hooks/useIndicatorsShareApplier.d.ts +1 -0
- package/dist/dts/widget/hooks/useIntersectionObserver.d.ts +49 -0
- package/dist/dts/widget/hooks/useKeyboardAdapter.d.ts +9 -0
- package/dist/dts/widget/hooks/useLayoutHistory.d.ts +8 -0
- package/dist/dts/widget/hooks/useLicenseDiagnostics.d.ts +15 -0
- package/dist/dts/widget/hooks/useMultiChartReplaySync.d.ts +31 -0
- package/dist/dts/widget/hooks/useMultiWorkspacePersistence.d.ts +49 -0
- package/dist/dts/widget/hooks/usePaperTradeConfig.d.ts +27 -0
- package/dist/dts/widget/hooks/usePaperTradeInteraction.d.ts +27 -0
- package/dist/dts/widget/hooks/usePatTierAuthentication.d.ts +42 -0
- package/dist/dts/widget/hooks/usePineScriptRestore.d.ts +23 -0
- package/dist/dts/widget/hooks/usePortalAdapter.d.ts +8 -0
- package/dist/dts/widget/hooks/useRecentSymbols.d.ts +3 -0
- package/dist/dts/widget/hooks/useReplayState.d.ts +28 -0
- package/dist/dts/widget/hooks/useReplayTrading.d.ts +26 -0
- package/dist/dts/widget/hooks/useResizeAdapter.d.ts +13 -0
- package/dist/dts/widget/hooks/useScaleOverlays.d.ts +62 -0
- package/dist/dts/widget/hooks/useScriptPersistence.d.ts +72 -0
- package/dist/dts/widget/hooks/useSymbolSearch.d.ts +30 -0
- package/dist/dts/widget/hooks/useViewportBreakpoint.d.ts +15 -0
- package/dist/dts/widget/hooks/useWidgetCoordinateBridge.d.ts +70 -0
- package/dist/dts/widget/hooks/useWidgetData.d.ts +138 -0
- package/dist/dts/widget/hooks/useWidgetDataBackfill.d.ts +67 -0
- package/dist/dts/widget/hooks/useWidgetDataEnrichment.d.ts +32 -0
- package/dist/dts/widget/hooks/useWidgetDrawings.d.ts +38 -0
- package/dist/dts/widget/hooks/useWidgetForkInteraction.d.ts +68 -0
- package/dist/dts/widget/hooks/useWidgetInteractionActions.d.ts +36 -0
- package/dist/dts/widget/hooks/useWidgetOverlays.d.ts +190 -0
- package/dist/dts/widget/hooks/useWidgetRuntime.d.ts +20 -0
- package/dist/dts/widget/hooks/useWidgetSettings.d.ts +244 -0
- package/dist/dts/widget/hooks/useWidgetWorkspaceIO.d.ts +24 -0
- package/dist/dts/widget/hooks/useWorkspaceDockPanels.d.ts +11 -0
- package/dist/dts/widget/hooks/useWorkspaceLiveTrading.d.ts +28 -0
- package/dist/dts/widget/hooks/useWorkspaceReplayTrading.d.ts +22 -0
- package/dist/dts/widget/i18n/a11y.messages.en.d.ts +8 -0
- package/dist/dts/widget/i18n/a11y.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/capability.messages.en.d.ts +7 -0
- package/dist/dts/widget/i18n/capability.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/dock.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/dock.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.licensing.d.ts +48 -0
- package/dist/dts/widget/i18n/messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/types.d.ts +3 -0
- package/dist/dts/widget/iframe/builtInAdapters.d.ts +63 -0
- package/dist/dts/widget/iframe/host-entry.d.ts +11 -0
- package/dist/dts/widget/iframe/hostSDK.d.ts +151 -0
- package/dist/dts/widget/iframe/iframeBridge.d.ts +165 -0
- package/dist/dts/widget/iframe/iframeEntry.d.ts +52 -0
- package/dist/dts/widget/iframe/iframeFrame.d.ts +15 -0
- package/dist/dts/widget/iframe/iframeQuotes.d.ts +20 -0
- package/dist/dts/widget/iframe/messageProtocol.d.ts +545 -0
- package/dist/dts/widget/iframe/quoteHub.d.ts +20 -0
- package/dist/dts/widget/iframe/useVNInvestChartsHost.d.ts +8 -0
- package/dist/dts/widget/iife-entry.d.ts +61 -0
- package/dist/dts/widget/iifeWidgetInstance.d.ts +60 -0
- package/dist/dts/widget/index.d.ts +56 -0
- package/dist/dts/widget/multiChartDefaults.d.ts +18 -0
- package/dist/dts/widget/paneInteractionUtils.d.ts +25 -0
- package/dist/dts/widget/patterns/autoPatternScan.d.ts +77 -0
- package/dist/dts/widget/patterns/patternDrawingFactory.d.ts +87 -0
- package/dist/dts/widget/plugin/ProPluginRegistry.d.ts +40 -0
- package/dist/dts/widget/runtime/ChartScaleAdapter.d.ts +73 -0
- package/dist/dts/widget/runtime/ChartSerializer.d.ts +12 -0
- package/dist/dts/widget/runtime/ForkRuntimeAdapter.d.ts +19 -0
- package/dist/dts/widget/runtime/IRuntimeEngine.d.ts +40 -0
- package/dist/dts/widget/runtime/WorkspaceSerializer.d.ts +31 -0
- package/dist/dts/widget/runtimePolicy.d.ts +36 -0
- package/dist/dts/widget/styles/injectStyles.d.ts +9 -0
- package/dist/dts/widget/theme/ThemeConfig.d.ts +21 -0
- package/dist/dts/widget/theme/applyTheme.d.ts +3 -0
- package/dist/dts/widget/trading/chart/DraggableOrderHandles.d.ts +15 -0
- package/dist/dts/widget/trading/chart/InteractivePositionOverlay.d.ts +19 -0
- package/dist/dts/widget/trading/chart/PendingOrderOverlay.d.ts +11 -0
- package/dist/dts/widget/trading/chart/QuickTradingHeader.d.ts +20 -0
- package/dist/dts/widget/trading/chart/TradingChartSurface.d.ts +8 -0
- package/dist/dts/widget/trading/chart/TradingOverlaysHost.d.ts +28 -0
- package/dist/dts/widget/trading/chart/priceTicks.d.ts +1 -0
- package/dist/dts/widget/trading/chart/useFloatingDrag.d.ts +40 -0
- package/dist/dts/widget/trading/chart/useTradingHotkeys.d.ts +21 -0
- package/dist/dts/widget/trading/config/paperRuntimeConfig.d.ts +53 -0
- package/dist/dts/widget/trading/context/PaperPanelRegistry.d.ts +45 -0
- package/dist/dts/widget/trading/context/TradingContext.d.ts +80 -0
- package/dist/dts/widget/trading/context/WorkspaceTradingSync.d.ts +24 -0
- package/dist/dts/widget/trading/hooks/usePaperRuntimeConfig.d.ts +36 -0
- package/dist/dts/widget/trading/index.d.ts +5 -0
- package/dist/dts/widget/trading/panel/AccountSummaryTab.d.ts +7 -0
- package/dist/dts/widget/trading/panel/ActiveChartPaperPanel.d.ts +26 -0
- package/dist/dts/widget/trading/panel/ConnectedTradingPanel.d.ts +3 -0
- package/dist/dts/widget/trading/panel/HistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/MarketFallbackBanner.d.ts +4 -0
- package/dist/dts/widget/trading/panel/OrdersTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperCapitalDialog.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperSettingsModal.d.ts +17 -0
- package/dist/dts/widget/trading/panel/PositionsTab.d.ts +15 -0
- package/dist/dts/widget/trading/panel/TradeHistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/TradingBottomPanel.d.ts +36 -0
- package/dist/dts/widget/trading/panel/TradingLogTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/TradingPanelHeader.d.ts +17 -0
- package/dist/dts/widget/trading/panel/csvExport.d.ts +18 -0
- package/dist/dts/widget/trading/ticket/ConnectedTradingDockPanel.d.ts +5 -0
- package/dist/dts/widget/trading/ticket/OrderTicketForm.d.ts +31 -0
- package/dist/dts/widget/trading/ticket/OrderTicketModal.d.ts +29 -0
- package/dist/dts/widget/trading/ticket/RegistryTradingDockPanel.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/RiskCalculatorView.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/TradingDockPanel.d.ts +36 -0
- package/dist/dts/widget/trading/ticket/orderTicketModel.d.ts +49 -0
- package/dist/dts/widget/trading/visibility/paperVisibility.d.ts +38 -0
- package/dist/dts/widget/types/dataProvider.d.ts +8 -0
- package/dist/dts/widget/types/fullChartHandle.d.ts +25 -0
- package/dist/dts/widget/types/saas.d.ts +83 -0
- package/dist/dts/widget/types/symbolSearch.d.ts +9 -0
- package/dist/dts/widget/types/watchlist.d.ts +26 -0
- package/dist/dts/widget/utils/axisHit.d.ts +16 -0
- package/dist/dts/widget/utils/chartRange.d.ts +12 -0
- package/dist/dts/widget/utils/chartTypeOptions.d.ts +38 -0
- package/dist/dts/widget/utils/clickOutside.d.ts +1 -0
- package/dist/dts/widget/utils/coordinateBridge.d.ts +31 -0
- package/dist/dts/widget/utils/crosshairSync.d.ts +50 -0
- package/dist/dts/widget/utils/drawingSync.d.ts +198 -0
- package/dist/dts/widget/utils/enrichedHash.d.ts +15 -0
- package/dist/dts/widget/utils/headerSync.d.ts +12 -0
- package/dist/dts/widget/utils/numberFormat.d.ts +13 -0
- package/dist/dts/widget/utils/paperTradeAdapters.d.ts +11 -0
- package/dist/dts/widget/utils/pineSeriesData.d.ts +71 -0
- package/dist/dts/widget/utils/rangeSync.d.ts +29 -0
- package/dist/dts/widget/utils/telemetry.d.ts +19 -0
- package/dist/dts/widget/utils/widgetEquality.d.ts +57 -0
- package/dist/dts/widget/utils/widgetErrors.d.ts +29 -0
- package/dist/dts/widget/utils/widgetHelpers.d.ts +395 -0
- package/dist/dts/widget/utils/xAxisTickFormatter.d.ts +33 -0
- package/dist/dts/widget/visibleRangeBridge.d.ts +28 -0
- package/dist/dts/widget/visibleRangeDiagnostics.d.ts +10 -0
- package/dist/dts/widget/visibleRangePolicies.d.ts +6 -0
- package/dist/dts/widget/workspace/WorkspaceManager.d.ts +23 -0
- package/dist/dts/widget/workspace/WorkspaceStore.d.ts +85 -0
- package/dist/dts/widget/workspace/types.d.ts +21 -0
- package/dist/externalBarsNormalization.worker.js +108 -0
- package/dist/iframe/index.html +63 -0
- package/dist/iframe/injected.css +6456 -0
- package/dist/iframe/vninvestchart.iframe.css +2 -0
- package/dist/iframe/vninvestchart.iframe.js +945 -0
- package/dist/iframe-host/host-entry.cjs +687 -0
- package/dist/iframe-host/host-entry.d.mts +818 -0
- package/dist/iframe-host/host-entry.d.ts +818 -0
- package/dist/iframe-host/host-entry.js +680 -0
- package/dist/index.cjs +7253 -0
- package/dist/index.css +3390 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +6461 -0
- package/dist/injected.css +6456 -0
- package/dist/rollAlgorithms-2P2ZKKHO.js +2 -0
- package/dist/types/runtime.cjs +8 -0
- package/dist/types/runtime.d.mts +92 -0
- package/dist/types/runtime.d.ts +92 -0
- package/dist/types/runtime.js +5 -0
- package/dist/types/runtime.umd.js +14 -0
- package/dist/vninvestchart.iife.css +2 -0
- package/dist/vninvestchart.iife.js +945 -0
- package/package.json +225 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SyncContextShareValue {
|
|
3
|
+
syncContext: ReturnType<typeof import("@vninvestcharts/engine-react").useSyncContext> | null;
|
|
4
|
+
}
|
|
5
|
+
declare const SyncContextShareContext: React.Context<SyncContextShareValue>;
|
|
6
|
+
export declare const SyncContextShareProvider: React.FC<{
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
syncContext: SyncContextShareValue["syncContext"];
|
|
9
|
+
}>;
|
|
10
|
+
export declare const useSyncContextShare: () => SyncContextShareValue;
|
|
11
|
+
export default SyncContextShareContext;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P1-03: VNInvestChartsConfigContext
|
|
3
|
+
*
|
|
4
|
+
* Low-frequency configuration context: theme, locale, symbol, timeframe, adapter.
|
|
5
|
+
* These values change only on user action (not per-frame), so they can safely
|
|
6
|
+
* live in a single React context without causing re-render storms.
|
|
7
|
+
*/
|
|
8
|
+
import { type ReactNode } from "react";
|
|
9
|
+
import type { ChartTheme } from "../../lib/core";
|
|
10
|
+
import type { WidgetLocale } from "../i18n/types";
|
|
11
|
+
import type { StockDataAdapter, Timeframe } from "../../lib/types/adapter";
|
|
12
|
+
export interface VNInvestChartsConfigContextValue {
|
|
13
|
+
theme: ChartTheme;
|
|
14
|
+
locale: WidgetLocale;
|
|
15
|
+
symbol?: string;
|
|
16
|
+
timeframe?: Timeframe;
|
|
17
|
+
adapter: StockDataAdapter;
|
|
18
|
+
}
|
|
19
|
+
export declare const VNInvestChartsConfigContext: import("react").Context<VNInvestChartsConfigContextValue>;
|
|
20
|
+
export declare function useVNInvestChartsConfig(): VNInvestChartsConfigContextValue;
|
|
21
|
+
export declare function VNInvestChartsConfigProvider({ value, children, }: {
|
|
22
|
+
value: VNInvestChartsConfigContextValue;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P1-02: VNInvestChartsContext (main provider)
|
|
3
|
+
*
|
|
4
|
+
* Composes ConfigContext, StateContext, WidgetI18nContext, and HoverEmitter
|
|
5
|
+
* into a single provider tree. This is the root context for the compound
|
|
6
|
+
* component architecture.
|
|
7
|
+
*
|
|
8
|
+
* The provider wraps around the existing VNInvestCharts implementation — it does
|
|
9
|
+
* NOT replace the prop-driven API. Instead, it provides an internal coordination
|
|
10
|
+
* layer that compound sub-components (Toolbar, Header, Footer, etc.) can consume.
|
|
11
|
+
*
|
|
12
|
+
* Architecture:
|
|
13
|
+
* VNInvestChartsProvider
|
|
14
|
+
* ├── WidgetI18nProvider (already exists)
|
|
15
|
+
* ├── VNInvestChartsConfigProvider (theme, locale, symbol, timeframe, adapter)
|
|
16
|
+
* ├── VNInvestChartsStateProvider (panes, drawings, activeTool)
|
|
17
|
+
* └── HoverEmitter ref (high-frequency hover events via EventTarget)
|
|
18
|
+
*/
|
|
19
|
+
import { type ReactNode } from "react";
|
|
20
|
+
import type { ChartTheme } from "../../lib/core";
|
|
21
|
+
import type { PaneDescriptor } from "../../lib/core/types/pane-descriptor";
|
|
22
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
23
|
+
import type { StockDataAdapter, Timeframe } from "../../lib/types/adapter";
|
|
24
|
+
import type { WidgetLocale, WidgetMessages } from "../i18n/types";
|
|
25
|
+
import { type HoverEmitter } from "./HoverEmitter";
|
|
26
|
+
export interface VNInvestChartsProviderProps {
|
|
27
|
+
adapter: StockDataAdapter;
|
|
28
|
+
symbol?: string;
|
|
29
|
+
timeframe?: Timeframe;
|
|
30
|
+
locale?: WidgetLocale;
|
|
31
|
+
messages?: Partial<WidgetMessages>;
|
|
32
|
+
theme?: ChartTheme;
|
|
33
|
+
panes?: readonly PaneDescriptor[];
|
|
34
|
+
drawings?: readonly DrawingObject[];
|
|
35
|
+
activeTool?: string;
|
|
36
|
+
/** Per-chart pane-layout storage namespace (multi-chart cell id). */
|
|
37
|
+
storageScopeId?: string | null;
|
|
38
|
+
portalRoot?: HTMLElement | null;
|
|
39
|
+
shadowRoot?: ShadowRoot | null;
|
|
40
|
+
onLocaleChange?: (locale: WidgetLocale) => void;
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Hook to access the internal portal root for rendering modals/tooltips inside Shadow DOM.
|
|
45
|
+
* Returns the portal root element, or null if not in Shadow DOM mode.
|
|
46
|
+
*/
|
|
47
|
+
export declare function usePortalRoot(): HTMLElement | null;
|
|
48
|
+
/**
|
|
49
|
+
* Hook to access the shadow root for registering capture-phase event listeners.
|
|
50
|
+
* Returns the shadow root element, or null if not in Shadow DOM mode.
|
|
51
|
+
*/
|
|
52
|
+
export declare function useShadowRoot(): ShadowRoot | null;
|
|
53
|
+
/**
|
|
54
|
+
* Hook to access the hover emitter ref from any descendant component.
|
|
55
|
+
*
|
|
56
|
+
* Usage:
|
|
57
|
+
* const emitterRef = useHoverEmitterRef();
|
|
58
|
+
* emitHover(emitterRef.current, { datum, pixelX, pixelY, paneId });
|
|
59
|
+
*/
|
|
60
|
+
export declare function useHoverEmitterRef(): React.RefObject<HoverEmitter | null>;
|
|
61
|
+
/**
|
|
62
|
+
* Root provider for the compound component architecture.
|
|
63
|
+
*
|
|
64
|
+
* Wraps the existing VNInvestCharts prop-driven implementation — does NOT replace it.
|
|
65
|
+
* Compound sub-components (Toolbar, Header, Footer, etc.) consume this context.
|
|
66
|
+
*/
|
|
67
|
+
export declare function VNInvestChartsProvider({ adapter, symbol, timeframe, locale, messages, theme, panes, drawings, activeTool, storageScopeId, portalRoot, shadowRoot, onLocaleChange, children, }: VNInvestChartsProviderProps): import("react").JSX.Element;
|
|
68
|
+
export { VNInvestChartsConfigContext, VNInvestChartsConfigProvider, type VNInvestChartsConfigContextValue } from "./VNInvestChartsConfigContext";
|
|
69
|
+
export { VNInvestChartsStateContext, VNInvestChartsStateProvider, useVNInvestChartsState, type VNInvestChartsStateContextValue, type PaneState, type DrawingInteraction, type ActiveToolState } from "./VNInvestChartsStateContext";
|
|
70
|
+
export { createHoverEmitter, emitHover, clearHover, useHoverSubscription, useHoverState, type HoverEventPayload, type HoverEmitter, } from "./HoverEmitter";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P1-04: VNInvestChartsStateContext
|
|
3
|
+
*
|
|
4
|
+
* Medium-frequency state context: panes, drawings, activeTool, selectedDrawing.
|
|
5
|
+
* These change on user interactions (add pane, select tool, etc.) but not
|
|
6
|
+
* per-frame like hover coordinates.
|
|
7
|
+
*
|
|
8
|
+
* High-frequency data (mouse X/Y, hoveredDatum) must go through the
|
|
9
|
+
* HoverEmitter (EventTarget ref) — NOT this context — to avoid re-render storms.
|
|
10
|
+
*/
|
|
11
|
+
import { type Dispatch, type ReactNode } from "react";
|
|
12
|
+
import type { PaneDescriptor, SeriesConfig, SeriesTypeId } from "../../lib/core/types/pane-descriptor";
|
|
13
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
14
|
+
import type { UseDrawingInteractionReturn } from "@vninvestcharts/engine-react";
|
|
15
|
+
import { type DynamicPaneAction } from "../../lib/core/hooks/useDynamicPanes";
|
|
16
|
+
export interface PaneState {
|
|
17
|
+
panes: readonly PaneDescriptor[];
|
|
18
|
+
dispatch: Dispatch<DynamicPaneAction>;
|
|
19
|
+
toggleVisible: (id: string) => void;
|
|
20
|
+
addPane: (pane: Omit<PaneDescriptor, "id">) => void;
|
|
21
|
+
removePane: (id: string) => void;
|
|
22
|
+
deletePane: (id: string) => void;
|
|
23
|
+
renamePane: (paneId: string, label: string) => void;
|
|
24
|
+
restorePane: (id: string) => void;
|
|
25
|
+
addSeries: (paneId: string, series: SeriesConfig) => void;
|
|
26
|
+
removeSeries: (paneId: string, seriesType: SeriesTypeId, seriesIndex?: number) => void;
|
|
27
|
+
toggleSeriesVisible: (paneId: string, seriesType: SeriesTypeId, seriesIndex?: number) => void;
|
|
28
|
+
reorderPanes: (fromVisibleIndex: number, toVisibleIndex: number) => void;
|
|
29
|
+
}
|
|
30
|
+
export type DrawingInteraction = UseDrawingInteractionReturn;
|
|
31
|
+
export interface ActiveToolState {
|
|
32
|
+
activeTool: string | undefined;
|
|
33
|
+
setActiveTool: (tool: string | undefined) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface VNInvestChartsStateContextValue {
|
|
36
|
+
paneState: PaneState;
|
|
37
|
+
drawingInteraction: DrawingInteraction;
|
|
38
|
+
activeTool: ActiveToolState;
|
|
39
|
+
}
|
|
40
|
+
export declare const VNInvestChartsStateContext: import("react").Context<VNInvestChartsStateContextValue>;
|
|
41
|
+
export declare function useVNInvestChartsState(): VNInvestChartsStateContextValue;
|
|
42
|
+
export interface VNInvestChartsStateProviderProps {
|
|
43
|
+
initialPanes?: readonly PaneDescriptor[];
|
|
44
|
+
initialDrawings?: readonly DrawingObject[];
|
|
45
|
+
initialActiveTool?: string;
|
|
46
|
+
/** Per-chart storage namespace (multi-chart cell id). Absent = legacy shared key. */
|
|
47
|
+
storageScopeId?: string | null;
|
|
48
|
+
children: ReactNode;
|
|
49
|
+
}
|
|
50
|
+
export declare function VNInvestChartsStateProvider({ initialPanes, initialDrawings, initialActiveTool, storageScopeId, children, }: VNInvestChartsStateProviderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { WidgetLocale, WidgetMessages } from "../i18n/types";
|
|
3
|
+
type TranslationParams = Record<string, string | number | undefined> & {
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
};
|
|
6
|
+
export interface WidgetI18nContextValue {
|
|
7
|
+
locale: WidgetLocale;
|
|
8
|
+
setLocale: (locale: WidgetLocale) => void;
|
|
9
|
+
t: (key: string, params?: TranslationParams) => string;
|
|
10
|
+
}
|
|
11
|
+
export interface WidgetI18nProviderProps {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
locale?: WidgetLocale;
|
|
14
|
+
messages?: Partial<WidgetMessages>;
|
|
15
|
+
onLocaleChange?: (locale: WidgetLocale) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const WidgetI18nContext: import("react").Context<WidgetI18nContextValue>;
|
|
18
|
+
export declare function WidgetI18nProvider({ children, locale, messages, onLocaleChange }: WidgetI18nProviderProps): import("react").JSX.Element;
|
|
19
|
+
export declare function useWidgetI18n(): WidgetI18nContextValue;
|
|
20
|
+
/**
|
|
21
|
+
* S3/BUG-4: safe fallback helper. `t()` returns the raw key when missing
|
|
22
|
+
* (never ""), so `t(key) || fallback` NEVER fires — use this instead.
|
|
23
|
+
*/
|
|
24
|
+
export declare function tOr(t: (key: string) => string, key: string, fallback: string): string;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task M3: WorkspaceLiveTradingContext — shared LIVE broker cho multi-chart.
|
|
3
|
+
*
|
|
4
|
+
* Mirror WorkspaceReplayTradingContext nhưng cho LIVE (không reset theo symbol,
|
|
5
|
+
* namespace riêng cấp workspace). Single-chart không bị ảnh hưởng (dùng optional hook).
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from "react";
|
|
8
|
+
import type { VirtualBrokerEngine } from "../../lib/core/trading/VirtualBrokerEngine";
|
|
9
|
+
import type { MarketDataPort } from "../../lib/core/trading/MarketDataPort";
|
|
10
|
+
import type { WorkspaceLiveLogEntry } from "../hooks/useWorkspaceLiveTrading";
|
|
11
|
+
export interface WorkspaceLiveTradingValue {
|
|
12
|
+
broker: VirtualBrokerEngine;
|
|
13
|
+
port: MarketDataPort;
|
|
14
|
+
log: WorkspaceLiveLogEntry[];
|
|
15
|
+
closePosition: (positionId: string) => boolean;
|
|
16
|
+
reversePosition: (positionId: string) => void;
|
|
17
|
+
cancelOrder: (orderId: string) => boolean;
|
|
18
|
+
reset: () => void;
|
|
19
|
+
brokerFor: (symbol: string) => {
|
|
20
|
+
broker: VirtualBrokerEngine;
|
|
21
|
+
port: MarketDataPort;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const WorkspaceLiveTradingContext: import("react").Context<WorkspaceLiveTradingValue>;
|
|
25
|
+
export declare function WorkspaceLiveTradingProvider({ value, children, }: {
|
|
26
|
+
value: WorkspaceLiveTradingValue;
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export declare function useWorkspaceLiveTradingContext(): WorkspaceLiveTradingValue;
|
|
30
|
+
export declare function useOptionalWorkspaceLiveTrading(): WorkspaceLiveTradingValue | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface PaperVisibilityChart {
|
|
3
|
+
id: string;
|
|
4
|
+
symbol: string;
|
|
5
|
+
}
|
|
6
|
+
export interface WorkspacePaperVisibility {
|
|
7
|
+
master: boolean;
|
|
8
|
+
perChart: Record<string, boolean>;
|
|
9
|
+
charts: PaperVisibilityChart[];
|
|
10
|
+
setMaster: (enabled: boolean) => void;
|
|
11
|
+
setChart: (chartId: string, enabled: boolean) => void;
|
|
12
|
+
clearChart: (chartId: string) => void;
|
|
13
|
+
}
|
|
14
|
+
/** Optional — single-chart (không provider) trả null, giữ hành vi legacy. */
|
|
15
|
+
export declare function useOptionalWorkspacePaperVisibility(): WorkspacePaperVisibility | null;
|
|
16
|
+
export declare function useWorkspacePaperVisibility(options: {
|
|
17
|
+
workspaceId?: string;
|
|
18
|
+
charts: PaperVisibilityChart[];
|
|
19
|
+
}): WorkspacePaperVisibility;
|
|
20
|
+
export declare function WorkspacePaperVisibilityProvider(props: {
|
|
21
|
+
value: WorkspacePaperVisibility;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P2-09: WorkspaceReplayTradingContext
|
|
3
|
+
*
|
|
4
|
+
* Holds a SINGLE shared replay-trading session (ReplayOrderBook + analytics)
|
|
5
|
+
* at the VNInvestMultiCharts (parent) level. Per DECISION-1 / H3 (workspace-level,
|
|
6
|
+
* chốt 2026-07-17): paper trade là 1 session chung cho toàn bộ workspace.
|
|
7
|
+
*
|
|
8
|
+
* Chỉ chart ACTIVE mới feed bars vào shared order book (qua `feedBar`), tránh
|
|
9
|
+
* trộn lẫn bars khi các chart có symbol khác nhau. Mọi chart đọc chung
|
|
10
|
+
* `positions` / `closedTrades` từ singleton này.
|
|
11
|
+
*/
|
|
12
|
+
import type { UseReplayTradingResult } from "../hooks/useReplayTrading";
|
|
13
|
+
export interface WorkspaceReplayTradingValue extends UseReplayTradingResult {
|
|
14
|
+
/** Task 11: broker bên dưới (cho multi-chart panel + sync). Luôn set sau render đầu. */
|
|
15
|
+
broker: import("../../lib/core/trading/VirtualBrokerEngine").VirtualBrokerEngine;
|
|
16
|
+
/** Task 11: ring buffer log fills/closes (cap 200) cho TradingLogTab. */
|
|
17
|
+
log: Array<{
|
|
18
|
+
timestamp: number;
|
|
19
|
+
message: string;
|
|
20
|
+
}>;
|
|
21
|
+
/** Task 11: hủy lệnh chờ theo id. */
|
|
22
|
+
cancelOrder: (orderId: string) => boolean;
|
|
23
|
+
/** Task 11: đóng + mở ngược chiều tại mark hiện tại. */
|
|
24
|
+
reversePosition: (positionId: string) => void;
|
|
25
|
+
/** Active chart gọi mỗi khi currentBar đổi để xử lý fills vào shared order book. symbol = symbol của chart active (dùng để reset khi đổi symbol). Truyền `bars` để process queue đầy đủ khi tua nhanh (F6 fix). */
|
|
26
|
+
feedBar: (bar: import("../../lib/core/replay/replayTradingTypes").ReplayOHLCBar, currentBar: number, timestamp?: number, symbol?: string, bars?: readonly import("../../lib/core/replay/replayTradingTypes").ReplayOHLCBar[]) => void;
|
|
27
|
+
/** Active chart báo cáo replay on/off để singleton reset positions khi tắt hẳn. */
|
|
28
|
+
reportReplayActive: (active: boolean) => void;
|
|
29
|
+
/** Chart active hiện tại có đang replay không (để các chart khác biết có feed hay không). */
|
|
30
|
+
isReplayActive: boolean;
|
|
31
|
+
/** F-11: reset shared order book + analytics khi master chart đổi (không giữ position của master cũ). */
|
|
32
|
+
resetForNewMaster: (masterId: string | null) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare const WorkspaceReplayTradingContext: import("react").Context<WorkspaceReplayTradingValue>;
|
|
35
|
+
export declare function useWorkspaceReplayTrading(): WorkspaceReplayTradingValue;
|
|
36
|
+
export declare function useOptionalWorkspaceReplayTrading(): WorkspaceReplayTradingValue | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { SaaSFeatureFlags, SaaSFeatureContextValue, LicenseDiagnosticInfo } from '../types/saas';
|
|
3
|
+
import type { VNInvestClient } from '../adapters/VNInvestClient';
|
|
4
|
+
export declare const SaaSFeatureContext: React.Context<SaaSFeatureContextValue | null>;
|
|
5
|
+
/**
|
|
6
|
+
* LIC-FIX: chuẩn hóa key khi lưu/đọc mà KHÔNG làm hỏng key ký số `vni1.*`
|
|
7
|
+
* (trước đây prepend `vni_` mù quáng → `vni_vni1.*` → parse fail → FREE vĩnh viễn).
|
|
8
|
+
* Đồng thời tự chữa key đã bị hỏng trước đây. Bare prefix vẫn giữ hành vi cũ.
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizeStoredPat(pat: string): string;
|
|
11
|
+
export interface SaaSFeatureProviderProps {
|
|
12
|
+
tenantPat?: string;
|
|
13
|
+
/** CS-3: host-pinned offline license. License channel only; never shadowed by tenantPat. */
|
|
14
|
+
licenseKey?: string;
|
|
15
|
+
/** CS-6: host observer for licensing state. Silent when unset. See VNInvestChartsProps. */
|
|
16
|
+
onLicenseDiagnostic?: (info: LicenseDiagnosticInfo) => void;
|
|
17
|
+
debugFeatures?: Partial<SaaSFeatureFlags>;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
client?: VNInvestClient;
|
|
20
|
+
/** Override the default ad activation date (ms since epoch). Default: 2027-01-01T00:00:00Z. */
|
|
21
|
+
advActivationDate?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare const SaaSFeatureProvider: React.FC<SaaSFeatureProviderProps>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataEnvelope — lớp chịu trách nhiệm DUY NHẤT cho việc chuẩn hóa dữ liệu backend.
|
|
3
|
+
*
|
|
4
|
+
* Vì sao cần (PLAN_FRONTEND_PROPLUS_TRACKA_2026-09-28 §2.3):
|
|
5
|
+
* Backend `vninvest` hiện trả **hai contract khác nhau cho cùng dữ liệu OHLCV**:
|
|
6
|
+
* - `/core/v1/stock-management/stocks/{s}/bars/` → `{ timestamp: <Unix ms int>, volume: int }`
|
|
7
|
+
* (`stock_mgmt_native_views.py:3665-3685`)
|
|
8
|
+
* - `/core/v1/stock-management/stocks/{s}/chart/` → `{ date: <ISO string>, volume: float }`
|
|
9
|
+
* (`stock_mgmt_native_views.py:943-951`)
|
|
10
|
+
* Và quote trả `price` là **string** (Decimal) ở một nơi, **number** ở nơi khác
|
|
11
|
+
* (`market_serving/native_views.py:54-121`); `change_pct` là number nhưng
|
|
12
|
+
* `price_change_pct` lại là string.
|
|
13
|
+
*
|
|
14
|
+
* Nếu để mỗi consumer tự parse ⇒ mọi thay đổi backend lan khắp widget, và parse sai
|
|
15
|
+
* diễn ra âm thầm (`"0.0" == 0` là `false` trong JS). Lớp này gom hết về một kiểu
|
|
16
|
+
* `CanonicalBar` / `CanonicalQuote`; consumer chỉ nhìn kiểu canonical.
|
|
17
|
+
*
|
|
18
|
+
* Khi backend EP-1 (corporate actions) tới: chỉ cần điền `adjClose` — **không** sửa consumer.
|
|
19
|
+
*
|
|
20
|
+
* Nguyên tắc (AGENTS.md Rule 15 — cấm fake dữ liệu production):
|
|
21
|
+
* - Thiếu dữ liệu ⇒ `null`, **không** dùng `0` (0 là giá/số 0 thật, sẽ vẽ sai).
|
|
22
|
+
* - Không tự bịa giá điều chỉnh cổ tức khi backend chưa cung cấp.
|
|
23
|
+
* - Bar không đọc được timestamp ⇒ loại, không tạo bar rỗng.
|
|
24
|
+
*/
|
|
25
|
+
export type BarSource = "bars" | "chart" | "unknown";
|
|
26
|
+
export interface CanonicalBar {
|
|
27
|
+
/** Unix milliseconds, UTC. Mọi endpoint mới dùng int ms; ISO được parse về ms. */
|
|
28
|
+
timestamp: number;
|
|
29
|
+
open: number | null;
|
|
30
|
+
high: number | null;
|
|
31
|
+
low: number | null;
|
|
32
|
+
close: number | null;
|
|
33
|
+
/** Luôn là number. Backend có thể trả int hoặc float hoặc string — đều ép về number. */
|
|
34
|
+
volume: number;
|
|
35
|
+
/** `null` cho tới khi backend cung cấp corporate actions (EP-1). KHÔNG tự tính. */
|
|
36
|
+
adjClose: number | null;
|
|
37
|
+
adjFactor: number | null;
|
|
38
|
+
/** Bar cuối có thể đang chạy (polling) — renderer được phép vẽ nét đứt. */
|
|
39
|
+
isPartial: boolean;
|
|
40
|
+
source: BarSource;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Ép giá trị bất kỳ về number, trả `null` nếu không hợp lệ.
|
|
44
|
+
* Chấp nhận: number | numeric string (kể cả "1.25e6", "42,5"? no — không đổi dấu phẩy).
|
|
45
|
+
* Từ chối: null, undefined, boolean, object, array, NaN, Infinity, chuỗi rỗng.
|
|
46
|
+
*/
|
|
47
|
+
export declare function toNum(value: unknown): number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Parse timestamp về Unix ms (UTC).
|
|
50
|
+
* Chấp nhận:
|
|
51
|
+
* - number: coi là **giây** nếu |v| < 1e11, **ms** nếu >= 1e11 (heuristic chuẩn).
|
|
52
|
+
* Ranh giới 1e11 ms ≈ 1973-03-03 ⇒ mọi timestamp thị trường thực tế (>1.7e9 giây)
|
|
53
|
+
* nằm an toàn về một phía. Đã khoá bằng test boundary trong `DataEnvelope.test.ts`.
|
|
54
|
+
* - ISO "2026-09-18" ⇒ UTC midnight (deterministic, không lệch timezone máy).
|
|
55
|
+
* - ISO date-time có `Z`/offset ⇒ tôn trọng offset.
|
|
56
|
+
* - ISO date-time không offset ⇒ coi là UTC (KHÔNG dùng local time của client).
|
|
57
|
+
* - Date object ⇒ `.getTime()`.
|
|
58
|
+
* Trả `null` nếu không parse được.
|
|
59
|
+
*/
|
|
60
|
+
export declare function toTimestampMs(value: unknown): number | null;
|
|
61
|
+
/**
|
|
62
|
+
* Chuẩn hóa 1 bar từ **bất kỳ** shape nào của backend.
|
|
63
|
+
* Trả `null` nếu không đọc được timestamp (bar vô dụng) — không tạo bar rỗng.
|
|
64
|
+
*/
|
|
65
|
+
export declare function normalizeBar(raw: unknown): CanonicalBar | null;
|
|
66
|
+
/**
|
|
67
|
+
* Chuẩn hóa mảng bar. Tự bỏ bar hỏng và **giữ nguyên thứ tự** như backend trả về
|
|
68
|
+
* (sắp xếp lại là việc của tầng camera, tránh phá invariant range in-bounds).
|
|
69
|
+
*/
|
|
70
|
+
export declare function normalizeBars(raw: unknown): CanonicalBar[];
|
|
71
|
+
export type MarketStatus = "PRE_OPEN" | "OPEN" | "LUNCH" | "CLOSED" | "HALTED" | "SUSPENDED" | "NOT_TRADED" | "UNKNOWN";
|
|
72
|
+
export interface CanonicalQuote {
|
|
73
|
+
symbol: string;
|
|
74
|
+
price: number | null;
|
|
75
|
+
prevClose: number | null;
|
|
76
|
+
/** `change` và `change_pct` luôn là number hoặc null — không bao giờ string. */
|
|
77
|
+
change: number | null;
|
|
78
|
+
changePct: number | null;
|
|
79
|
+
open: number | null;
|
|
80
|
+
high: number | null;
|
|
81
|
+
low: number | null;
|
|
82
|
+
volume: number;
|
|
83
|
+
turnover: number | null;
|
|
84
|
+
ceiling: number | null;
|
|
85
|
+
floor: number | null;
|
|
86
|
+
marketStatus: MarketStatus;
|
|
87
|
+
/** `stale` là bắt buộc — UI hiện badge dữ liệu cũ (field này đã có sẵn ở backend). */
|
|
88
|
+
stale: boolean;
|
|
89
|
+
source: string | null;
|
|
90
|
+
fetchedAt: number | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Chuẩn hóa 1 quote. Hấp thụ **cả hai** shape backend:
|
|
94
|
+
* - `price` là number (`change_pct: number`)
|
|
95
|
+
* - `price` là string-Decimal (`price_change_pct: string`) — `market_serving/native_views.py:54-121`
|
|
96
|
+
* và bỏ cặp field trùng: `price`/`current_price`, `price_change`/`change_value`.
|
|
97
|
+
*/
|
|
98
|
+
export declare function normalizeQuote(raw: unknown): CanonicalQuote | null;
|
|
99
|
+
/** Chuẩn hóa mảng quote (shape `{ quotes: [...] }` / `{ data: [...] }` hoặc mảng trần). */
|
|
100
|
+
export declare function normalizeQuotes(raw: unknown): CanonicalQuote[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { EngineOverlayInputs } from "@vninvestcharts/engine-core";
|
|
2
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
3
|
+
export declare function createSelectedPriceLabelsInput(drawing: DrawingObject | null, enabled: boolean, fallbackPaneId: string | null): EngineOverlayInputs["selectedPriceLabels"];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { CanonicalBar } from "../data/DataEnvelope";
|
|
2
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
3
|
+
/**
|
|
4
|
+
* W1.4/A5 — CSV export cho bars, chỉ báo và đối tượng vẽ.
|
|
5
|
+
*
|
|
6
|
+
* Đọc từ `CanonicalBar` (W0.3) nên **không phụ thuộc EP backend nào** — chỉ xuất
|
|
7
|
+
* những gì đang có trong bộ nhớ. Người dùng phải được biết điều đó, nên caller
|
|
8
|
+
* gắn badge "Chỉ dữ liệu đang tải" (đã có key `data.exportLoaded.badge`).
|
|
9
|
+
*
|
|
10
|
+
* Ba ràng buộc đã học được từ dữ liệu thật:
|
|
11
|
+
* 1. **UTF-8 BOM**: không có BOM thì Excel trên Windows mở tiếng Việt ra mojibake.
|
|
12
|
+
* 2. **Escape đúng**: giá trị chứa dấu phẩy, xuống dòng, hoặc dấu nháy phải bọc.
|
|
13
|
+
* 3. **Số là số, không phải chuỗi rỗng**: `null` (thiếu dữ liệu) xuất thành ô
|
|
14
|
+
* trống, KHÔNG thành `0` — 0 là giá thật và sẽ làm người dùng tính sai
|
|
15
|
+
* (vi phạm AGENTS.md Rule 15).
|
|
16
|
+
*/
|
|
17
|
+
/** Trần số dòng mỗi file; vượt thì tách nhiều file thay vì làm treo trình duyệt. */
|
|
18
|
+
export declare const CSV_MAX_ROWS = 200000;
|
|
19
|
+
export type CsvDataset = "bars" | "indicators" | "drawings";
|
|
20
|
+
export interface CsvSeriesDescriptor {
|
|
21
|
+
/** Tên cột trong CSV (tiêu đề). */
|
|
22
|
+
column: string;
|
|
23
|
+
/** Giá trị tương ứng với từng bar, cùng độ dài với `bars`. */
|
|
24
|
+
values: readonly (number | null)[];
|
|
25
|
+
}
|
|
26
|
+
export interface BarsCsvOptions {
|
|
27
|
+
symbol: string;
|
|
28
|
+
timeframe: string;
|
|
29
|
+
bars: readonly CanonicalBar[];
|
|
30
|
+
/** Cột chỉ báo thêm vào sau cột OHLCV. */
|
|
31
|
+
series?: readonly CsvSeriesDescriptor[];
|
|
32
|
+
}
|
|
33
|
+
export interface DrawingsCsvOptions {
|
|
34
|
+
drawings: readonly DrawingObject[];
|
|
35
|
+
}
|
|
36
|
+
/** Escape một ô theo RFC 4180. `null`/`undefined` → ô trống (KHÔNG phải "0"). */
|
|
37
|
+
export declare function escapeCsvCell(value: string | number | null | undefined): string;
|
|
38
|
+
export declare function buildBarsCsv(options: BarsCsvOptions): string;
|
|
39
|
+
/** Chia bars thành nhiều file khi vượt trần. */
|
|
40
|
+
export declare function splitBarsForCsv(options: BarsCsvOptions, maxRows?: number): {
|
|
41
|
+
chunkIndex: number;
|
|
42
|
+
totalChunks: number;
|
|
43
|
+
csv: string;
|
|
44
|
+
}[];
|
|
45
|
+
/** Serialize đối tượng vẽ thành JSON gọn, 1 dòng cho mỗi drawing. */
|
|
46
|
+
export declare function buildDrawingsCsv(options: DrawingsCsvOptions): string;
|
|
47
|
+
/** Kích thước file gần đúng, để cảnh báo trước khi tải. */
|
|
48
|
+
export declare function estimateCsvBytes(csv: string): number;
|
|
49
|
+
export interface DownloadResult {
|
|
50
|
+
filename: string;
|
|
51
|
+
rowCount: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Tải CSV xuống máy. Không dùng `window` khi không có (SSR/test) — trả về null
|
|
55
|
+
* thay vì ném, để caller biết mà hiển thị cho người dùng.
|
|
56
|
+
*/
|
|
57
|
+
export declare function downloadCsv(filename: string, csv: string, doc?: Document | null): DownloadResult | null;
|
|
58
|
+
/** Tên file có timestamp để không đè lên nhau. */
|
|
59
|
+
export declare function csvFilename(base: string, ext?: string): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TimeIndexMap } from "@vninvestcharts/engine-core";
|
|
2
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
3
|
+
export declare function reconcileForkDrawingIndexAnchors(drawings: readonly DrawingObject[], timeIndexMap: TimeIndexMap): {
|
|
4
|
+
drawings: readonly DrawingObject[];
|
|
5
|
+
changed: boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import type { DrawingObject, DrawingToolType, Point } from "@vninvestcharts/engine-drawing";
|
|
3
|
+
export declare function isPrimaryPointerPressed(pointerContext: {
|
|
4
|
+
buttons: number;
|
|
5
|
+
}): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Portable cursor type. `CSSProperties["cursor"]` resolves to csstype's
|
|
8
|
+
* `Cursor` interface, which a published .d.ts cannot name (TS2883), so the
|
|
9
|
+
* drawing-hook return type would be unnameable. The values are plain CSS
|
|
10
|
+
* cursor keywords; the `(string & {})` arm keeps editor autocomplete.
|
|
11
|
+
*/
|
|
12
|
+
export type ForkSurfaceCursor = CSSProperties["cursor"] | (string & {});
|
|
13
|
+
export declare const FORK_DRAWING_TOOL_CURSOR_MAP: Partial<Record<DrawingToolType, ForkSurfaceCursor>>;
|
|
14
|
+
export declare function isForkMultiStepTool(toolName: DrawingToolType): toolName is "path" | "polygon" | "polyline" | "triangle" | "channel" | "parallelChannel" | "pitchfork" | "abcdPattern" | "elliottImpulse" | "elliottCorrection" | "elliottTriangle" | "elliottDoubleCombo" | "elliottTripleCombo" | "xabcdPattern" | "cypherPattern" | "headAndShoulders" | "trianglePattern" | "threeDrivesPattern" | "fibChannel" | "trendBasedFibTime" | "fibWedge" | "pitchfan";
|
|
15
|
+
export declare function hasForkDraftProgress(drawing: DrawingObject): boolean;
|
|
16
|
+
export declare function resolveForkMultiStepDraftOnClick(draft: DrawingObject, nextPoint: Point): {
|
|
17
|
+
nextDraft: {
|
|
18
|
+
points: Readonly<{
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
xIndexFloat?: number;
|
|
22
|
+
timeMsHint?: number;
|
|
23
|
+
yPrice?: number;
|
|
24
|
+
}>[];
|
|
25
|
+
updatedAt: number;
|
|
26
|
+
id: string;
|
|
27
|
+
type: DrawingToolType;
|
|
28
|
+
style: import("@vninvestcharts/engine-drawing").DrawingStyle;
|
|
29
|
+
paneId?: string;
|
|
30
|
+
yScaleId?: string;
|
|
31
|
+
text?: string;
|
|
32
|
+
fibLevels?: number[];
|
|
33
|
+
fibLevelConfigs?: import("@vninvestcharts/engine-drawing").FibLevelConfig[];
|
|
34
|
+
label?: string;
|
|
35
|
+
symbol?: string;
|
|
36
|
+
timeframe?: string;
|
|
37
|
+
zIndex?: number;
|
|
38
|
+
clonedFrom?: string;
|
|
39
|
+
groupId?: string;
|
|
40
|
+
riskReward?: {
|
|
41
|
+
entry: number;
|
|
42
|
+
stop: number;
|
|
43
|
+
target: number;
|
|
44
|
+
quantity?: number;
|
|
45
|
+
};
|
|
46
|
+
extendLeft?: boolean;
|
|
47
|
+
extendRight?: boolean;
|
|
48
|
+
locked?: boolean;
|
|
49
|
+
visible?: boolean;
|
|
50
|
+
hidden?: boolean;
|
|
51
|
+
showMeasurement?: boolean;
|
|
52
|
+
alertCondition?: import("@vninvestcharts/engine-drawing").DrawingAlertCondition;
|
|
53
|
+
alertConditions?: import("@vninvestcharts/engine-drawing").DrawingAlertCondition[];
|
|
54
|
+
waveLabels?: string[];
|
|
55
|
+
harmonicRatios?: import("@vninvestcharts/engine-drawing").HarmonicRatioConfig;
|
|
56
|
+
gannSquareSize?: number;
|
|
57
|
+
cycleParams?: import("@vninvestcharts/engine-drawing").CycleParams;
|
|
58
|
+
segmentStyles?: Record<string, Partial<import("@vninvestcharts/engine-drawing").DrawingStyle>>;
|
|
59
|
+
segmentVisible?: Record<string, boolean>;
|
|
60
|
+
visibility?: {
|
|
61
|
+
timeframes?: string[];
|
|
62
|
+
symbols?: string[];
|
|
63
|
+
hidden?: boolean;
|
|
64
|
+
};
|
|
65
|
+
createdAt: number;
|
|
66
|
+
};
|
|
67
|
+
shouldComplete: boolean;
|
|
68
|
+
};
|
|
69
|
+
export declare function isForkSinglePointTool(toolName: DrawingToolType): toolName is "text" | "hLine" | "vLine" | "priceLabel";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeviceProfiles - Device-specific tuning for WebGL freeze/thaw behavior
|
|
3
|
+
* Implements ADR-0011 device-specific recommendations
|
|
4
|
+
*/
|
|
5
|
+
export type DeviceType = 'ios-safari' | 'android-chrome' | 'desktop' | 'unknown';
|
|
6
|
+
export interface DeviceProfileConfig {
|
|
7
|
+
freezeThreshold: number;
|
|
8
|
+
thawThreshold: number;
|
|
9
|
+
debounceMs: number;
|
|
10
|
+
minFreezeDuration: number;
|
|
11
|
+
maxWebGLContexts: number;
|
|
12
|
+
maxHeapBudget: number;
|
|
13
|
+
maxSnapshotWidth: number;
|
|
14
|
+
snapshotQuality: number;
|
|
15
|
+
aggressiveFreeze: boolean;
|
|
16
|
+
preThawOnHover: boolean;
|
|
17
|
+
enableFrameMonitoring: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const DEVICE_PROFILES: Record<DeviceType, DeviceProfileConfig>;
|
|
20
|
+
/**
|
|
21
|
+
* Detect device type from user agent and hardware capabilities
|
|
22
|
+
*/
|
|
23
|
+
export declare function detectDeviceType(): DeviceType;
|
|
24
|
+
/**
|
|
25
|
+
* Get device profile configuration
|
|
26
|
+
*/
|
|
27
|
+
export declare function getDeviceProfile(deviceType?: DeviceType): DeviceProfileConfig;
|
|
28
|
+
/**
|
|
29
|
+
* Get device profile with hardware-based adjustments
|
|
30
|
+
*/
|
|
31
|
+
export declare function getAdjustedDeviceProfile(): DeviceProfileConfig;
|
|
32
|
+
/**
|
|
33
|
+
* Apply device profile to MemoryBudgetManager
|
|
34
|
+
* This should be called during app initialization
|
|
35
|
+
*/
|
|
36
|
+
export declare function applyDeviceProfile(): DeviceProfileConfig;
|
|
37
|
+
/**
|
|
38
|
+
* Hook for React components to get device profile
|
|
39
|
+
*/
|
|
40
|
+
export declare function useDeviceProfile(): DeviceProfileConfig;
|
|
41
|
+
declare const _default: {
|
|
42
|
+
DEVICE_PROFILES: Record<DeviceType, DeviceProfileConfig>;
|
|
43
|
+
detectDeviceType: typeof detectDeviceType;
|
|
44
|
+
getDeviceProfile: typeof getDeviceProfile;
|
|
45
|
+
getAdjustedDeviceProfile: typeof getAdjustedDeviceProfile;
|
|
46
|
+
applyDeviceProfile: typeof applyDeviceProfile;
|
|
47
|
+
useDeviceProfile: typeof useDeviceProfile;
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartHandle } from '@vninvestcharts/engine-react';
|
|
2
|
+
export declare class GridChartRegistry {
|
|
3
|
+
private static instances;
|
|
4
|
+
static register(id: string, handle: ChartHandle): void;
|
|
5
|
+
static unregister(id: string): void;
|
|
6
|
+
static get(id: string): ChartHandle | undefined;
|
|
7
|
+
static getAll(): ChartHandle[];
|
|
8
|
+
static clear(): void;
|
|
9
|
+
}
|