@templmf/temp-solf-lmf 0.0.94 → 0.0.95
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/@antv/algorithm@^0.1.26 +5 -0
- package/@antv/component@2.1.7/es2022/esm/animation.mjs +3 -0
- package/@antv/component@2.1.7/es2022/esm/core.mjs +3 -0
- package/@antv/component@2.1.7/es2022/esm/ui/axis/utils.mjs +3 -0
- package/@antv/component@2.1.7/es2022/esm/util/layout.mjs +3 -0
- package/@antv/component@^2.1.7 +11 -0
- package/@antv/event-emitter@^0.1.3 +3 -0
- package/@antv/g-camera-api@2.0.41/es2022/g-camera-api.mjs +15 -0
- package/@antv/g-canvas@^2.0.48 +6 -0
- package/@antv/g-dom-mutation-observer-api@2.0.38/es2022/g-dom-mutation-observer-api.mjs +15 -0
- package/@antv/g-lite@2.3.2/es2022/g-lite.mjs +22 -0
- package/@antv/g-math@3.0.1/es2022/g-math.mjs +17 -0
- package/@antv/g-plugin-canvas-path-generator@2.1.22/es2022/g-plugin-canvas-path-generator.mjs +16 -0
- package/@antv/g-plugin-canvas-picker@2.1.27/es2022/g-plugin-canvas-picker.mjs +20 -0
- package/@antv/g-plugin-canvas-renderer@2.3.3/es2022/g-plugin-canvas-renderer.mjs +17 -0
- package/@antv/g-plugin-dom-interaction@2.1.27/es2022/g-plugin-dom-interaction.mjs +15 -0
- package/@antv/g-plugin-dragndrop@^2.0.38 +4 -0
- package/@antv/g-plugin-html-renderer@2.1.27/es2022/g-plugin-html-renderer.mjs +15 -0
- package/@antv/g-plugin-image-loader@2.1.26/es2022/g-plugin-image-loader.mjs +19 -0
- package/@antv/g-web-animations-api@2.1.28/es2022/g-web-animations-api.mjs +17 -0
- package/@antv/g@^6.1.11 +6 -0
- package/@antv/g@^6.1.28 +6 -0
- package/@antv/graphlib@^2.0.4 +3 -0
- package/@antv/hierarchy@^0.7.1 +3 -0
- package/@antv/layout@^2.0.0 +2 -0
- package/@antv/scale@^0.4.16 +5 -0
- package/@antv/util@^2.0.13 +3 -0
- package/@antv/util@^3.3.10 +4 -0
- package/@antv/util@^3.3.11 +4 -0
- package/@antv/util@^3.3.5 +4 -0
- package/animate.css@4.1.1/animate.css +4072 -0
- package/echarts@6.0.0/es2022/lib/animation/basicTransition.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/animation/customGraphicKeyframeAnimation.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/animation/customGraphicTransition.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/animation/morphTransitionHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/animation/universalTransition.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/bar/BarSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/bar/BarView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/bar/BaseBarSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/bar/PictorialBarSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/bar/PictorialBarView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/boxplot/BoxplotSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/boxplot/BoxplotView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/boxplot/boxplotLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/boxplot/boxplotTransform.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/boxplot/prepareBoxplotData.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/candlestick/CandlestickSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/candlestick/CandlestickView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/candlestick/candlestickLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/candlestick/candlestickVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/candlestick/preprocessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/chord/ChordEdge.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/chord/ChordSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/chord/ChordView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/custom/CustomView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/custom/customSeriesRegister.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/effectScatter/EffectScatterSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/effectScatter/EffectScatterView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/funnel/FunnelSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/funnel/FunnelView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/funnel/funnelLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/gauge/GaugeSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/gauge/GaugeView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/GraphSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/GraphView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/adjustEdge.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/categoryFilter.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/categoryVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/circularLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/createView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/edgeVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/forceHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/forceLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/graphHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/simpleLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/graph/simpleLayoutHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapLayer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/EffectLine.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/EffectSymbol.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/LargeLineDraw.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/Line.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/LineDraw.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/LinePath.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/Polyline.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/Symbol.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/SymbolDraw.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/createClipPathFromCoordSys.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/createRenderPlanner.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/createSeriesData.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/createSeriesDataSimply.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/enableAriaDecalForTree.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/labelHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/multipleGraphEdgeHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/treeHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/helper/whiskerBoxCommon.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/line/LineSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/line/LineView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/line/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/line/lineAnimationDiff.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/line/poly.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/lines/LinesSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/lines/LinesView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/lines/linesLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/lines/linesVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/map/MapSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/map/MapView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/map/mapDataStatistic.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/map/mapSymbolLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/parallel/ParallelSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/parallel/ParallelView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/parallel/parallelVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/pie/PieSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/pie/PieView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/pie/pieLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/radar/RadarSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/radar/RadarView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/radar/backwardCompat.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/radar/radarLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sankey/SankeySeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sankey/SankeyView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sankey/sankeyLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sankey/sankeyVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/scatter/ScatterSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/scatter/jitterLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstPiece.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/themeRiver/ThemeRiverSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/themeRiver/ThemeRiverView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/themeRiver/themeRiverLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/tree/TreeSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/tree/TreeView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/tree/layoutHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/tree/treeAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/tree/treeVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/treemap/Breadcrumb.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/treemap/TreemapSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/treemap/TreemapView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/treemap/treemapLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/chart/treemap/treemapVisual.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/aria/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/aria/preprocessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/AngleAxisView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/AxisBuilder.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/CartesianAxisView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/ParallelAxisView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/RadiusAxisView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/SingleAxisView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/axisAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/axisBreakHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/axisBreakHelperImpl.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/axisSplitHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/installBreak.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axis/parallelAxisAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/AxisPointerModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/AxisPointerView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/BaseAxisPointer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/CartesianAxisPointer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/PolarAxisPointer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/SingleAxisPointer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/axisTrigger.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/findPointFromSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/globalListener.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/modelHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/axisPointer/viewHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/brush/BrushModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/brush/BrushView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/brush/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/brush/preprocessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/brush/selector.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/brush/visualEncoding.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/calendar/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/DataZoomModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/InsideZoomModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/InsideZoomView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/SliderZoomModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/SliderZoomView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/dataZoomAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/dataZoomProcessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/history.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/installCommon.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/installDataZoomInside.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/installDataZoomSlider.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataZoom/roams.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/dataset/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/geo/GeoView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/geo/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/graphic/GraphicModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/graphic/GraphicView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/graphic/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/grid/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/grid/installSimple.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/BrushTargetManager.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/MapDraw.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/RoamController.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/brushHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/cursorHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/interactionMutex.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/listComponent.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/sliderMove.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/helper/thumbnailBridge.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/LegendModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/LegendView.mjs +4 -0
- package/echarts@6.0.0/es2022/lib/component/legend/ScrollableLegendModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/ScrollableLegendView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/installLegendPlain.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/installLegendScroll.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/legendAction.mjs +4 -0
- package/echarts@6.0.0/es2022/lib/component/legend/legendFilter.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/legend/scrollableLegendAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkAreaModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkAreaView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkLineModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkLineView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkPointModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkPointView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkerModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/MarkerView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/checkMarkerInSeries.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/installMarkArea.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/installMarkLine.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/installMarkPoint.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/marker/markerHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/matrix/MatrixView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/matrix/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/parallel/ParallelView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/parallel/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/polar/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/radar/RadarView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/radar/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/singleAxis/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailBridgeImpl.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/thumbnail/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/SliderTimelineModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/SliderTimelineView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/TimelineAxis.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/TimelineModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/TimelineView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/preprocessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/timeline/timelineAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/title/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/ToolboxModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/ToolboxView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/feature/Brush.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/feature/DataView.mjs +20 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/feature/DataZoom.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/feature/MagicType.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/feature/Restore.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/feature/SaveAsImage.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/featureManager.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/toolbox/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipHTMLContent.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipRichContent.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipView.mjs +5 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/seriesFormatTooltip.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/tooltip/tooltipMarkup.mjs +9 -0
- package/echarts@6.0.0/es2022/lib/component/transform/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/transform/sortTransform.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/ContinuousView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/PiecewiseModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/PiecewiseView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/VisualMapModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/VisualMapView.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/install.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/installCommon.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/installVisualMapContinuous.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/installVisualMapPiecewise.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/preprocessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/visualEncoding.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/component/visualMap/visualMapAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/Axis.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/CoordinateSystem.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/View.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/axisAlignTicks.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/axisCommonTypes.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/axisHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/axisModelCreator.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/axisTickLabelBuilder.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/calendar/CalendarModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/calendar/prepareCustom.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/Axis2D.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/AxisModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/Cartesian.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/Cartesian2D.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/Grid.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/GridModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/cartesianAxisHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/legacyContainLabel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/cartesian/prepareCustom.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/Geo.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/GeoJSONResource.mjs +4 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/GeoModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/GeoSVGResource.mjs +4 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/Region.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/fix/diaoyuIsland.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/fix/nanhai.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/fix/textCoord.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/geoCreator.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/geoSourceManager.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/parseGeoJson.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/geo/prepareCustom.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/matrix/Matrix.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixBodyCorner.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixDim.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/matrix/matrixCoordHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/parallel/AxisModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/parallel/Parallel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/parallel/ParallelModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/parallel/parallelCreator.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/parallel/parallelPreprocessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/AngleAxis.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/AxisModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/Polar.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/PolarModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/RadiusAxis.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/polarCreator.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/polar/prepareCustom.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/radar/Radar.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/radar/RadarModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/scaleRawExtentInfo.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/single/AxisModel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/single/Single.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/single/SingleAxis.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/single/prepareCustom.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/single/singleAxisHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/coord/single/singleCreator.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/CoordinateSystem.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/ExtensionAPI.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/Scheduler.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/echarts.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/impl.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/lifecycle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/locale.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/core/task.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/DataDiffer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/DataStore.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/OrdinalMeta.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/SeriesData.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/SeriesDimensionDefine.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/Source.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/SeriesDataSchema.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/createDimensions.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/dataProvider.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/dataStackHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/dataValueHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/dimensionHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/sourceHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/sourceManager.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/data/helper/transform.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api/format.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api/graphic.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api/number.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api/time.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api/util.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/export/api.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/i18n/langEN.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/i18n/langZH.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/label/LabelManager.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/label/installLabelLayout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/label/labelGuideHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/label/labelLayoutHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/label/labelStyle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/label/sectorLabel.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/layout/barGrid.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/layout/barPolar.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/layout/points.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/legacy/dataSelectAction.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/loading/default.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/Component.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/Global.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/Model.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/OptionManager.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/Series.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/globalDefault.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/internalComponentCreator.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/areaStyle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/dataFormat.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/itemStyle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/lineStyle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/makeStyleMapper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/palette.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/mixin/textStyle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/model/referHelper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/preprocessor/backwardCompat.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/preprocessor/helper/compatStyle.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/processor/dataFilter.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/processor/dataSample.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/processor/negativeDataFilter.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/renderer/installCanvasRenderer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/renderer/installSVGRenderer.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/Log.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/Ordinal.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/Scale.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/Time.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/break.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/breakImpl.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/scale/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/theme/dark.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/ECEventProcessor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/animation.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/clazz.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/component.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/decal.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/event.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/graphic.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/jitter.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/layout.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/model.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/number.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/states.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/styleCompat.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/symbol.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/time.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/types.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/util/vendor.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/view/Chart.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/view/Component.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/VisualMapping.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/aria.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/decal.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/helper.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/style.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/tokens.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/visualDefault.mjs +3 -0
- package/echarts@6.0.0/es2022/lib/visual/visualSolution.mjs +3 -0
- package/eventemitter3@^5.0.1 +3 -0
- package/gl-matrix@^3.3.0 +2 -0
- package/gl-matrix@^3.4.3 +2 -0
- package/package.json +1 -1
- package/zrender@6.0.0/es2022/lib/Element.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/Handler.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/Storage.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/animation/Animation.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/animation/Animator.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/animation/cubicEasing.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/animation/easing.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/animation/requestAnimationFrame.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/canvas/dashStyle.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/canvas/graphic.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/contain/line.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/contain/polygon.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/contain/quadratic.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/contain/text.mjs +4 -0
- package/zrender@6.0.0/es2022/lib/contain/util.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/contain/windingLine.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/BoundingRect.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/Eventful.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/GestureMgr.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/LRU.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/PathProxy.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/Point.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/Transformable.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/WeakMap.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/bbox.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/curve.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/dom.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/env.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/event.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/fourPointsTransform.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/matrix.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/platform.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/timsort.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/util.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/core/vector.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/dom/HandlerProxy.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/CompoundPath.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/Displayable.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/Gradient.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/Group.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/Image.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/IncrementalDisplayable.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/LinearGradient.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/Path.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/RadialGradient.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/constants.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/helper/image.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/helper/poly.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/helper/roundRect.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/helper/roundSector.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/helper/smoothBezier.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/helper/subPixelOptimize.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Arc.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Circle.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Ellipse.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Line.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Polygon.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Polyline.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Rect.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Ring.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/graphic/shape/Sector.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/mixin/Draggable.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/Painter.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/SVGPathRebuilder.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/core.mjs +5 -0
- package/zrender@6.0.0/es2022/lib/svg/cssAnimation.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/cssClassId.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/cssEmphasis.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/domapi.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/graphic.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/helper.mjs +4 -0
- package/zrender@6.0.0/es2022/lib/svg/mapStyleToAttrs.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/svg/patch.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/color.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/convertPath.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/dividePath.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/morphPath.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/parseSVG.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/parseXML.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/tool/path.mjs +3 -0
- package/zrender@6.0.0/es2022/lib/zrender.mjs +16 -0
- package/@antv/g6 +0 -13
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-math@3.0.1 */
|
|
2
|
+
function z(r){if(Array.isArray(r))return r}function H(r,a){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,o,i,u=[],v=!0,f=!1;try{if(o=(t=t.call(r)).next,a===0){if(Object(t)!==t)return;v=!1}else for(;!(v=(e=o.call(t)).done)&&(u.push(e.value),u.length!==a);v=!0);}catch(c){f=!0,n=c}finally{try{if(!v&&t.return!=null&&(i=t.return(),Object(i)!==i))return}finally{if(f)throw n}}return u}}function q(r,a){(a==null||a>r.length)&&(a=r.length);for(var t=0,e=Array(a);t<a;t++)e[t]=r[t];return e}function E(r,a){if(r){if(typeof r=="string")return q(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(r,a):void 0}}function W(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(r,a){return z(r)||H(r,a)||E(r,a)||W()}function Q(r){if(Array.isArray(r))return q(r)}function U(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function _(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(r){return Q(r)||U(r)||E(r)||_()}import{isNumberEqual as B}from"/@antv/util@^3.3.5?target=es2022";import{vec2 as Y}from"/gl-matrix@^3.4.3?target=es2022";function d(r,a,t,e){var n=r-t,o=a-e;return Math.sqrt(n*n+o*o)}function w(r,a){var t=Math.min.apply(Math,m(r)),e=Math.min.apply(Math,m(a)),n=Math.max.apply(Math,m(r)),o=Math.max.apply(Math,m(a));return{x:t,y:e,width:n-t,height:o-e}}function C(r){return(r+Math.PI*2)%(Math.PI*2)}function F(r,a){var t=Math.abs(r);return a>0?t:t*-1}function ur(r,a,t,e,n,o){var i=t,u=e;if(i===0||u===0)return{x:r,y:a};for(var v=n-r,f=o-a,c=Math.abs(v),s=Math.abs(f),h=i*i,l=u*u,p=Math.PI/4,M=0,g=0,$=0;$<4;$++){M=i*Math.cos(p),g=u*Math.sin(p);var b=(h-l)*Math.pow(Math.cos(p),3)/i,P=(l-h)*Math.pow(Math.sin(p),3)/u,y=M-b,L=g-P,I=c-b,S=s-P,O=Math.hypot(L,y),er=Math.hypot(S,I),or=O*Math.asin((y*S-L*I)/(O*er)),ir=or/Math.sqrt(h+l-M*M-g*g);p+=ir,p=Math.min(Math.PI/2,Math.max(0,p))}return{x:r+F(M,v),y:a+F(g,f)}}function vr(r,a,t,e,n,o,i,u){return-1*t*Math.cos(n)*Math.sin(u)-e*Math.sin(n)*Math.cos(u)}function fr(r,a,t,e,n,o,i,u){return-1*t*Math.sin(n)*Math.sin(u)+e*Math.cos(n)*Math.cos(u)}function cr(r,a,t){return Math.atan(-a/r*Math.tan(t))}function sr(r,a,t){return Math.atan(a/(r*Math.tan(t)))}function hr(r,a,t,e,n,o){return t*Math.cos(n)*Math.cos(o)-e*Math.sin(n)*Math.sin(o)+r}function lr(r,a,t,e,n,o){return t*Math.sin(n)*Math.cos(o)+e*Math.cos(n)*Math.sin(o)+a}function pr(r,a,t,e){var n=Math.atan2(e*r,t*a);return(n+Math.PI*2)%(Math.PI*2)}function G(r,a,t){return{x:r*Math.cos(t),y:a*Math.sin(t)}}function J(r,a,t){var e=Math.cos(t),n=Math.sin(t);return[r*e-a*n,r*n+a*e]}function Kr(r,a,t,e,n,o,i){for(var u=cr(t,e,n),v=1/0,f=-1/0,c=[o,i],s=-Math.PI*2;s<=Math.PI*2;s+=Math.PI){var h=u+s;o<i?o<h&&h<i&&c.push(h):i<h&&h<o&&c.push(h)}for(var l=0;l<c.length;l++){var p=hr(r,a,t,e,n,c[l]);p<v&&(v=p),p>f&&(f=p)}for(var M=sr(t,e,n),g=1/0,$=-1/0,b=[o,i],P=-Math.PI*2;P<=Math.PI*2;P+=Math.PI){var y=M+P;o<i?o<y&&y<i&&b.push(y):i<y&&y<o&&b.push(y)}for(var L=0;L<b.length;L++){var I=lr(r,a,t,e,n,b[L]);I<g&&(g=I),I>$&&($=I)}return{x:v,y:g,width:f-v,height:$-g}}function Zr(r,a,t,e,n,o,i,u,v){var f=J(u-r,v-a,-n),c=V(f,2),s=c[0],h=c[1],l=ur(0,0,t,e,s,h),p=pr(t,e,l.x,l.y);p<o?l=G(t,e,o):p>i&&(l=G(t,e,i));var M=J(l.x,l.y,n);return{x:M[0]+r,y:M[1]+a}}function kr(r,a,t,e,n,o,i,u){var v=(i-o)*u+o,f=vr(r,a,t,e,n,o,i,v),c=fr(r,a,t,e,n,o,i,v);return C(Math.atan2(c,f))}var mr=1e-4;function R(r,a,t,e,n,o){var i=-1,u=1/0,v=[t,e],f=20;o&&o>200&&(f=o/10);for(var c=1/f,s=c/10,h=0;h<=f;h++){var l=h*c,p=[n.apply(void 0,m(r.concat([l]))),n.apply(void 0,m(a.concat([l])))],M=d(v[0],v[1],p[0],p[1]);M<u&&(i=l,u=M)}if(i===0)return{x:r[0],y:a[0]};if(i===1){var g=r.length;return{x:r[g-1],y:a[g-1]}}u=1/0;for(var $=0;$<32&&!(s<mr);$++){var b=i-s,P=i+s,y=[n.apply(void 0,m(r.concat([b]))),n.apply(void 0,m(a.concat([b])))],L=d(v[0],v[1],y[0],y[1]);if(b>=0&&L<u)i=b,u=L;else{var I=[n.apply(void 0,m(r.concat([P]))),n.apply(void 0,m(a.concat([P])))],S=d(v[0],v[1],I[0],I[1]);P<=1&&S<u?(i=P,u=S):s*=.5}}return{x:n.apply(void 0,m(r.concat([i]))),y:n.apply(void 0,m(a.concat([i])))}}function Mr(r,a){for(var t=0,e=r.length,n=0;n<e;n++){var o=r[n],i=a[n],u=r[(n+1)%e],v=a[(n+1)%e];t+=d(o,i,u,v)}return t/2}function Cr(r,a,t,e){return w([r,t],[a,e])}function Rr(r,a,t,e){return d(r,a,t,e)}function T(r,a,t,e,n){return{x:(1-n)*r+n*t,y:(1-n)*a+n*e}}function dr(r,a,t,e,n,o){var i=(t-r)*(n-r)+(e-a)*(o-a);if(i<0)return d(r,a,n,o);var u=(t-r)*(t-r)+(e-a)*(e-a);return i>u?d(t,e,n,o):gr(r,a,t,e,n,o)}function gr(r,a,t,e,n,o){var i=[t-r,e-a];if(Y.exactEquals(i,[0,0]))return Math.sqrt((n-r)*(n-r)+(o-a)*(o-a));var u=[-i[1],i[0]];Y.normalize(u,u);var v=[n-r,o-a];return Math.abs(Y.dot(v,u))}function xr(r,a,t,e){return Math.atan2(e-a,t-r)}function A(r,a,t,e,n){var o=1-n;return o*o*o*r+3*a*n*o*o+3*t*n*n*o+e*n*n*n}function K(r,a,t,e,n){var o=1-n;return 3*(o*o*(a-r)+2*o*n*(t-a)+n*n*(e-t))}function Z(r,a,t,e){var n=-3*r+9*a-9*t+3*e,o=6*r-12*a+6*t,i=3*a-3*r,u=[],v,f,c;if(B(n,0))B(o,0)||(v=-i/o,v>=0&&v<=1&&u.push(v));else{var s=o*o-4*n*i;B(s,0)?u.push(-o/(2*n)):s>0&&(c=Math.sqrt(s),v=(-o+c)/(2*n),f=(-o-c)/(2*n),v>=0&&v<=1&&u.push(v),f>=0&&f<=1&&u.push(f))}return u}function br(r,a,t,e,n,o,i,u,v){var f=A(r,t,n,i,v),c=A(a,e,o,u,v),s=T(r,a,t,e,v),h=T(t,e,n,o,v),l=T(n,o,i,u,v),p=T(s.x,s.y,h.x,h.y,v),M=T(h.x,h.y,l.x,l.y,v);return[[r,a,s.x,s.y,p.x,p.y,f,c],[f,c,M.x,M.y,l.x,l.y,i,u]]}function N(r,a,t,e,n,o,i,u,v){if(v===0)return Mr([r,t,n,i],[a,e,o,u]);var f=br(r,a,t,e,n,o,i,u,.5),c=[].concat(m(f[0]),[v-1]),s=[].concat(m(f[1]),[v-1]);return N.apply(void 0,m(c))+N.apply(void 0,m(s))}function ra(r,a,t,e,n,o,i,u){for(var v=[r,i],f=[a,u],c=Z(r,t,n,i),s=Z(a,e,o,u),h=0;h<c.length;h++)v.push(A(r,t,n,i,c[h]));for(var l=0;l<s.length;l++)f.push(A(a,e,o,u,s[l]));return w(v,f)}function aa(r,a,t,e,n,o,i,u){return N(r,a,t,e,n,o,i,u,3)}function yr(r,a,t,e,n,o,i,u,v,f,c){return R([r,t,n,i],[a,e,o,u],v,f,A,c)}function ta(r,a,t,e,n,o,i,u,v,f,c){var s=yr(r,a,t,e,n,o,i,u,v,f,c);return d(s.x,s.y,v,f)}function na(r,a,t,e,n,o,i,u,v){return{x:A(r,t,n,i,v),y:A(a,e,o,u,v)}}function ea(r,a,t,e,n,o,i,u,v){var f=K(r,t,n,i,v),c=K(a,e,o,u,v);return C(Math.atan2(c,f))}function x(r){for(var a=0,t=[],e=0;e<r.length-1;e++){var n=r[e],o=r[e+1],i=d(n[0],n[1],o[0],o[1]),u={from:n,to:o,length:i};t.push(u),a+=i}return{segments:t,totalLength:a}}function rr(r){if(r.length<2)return 0;for(var a=0,t=0;t<r.length-1;t++){var e=r[t],n=r[t+1];a+=d(e[0],e[1],n[0],n[1])}return a}function ar(r,a){if(a>1||a<0||r.length<2)return null;var t=x(r),e=t.segments,n=t.totalLength;if(n===0)return{x:r[0][0],y:r[0][1]};for(var o=0,i=null,u=0;u<e.length;u++){var v=e[u],f=v.from,c=v.to,s=v.length/n;if(a>=o&&a<=o+s){var h=(a-o)/s;i=T(f[0],f[1],c[0],c[1],h);break}o+=s}return i}function tr(r,a){if(a>1||a<0||r.length<2)return 0;for(var t=x(r),e=t.segments,n=t.totalLength,o=0,i=0,u=0;u<e.length;u++){var v=e[u],f=v.from,c=v.to,s=v.length/n;if(a>=o&&a<=o+s){i=Math.atan2(c[1]-f[1],c[0]-f[0]);break}o+=s}return i}function nr(r,a,t){for(var e=1/0,n=0;n<r.length-1;n++){var o=r[n],i=r[n+1],u=dr(o[0],o[1],i[0],i[1],a,t);u<e&&(e=u)}return e}function Pr(r){for(var a=[],t=[],e=0;e<r.length;e++){var n=r[e];a.push(n[0]),t.push(n[1])}return w(a,t)}function oa(r){return rr(r)}function ia(r,a){return ar(r,a)}function ua(r,a,t){return nr(r,a,t)}function va(r,a){return tr(r,a)}function X(r){var a=r.slice(0);return r.length&&a.push(r[0]),a}function fa(r){return Pr(r)}function ca(r){return rr(X(r))}function sa(r,a){return ar(X(r),a)}function ha(r,a,t){return nr(X(r),a,t)}function la(r,a){return tr(X(r),a)}function D(r,a,t,e){var n=1-e;return n*n*r+2*e*n*a+e*e*t}function k(r,a,t){var e=r+t-2*a;if(B(e,0))return[.5];var n=(r-a)/e;return n<=1&&n>=0?[n]:[]}function Ir(r,a,t,e,n,o,i){var u=D(r,t,n,i),v=D(a,e,o,i),f=T(r,a,t,e,i),c=T(t,e,n,o,i);return[[r,a,f.x,f.y,u,v],[u,v,c.x,c.y,n,o]]}function j(r,a,t,e,n,o,i){if(i===0)return(d(r,a,t,e)+d(t,e,n,o)+d(r,a,n,o))/2;var u=Ir(r,a,t,e,n,o,.5),v=u[0],f=u[1];return v.push(i-1),f.push(i-1),j.apply(void 0,m(v))+j.apply(void 0,m(f))}function pa(r,a,t,e,n,o){var i=k(r,t,n)[0],u=k(a,e,o)[0],v=[r,n],f=[a,o];return i!==void 0&&v.push(D(r,t,n,i)),u!==void 0&&f.push(D(a,e,o,u)),w(v,f)}function ma(r,a,t,e,n,o){return j(r,a,t,e,n,o,3)}function $r(r,a,t,e,n,o,i,u){return R([r,t,n],[a,e,o],i,u,D)}function Ma(r,a,t,e,n,o,i,u){var v=$r(r,a,t,e,n,o,i,u);return d(v.x,v.y,i,u)}export{Kr as arcBox,Zr as arcNearestPoint,kr as arcTangentAngle,ra as cubicBox,aa as cubicLength,yr as cubicNearestPoint,na as cubicPointAt,ta as cubicPointDistance,ea as cubicTangentAngle,d as distance,Cr as lineBox,Rr as lineLength,T as linePointAt,dr as linePointDistance,gr as linePointToLine,xr as lineTangentAngle,fa as polygonBox,ca as polygonLength,sa as polygonPointAt,ha as polygonPointDistance,la as polygonTangentAngle,Pr as polylineBox,oa as polylineLength,ia as polylinePointAt,ua as polylinePointDistance,va as polylineTangentAngle,pa as quadBox,ma as quadLength,$r as quadNearestPoint,Ma as quadPointDistance};
|
|
5
|
+
/*! Bundled license information:
|
|
6
|
+
|
|
7
|
+
@antv/g-math/dist/index.esm.js:
|
|
8
|
+
(*!
|
|
9
|
+
* @antv/g-math
|
|
10
|
+
* @description Geometry util
|
|
11
|
+
* @version 3.0.1
|
|
12
|
+
* @date 5/9/2025, 8:18:51 AM
|
|
13
|
+
* @author AntVis
|
|
14
|
+
* @docs https://g.antv.antgroup.com/
|
|
15
|
+
*)
|
|
16
|
+
*/
|
|
17
|
+
//# sourceMappingURL=g-math.mjs.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-plugin-canvas-path-generator@2.1.22 */
|
|
2
|
+
function _(r){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(r)}function X(r,t){if(_(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var a=e.call(r,t||"default");if(_(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function L(r){var t=X(r,"string");return _(t)=="symbol"?t:t+""}function P(r,t,e){return(t=L(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function rr(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(r,t){for(var e=0;e<t.length;e++){var a=t[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,L(a.key),a)}}function er(r,t,e){return t&&tr(r.prototype,t),e&&tr(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function g(r){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(r)}function K(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K=function(){return!!r})()}function ar(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function or(r,t){if(t&&(_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ar(r)}function nr(r,t,e){return t=g(t),or(r,K()?Reflect.construct(t,e||[],g(r).constructor):t.apply(r,e))}function S(r,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},S(r,t)}function fr(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&S(r,t)}import{isDisplayObject as I,Shape as T,AbstractRendererPlugin as br}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";function ir(r){if(Array.isArray(r))return r}function ur(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var a,i,n,o,f=[],m=!0,c=!1;try{if(n=(e=e.call(r)).next,t===0){if(Object(e)!==e)return;m=!1}else for(;!(m=(a=n.call(e)).done)&&(f.push(a.value),f.length!==t);m=!0);}catch(h){c=!0,i=h}finally{try{if(!m&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw i}}return f}}function B(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,a=Array(t);e<t;e++)a[e]=r[e];return a}function lr(r,t){if(r){if(typeof r=="string")return B(r,t);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?B(r,t):void 0}}function sr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(r,t){return ir(r)||ur(r,t)||lr(r,t)||sr()}import{clamp as Or}from"/@antv/util@^3.3.5?target=es2022";function Pr(r,t){var e=t.cx,a=e===void 0?0:e,i=t.cy,n=i===void 0?0:i,o=t.r;r.arc(a,n,o,0,Math.PI*2,!1)}function Mr(r,t){var e=t.cx,a=e===void 0?0:e,i=t.cy,n=i===void 0?0:i,o=t.rx,f=t.ry;if(r.ellipse)r.ellipse(a,n,o,f,0,0,Math.PI*2,!1);else{var m=o>f?o:f,c=o>f?1:o/f,h=o>f?f/o:1;r.save(),r.scale(c,h),r.arc(a,n,m,0,Math.PI*2)}}function kr(r,t){var e=t.x1,a=t.y1,i=t.x2,n=t.y2,o=t.markerStart,f=t.markerEnd,m=t.markerStartOffset,c=t.markerEndOffset,h=0,M=0,l=0,u=0,v=0,d,s;o&&I(o)&&m&&(d=i-e,s=n-a,v=Math.atan2(s,d),h=Math.cos(v)*(m||0),M=Math.sin(v)*(m||0)),f&&I(f)&&c&&(d=e-i,s=a-n,v=Math.atan2(s,d),l=Math.cos(v)*(c||0),u=Math.sin(v)*(c||0)),r.moveTo(e+h,a+M),r.lineTo(i+l,n+u)}function Tr(r,t){var e=t.markerStart,a=t.markerEnd,i=t.markerStartOffset,n=t.markerEndOffset,o=t.d,f=o.absolutePath,m=o.segments,c=0,h=0,M=0,l=0,u=0,v,d;if(e&&I(e)&&i){var s=e.parentNode.getStartTangent(),y=R(s,2),p=y[0],O=y[1];v=p[0]-O[0],d=p[1]-O[1],u=Math.atan2(d,v),c=Math.cos(u)*(i||0),h=Math.sin(u)*(i||0)}if(a&&I(a)&&n){var k=a.parentNode.getEndTangent(),C=R(k,2),D=C[0],F=C[1];v=D[0]-F[0],d=D[1]-F[1],u=Math.atan2(d,v),M=Math.cos(u)*(n||0),l=Math.sin(u)*(n||0)}for(var w=0;w<f.length;w++){var b=f[w],cr=b[0],$=f[w+1],vr=w===0&&(c!==0||h!==0),U=(w===f.length-1||$&&($[0]==="M"||$[0]==="Z"))&&M!==0&&l!==0,hr=vr?[c,h]:[0,0],W=R(hr,2),mr=W[0],yr=W[1],pr=U?[M,l]:[0,0],Z=R(pr,2),N=Z[0],G=Z[1];switch(cr){case"M":r.moveTo(b[1]+mr,b[2]+yr);break;case"L":r.lineTo(b[1]+N,b[2]+G);break;case"Q":r.quadraticCurveTo(b[1],b[2],b[3]+N,b[4]+G);break;case"C":r.bezierCurveTo(b[1],b[2],b[3],b[4],b[5]+N,b[6]+G);break;case"A":{var E=m[w].arcParams,x=E.cx,H=E.cy,A=E.rx,j=E.ry,q=E.startAngle,Q=E.endAngle,z=E.xRotation,J=E.sweepFlag;if(r.ellipse)r.ellipse(x,H,A,j,z,q,Q,!!(1-J));else{var dr=A>j?A:j,V=A>j?1:A/j,Y=A>j?j/A:1;r.translate(x,H),r.rotate(z),r.scale(V,Y),r.arc(0,0,dr,q,Q,!!(1-J)),r.scale(1/V,1/Y),r.rotate(-z),r.translate(-x,-H)}U&&r.lineTo(b[6]+M,b[7]+l);break}case"Z":r.closePath();break}}}function _r(r,t){var e=t.markerStart,a=t.markerEnd,i=t.markerStartOffset,n=t.markerEndOffset,o=t.points.points,f=o.length,m=o[0][0],c=o[0][1],h=o[f-1][0],M=o[f-1][1],l=0,u=0,v=0,d=0,s=0,y,p;e&&I(e)&&i&&(y=o[1][0]-o[0][0],p=o[1][1]-o[0][1],s=Math.atan2(p,y),l=Math.cos(s)*(i||0),u=Math.sin(s)*(i||0)),a&&I(a)&&n&&(y=o[f-1][0]-o[0][0],p=o[f-1][1]-o[0][1],s=Math.atan2(p,y),v=Math.cos(s)*(n||0),d=Math.sin(s)*(n||0)),r.moveTo(m+(l||v),c+(u||d));for(var O=1;O<f-1;O++){var k=o[O];r.lineTo(k[0],k[1])}r.lineTo(h,M)}function Er(r,t){var e=t.markerStart,a=t.markerEnd,i=t.markerStartOffset,n=t.markerEndOffset,o=t.points.points,f=o.length,m=o[0][0],c=o[0][1],h=o[f-1][0],M=o[f-1][1],l=0,u=0,v=0,d=0,s=0,y,p;e&&I(e)&&i&&(y=o[1][0]-o[0][0],p=o[1][1]-o[0][1],s=Math.atan2(p,y),l=Math.cos(s)*(i||0),u=Math.sin(s)*(i||0)),a&&I(a)&&n&&(y=o[f-2][0]-o[f-1][0],p=o[f-2][1]-o[f-1][1],s=Math.atan2(p,y),v=Math.cos(s)*(n||0),d=Math.sin(s)*(n||0)),r.moveTo(m+l,c+u);for(var O=1;O<f-1;O++){var k=o[O];r.lineTo(k[0],k[1])}r.lineTo(h+v,M+d)}function Ir(r,t){var e=t.x,a=e===void 0?0:e,i=t.y,n=i===void 0?0:i,o=t.radius,f=t.width,m=t.height,c=f,h=m,M=o&&o.some(function(C){return C!==0});if(!M)r.rect(a,n,c,h);else{var l=f>0?1:-1,u=m>0?1:-1,v=l+u===0,d=o.map(function(C){return Or(C,0,Math.min(Math.abs(c)/2,Math.abs(h)/2))}),s=R(d,4),y=s[0],p=s[1],O=s[2],k=s[3];r.moveTo(l*y+a,n),r.lineTo(c-l*p+a,n),p!==0&&r.arc(c-l*p+a,u*p+n,p,-u*Math.PI/2,l>0?0:Math.PI,v),r.lineTo(c+a,h-u*O+n),O!==0&&r.arc(c-l*O+a,h-u*O+n,O,l>0?0:Math.PI,u>0?Math.PI/2:1.5*Math.PI,v),r.lineTo(l*k+a,h+n),k!==0&&r.arc(l*k+a,h-u*k+n,k,u>0?Math.PI/2:-Math.PI/2,l>0?Math.PI:0,v),r.lineTo(a,u*y+n),y!==0&&r.arc(l*y+a,u*y+n,y,l>0?Math.PI:0,u>0?Math.PI*1.5:Math.PI/2,v)}}var pt=function(r){function t(){var e;rr(this,t);for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return e=nr(this,t,[].concat(i)),e.name="canvas-path-generator",e}return fr(t,r),er(t,[{key:"init",value:function(){var a,i=(a={},P(P(P(P(P(P(P(P(P(P(a,T.CIRCLE,Pr),T.ELLIPSE,Mr),T.RECT,Ir),T.LINE,kr),T.POLYLINE,Er),T.POLYGON,_r),T.PATH,Tr),T.TEXT,void 0),T.GROUP,void 0),T.IMAGE,void 0),P(P(P(a,T.HTML,void 0),T.MESH,void 0),T.FRAGMENT,void 0));this.context.pathGeneratorFactory=i}},{key:"destroy",value:function(){delete this.context.pathGeneratorFactory}}])}(br);export{pt as Plugin};
|
|
4
|
+
/*! Bundled license information:
|
|
5
|
+
|
|
6
|
+
@antv/g-plugin-canvas-path-generator/dist/index.esm.js:
|
|
7
|
+
(*!
|
|
8
|
+
* @antv/g-plugin-canvas-path-generator
|
|
9
|
+
* @description A G plugin of path generator with Canvas2D API
|
|
10
|
+
* @version 2.1.22
|
|
11
|
+
* @date 7/30/2025, 1:35:25 PM
|
|
12
|
+
* @author AntVis
|
|
13
|
+
* @docs https://g.antv.antgroup.com/
|
|
14
|
+
*)
|
|
15
|
+
*/
|
|
16
|
+
//# sourceMappingURL=g-plugin-canvas-path-generator.mjs.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-plugin-canvas-picker@2.1.27 */
|
|
2
|
+
function C(e){"@babel/helpers - typeof";return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},C(e)}function cr(e,r){if(C(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(C(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Q(e){var r=cr(e,"string");return C(r)=="symbol"?r:r+""}function w(e,r,t){return(r=Q(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function tr(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function sr(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Q(n.key),n)}}function nr(e,r,t){return r&&sr(e.prototype,r),t&&sr(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},K(e)}function or(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(or=function(){return!!e})()}function lr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vr(e,r){if(r&&(C(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lr(e)}function dr(e,r,t){return r=K(r),vr(e,or()?Reflect.construct(r,t||[],K(e).constructor):r.apply(e,t))}function Z(e,r){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Z(e,r)}function pr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Z(e,r)}import{findClosestClipPathTarget as Er,Point as Lr,isFillOrStrokeAffected as N,getOrCalculatePathTotalLength as $r,Shape as F,AbstractRendererPlugin as Cr}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";function ir(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function J(e,r){if(e){if(typeof e=="string")return ir(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ir(e,r):void 0}}function yr(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=J(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,f=function(){};return{s:f,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return o=c.done,c},e:function(c){i=!0,a=c},f:function(){try{o||t.return==null||t.return()}finally{if(i)throw a}}}}function q(e,r){this.v=e,this.k=r}function k(e,r,t,n){var f=Object.defineProperty;try{f({},"",{})}catch{f=0}k=function(o,i,u,c){function s(l,v){k(o,l,function(d){return this._invoke(l,v,d)})}i?f?f(o,i,{value:u,enumerable:!c,configurable:!c,writable:!c}):o[i]=u:(s("next",0),s("throw",1),s("return",2))},k(e,r,t,n)}function V(){var e,r,t=typeof Symbol=="function"?Symbol:{},n=t.iterator||"@@iterator",f=t.toStringTag||"@@toStringTag";function a(d,h,y,b){var p=h&&h.prototype instanceof i?h:i,g=Object.create(p.prototype);return k(g,"_invoke",function(x,j,T){var _,m,P,S=0,E=T||[],L=!1,O={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(A,M){return _=A,m=0,P=e,O.n=M,o}};function H($,A){for(m=$,P=A,r=0;!L&&S&&!M&&r<E.length;r++){var M,I=E[r],er=O.p,U=I[2];$>3?(M=U===A)&&(P=I[(m=I[4])?5:(m=3,3)],I[4]=I[5]=e):I[0]<=er&&((M=$<2&&er<I[1])?(m=0,O.v=A,O.n=I[1]):er<U&&(M=$<3||I[0]>A||A>U)&&(I[4]=$,I[5]=A,O.n=U,m=0))}if(M||$>1)return o;throw L=!0,A}return function($,A,M){if(S>1)throw TypeError("Generator is already running");for(L&&A===1&&H(A,M),m=A,P=M;(r=m<2?e:P)||!L;){_||(m?m<3?(m>1&&(O.n=-1),H(m,P)):O.n=P:O.v=P);try{if(S=2,_){if(m||($="next"),r=_[$]){if(!(r=r.call(_,P)))throw TypeError("iterator result is not an object");if(!r.done)return r;P=r.value,m<2&&(m=0)}else m===1&&(r=_.return)&&r.call(_),m<2&&(P=TypeError("The iterator does not provide a '"+$+"' method"),m=1);_=e}else if((r=(L=O.n<0)?P:x.call(j,O))!==o)break}catch(I){_=e,m=1,P=I}finally{S=1}}return{value:r,done:L}}}(d,y,b),!0),g}var o={};function i(){}function u(){}function c(){}r=Object.getPrototypeOf;var s=[][n]?r(r([][n]())):(k(r={},n,function(){return this}),r),l=c.prototype=i.prototype=Object.create(s);function v(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,c):(d.__proto__=c,k(d,f,"GeneratorFunction")),d.prototype=Object.create(l),d}return u.prototype=c,k(l,"constructor",c),k(c,"constructor",u),u.displayName="GeneratorFunction",k(c,f,"GeneratorFunction"),k(l),k(l,f,"Generator"),k(l,n,function(){return this}),k(l,"toString",function(){return"[object Generator]"}),(V=function(){return{w:a,m:v}})()}function D(e,r){function t(f,a,o,i){try{var u=e[f](a),c=u.value;return c instanceof q?r.resolve(c.v).then(function(s){t("next",s,o,i)},function(s){t("throw",s,o,i)}):r.resolve(c).then(function(s){u.value=s,o(u)},function(s){return t("throw",s,o,i)})}catch(s){i(s)}}var n;this.next||(k(D.prototype),k(D.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),k(this,"_invoke",function(f,a,o){function i(){return new r(function(u,c){t(f,o,u,c)})}return n=n?n.then(i,i):i()},!0)}function Y(e,r,t,n,f){return new D(V().w(e,r,t,n),f||Promise)}function hr(e,r,t,n,f){var a=Y(e,r,t,n,f);return a.next().then(function(o){return o.done?o.value:a.next()})}function mr(e){var r=Object(e),t=[];for(var n in r)t.unshift(n);return function f(){for(;t.length;)if((n=t.pop())in r)return f.value=n,f.done=!1,f;return f.done=!0,f}}function ar(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(C(e)+" is not iterable")}function z(){"use strict";var e=V(),r=e.m(z),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function n(o){var i=typeof o=="function"&&o.constructor;return!!i&&(i===t||(i.displayName||i.name)==="GeneratorFunction")}var f={throw:1,return:2,break:3,continue:3};function a(o){var i,u;return function(c){i||(i={stop:function(){return u(c.a,2)},catch:function(){return c.v},abrupt:function(l,v){return u(c.a,f[l],v)},delegateYield:function(l,v,d){return i.resultName=v,u(c.d,ar(l),d)},finish:function(l){return u(c.f,l)}},u=function(l,v,d){c.p=i.prev,c.n=i.next;try{return l(v,d)}finally{i.next=c.n}}),i.resultName&&(i[i.resultName]=c.v,i.resultName=void 0),i.sent=c.v,i.next=c.n;try{return o.call(this,i)}finally{c.p=i.prev,c.n=i.next}}}return(z=function(){return{wrap:function(u,c,s,l){return e.w(a(u),c,s,l&&l.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(u,c){return new q(u,c)},AsyncIterator:D,async:function(u,c,s,l,v){return(n(c)?Y:hr)(a(u),c,s,l,v)},keys:mr,values:ar}})()}function br(e,r,t,n,f,a,o){try{var i=e[a](o),u=i.value}catch(c){return void t(c)}i.done?r(u):Promise.resolve(u).then(n,f)}function gr(e){return function(){var r=this,t=arguments;return new Promise(function(n,f){var a=e.apply(r,t);function o(u){br(a,n,f,o,i,"next",u)}function i(u){br(a,n,f,o,i,"throw",u)}o(void 0)})}}import{vec3 as B,mat4 as wr}from"/gl-matrix@^3.4.3?target=es2022";function Pr(e){if(Array.isArray(e))return e}function _r(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,f,a,o,i=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(i.push(n.value),i.length!==r);u=!0);}catch(s){c=!0,f=s}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw f}}return i}}function xr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e,r){return Pr(e)||_r(e,r)||J(e,r)||xr()}import{distance as Ar,linePointToLine as jr,cubicPointDistance as Sr,quadPointDistance as Mr}from"/@antv/g-math@3.0.1/es2022/g-math.mjs";import{arcToCubic as Wr,clamp as Hr}from"/@antv/util@^3.3.5?target=es2022";function kr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),t.push.apply(t,n)}return t}function fr(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?kr(Object(t),!0).forEach(function(n){w(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Rr=B.create(),Gr=B.create(),Nr=B.create(),Dr=wr.create(),Ir=function(){function e(){var r=this;tr(this,e),this.isHit=function(t,n,f,a){var o=r.context.pointInPathPickerFactory[t.nodeName];if(o){var i=wr.invert(Dr,f),u=B.transformMat4(Gr,B.set(Nr,n[0],n[1],0),i);if(o(t,new Lr(u[0],u[1]),a,r.isPointInPath,r.context,r.runtime))return!0}return!1},this.isPointInPath=function(t,n){var f=r.runtime.offscreenCanvasCreator.getOrCreateContext(r.context.config.offscreenCanvas),a=r.context.pathGeneratorFactory[t.nodeName];return a&&(f.beginPath(),a(f,t.parsedStyle),f.closePath()),f.isPointInPath(n.x,n.y)}}return nr(e,[{key:"apply",value:function(t,n){var f,a=this,o=t.renderingService,i=t.renderingContext;this.context=t,this.runtime=n;var u=(f=i.root)===null||f===void 0?void 0:f.ownerDocument;o.hooks.pick.tapPromise(e.tag,function(){var c=gr(z().mark(function s(l){return z().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",a.pick(u,l));case 1:case"end":return v.stop()}},s)}));return function(s){return c.apply(this,arguments)}}()),o.hooks.pickSync.tap(e.tag,function(c){return a.pick(u,c)})}},{key:"pick",value:function(t,n){var f=n.topmost,a=n.position,o=a.x,i=a.y,u=B.set(Rr,o,i,0),c=t.elementsFromBBox(u[0],u[1],u[0],u[1]),s=[],l=yr(c),v;try{for(l.s();!(v=l.n()).done;){var d=v.value,h=d.getWorldTransform(),y=this.isHit(d,u,h,!1);if(y){var b=Er(d);if(b){var p=b.parsedStyle.clipPath,g=this.isHit(p,u,p.getWorldTransform(),!0);if(g){if(f)return n.picked=[d],n;s.push(d)}}else{if(f)return n.picked=[d],n;s.push(d)}}}}catch(x){l.e(x)}finally{l.f()}return n.picked=s,n}}])}();Ir.tag="CanvasPicker";function Br(e,r,t){var n=e.parsedStyle,f=n.cx,a=f===void 0?0:f,o=n.cy,i=o===void 0?0:o,u=n.r,c=n.fill,s=n.stroke,l=n.lineWidth,v=l===void 0?1:l,d=n.increasedLineWidthForHitTesting,h=d===void 0?0:d,y=n.pointerEvents,b=y===void 0?"auto":y,p=(v+h)/2,g=Ar(a,i,r.x,r.y),x=N(b,c,s),j=W(x,2),T=j[0],_=j[1];return T&&_||t?g<=u+p:T?g<=u:_?g>=u-p&&g<=u+p:!1}function X(e,r,t,n){return e/(t*t)+r/(n*n)}function Kr(e,r,t){var n=e.parsedStyle,f=n.cx,a=f===void 0?0:f,o=n.cy,i=o===void 0?0:o,u=n.rx,c=n.ry,s=n.fill,l=n.stroke,v=n.lineWidth,d=v===void 0?1:v,h=n.increasedLineWidthForHitTesting,y=h===void 0?0:h,b=n.pointerEvents,p=b===void 0?"auto":b,g=r.x,x=r.y,j=N(p,s,l),T=W(j,2),_=T[0],m=T[1],P=(d+y)/2,S=(g-a)*(g-a),E=(x-i)*(x-i);return _&&m||t?X(S,E,u+P,c+P)<=1:_?X(S,E,u,c)<=1:m?X(S,E,u-P,c-P)>=1&&X(S,E,u+P,c+P)<=1:!1}function G(e,r,t,n,f,a){return f>=e&&f<=e+t&&a>=r&&a<=r+n}function Vr(e,r,t,n,f,a,o){var i=f/2;return G(e-i,r-i,t,f,a,o)||G(e+t-i,r-i,f,n,a,o)||G(e+i,r+n-i,t,f,a,o)||G(e-i,r+i,f,n,a,o)}function rr(e,r,t,n,f,a,o,i){var u=(Math.atan2(i-r,o-e)+Math.PI*2)%(Math.PI*2),c={x:e+t*Math.cos(u),y:r+t*Math.sin(u)};return Ar(c.x,c.y,o,i)<=a/2}function R(e,r,t,n,f,a,o){var i=Math.min(e,t),u=Math.max(e,t),c=Math.min(r,n),s=Math.max(r,n),l=f/2;return a>=i-l&&a<=u+l&&o>=c-l&&o<=s+l?jr(e,r,t,n,a,o)<=f/2:!1}function Fr(e,r,t,n,f){var a=e.length;if(a<2)return!1;for(var o=0;o<a-1;o++){var i=e[o][0],u=e[o][1],c=e[o+1][0],s=e[o+1][1];if(R(i,u,c,s,r,t,n))return!0}if(f){var l=e[0],v=e[a-1];if(R(l[0],l[1],v[0],v[1],r,t,n))return!0}return!1}var zr=1e-6;function ur(e){return Math.abs(e)<zr?0:e<0?-1:1}function Ur(e,r,t){return(t[0]-e[0])*(r[1]-e[1])===(r[0]-e[0])*(t[1]-e[1])&&Math.min(e[0],r[0])<=t[0]&&t[0]<=Math.max(e[0],r[0])&&Math.min(e[1],r[1])<=t[1]&&t[1]<=Math.max(e[1],r[1])}function Tr(e,r,t){var n=!1,f=e.length;if(f<=2)return!1;for(var a=0;a<f;a++){var o=e[a],i=e[(a+1)%f];if(Ur(o,i,[r,t]))return!0;ur(o[1]-t)>0!=ur(i[1]-t)>0&&ur(r-(t-o[1])*(o[0]-i[0])/(o[1]-i[1])-o[0])<0&&(n=!n)}return n}function Or(e,r,t){for(var n=!1,f=0;f<e.length;f++){var a=e[f];if(n=Tr(a,r,t),n)break}return n}function Qr(e,r,t){var n=e.parsedStyle,f=n.x1,a=n.y1,o=n.x2,i=n.y2,u=n.lineWidth,c=u===void 0?1:u,s=n.increasedLineWidthForHitTesting,l=s===void 0?0:s,v=n.pointerEvents,d=v===void 0?"auto":v,h=n.fill,y=n.stroke,b=N(d,h,y),p=W(b,2),g=p[1];return!g&&!t||!c?!1:R(f,a,o,i,c+l,r.x,r.y)}function Zr(e,r,t,n,f){for(var a=!1,o=r/2,i=0;i<e.length;i++){var u=e[i],c=u.currentPoint,s=u.params,l=u.prePoint,v=u.box;if(!(v&&!G(v.x-o,v.y-o,v.width+r,v.height+r,t,n)))switch(u.command){case"L":case"Z":if(a=R(l[0],l[1],c[0],c[1],r,t,n),a)return!0;break;case"Q":var d=Mr(l[0],l[1],s[1],s[2],s[3],s[4],t,n);if(a=d<=r/2,a)return!0;break;case"C":var h=Sr(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6],t,n,f);if(a=h<=r/2,a)return!0;break;case"A":u.cubicParams||(u.cubicParams=Wr(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6],s[7],void 0));for(var y=u.cubicParams,b=l,p=0;p<y.length;p+=6){var g=Sr(b[0],b[1],y[p],y[p+1],y[p+2],y[p+3],y[p+4],y[p+5],t,n,f);if(b=[y[p+4],y[p+5]],a=g<=r/2,a)return!0}break}}return a}function Jr(e,r,t,n,f,a){var o=e.parsedStyle,i=o.lineWidth,u=i===void 0?1:i,c=o.increasedLineWidthForHitTesting,s=c===void 0?0:c,l=o.stroke,v=o.fill,d=o.d,h=o.pointerEvents,y=h===void 0?"auto":h,b=d.segments,p=d.hasArc,g=d.polylines,x=d.polygons,j=N(y,x?.length&&v,l),T=W(j,2),_=T[0],m=T[1],P=$r(e),S=!1;return _||t?(p?S=n(e,r):S=Or(x,r.x,r.y)||Or(g,r.x,r.y),S):((m||t)&&(S=Zr(b,u+s,r.x,r.y,P)),S)}function qr(e,r,t){var n=e.parsedStyle,f=n.stroke,a=n.fill,o=n.lineWidth,i=o===void 0?1:o,u=n.increasedLineWidthForHitTesting,c=u===void 0?0:u,s=n.points,l=n.pointerEvents,v=l===void 0?"auto":l,d=N(v,a,f),h=W(d,2),y=h[0],b=h[1],p=!1;return(b||t)&&(p=Fr(s.points,i+c,r.x,r.y,!0)),!p&&(y||t)&&(p=Tr(s.points,r.x,r.y)),p}function Yr(e,r,t){var n=e.parsedStyle,f=n.lineWidth,a=f===void 0?1:f,o=n.increasedLineWidthForHitTesting,i=o===void 0?0:o,u=n.points,c=n.pointerEvents,s=c===void 0?"auto":c,l=n.fill,v=n.stroke,d=N(s,l,v),h=W(d,2),y=h[1];return!y&&!t||!a?!1:Fr(u.points,a+i,r.x,r.y,!1)}function Xr(e,r,t,n,f){var a=e.parsedStyle,o=a.radius,i=a.fill,u=a.stroke,c=a.lineWidth,s=c===void 0?1:c,l=a.increasedLineWidthForHitTesting,v=l===void 0?0:l,d=a.x,h=d===void 0?0:d,y=a.y,b=y===void 0?0:y,p=a.width,g=a.height,x=a.pointerEvents,j=x===void 0?"auto":x,T=N(j,i,u),_=W(T,2),m=_[0],P=_[1],S=o&&o.some(function(H){return H!==0}),E=s+v;if(S){var O=!1;return(P||t)&&(O=re(h,b,p,g,o.map(function(H){return Hr(H,0,Math.min(Math.abs(p)/2,Math.abs(g)/2))}),E,r.x,r.y)),!O&&(m||t)&&(O=n(e,r)),O}else{var L=E/2;if(m&&P||t)return G(h-L,b-L,p+L,g+L,r.x,r.y);if(m)return G(h,b,p,g,r.x,r.y);if(P)return Vr(h,b,p,g,E,r.x,r.y)}return!1}function re(e,r,t,n,f,a,o,i){var u=W(f,4),c=u[0],s=u[1],l=u[2],v=u[3];return R(e+c,r,e+t-s,r,a,o,i)||R(e+t,r+s,e+t,r+n-l,a,o,i)||R(e+t-l,r+n,e+v,r+n,a,o,i)||R(e,r+n-v,e,r+c,a,o,i)||rr(e+t-s,r+s,s,1.5*Math.PI,2*Math.PI,a,o,i)||rr(e+t-l,r+n-l,l,0,.5*Math.PI,a,o,i)||rr(e+v,r+n-v,v,.5*Math.PI,Math.PI,a,o,i)||rr(e+c,r+c,c,Math.PI,1.5*Math.PI,a,o,i)}function ee(e,r,t,n,f,a){var o=e.parsedStyle,i=o.pointerEvents,u=i===void 0?"auto":i,c=o.x,s=c===void 0?0:c,l=o.y,v=l===void 0?0:l,d=o.width,h=o.height;if(u==="non-transparent-pixel"){var y=f.config.offscreenCanvas,b=a.offscreenCanvasCreator.getOrCreateCanvas(y),p=a.offscreenCanvasCreator.getOrCreateContext(y,{willReadFrequently:!0});b.width=d,b.height=h,f.defaultStyleRendererFactory[F.IMAGE].render(p,fr(fr({},e.parsedStyle),{},{x:0,y:0}),e,void 0,void 0,void 0);var g=p.getImageData(r.x-s,r.y-v,1,1).data;return g.every(function(x){return x!==0})}return!0}function te(e,r,t,n){var f=e.getGeometryBounds();return r.x>=f.min[0]&&r.y>=f.min[1]&&r.x<=f.max[0]&&r.y<=f.max[1]}var wt=function(e){function r(){var t;tr(this,r);for(var n=arguments.length,f=new Array(n),a=0;a<n;a++)f[a]=arguments[a];return t=dr(this,r,[].concat(f)),t.name="canvas-picker",t}return pr(r,e),nr(r,[{key:"init",value:function(){var n,f=(n={},w(w(w(w(w(w(w(w(w(w(n,F.CIRCLE,Br),F.ELLIPSE,Kr),F.RECT,Xr),F.LINE,Qr),F.POLYLINE,Yr),F.POLYGON,qr),F.PATH,Jr),F.TEXT,te),F.GROUP,null),F.IMAGE,ee),w(w(n,F.HTML,null),F.MESH,null));this.context.pointInPathPickerFactory=f,this.addRenderingPlugin(new Ir)}},{key:"destroy",value:function(){delete this.context.pointInPathPickerFactory,this.removeAllRenderingPlugins()}}])}(Cr);export{wt as Plugin};
|
|
5
|
+
/*! Bundled license information:
|
|
6
|
+
|
|
7
|
+
@babel/runtime/helpers/esm/regenerator.js:
|
|
8
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
9
|
+
|
|
10
|
+
@antv/g-plugin-canvas-picker/dist/index.esm.js:
|
|
11
|
+
(*!
|
|
12
|
+
* @antv/g-plugin-canvas-picker
|
|
13
|
+
* @description A G plugin for picking in canvas
|
|
14
|
+
* @version 2.1.27
|
|
15
|
+
* @date 7/30/2025, 1:37:32 PM
|
|
16
|
+
* @author AntVis
|
|
17
|
+
* @docs https://g.antv.antgroup.com/
|
|
18
|
+
*)
|
|
19
|
+
*/
|
|
20
|
+
//# sourceMappingURL=g-plugin-canvas-picker.mjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-plugin-canvas-renderer@2.3.3 */
|
|
2
|
+
function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},V(a)}function ke(a,i){if(V(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,i||"default");if(V(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function de(a){var i=ke(a,"string");return V(i)=="symbol"?i:i+""}function x(a,i,t){return(i=de(i))in a?Object.defineProperty(a,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[i]=t,a}function Me(a,i){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);i&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,e)}return t}function he(a){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?Me(Object(t),!0).forEach(function(e){x(a,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))})}return a}function K(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function Pe(a,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(a,de(e.key),e)}}function Q(a,i,t){return i&&Pe(a.prototype,i),t&&Pe(a,t),Object.defineProperty(a,"prototype",{writable:!1}),a}function ie(a){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ie(a)}function Te(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Te=function(){return!!a})()}function Be(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _e(a,i){if(i&&(V(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Be(a)}function ne(a,i,t){return i=ie(i),_e(a,Te()?Reflect.construct(i,t||[],ie(a).constructor):i.apply(a,t))}function pe(a,i){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pe(a,i)}function le(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&pe(a,i)}import{ElementEvent as ye,AABB as fe,CustomEvent as Ve,CanvasEvent as Je,Shape as O,Node as Ke,GradientType as $e,isPattern as ce,AbstractRendererPlugin as Qe}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";function De(a){if(Array.isArray(a))return a}function Ee(a,i){var t=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(t!=null){var e,r,n,o,l=[],f=!0,s=!1;try{if(n=(t=t.call(a)).next,i===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=n.call(t)).done)&&(l.push(e.value),l.length!==i);f=!0);}catch(d){s=!0,r=d}finally{try{if(!f&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}function oe(a,i){(i==null||i>a.length)&&(i=a.length);for(var t=0,e=Array(i);t<i;t++)e[t]=a[t];return e}function ve(a,i){if(a){if(typeof a=="string")return oe(a,i);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(a,i):void 0}}function Fe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(a,i){return De(a)||Ee(a,i)||ve(a,i)||Fe()}function Le(a){if(Array.isArray(a))return oe(a)}function Ne(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Ie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(a){return Le(a)||Ne(a)||ve(a)||Ie()}function X(a,i){if(!{}.hasOwnProperty.call(a,i))throw new TypeError("attempted to use private field on non-instance");return a}var He=0;function We(a){return"__private_"+He+++"_"+a}import{mat4 as $,vec3 as W}from"/gl-matrix@^3.4.3?target=es2022";import{isNil as M}from"/@antv/util@^3.3.5?target=es2022";import{ImagePool as qe}from"/@antv/g-plugin-image-loader@2.1.26/es2022/g-plugin-image-loader.mjs";var D=We("renderState"),Xe=function(){function a(i){K(this,a),this.removedRBushNodeAABBs=[],this.renderQueue=[],Object.defineProperty(this,D,{writable:!0,value:{restoreStack:[],prevObject:null,currentContext:new Map}}),this.clearFullScreenLastFrame=!1,this.clearFullScreen=!1,this.vpMatrix=$.create(),this.dprMatrix=$.create(),this.tmpMat4=$.create(),this.vec3a=W.create(),this.vec3b=W.create(),this.vec3c=W.create(),this.vec3d=W.create(),this.canvasRendererPluginOptions=i}return Q(a,[{key:"apply",value:function(t,e){var r=this;this.context=t;var n=this.context,o=n.config,l=n.camera,f=n.renderingService,s=n.renderingContext,d=n.rBushRoot,p=n.pathGeneratorFactory,u=o.renderer.getConfig().enableRenderingOptimization;o.renderer.getConfig().enableDirtyCheck=!1,o.renderer.getConfig().enableDirtyRectangleRendering=!1,this.rBush=d,this.pathGeneratorFactory=p;var v=t.contextService,h=s.root.ownerDocument.defaultView,c=function(y){var w=y.target,g=w.rBushNode;g!=null&&g.aabb&&r.removedRBushNodeAABBs.push(g.aabb)},S=function(y){var w=y.target,g=w.rBushNode;g.aabb&&r.removedRBushNodeAABBs.push(g.aabb)};f.hooks.init.tap(a.tag,function(){h.addEventListener(ye.UNMOUNTED,c),h.addEventListener(ye.CULLED,S);var m=v.getDPR(),y=o.width,w=o.height,g=v.getContext();r.clearRect(g,0,0,y*m,w*m,o.background)}),f.hooks.destroy.tap(a.tag,function(){h.removeEventListener(ye.UNMOUNTED,c),h.removeEventListener(ye.CULLED,S),r.renderQueue=[],r.removedRBushNodeAABBs=[],X(r,D)[D]={restoreStack:[],prevObject:null,currentContext:null}});var E=function(){var y,w=v.getContext(),g=v.getDPR(),C=o.width,A=o.height,T=r.canvasRendererPluginOptions,R=T.dirtyObjectNumThreshold,P=T.dirtyObjectRatioThreshold,_=f.getStats(),F=_.total,k=_.rendered,N=k/F;r.clearFullScreen=r.clearFullScreenLastFrame||!((y=h.context.renderingPlugins[1])!==null&&y!==void 0&&y.isFirstTimeRenderingFinished)||f.disableDirtyRectangleRendering()||k>R&&N>P,w&&(typeof w.resetTransform=="function"?w.resetTransform():w.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(w,0,0,C*g,A*g,o.background))},b=function(y,w){for(var g=[y];g.length>0;){var C,A=g.pop();A.isVisible()&&!A.isCulled()&&(u?r.renderDisplayObjectOptimized(A,w,r.context,X(r,D)[D],e):r.renderDisplayObject(A,w,r.context,X(r,D)[D],e));for(var T=((C=A.sortable)===null||C===void 0||(C=C.sorted)===null||C===void 0?void 0:C.length)>0?A.sortable.sorted:A.childNodes,R=T.length-1;R>=0;R--)g.push(T[R])}};f.hooks.endFrame.tap(a.tag,function(){if(E(),s.root.childNodes.length===0){r.clearFullScreenLastFrame=!0;return}u=o.renderer.getConfig().enableRenderingOptimization,X(r,D)[D]={restoreStack:[],prevObject:null,currentContext:X(r,D)[D].currentContext},X(r,D)[D].currentContext.clear(),r.clearFullScreenLastFrame=!1;var m=v.getContext(),y=v.getDPR();if($.fromScaling(r.dprMatrix,[y,y,1]),$.multiply(r.vpMatrix,r.dprMatrix,l.getOrthoMatrix()),r.clearFullScreen)u?(m.save(),b(s.root,m),m.restore()):b(s.root,m),r.removedRBushNodeAABBs=[];else{var w=r.safeMergeAABB.apply(r,[r.mergeDirtyAABBs(r.renderQueue)].concat(xe(r.removedRBushNodeAABBs.map(function(I){var U=I.minX,H=I.minY,G=I.maxX,Ae=I.maxY,ue=new fe;return ue.setMinMax([U,H,0],[G,Ae,0]),ue}))));if(r.removedRBushNodeAABBs=[],fe.isEmpty(w)){r.renderQueue=[];return}var g=r.convertAABB2Rect(w),C=g.x,A=g.y,T=g.width,R=g.height,P=W.transformMat4(r.vec3a,[C,A,0],r.vpMatrix),_=W.transformMat4(r.vec3b,[C+T,A,0],r.vpMatrix),F=W.transformMat4(r.vec3c,[C,A+R,0],r.vpMatrix),k=W.transformMat4(r.vec3d,[C+T,A+R,0],r.vpMatrix),N=Math.min(P[0],_[0],k[0],F[0]),Y=Math.min(P[1],_[1],k[1],F[1]),z=Math.max(P[0],_[0],k[0],F[0]),J=Math.max(P[1],_[1],k[1],F[1]),ee=Math.floor(N),re=Math.floor(Y),te=Math.ceil(z-N),ae=Math.ceil(J-Y);m.save(),r.clearRect(m,ee,re,te,ae,o.background),m.beginPath(),m.rect(ee,re,te,ae),m.clip(),m.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var Oe=o.renderer.getConfig(),q=Oe.enableDirtyRectangleRenderingDebug;q&&h.dispatchEvent(new Ve(Je.DIRTY_RECTANGLE,{dirtyRect:{x:ee,y:re,width:te,height:ae}}));var Z=r.searchDirtyObjects(w);Z.sort(function(I,U){return I.sortable.renderOrder-U.sortable.renderOrder}).forEach(function(I){I&&I.isVisible()&&!I.isCulled()&&r.renderDisplayObject(I,m,r.context,X(r,D)[D],e)}),m.restore(),r.renderQueue.forEach(function(I){r.saveDirtyAABB(I)}),r.renderQueue=[]}X(r,D)[D].restoreStack.forEach(function(){m.restore()}),X(r,D)[D].restoreStack=[]}),f.hooks.render.tap(a.tag,function(m){r.clearFullScreen||r.renderQueue.push(m)})}},{key:"clearRect",value:function(t,e,r,n,o,l){t.clearRect(e,r,n,o),l&&(t.fillStyle=l,t.fillRect(e,r,n,o))}},{key:"renderDisplayObjectOptimized",value:function(t,e,r,n,o){var l=t.nodeName,f=!1,s=!1,d=this.context.styleRendererFactory[l],p=this.pathGeneratorFactory[l],u=t.parsedStyle.clipPath;if(u){f=!n.prevObject||!$.exactEquals(u.getWorldTransform(),n.prevObject.getWorldTransform()),f&&(this.applyWorldTransform(e,u),n.prevObject=null);var v=this.pathGeneratorFactory[u.nodeName];v&&(e.save(),s=!0,e.beginPath(),v(e,u.parsedStyle),e.closePath(),e.clip())}if(d){f=!n.prevObject||!$.exactEquals(t.getWorldTransform(),n.prevObject.getWorldTransform()),f&&this.applyWorldTransform(e,t);var h=!n.prevObject;if(!h){var c=n.prevObject.nodeName;l===O.TEXT?h=c!==O.TEXT:l===O.IMAGE?h=c!==O.IMAGE:h=c===O.TEXT||c===O.IMAGE}d.applyStyleToContext(e,t,h,n),n.prevObject=t}p&&(e.beginPath(),p(e,t.parsedStyle),l!==O.LINE&&l!==O.PATH&&l!==O.POLYLINE&&e.closePath()),d&&d.drawToContext(e,t,X(this,D)[D],this,o),s&&e.restore(),t.dirty(!1)}},{key:"renderDisplayObject",value:function(t,e,r,n,o){var l=t.nodeName,f=n.restoreStack[n.restoreStack.length-1];f&&!(t.compareDocumentPosition(f)&Ke.DOCUMENT_POSITION_CONTAINS)&&(e.restore(),n.restoreStack.pop());var s=this.context.styleRendererFactory[l],d=this.pathGeneratorFactory[l],p=t.parsedStyle.clipPath;if(p){this.applyWorldTransform(e,p);var u=this.pathGeneratorFactory[p.nodeName];u&&(e.save(),n.restoreStack.push(t),e.beginPath(),u(e,p.parsedStyle),e.closePath(),e.clip())}s&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),d&&(e.beginPath(),d(e,t.parsedStyle),l!==O.LINE&&l!==O.PATH&&l!==O.POLYLINE&&e.closePath()),s&&(s.render(e,t.parsedStyle,t,r,this,o),e.restore()),t.dirty(!1)}},{key:"applyAttributesToContext",value:function(t,e){var r=e.parsedStyle,n=r.stroke,o=r.fill,l=r.opacity,f=r.lineDash,s=r.lineDashOffset;f&&t.setLineDash(f),M(s)||(t.lineDashOffset=s),M(l)||(t.globalAlpha*=l),!M(n)&&!Array.isArray(n)&&!n.isNone&&(t.strokeStyle=e.attributes.stroke),!M(o)&&!Array.isArray(o)&&!o.isNone&&(t.fillStyle=e.attributes.fill)}},{key:"convertAABB2Rect",value:function(t){var e=t.getMin(),r=t.getMax(),n=Math.floor(e[0]),o=Math.floor(e[1]),l=Math.ceil(r[0]),f=Math.ceil(r[1]),s=l-n,d=f-o;return{x:n,y:o,width:s,height:d}}},{key:"mergeDirtyAABBs",value:function(t){var e=new fe;return t.forEach(function(r){var n=r.getRenderBounds();e.add(n);var o=r.renderable.dirtyRenderBounds;o&&e.add(o)}),e}},{key:"searchDirtyObjects",value:function(t){var e=t.getMin(),r=se(e,2),n=r[0],o=r[1],l=t.getMax(),f=se(l,2),s=f[0],d=f[1],p=this.rBush.search({minX:n,minY:o,maxX:s,maxY:d});return p.map(function(u){var v=u.displayObject;return v})}},{key:"saveDirtyAABB",value:function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new fe);var r=t.getRenderBounds();r&&e.dirtyRenderBounds.update(r.center,r.halfExtents)}},{key:"applyWorldTransform",value:function(t,e,r){r?($.copy(this.tmpMat4,e.getLocalTransform()),$.multiply(this.tmpMat4,r,this.tmpMat4),$.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):($.copy(this.tmpMat4,e.getWorldTransform()),$.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var t=new fe,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach(function(o){t.add(o)}),t}}])}();Xe.tag="CanvasRenderer";function ge(a,i,t,e,r,n,o){var l,f;if(a.image.nodeName==="rect"){var s=a.image.parsedStyle,d=s.width,p=s.height;f=e.contextService.getDPR();var u=e.config.offscreenCanvas;l=n.offscreenCanvasCreator.getOrCreateCanvas(u),l.width=d*f,l.height=p*f;var v=n.offscreenCanvasCreator.getOrCreateContext(u),h={restoreStack:[],prevObject:null,currentContext:new Map};a.image.forEach(function(S){r.renderDisplayObject(S,v,e,h,n)}),h.restoreStack.forEach(function(){v.restore()})}var c=o.getOrCreatePatternSync(i,a,t,l,f,i.getGeometryBounds().min,function(){i.dirty(),e.renderingService.dirtify()});return c}function we(a,i,t,e){var r;if(a.type===$e.LinearGradient||a.type===$e.RadialGradient){var n=i.getGeometryBounds(),o=n&&n.halfExtents[0]*2||1,l=n&&n.halfExtents[1]*2||1,f=n&&n.min||[0,0];r=e.getOrCreateGradient(he(he({type:a.type},a.value),{},{min:f,width:o,height:l}),t)}return r}var me=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ye=["lineCap","lineJoin","miterLimit"],L={globalAlpha:1,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",filter:"none",globalCompositeOperation:"source-over",strokeStyle:"#000",strokeOpacity:1,lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,fillStyle:"#000",fillOpacity:1},Ge={};function B(a,i,t,e){var r=e.has(i)?e.get(i):L[i];return r!==t&&(i==="lineDash"?a.setLineDash(t):a[i]=t,e.set(i,t)),r}var Ze=function(){function a(i){K(this,a),this.imagePool=i}return Q(a,[{key:"applyAttributesToContext",value:function(t,e){}},{key:"render",value:function(t,e,r,n,o,l){}},{key:"applyCommonStyleToContext",value:function(t,e,r,n){var o=r?Ge:n.prevObject.parsedStyle,l=e.parsedStyle;(r||l.opacity!==o.opacity)&&B(t,"globalAlpha",M(l.opacity)?L.globalAlpha:l.opacity,n.currentContext),(r||l.blend!==o.blend)&&B(t,"globalCompositeOperation",M(l.blend)?L.globalCompositeOperation:l.blend,n.currentContext)}},{key:"applyStrokeFillStyleToContext",value:function(t,e,r,n){var o=r?Ge:n.prevObject.parsedStyle,l=e.parsedStyle,f=l.lineWidth,s=f===void 0?L.lineWidth:f,d=l.fill&&!l.fill.isNone,p=l.stroke&&!l.stroke.isNone&&s>0;if(p){if(r||e.attributes.stroke!==n.prevObject.attributes.stroke){var u=!M(l.stroke)&&!Array.isArray(l.stroke)&&!l.stroke.isNone?e.attributes.stroke:L.strokeStyle;B(t,"strokeStyle",u,n.currentContext)}(r||l.lineWidth!==o.lineWidth)&&B(t,"lineWidth",M(l.lineWidth)?L.lineWidth:l.lineWidth,n.currentContext),(r||l.lineDash!==o.lineDash)&&B(t,"lineDash",l.lineDash||L.lineDash,n.currentContext),(r||l.lineDashOffset!==o.lineDashOffset)&&B(t,"lineDashOffset",M(l.lineDashOffset)?L.lineDashOffset:l.lineDashOffset,n.currentContext);for(var v=0;v<Ye.length;v++){var h=Ye[v];(r||l[h]!==o[h])&&B(t,h,M(l[h])?L[h]:l[h],n.currentContext)}}if(d&&(r||e.attributes.fill!==n.prevObject.attributes.fill)){var c=!M(l.fill)&&!Array.isArray(l.fill)&&!l.fill.isNone?e.attributes.fill:L.fillStyle;B(t,"fillStyle",c,n.currentContext)}}},{key:"applyStyleToContext",value:function(t,e,r,n){var o=e.nodeName;this.applyCommonStyleToContext(t,e,r,n),o===O.IMAGE||this.applyStrokeFillStyleToContext(t,e,r,n)}},{key:"applyShadowAndFilterStyleToContext",value:function(t,e,r,n){var o=e.parsedStyle;if(r){B(t,"shadowColor",o.shadowColor.toString(),n.currentContext);for(var l=0;l<me.length;l++){var f=me[l];B(t,f,o[f]||L[f],n.currentContext)}}o.filter&&o.filter.length&&B(t,"filter",e.attributes.filter,n.currentContext)}},{key:"clearShadowAndFilterStyleForContext",value:function(t,e,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(e){B(t,"shadowColor",L.shadowColor,n.currentContext);for(var l=0;l<me.length;l++){var f=me[l];B(t,f,L[f],n.currentContext)}}if(r)if(e&&o){var s=t.filter;!M(s)&&s.indexOf("drop-shadow")>-1&&B(t,"filter",s.replace(/drop-shadow\([^)]*\)/,"").trim()||L.filter,n.currentContext)}else B(t,"filter",L.filter,n.currentContext)}},{key:"fillToContext",value:function(t,e,r,n,o){var l=this,f=e.parsedStyle,s=f.fill,d=f.fillRule,p=null;if(Array.isArray(s)&&s.length>0)s.forEach(function(v){var h=B(t,"fillStyle",we(v,e,t,l.imagePool),r.currentContext);p=p??h,d?t.fill(d):t.fill()});else{if(ce(s)){var u=ge(s,e,t,e.ownerDocument.defaultView.context,n,o,this.imagePool);u&&(t.fillStyle=u,p=!0)}d?t.fill(d):t.fill()}p!==null&&B(t,"fillStyle",p,r.currentContext)}},{key:"strokeToContext",value:function(t,e,r,n,o){var l=this,f=e.parsedStyle.stroke,s=null;if(Array.isArray(f)&&f.length>0)f.forEach(function(u){var v=B(t,"strokeStyle",we(u,e,t,l.imagePool),r.currentContext);s=s??v,t.stroke()});else{if(ce(f)){var d=ge(f,e,t,e.ownerDocument.defaultView.context,n,o,this.imagePool);if(d){var p=B(t,"strokeStyle",d,r.currentContext);s=s??p}}t.stroke()}s!==null&&B(t,"strokeStyle",s,r.currentContext)}},{key:"drawToContext",value:function(t,e,r,n,o){var l,f=e.nodeName,s=e.parsedStyle,d=s.opacity,p=d===void 0?L.globalAlpha:d,u=s.fillOpacity,v=u===void 0?L.fillOpacity:u,h=s.strokeOpacity,c=h===void 0?L.strokeOpacity:h,S=s.lineWidth,E=S===void 0?L.lineWidth:S,b=s.fill&&!s.fill.isNone,m=s.stroke&&!s.stroke.isNone&&E>0;if(!(!b&&!m)){var y=!M(s.shadowColor)&&s.shadowBlur>0,w=s.shadowType==="inner",g=((l=s.fill)===null||l===void 0?void 0:l.alpha)===0,C=!!(s.filter&&s.filter.length),A=y&&m&&(f===O.PATH||f===O.LINE||f===O.POLYLINE||g||w),T=null;if(b){A||this.applyShadowAndFilterStyleToContext(t,e,y,r);var R=p*v;T=B(t,"globalAlpha",R,r.currentContext),this.fillToContext(t,e,r,n,o),A||this.clearShadowAndFilterStyleForContext(t,y,C,r)}if(m){var P=!1,_=p*c,F=B(t,"globalAlpha",_,r.currentContext);if(T=b?T:F,A&&(this.applyShadowAndFilterStyleToContext(t,e,y,r),P=!0,w)){var k=t.globalCompositeOperation;t.globalCompositeOperation="source-atop",this.strokeToContext(t,e,r,n,o),t.globalCompositeOperation=k,this.clearShadowAndFilterStyleForContext(t,y,C,r,!0)}this.strokeToContext(t,e,r,n,o),P&&this.clearShadowAndFilterStyleForContext(t,y,C,r)}T!==null&&B(t,"globalAlpha",T,r.currentContext)}}}])}(),be=function(a){function i(){return K(this,i),ne(this,i,arguments)}return le(i,a),Q(i,[{key:"render",value:function(e,r,n,o,l,f){var s=r.fill,d=r.fillRule,p=r.opacity,u=p===void 0?1:p,v=r.fillOpacity,h=v===void 0?1:v,c=r.stroke,S=r.strokeOpacity,E=S===void 0?1:S,b=r.lineWidth,m=b===void 0?1:b,y=r.lineCap,w=r.lineJoin,g=r.shadowType,C=r.shadowColor,A=r.shadowBlur,T=r.filter,R=r.miterLimit,P=s&&!s.isNone,_=c&&!c.isNone&&m>0,F=s?.alpha===0,k=!!(T&&T.length),N=!M(C)&&A>0,Y=n.nodeName,z=g==="inner",J=_&&N&&(Y===O.PATH||Y===O.LINE||Y===O.POLYLINE||F||z);P&&(e.globalAlpha=u*h,J||Ce(n,e,N),ze(e,n,s,d,o,l,f,this.imagePool),J||this.clearShadowAndFilter(e,k,N)),_&&(e.globalAlpha=u*E,e.lineWidth=m,M(R)||(e.miterLimit=R),M(y)||(e.lineCap=y),M(w)||(e.lineJoin=w),J&&(z&&(e.globalCompositeOperation="source-atop"),Ce(n,e,!0),z&&(Se(e,n,c,o,l,f,this.imagePool),e.globalCompositeOperation=L.globalCompositeOperation,this.clearShadowAndFilter(e,k,!0))),Se(e,n,c,o,l,f,this.imagePool))}},{key:"clearShadowAndFilter",value:function(e,r,n){if(n&&(e.shadowColor="transparent",e.shadowBlur=0),r){var o=e.filter;!M(o)&&o.indexOf("drop-shadow")>-1&&(e.filter=o.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}(Ze);function Ce(a,i,t){var e=a.parsedStyle,r=e.filter,n=e.shadowColor,o=e.shadowBlur,l=e.shadowOffsetX,f=e.shadowOffsetY;r&&r.length&&(i.filter=a.style.filter),t&&(i.shadowColor=n.toString(),i.shadowBlur=o||0,i.shadowOffsetX=l||0,i.shadowOffsetY=f||0)}function ze(a,i,t,e,r,n,o,l){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1;Array.isArray(t)?t.forEach(function(s){a.fillStyle=we(s,i,a,l),f||(e?a.fill(e):a.fill())}):(ce(t)&&(a.fillStyle=ge(t,i,a,r,n,o,l)),f||(e?a.fill(e):a.fill()))}function Se(a,i,t,e,r,n,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;Array.isArray(t)?t.forEach(function(f){a.strokeStyle=we(f,i,a,o),l||a.stroke()}):(ce(t)&&(a.strokeStyle=ge(t,i,a,e,r,n,o)),l||a.stroke())}function Ue(a,i){var t=se(a,4),e=t[0],r=t[1],n=t[2],o=t[3],l=se(i,4),f=l[0],s=l[1],d=l[2],p=l[3],u=Math.max(e,f),v=Math.max(r,s),h=Math.min(e+n,f+d),c=Math.min(r+o,s+p);return h<=u||c<=v?null:[u,v,h-u,c-v]}function je(a,i){var t=W.transformMat4(W.create(),[a[0],a[1],0],i),e=W.transformMat4(W.create(),[a[0]+a[2],a[1],0],i),r=W.transformMat4(W.create(),[a[0],a[1]+a[3],0],i),n=W.transformMat4(W.create(),[a[0]+a[2],a[1]+a[3],0],i);return[Math.min(t[0],e[0],r[0],n[0]),Math.min(t[1],e[1],r[1],n[1]),Math.max(t[0],e[0],r[0],n[0])-Math.min(t[0],e[0],r[0],n[0]),Math.max(t[1],e[1],r[1],n[1])-Math.min(t[1],e[1],r[1],n[1])]}var er=function(a){function i(){return K(this,i),ne(this,i,arguments)}return le(i,a),Q(i,[{key:"renderDownSampled",value:function(e,r,n,o){var l=o.src,f=o.imageCache;if(!f.downSampled){this.imagePool.createDownSampledImage(l,n).then(function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirtify())}).catch(function(s){console.error(s)});return}e.drawImage(f.downSampled,Math.floor(o.drawRect[0]),Math.floor(o.drawRect[1]),Math.ceil(o.drawRect[2]),Math.ceil(o.drawRect[3]))}},{key:"renderTile",value:function(e,r,n,o){var l=o.src,f=o.imageCache,s=o.imageRect,d=o.drawRect,p=f.size,u=e.getTransform(),v=u.a,h=u.b,c=u.c,S=u.d,E=u.e,b=u.f;if(e.resetTransform(),!(f!=null&&f.gridSize)){this.imagePool.createImageTiles(l,[],function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirtify())},n).catch(function(N){console.error(N)});return}for(var m=[p[0]/s[2],p[1]/s[3]],y=[f.tileSize[0]/m[0],f.tileSize[1]/m[1]],w=[Math.floor((d[0]-s[0])/y[0]),Math.ceil((d[0]+d[2]-s[0])/y[0])],g=w[0],C=w[1],A=[Math.floor((d[1]-s[1])/y[1]),Math.ceil((d[1]+d[3]-s[1])/y[1])],T=A[0],R=A[1],P=T;P<=R;P++)for(var _=g;_<=C;_++){var F=f.tiles[P][_];if(F){var k=[Math.floor(s[0]+F.tileX*y[0]),Math.floor(s[1]+F.tileY*y[1]),Math.ceil(y[0]),Math.ceil(y[1])];e.drawImage(F.data,k[0],k[1],k[2],k[3])}}e.setTransform(v,h,c,S,E,b)}},{key:"render",value:function(e,r,n){var o=r.x,l=o===void 0?0:o,f=r.y,s=f===void 0?0:f,d=r.width,p=r.height,u=r.src,v=r.shadowColor,h=r.shadowBlur,c=this.imagePool.getImageSync(u,n),S=c?.img,E=d,b=p;if(S){E||(E=S.width),b||(b=S.height);var m=!M(v)&&h>0;Ce(n,e,m);try{var y=n.ownerDocument.defaultView.getContextService().getDomElement(),w=y.width,g=y.height,C=e.getTransform(),A=C.a,T=C.b,R=C.c,P=C.d,_=C.e,F=C.f,k=$.fromValues(A,R,0,0,T,P,0,0,0,0,1,0,_,F,0,1),N=je([l,s,E,b],k),Y=Ue([0,0,w,g],N);if(!Y)return;if(!n.ownerDocument.defaultView.getConfig().enableLargeImageOptimization){i.renderFull(e,r,n,{image:S,drawRect:[l,s,E,b]});return}var z=N[2]/c.size[0];if(z<(c.downSamplingRate||.5)){this.renderDownSampled(e,r,n,{src:u,imageCache:c,drawRect:[l,s,E,b]});return}if(!qe.isSupportTile){i.renderFull(e,r,n,{image:S,drawRect:[l,s,E,b]});return}this.renderTile(e,r,n,{src:u,imageCache:c,imageRect:N,drawRect:Y})}catch{}}}},{key:"drawToContext",value:function(e,r,n,o,l){this.render(e,r.parsedStyle,r)}}],[{key:"renderFull",value:function(e,r,n,o){e.drawImage(o.image,Math.floor(o.drawRect[0]),Math.floor(o.drawRect[1]),Math.ceil(o.drawRect[2]),Math.ceil(o.drawRect[3]))}}])}(be),rr=function(a){function i(){return K(this,i),ne(this,i,arguments)}return le(i,a),Q(i,[{key:"render",value:function(e,r,n,o,l,f){n.getBounds();var s=r.lineWidth,d=s===void 0?1:s,p=r.textAlign,u=p===void 0?"start":p,v=r.textBaseline,h=v===void 0?"alphabetic":v,c=r.lineJoin,S=c===void 0?"miter":c,E=r.miterLimit,b=E===void 0?10:E,m=r.letterSpacing,y=m===void 0?0:m,w=r.stroke,g=r.fill,C=r.fillRule,A=r.fillOpacity,T=A===void 0?1:A,R=r.strokeOpacity,P=R===void 0?1:R,_=r.opacity,F=_===void 0?1:_,k=r.metrics,N=r.x,Y=N===void 0?0:N,z=r.y,J=z===void 0?0:z,ee=r.dx,re=r.dy,te=r.shadowColor,ae=r.shadowBlur,Oe=k.font,q=k.lines,Z=k.height,I=k.lineHeight,U=k.lineMetrics;e.font=Oe,e.lineWidth=d,e.textAlign=u==="middle"?"center":u;var H=h;H==="alphabetic"&&(H="bottom"),e.lineJoin=S,M(b)||(e.miterLimit=b);var G=J;h==="middle"?G+=-Z/2-I/2:h==="bottom"||h==="alphabetic"||h==="ideographic"?G+=-Z:(h==="top"||h==="hanging")&&(G+=-I);var Ae=Y+(ee||0);G+=re||0,q.length===1&&(H==="bottom"?(H="middle",G-=.5*Z):H==="top"&&(H="middle",G+=.5*Z)),e.textBaseline=H;var ue=!M(te)&&ae>0;Ce(n,e,ue);for(var j=0;j<q.length;j++){var Re=d/2+Ae;G+=I,!M(w)&&!w.isNone&&d&&this.drawLetterSpacing(e,n,q[j],U[j],u,Re,G,y,g,C,T,w,P,F,!0,o,l,f),M(g)||this.drawLetterSpacing(e,n,q[j],U[j],u,Re,G,y,g,C,T,w,P,F,!1,o,l,f)}}},{key:"drawLetterSpacing",value:function(e,r,n,o,l,f,s,d,p,u,v,h,c,S,E,b,m,y){if(d===0){E?this.strokeText(e,r,n,f,s,h,c,b,m,y):this.fillText(e,r,n,f,s,p,u,v,S,b,m,y);return}var w=e.textAlign;e.textAlign="left";var g=f;l==="center"||l==="middle"?g=f-o.width/2:(l==="right"||l==="end")&&(g=f-o.width);for(var C=Array.from(n),A=e.measureText(n).width,T=0,R=0;R<C.length;++R){var P=C[R];E?this.strokeText(e,r,P,g,s,h,c,b,m,y):this.fillText(e,r,P,g,s,p,u,v,S,b,m,y),T=e.measureText(n.substring(R+1)).width,g+=A-T+d,A=T}e.textAlign=w}},{key:"fillText",value:function(e,r,n,o,l,f,s,d,p,u,v,h){ze(e,r,f,s,u,v,h,this.imagePool,!0);var c,S=!M(d)&&d!==1;S&&(c=e.globalAlpha,e.globalAlpha=d*p),e.fillText(n,o,l),S&&(e.globalAlpha=c)}},{key:"strokeText",value:function(e,r,n,o,l,f,s,d,p,u){Se(e,r,f,d,p,u,this.imagePool,!0);var v,h=!M(s)&&s!==1;h&&(v=e.globalAlpha,e.globalAlpha=s),e.strokeText(n,o,l),h&&(e.globalAlpha=v)}},{key:"drawToContext",value:function(e,r,n,o,l){this.render(e,r.parsedStyle,r,r.ownerDocument.defaultView.context,o,l)}}])}(be),ut=function(a){function i(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return K(this,i),t=ne(this,i),t.name="canvas-renderer",t.options=e,t}return le(i,a),Q(i,[{key:"init",value:function(){var e,r=he({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),n=this.context.imagePool,o=new be(n),l=(e={},x(x(x(x(x(x(x(x(x(x(e,O.CIRCLE,o),O.ELLIPSE,o),O.RECT,o),O.IMAGE,new er(n)),O.TEXT,new rr(n)),O.LINE,o),O.POLYLINE,o),O.POLYGON,o),O.PATH,o),O.GROUP,void 0),x(x(x(e,O.HTML,void 0),O.MESH,void 0),O.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=l,this.context.styleRendererFactory=l,this.addRenderingPlugin(new Xe(r))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(Qe);export{be as CircleRenderer,be as DefaultRenderer,be as EllipseRenderer,er as ImageRenderer,be as LineRenderer,be as PathRenderer,ut as Plugin,be as PolygonRenderer,be as PolylineRenderer,be as RectRenderer,rr as TextRenderer};
|
|
5
|
+
/*! Bundled license information:
|
|
6
|
+
|
|
7
|
+
@antv/g-plugin-canvas-renderer/dist/index.esm.js:
|
|
8
|
+
(*!
|
|
9
|
+
* @antv/g-plugin-canvas-renderer
|
|
10
|
+
* @description A G plugin of renderer implementation with Canvas2D API
|
|
11
|
+
* @version 2.3.3
|
|
12
|
+
* @date 7/30/2025, 1:36:40 PM
|
|
13
|
+
* @author AntVis
|
|
14
|
+
* @docs https://g.antv.antgroup.com/
|
|
15
|
+
*)
|
|
16
|
+
*/
|
|
17
|
+
//# sourceMappingURL=g-plugin-canvas-renderer.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-plugin-dom-interaction@2.1.27 */
|
|
2
|
+
function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(t)}function w(t,e){if(u(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var r=i.call(t,e||"default");if(u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function T(t){var e=w(t,"string");return u(e)=="symbol"?e:e+""}function _(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}function b(t,e,i){return e&&_(t.prototype,e),i&&_(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(t)}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P=function(){return!!t})()}function C(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k(t,e){if(e&&(u(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(t)}function x(t,e,i){return e=p(e),k(t,P()?Reflect.construct(e,i||[],p(t).constructor):e.apply(t,i))}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},y(t,e)}function S(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}import{AbstractRendererPlugin as W}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";var j=function(){function t(){E(this,t)}return b(t,[{key:"apply",value:function(i,r){var f=this,s=i.renderingService,R=i.renderingContext,g=i.config;this.context=i;var a=R.root.ownerDocument.defaultView,c=function(o){s.hooks.pointerMove.call(o)},l=function(o){s.hooks.pointerUp.call(o)},v=function(o){s.hooks.pointerDown.call(o)},d=function(o){s.hooks.pointerOver.call(o)},m=function(o){s.hooks.pointerOut.call(o)},h=function(o){s.hooks.pointerCancel.call(o)},L=function(o){s.hooks.pointerWheel.call(o)},O=function(o){s.hooks.click.call(o)},D=function(o){r.globalThis.document.addEventListener("pointermove",c,!0),o.addEventListener("pointerdown",v,!0),o.addEventListener("pointerleave",m,!0),o.addEventListener("pointerover",d,!0),r.globalThis.addEventListener("pointerup",l,!0),r.globalThis.addEventListener("pointercancel",h,!0)},M=function(o){o.addEventListener("touchstart",v,!0),o.addEventListener("touchend",l,!0),o.addEventListener("touchmove",c,!0),o.addEventListener("touchcancel",h,!0)},A=function(o){r.globalThis.document.addEventListener("mousemove",c,!0),o.addEventListener("mousedown",v,!0),o.addEventListener("mouseout",m,!0),o.addEventListener("mouseover",d,!0),r.globalThis.addEventListener("mouseup",l,!0)},N=function(o){r.globalThis.document.removeEventListener("pointermove",c,!0),o.removeEventListener("pointerdown",v,!0),o.removeEventListener("pointerleave",m,!0),o.removeEventListener("pointerover",d,!0),r.globalThis.removeEventListener("pointerup",l,!0),r.globalThis.removeEventListener("pointercancel",h,!0)},I=function(o){o.removeEventListener("touchstart",v,!0),o.removeEventListener("touchend",l,!0),o.removeEventListener("touchmove",c,!0),o.removeEventListener("touchcancel",h,!0)},U=function(o){r.globalThis.document.removeEventListener("mousemove",c,!0),o.removeEventListener("mousedown",v,!0),o.removeEventListener("mouseout",m,!0),o.removeEventListener("mouseover",d,!0),r.globalThis.removeEventListener("mouseup",l,!0)};s.hooks.init.tap(t.tag,function(){var n=f.context.contextService.getDomElement();r.globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="none",n.style.msTouchAction="none"):a.supportsPointerEvents&&(n.style.touchAction="none"),a.supportsPointerEvents?D(n):A(n),a.supportsTouchEvents&&M(n),g.useNativeClickEvent&&n.addEventListener("click",O,!0),n.addEventListener("wheel",L,{passive:!0,capture:!0})}),s.hooks.destroy.tap(t.tag,function(){var n=f.context.contextService.getDomElement();r.globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="",n.style.msTouchAction=""):a.supportsPointerEvents&&(n.style.touchAction=""),a.supportsPointerEvents?N(n):U(n),a.supportsTouchEvents&&I(n),g.useNativeClickEvent&&n.removeEventListener("click",O,!0),n.removeEventListener("wheel",L,!0)})}}])}();j.tag="DOMInteraction";var pe=function(t){function e(){var i;E(this,e);for(var r=arguments.length,f=new Array(r),s=0;s<r;s++)f[s]=arguments[s];return i=x(this,e,[].concat(f)),i.name="dom-interaction",i}return S(e,t),b(e,[{key:"init",value:function(){this.addRenderingPlugin(new j)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(W);export{pe as Plugin};
|
|
3
|
+
/*! Bundled license information:
|
|
4
|
+
|
|
5
|
+
@antv/g-plugin-dom-interaction/dist/index.esm.js:
|
|
6
|
+
(*!
|
|
7
|
+
* @antv/g-plugin-dom-interaction
|
|
8
|
+
* @description A G plugin
|
|
9
|
+
* @version 2.1.27
|
|
10
|
+
* @date 7/30/2025, 1:35:38 PM
|
|
11
|
+
* @author AntVis
|
|
12
|
+
* @docs https://g.antv.antgroup.com/
|
|
13
|
+
*)
|
|
14
|
+
*/
|
|
15
|
+
//# sourceMappingURL=g-plugin-dom-interaction.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-plugin-html-renderer@2.1.27 */
|
|
2
|
+
function N(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function y(i){"@babel/helpers - typeof";return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(i)}function A(i,t){if(y(i)!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var n=r.call(i,t||"default");if(y(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}function C(i){var t=A(i,"string");return y(t)=="symbol"?t:t+""}function k(i,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,C(n.key),n)}}function _(i,t,r){return t&&k(i.prototype,t),r&&k(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}function O(i){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(i)}function w(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w=function(){return!!i})()}function P(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function R(i,t){if(t&&(y(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(i)}function L(i,t,r){return t=O(t),R(i,w()?Reflect.construct(t,r||[],O(i).constructor):t.apply(i,r))}function M(i,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},M(i,t)}function D(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&M(i,t)}import{CanvasEvent as H,ElementEvent as m,RenderReason as W,isCSSRGB as I,isPattern as U,Shape as S,AbstractRendererPlugin as F}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";import{isNil as K,isNumber as z,isString as V}from"/@antv/util@^3.3.5?target=es2022";var Z="g-canvas-camera",B=function(){function i(){N(this,i),this.displayObjectHTMLElementMap=new WeakMap}return _(i,[{key:"joinTransformMatrix",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0];return"matrix(".concat([r[0],r[1],r[4],r[5],r[12]+n[0],r[13]+n[1]].join(","),")")}},{key:"apply",value:function(r,n){var e=this,c=r.camera,h=r.renderingContext,p=r.renderingService;this.context=r;var o=h.root.ownerDocument.defaultView,g=o.context.eventService.nativeHTMLMap,v=function(s,a){a.style.transform=e.joinTransformMatrix(s.getWorldTransform(),s.getOrigin())},f=function(s){var a=s.target;if(a.nodeName===S.HTML){e.$camera||(e.$camera=e.createCamera(c));var u=e.getOrCreateEl(a);e.$camera.appendChild(u),Object.keys(a.attributes).forEach(function(x){e.updateAttribute(x,a)}),v(a,u),g.set(u,a)}},l=function(s){var a=s.target;if(a.nodeName===S.HTML&&e.$camera){var u=e.getOrCreateEl(a);u&&(u.remove(),g.delete(u))}},T=function(s){var a=s.target;if(a.nodeName===S.HTML){var u=s.attrName;e.updateAttribute(u,a)}},E=function(s){var a=s.target,u=a.nodeName===S.FRAGMENT?a.childNodes:[a];u.forEach(function(x){if(x.nodeName===S.HTML){var G=e.getOrCreateEl(x);v(x,G)}})},b=function(){if(e.$camera){var s=e.context.config,a=s.width,u=s.height;e.$camera.parentElement.style.width="".concat(a||0,"px"),e.$camera.parentElement.style.height="".concat(u||0,"px")}};p.hooks.init.tap(i.tag,function(){o.addEventListener(H.RESIZE,b),o.addEventListener(m.MOUNTED,f),o.addEventListener(m.UNMOUNTED,l),o.addEventListener(m.ATTR_MODIFIED,T),o.addEventListener(m.BOUNDS_CHANGED,E)}),p.hooks.endFrame.tap(i.tag,function(){e.$camera&&h.renderReasons.has(W.CAMERA_CHANGED)&&(e.$camera.style.transform=e.joinTransformMatrix(c.getOrthoMatrix()))}),p.hooks.destroy.tap(i.tag,function(){e.$camera&&e.$camera.remove(),o.removeEventListener(H.RESIZE,b),o.removeEventListener(m.MOUNTED,f),o.removeEventListener(m.UNMOUNTED,l),o.removeEventListener(m.ATTR_MODIFIED,T),o.removeEventListener(m.BOUNDS_CHANGED,E)})}},{key:"createCamera",value:function(r){var n=this.context.config,e=n.document,c=n.width,h=n.height,p=this.context.contextService.getDomElement(),o=p.parentNode;if(o){var g=Z,v=o.querySelector("#".concat(g));if(!v){var f=(e||document).createElement("div");f.style.overflow="hidden",f.style.pointerEvents="none",f.style.position="absolute",f.style.left="0px",f.style.top="0px",f.style.width="".concat(c||0,"px"),f.style.height="".concat(h||0,"px");var l=(e||document).createElement("div");v=l,l.id=g,l.style.position="absolute",l.style.left="".concat(p.offsetLeft||0,"px"),l.style.top="".concat(p.offsetTop||0,"px"),l.style.transformOrigin="left top",l.style.transform=this.joinTransformMatrix(r.getOrthoMatrix()),l.style.pointerEvents="none",l.style.width="100%",l.style.height="100%",f.appendChild(l),o.appendChild(f)}return v}return null}},{key:"getOrCreateEl",value:function(r){var n=this.context.config.document,e=this.displayObjectHTMLElementMap.get(r);return e||(e=(n||document).createElement("div"),r.parsedStyle.$el=e,this.displayObjectHTMLElementMap.set(r,e),r.id&&(e.id=r.id),r.name&&e.setAttribute("name",r.name),r.className&&(e.className=r.className),e.style.position="absolute",e.style["will-change"]="transform",e.style.transform=this.joinTransformMatrix(r.getWorldTransform(),r.getOrigin())),e}},{key:"updateAttribute",value:function(r,n){var e=this.getOrCreateEl(n);switch(r){case"innerHTML":var c=n.parsedStyle.innerHTML;V(c)?e.innerHTML=c:(e.innerHTML="",e.appendChild(c));break;case"x":e.style.left="".concat(n.parsedStyle.x,"px");break;case"y":e.style.top="".concat(n.parsedStyle.y,"px");break;case"transformOrigin":var h=n.parsedStyle.transformOrigin;e.style["transform-origin"]="".concat(h[0].buildCSSText(null,null,"")," ").concat(h[1].buildCSSText(null,null,""));break;case"width":var p=n.parsedStyle.width;e.style.width=z(p)?"".concat(p,"px"):p.toString();break;case"height":var o=n.parsedStyle.height;e.style.height=z(o)?"".concat(o,"px"):o.toString();break;case"zIndex":var g=n.parsedStyle.zIndex;e.style["z-index"]="".concat(g);break;case"visibility":var v=n.parsedStyle.visibility;e.style.visibility=v;break;case"pointerEvents":var f=n.parsedStyle.pointerEvents,l=f===void 0?"auto":f;e.style.pointerEvents=l;break;case"opacity":var T=n.parsedStyle.opacity;e.style.opacity="".concat(T);break;case"fill":var E=n.parsedStyle.fill,b="";I(E)?E.isNone?b="transparent":b=n.getAttribute("fill"):Array.isArray(E)?b=n.getAttribute("fill"):U(E),e.style.background=b;break;case"stroke":var d=n.parsedStyle.stroke,s="";I(d)?d.isNone?s="transparent":s=n.getAttribute("stroke"):Array.isArray(d)?s=n.getAttribute("stroke"):U(d),e.style["border-color"]=s,e.style["border-style"]="solid";break;case"lineWidth":var a=n.parsedStyle.lineWidth;e.style["border-width"]="".concat(a||0,"px");break;case"lineDash":e.style["border-style"]="dashed";break;case"filter":var u=n.style.filter;e.style.filter=u;break;default:!K(n.style[r])&&n.style[r]!==""&&(e.style[r]=n.style[r])}}}])}();B.tag="HTMLRendering";var xe=function(i){function t(){var r;N(this,t);for(var n=arguments.length,e=new Array(n),c=0;c<n;c++)e[c]=arguments[c];return r=L(this,t,[].concat(e)),r.name="html-renderer",r}return D(t,i),_(t,[{key:"init",value:function(){this.addRenderingPlugin(new B)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(F);export{xe as Plugin};
|
|
3
|
+
/*! Bundled license information:
|
|
4
|
+
|
|
5
|
+
@antv/g-plugin-html-renderer/dist/index.esm.js:
|
|
6
|
+
(*!
|
|
7
|
+
* @antv/g-plugin-html-renderer
|
|
8
|
+
* @description A G plugin for rendering HTML
|
|
9
|
+
* @version 2.1.27
|
|
10
|
+
* @date 7/30/2025, 1:35:48 PM
|
|
11
|
+
* @author AntVis
|
|
12
|
+
* @docs https://g.antv.antgroup.com/
|
|
13
|
+
*)
|
|
14
|
+
*/
|
|
15
|
+
//# sourceMappingURL=g-plugin-html-renderer.mjs.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-plugin-image-loader@2.1.26 */
|
|
2
|
+
function F(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function j(r){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(r)}function ue(r,t){if(j(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t||"default");if(j(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function U(r){var t=ue(r,"string");return j(t)=="symbol"?t:t+""}function ce(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,U(n.key),n)}}function L(r,t,e){return t&&ce(r.prototype,t),e&&ce(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function H(r){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H(r)}function Z(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z=function(){return!!r})()}function fe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function le(r,t){if(t&&(j(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(r)}function se(r,t,e){return t=H(t),le(r,Z()?Reflect.construct(t,e||[],H(r).constructor):t.apply(r,e))}function q(r,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},q(r,t)}function pe(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&q(r,t)}import{ElementEvent as Y,OffscreenCanvasCreator as xe,parsedTransformToMat4 as Re,parseTransform as Te,DisplayObject as ke,GradientType as Ie,computeLinearGradient as je,computeRadialGradient as Ce,UnitType as Ee,Shape as Pe,AbstractRendererPlugin as ze}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";function B(r,t){this.v=r,this.k=t}function O(r,t,e,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}O=function(u,a,c,i){function l(s,p){O(u,s,function(d){return this._invoke(s,p,d)})}a?o?o(u,a,{value:c,enumerable:!i,configurable:!i,writable:!i}):u[a]=c:(l("next",0),l("throw",1),l("return",2))},O(r,t,e,n)}function V(){var r,t,e=typeof Symbol=="function"?Symbol:{},n=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function f(d,m,g,v){var b=m&&m.prototype instanceof a?m:a,w=Object.create(b.prototype);return O(w,"_invoke",function(P,h,W){var I,y,S,C=0,G=W||[],A=!1,x={p:0,n:0,v:r,a:N,f:N.bind(r,4),d:function(_,E){return I=_,y=0,S=r,x.n=E,u}};function N(k,_){for(y=k,S=_,t=0;!A&&C&&!E&&t<G.length;t++){var E,R=G[t],Q=x.p,$=R[2];k>3?(E=$===_)&&(S=R[(y=R[4])?5:(y=3,3)],R[4]=R[5]=r):R[0]<=Q&&((E=k<2&&Q<R[1])?(y=0,x.v=_,x.n=R[1]):Q<$&&(E=k<3||R[0]>_||_>$)&&(R[4]=k,R[5]=_,x.n=$,y=0))}if(E||k>1)return u;throw A=!0,_}return function(k,_,E){if(C>1)throw TypeError("Generator is already running");for(A&&_===1&&N(_,E),y=_,S=E;(t=y<2?r:S)||!A;){I||(y?y<3?(y>1&&(x.n=-1),N(y,S)):x.n=S:x.v=S);try{if(C=2,I){if(y||(k="next"),t=I[k]){if(!(t=t.call(I,S)))throw TypeError("iterator result is not an object");if(!t.done)return t;S=t.value,y<2&&(y=0)}else y===1&&(t=I.return)&&t.call(I),y<2&&(S=TypeError("The iterator does not provide a '"+k+"' method"),y=1);I=r}else if((t=(A=x.n<0)?S:P.call(h,x))!==u)break}catch(R){I=r,y=1,S=R}finally{C=1}}return{value:t,done:A}}}(d,g,v),!0),w}var u={};function a(){}function c(){}function i(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(O(t={},n,function(){return this}),t),s=i.prototype=a.prototype=Object.create(l);function p(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,i):(d.__proto__=i,O(d,o,"GeneratorFunction")),d.prototype=Object.create(s),d}return c.prototype=i,O(s,"constructor",i),O(i,"constructor",c),c.displayName="GeneratorFunction",O(i,o,"GeneratorFunction"),O(s),O(s,o,"Generator"),O(s,n,function(){return this}),O(s,"toString",function(){return"[object Generator]"}),(V=function(){return{w:f,m:p}})()}function K(r,t){function e(o,f,u,a){try{var c=r[o](f),i=c.value;return i instanceof B?t.resolve(i.v).then(function(l){e("next",l,u,a)},function(l){e("throw",l,u,a)}):t.resolve(i).then(function(l){c.value=l,u(c)},function(l){return e("throw",l,u,a)})}catch(l){a(l)}}var n;this.next||(O(K.prototype),O(K.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),O(this,"_invoke",function(o,f,u){function a(){return new t(function(c,i){e(o,u,c,i)})}return n=n?n.then(a,a):a()},!0)}function X(r,t,e,n,o){return new K(V().w(r,t,e,n),o||Promise)}function de(r,t,e,n,o){var f=X(r,t,e,n,o);return f.next().then(function(u){return u.done?u.value:f.next()})}function me(r){var t=Object(r),e=[];for(var n in t)e.unshift(n);return function o(){for(;e.length;)if((n=e.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function ee(r){if(r!=null){var t=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],e=0;if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}}}throw new TypeError(j(r)+" is not iterable")}function D(){"use strict";var r=V(),t=r.m(D),e=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(u){var a=typeof u=="function"&&u.constructor;return!!a&&(a===e||(a.displayName||a.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function f(u){var a,c;return function(i){a||(a={stop:function(){return c(i.a,2)},catch:function(){return i.v},abrupt:function(s,p){return c(i.a,o[s],p)},delegateYield:function(s,p,d){return a.resultName=p,c(i.d,ee(s),d)},finish:function(s){return c(i.f,s)}},c=function(s,p,d){i.p=a.prev,i.n=a.next;try{return s(p,d)}finally{a.next=i.n}}),a.resultName&&(a[a.resultName]=i.v,a.resultName=void 0),a.sent=i.v,a.next=i.n;try{return u.call(this,a)}finally{i.p=a.prev,i.n=a.next}}}return(D=function(){return{wrap:function(c,i,l,s){return r.w(f(c),i,l,s&&s.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(c,i){return new B(c,i)},AsyncIterator:K,async:function(c,i,l,s,p){return(n(i)?X:de)(f(c),i,l,s,p)},keys:me,values:ee}})()}function he(r,t,e){return(t=U(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function ge(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),e.push.apply(e,n)}return e}function z(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ge(Object(e),!0).forEach(function(n){he(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):ge(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function ve(r){if(Array.isArray(r))return r}function ye(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var n,o,f,u,a=[],c=!0,i=!1;try{if(f=(e=e.call(r)).next,t===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=f.call(e)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(l){i=!0,o=l}finally{try{if(!c&&e.return!=null&&(u=e.return(),Object(u)!==u))return}finally{if(i)throw o}}return a}}function te(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}function be(r,t){if(r){if(typeof r=="string")return te(r,t);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?te(r,t):void 0}}function we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(r,t){return ve(r)||ye(r,t)||be(r,t)||we()}function Oe(r,t,e,n,o,f,u){try{var a=r[f](u),c=a.value}catch(i){return void e(i)}a.done?t(c):Promise.resolve(c).then(n,o)}function re(r){return function(){var t=this,e=arguments;return new Promise(function(n,o){var f=r.apply(t,e);function u(c){Oe(f,n,o,u,a,"next",c)}function a(c){Oe(f,n,o,u,a,"throw",c)}u(void 0)})}}import{isString as M}from"/@antv/util@^3.3.5?target=es2022";import{mat4 as ne}from"/gl-matrix@^3.4.3?target=es2022";var Ge=function(){function r(){F(this,r),this.cacheStore=new Map}return L(r,[{key:"onRefAdded",value:function(e){}},{key:"has",value:function(e){return this.cacheStore.has(e)}},{key:"put",value:function(e,n,o){return this.cacheStore.has(e)?!1:(this.cacheStore.set(e,{value:n,counter:new Set([o.entity])}),this.onRefAdded(o),!0)}},{key:"get",value:function(e,n){var o=this.cacheStore.get(e);return o?(o.counter.has(n.entity)||(o.counter.add(n.entity),this.onRefAdded(n)),o.value):null}},{key:"update",value:function(e,n,o){var f=this.cacheStore.get(e);return f?(f.value=z(z({},f.value),n),f.counter.has(o.entity)||(f.counter.add(o.entity),this.onRefAdded(o)),!0):!1}},{key:"release",value:function(e,n){var o=this.cacheStore.get(e);return o?(o.counter.delete(n.entity),o.counter.size<=0&&this.cacheStore.delete(e),!0):!1}},{key:"releaseRef",value:function(e){var n=this;Array.from(this.cacheStore.keys()).forEach(function(o){n.release(o,e)})}},{key:"getSize",value:function(){return this.cacheStore.size}},{key:"clear",value:function(){this.cacheStore.clear()}}])}(),oe=[],ae=[],ie=function(){function r(){F(this,r)}return L(r,null,[{key:"stop",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.api;r.rafId&&(e.cancelAnimationFrame(r.rafId),r.rafId=null)}},{key:"executeTask",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.api;oe.length<=0&&ae.length<=0||(ae.forEach(function(n){return n()}),ae=oe.splice(0,r.TASK_NUM_PER_FRAME),r.rafId=e.requestAnimationFrame(function(){r.executeTask(e)}))}},{key:"sliceImage",value:function(e,n,o,f){for(var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r.api,c=e.naturalWidth||e.width,i=e.naturalHeight||e.height,l=n-u,s=o-u,p=Math.ceil(c/l),d=Math.ceil(i/s),m={tileSize:[n,o],gridSize:[d,p],tiles:Array(d).fill(null).map(function(){return Array(p).fill(null)})},g=function(w){for(var P=function(I){oe.push(function(){var y=I*l,S=w*s,C=[Math.min(n,c-y),Math.min(o,i-S)],G=C[0],A=C[1],x=a.createCanvas();x.width=n,x.height=o;var N=x.getContext("2d");N.drawImage(e,y,S,G,A,0,0,G,A),m.tiles[w][I]={x:y,y:S,tileX:I,tileY:w,data:x},f()})},h=0;h<p;h++)P(h)},v=0;v<d;v++)g(v);return r.stop(),r.executeTask(),m}}])}();ie.TASK_NUM_PER_FRAME=10;var T=new Ge;T.onRefAdded=function(t){var e=this;t.addEventListener(Y.DESTROY,function(){e.releaseRef(t)},{once:!0})};var Ae=function(){function r(t,e){F(this,r),this.gradientCache={},this.patternCache={},this.context=t,this.runtime=e}return L(r,[{key:"getImageSync",value:function(e,n,o){var f=M(e)?e:e.src;if(T.has(f)){var u=T.get(f,n);if(u.img.complete)return o?.(u),u}return this.getOrCreateImage(e,n).then(function(a){o?.(a)}).catch(function(a){console.error(a)}),null}},{key:"getOrCreateImage",value:function(e,n){var o=this,f=M(e)?e:e.src;if(!M(e)&&!T.has(f)){var u={img:e,size:[e.naturalWidth||e.width,e.naturalHeight||e.height],tileSize:J(e)};T.put(f,u,n)}if(T.has(f)){var a=T.get(f,n);return a.img.complete?Promise.resolve(a):new Promise(function(c,i){a.img.addEventListener("load",function(){a.size=[a.img.naturalWidth||a.img.width,a.img.naturalHeight||a.img.height],a.tileSize=J(a.img),c(a)}),a.img.addEventListener("error",function(l){i(l)})})}return new Promise(function(c,i){var l=o.context.config.createImage();if(l){var s={img:l,size:[0,0],tileSize:J(l)};T.put(f,s,n),l.onload=function(){s.size=[l.naturalWidth||l.width,l.naturalHeight||l.height],s.tileSize=J(s.img),c(s)},l.onerror=function(p){i(p)},l.crossOrigin="Anonymous",l.src=f}})}},{key:"createDownSampledImage",value:function(){var t=re(D().mark(function n(o,f){var u,a,c,i,l,s,p,d,m,g,v,b,w,P;return D().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=1,this.getOrCreateImage(o,f);case 1:if(u=h.sent,!(typeof u.downSamplingRate<"u")){h.next=2;break}return h.abrupt("return",u);case 2:if(a=this.context.config.enableLargeImageOptimization,c=typeof a=="boolean"?{}:a,i=c.maxDownSampledImageSize,l=i===void 0?2048:i,s=c.downSamplingRateThreshold,p=s===void 0?.5:s,d=this.runtime.globalThis.createImageBitmap,m=Se(u.size,2),g=m[0],v=m[1],b=u.img,w=Math.min((l+l)/(g+v),Math.max(.01,Math.min(p,.5))),P=z(z({},u),{},{downSamplingRate:w}),T.update(u.img.src,P,f),!d){h.next=7;break}return h.prev=3,h.next=4,d(u.img,{resizeWidth:g*w,resizeHeight:v*w});case 4:b=h.sent,h.next=6;break;case 5:h.prev=5,h.catch(3),w=1;case 6:h.next=8;break;case 7:w=1;case 8:return P=z(z({},this.getImageSync(o,f)),{},{downSampled:b,downSamplingRate:w}),T.update(u.img.src,P,f),h.abrupt("return",P);case 9:case"end":return h.stop()}},n,this,[[3,5]])}));function e(n,o){return t.apply(this,arguments)}return e}()},{key:"createImageTiles",value:function(){var t=re(D().mark(function n(o,f,u,a){var c,i,l,s,p;return D().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=1,this.getOrCreateImage(o,a);case 1:return c=d.sent,i=a.ownerDocument.defaultView,l=i.requestAnimationFrame,s=i.cancelAnimationFrame,ie.api={requestAnimationFrame:l,cancelAnimationFrame:s,createCanvas:function(){return xe.createCanvas()}},p=z(z({},c),ie.sliceImage(c.img,c.tileSize[0],c.tileSize[0],u)),T.update(c.img.src,p,a),d.abrupt("return",p);case 2:case"end":return d.stop()}},n,this)}));function e(n,o,f,u){return t.apply(this,arguments)}return e}()},{key:"releaseImage",value:function(e,n){T.release(M(e)?e:e.src,n)}},{key:"releaseImageRef",value:function(e){T.releaseRef(e)}},{key:"getOrCreatePatternSync",value:function(e,n,o,f,u,a,c){var i=this.generatePatternKey(n);if(i&&this.patternCache[i])return this.patternCache[i];var l=n.image,s=n.repetition,p=n.transform,d,m=!1;if(M(l)){var g=this.getImageSync(l,e,c);d=g?.img}else f?(d=f,m=!0):d=l;var v=d&&o.createPattern(d,s);if(v){var b;p?b=Re(Te(p),new ke({})):b=ne.identity(ne.create()),m&&ne.scale(b,b,[1/u,1/u,1]),v.setTransform({a:b[0],b:b[1],c:b[4],d:b[5],e:b[12]+a[0],f:b[13]+a[1]})}return i&&v&&(this.patternCache[i]=v),v}},{key:"getOrCreateGradient",value:function(e,n){var o=this.generateGradientKey(e),f=e.type,u=e.steps,a=e.min,c=e.width,i=e.height,l=e.angle,s=e.cx,p=e.cy,d=e.size;if(this.gradientCache[o])return this.gradientCache[o];var m=null;if(f===Ie.LinearGradient){var g=je(a,c,i,l),v=g.x1,b=g.y1,w=g.x2,P=g.y2;m=n.createLinearGradient(v,b,w,P)}else if(f===Ie.RadialGradient){var h=Ce(a,c,i,s,p,d),W=h.x,I=h.y,y=h.r;m=n.createRadialGradient(W,I,0,W,I,y)}return m&&(u.forEach(function(S){var C=S.offset,G=S.color;if(C.unit===Ee.kPercentage){var A;(A=m)===null||A===void 0||A.addColorStop(C.value/100,G.toString())}}),this.gradientCache[o]=m),this.gradientCache[o]}},{key:"generateGradientKey",value:function(e){var n=e.type,o=e.min,f=e.width,u=e.height,a=e.steps,c=e.angle,i=e.cx,l=e.cy,s=e.size;return"gradient-".concat(n,"-").concat(c?.toString()||0,"-").concat(i?.toString()||0,"-").concat(l?.toString()||0,"-").concat(s?.toString()||0,"-").concat(o[0],"-").concat(o[1],"-").concat(f,"-").concat(u,"-").concat(a.map(function(p){var d=p.offset,m=p.color;return"".concat(d).concat(m)}).join("-"))}},{key:"generatePatternKey",value:function(e){var n=e.image,o=e.repetition;if(M(n))return"pattern-".concat(n,"-").concat(o);if(n.nodeName==="rect")return"pattern-".concat(n.entity,"-").concat(o)}}])}();Ae.isSupportTile=!!xe.createCanvas();function J(r){if(!r.complete)return[0,0];var t=r.naturalWidth||r.width,e=r.naturalHeight||r.height,n=256;return[256,512].forEach(function(o){var f=Math.ceil(e/o),u=Math.ceil(t/o);f*u<1e3&&(n=o)}),[n,n]}var _e=function(){function r(){F(this,r)}return L(r,[{key:"apply",value:function(e){var n=e.renderingService,o=e.renderingContext,f=e.imagePool,u=o.root.ownerDocument.defaultView,a=function(s,p,d){var m=s.parsedStyle,g=m.width,v=m.height;g&&!v?s.setAttribute("height",d/p*g):!g&&v&&s.setAttribute("width",p/d*v)},c=function(s){var p=s.target,d=p.nodeName,m=p.attributes;if(d===Pe.IMAGE){var g=m.src,v=m.keepAspectRatio;f.getImageSync(g,p,function(b){var w=b.img,P=w.width,h=w.height;v&&a(p,P,h),p.renderable.dirty=!0,n.dirtify()})}},i=function(s){var p=s.target,d=s.attrName,m=s.prevValue,g=s.newValue;p.nodeName!==Pe.IMAGE||d!=="src"||(m!==g&&f.releaseImage(m,p),M(g)&&f.getOrCreateImage(g,p).then(function(v){var b=v.img,w=b.width,P=b.height;p.attributes.keepAspectRatio&&a(p,w,P),p.renderable.dirty=!0,n.dirtify()}).catch(function(){}))};n.hooks.init.tap(r.tag,function(){u.addEventListener(Y.MOUNTED,c),u.addEventListener(Y.ATTR_MODIFIED,i)}),n.hooks.destroy.tap(r.tag,function(){u.removeEventListener(Y.MOUNTED,c),u.removeEventListener(Y.ATTR_MODIFIED,i)})}}])}();_e.tag="LoadImage";var er=function(r){function t(){var e;F(this,t);for(var n=arguments.length,o=new Array(n),f=0;f<n;f++)o[f]=arguments[f];return e=se(this,t,[].concat(o)),e.name="image-loader",e}return pe(t,r),L(t,[{key:"init",value:function(n){this.context.imagePool=new Ae(this.context,n),this.addRenderingPlugin(new _e)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(ze);export{Ae as ImagePool,er as Plugin};
|
|
4
|
+
/*! Bundled license information:
|
|
5
|
+
|
|
6
|
+
@babel/runtime/helpers/esm/regenerator.js:
|
|
7
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
8
|
+
|
|
9
|
+
@antv/g-plugin-image-loader/dist/index.esm.js:
|
|
10
|
+
(*!
|
|
11
|
+
* @antv/g-plugin-image-loader
|
|
12
|
+
* @description A G plugin for loading image
|
|
13
|
+
* @version 2.1.26
|
|
14
|
+
* @date 7/30/2025, 1:35:52 PM
|
|
15
|
+
* @author AntVis
|
|
16
|
+
* @docs https://g.antv.antgroup.com/
|
|
17
|
+
*)
|
|
18
|
+
*/
|
|
19
|
+
//# sourceMappingURL=g-plugin-image-loader.mjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* esm.sh - @antv/g-web-animations-api@2.1.28 */
|
|
2
|
+
import{FederatedEvent as xt,ERROR_MSG_METHOD_NOT_IMPLEMENTED as O,propertyMetadataCache as Ct,runtime as U}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";function P(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function b(i){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(i)}function nt(i,t){if(b(i)!="object"||!i)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var r=e.call(i,t||"default");if(b(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}function at(i){var t=nt(i,"string");return b(t)=="symbol"?t:t+""}function st(i,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,at(r.key),r)}}function A(i,t,e){return t&&st(i.prototype,t),e&&st(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(i)}function G(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G=function(){return!!i})()}function ot(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ut(i,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ot(i)}function ft(i,t,e){return t=E(t),ut(i,G()?Reflect.construct(t,e||[],E(i).constructor):t.apply(i,e))}function R(i,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},R(i,t)}function lt(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&R(i,t)}function w(i,t){(t==null||t>i.length)&&(t=i.length);for(var e=0,r=Array(t);e<t;e++)r[e]=i[e];return r}function ct(i){if(Array.isArray(i))return w(i)}function ht(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function x(i,t){if(i){if(typeof i=="string")return w(i,t);var e={}.toString.call(i).slice(8,-1);return e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set"?Array.from(i):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(i,t):void 0}}function dt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(i){return ct(i)||ht(i)||x(i)||dt()}function mt(i){if(Array.isArray(i))return i}function pt(i,t){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var r,n,s,a,u=[],o=!0,f=!1;try{if(s=(e=e.call(i)).next,t===0){if(Object(e)!==e)return;o=!1}else for(;!(o=(r=s.call(e)).done)&&(u.push(r.value),u.length!==t);o=!0);}catch(c){f=!0,n=c}finally{try{if(!o&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(f)throw n}}return u}}function vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(i,t){return mt(i)||pt(i,t)||x(i,t)||vt()}import{clamp as k,isNumber as Mt,isNil as Y}from"/@antv/util@^3.3.5?target=es2022";var V=function(i){function t(e,r,n,s){var a;return P(this,t),a=ft(this,t,[e]),a.currentTime=n,a.timelineTime=s,a.target=r,a.type="finish",a.bubbles=!1,a.currentTarget=r,a.defaultPrevented=!1,a.eventPhase=a.AT_TARGET,a.timeStamp=Date.now(),a.currentTime=n,a.timelineTime=s,a}return lt(t,i),A(t)}(xt),Dt=0,It=function(){function i(t,e){var r;P(this,i),this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._playbackRate=1,this._inTimeline=!0,this.effect=t,t.animation=this,this.timeline=e,this.id="".concat(Dt++),this._inEffect=!!this.effect.update(0),this._totalDuration=Number((r=this.effect)===null||r===void 0?void 0:r.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()}return A(i,[{key:"pending",get:function(){return this._startTime===null&&!this._paused&&this.playbackRate!==0||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var e=this;return this.readyPromise||(this.timeline.animationsWithPromises.indexOf(this)===-1&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(r,n){e.resolveReadyPromise=function(){r(e)},e.rejectReadyPromise=function(){n(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var e=this;return this.finishedPromise||(this.timeline.animationsWithPromises.indexOf(this)===-1&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(r,n){e.resolveFinishedPromise=function(){r(e)},e.rejectFinishedPromise=function(){n(new Error)}}),this.playState==="finished"&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(e){if(e=Number(e),!isNaN(e)){if(this.timeline.restart(),!this._paused&&this._startTime!==null){var r;this._startTime=Number((r=this.timeline)===null||r===void 0?void 0:r.currentTime)-e/this.playbackRate}this.currentTimePending=!1,this._currentTime!==e&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(e,!0),this.timeline.applyDirtiedAnimation(this))}}},{key:"startTime",get:function(){return this._startTime},set:function(e){if(e!==null){if(this.updatePromises(),e=Number(e),isNaN(e)||this._paused||this._idle)return;this._startTime=e,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()}}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(e){if(e!==this._playbackRate){this.updatePromises();var r=this.currentTime;this._playbackRate=e,this.startTime=null,this.playState!=="paused"&&this.playState!=="idle"&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),r!==null&&(this.currentTime=r),this.updatePromises()}}},{key:"_isFinished",get:function(){return!this._idle&&(this._playbackRate>0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||this.playState==="running"||!this._finishedFlag}},{key:"updatePromises",value:function(){var e;if((e=this.effect.target)!==null&&e!==void 0&&e.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var r=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==r&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):r==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==r&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():r==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var r=new V(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(r)})}}},{key:"reverse",value:function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()}},{key:"updatePlaybackRate",value:function(e){this.playbackRate=e}},{key:"targetAnimations",value:function(){var e,r=(e=this.effect)===null||e===void 0?void 0:e.target;return r.getAnimations()}},{key:"markTarget",value:function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)}},{key:"unmarkTarget",value:function(){var e=this.targetAnimations(),r=e.indexOf(this);r!==-1&&e.splice(r,1)}},{key:"tick",value:function(e,r){!this._idle&&!this._paused&&(this._startTime===null?r&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),r&&(this.currentTimePending=!1,this.fireEvents(e))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")}},{key:"persist",value:function(){throw new Error(O)}},{key:"addEventListener",value:function(e,r,n){throw new Error(O)}},{key:"removeEventListener",value:function(e,r,n){throw new Error(O)}},{key:"dispatchEvent",value:function(e){throw new Error(O)}},{key:"commitStyles",value:function(){throw new Error(O)}},{key:"ensureAlive",value:function(){if(this.playbackRate<0&&this.currentTime===0){var e;this._inEffect=!!((e=this.effect)!==null&&e!==void 0&&e.update(-1))}else{var r;this._inEffect=!!((r=this.effect)!==null&&r!==void 0&&r.update(this.currentTime))}!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(e,r){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!r&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(e){var r=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var n=new V(null,this,this.currentTime,e);setTimeout(function(){r.onfinish&&r.onfinish(n)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var s=new V(null,this,this.currentTime,e);this.onframe(s)}this._finishedFlag=!1}}}])}(),qt=4,jt=.001,zt=1e-7,Kt=10,N=11,C=1/(N-1),Wt=typeof Float32Array=="function",At=function(t,e){return 1-3*e+3*t},Et=function(t,e){return 3*e-6*t},wt=function(t){return 3*t},H=function(t,e,r){return((At(e,r)*t+Et(e,r))*t+wt(e))*t},St=function(t,e,r){return 3*At(e,r)*t*t+2*Et(e,r)*t+wt(e)},Bt=function(t,e,r,n,s){var a,u,o=0;do u=e+(r-e)/2,a=H(u,n,s)-t,a>0?r=u:e=u;while(Math.abs(a)>zt&&++o<Kt);return u},Lt=function(t,e,r,n){for(var s=0;s<qt;++s){var a=St(e,r,n);if(a===0)return e;var u=H(e,r,n)-t;e-=u/a}return e},tt=function(t,e,r,n){if(!(t>=0&&t<=1&&r>=0&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return function(o){return o};for(var s=Wt?new Float32Array(N):new Array(N),a=0;a<N;++a)s[a]=H(a*C,t,r);var u=function(f){for(var c=0,l=1,h=N-1;l!==h&&s[l]<=f;++l)c+=C;--l;var m=(f-s[l])/(s[l+1]-s[l]),d=c+m*C,g=St(d,t,r);return g>=jt?Lt(f,d,t,r):g===0?d:Bt(f,c,c+C,t,r)};return function(o){return o===0||o===1?o:H(u(o),e,n)}},Qt=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},M=function(t){return Math.pow(t,2)},D=function(t){return Math.pow(t,3)},I=function(t){return Math.pow(t,4)},q=function(t){return Math.pow(t,5)},j=function(t){return Math.pow(t,6)},z=function(t){return 1-Math.cos(t*Math.PI/2)},K=function(t){return 1-Math.sqrt(1-t*t)},W=function(t){return t*t*(3*t-2)},B=function(t){for(var e,r=4;t<((e=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((e*3-2)/22-t,2)},L=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=S(e,2),n=r[0],s=n===void 0?1:n,a=r[1],u=a===void 0?.5:a,o=k(Number(s),1,10),f=k(Number(u),.1,2);return t===0||t===1?t:-o*Math.pow(2,10*(t-1))*Math.sin((t-1-f/(Math.PI*2)*Math.asin(1/o))*(Math.PI*2)/f)},F=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=S(e,4),s=n[0],a=s===void 0?1:s,u=n[1],o=u===void 0?100:u,f=n[2],c=f===void 0?10:f,l=n[3],h=l===void 0?0:l;a=k(a,.1,1e3),o=k(o,.1,1e3),c=k(c,.1,1e3),h=k(h,.1,1e3);var m=Math.sqrt(o/a),d=c/(2*Math.sqrt(o*a)),g=d<1?m*Math.sqrt(1-d*d):0,T=1,rt=d<1?(d*m+-h)/g:-h+m,_=r?r*t/1e3:t;return d<1?_=Math.exp(-_*d*m)*(T*Math.cos(g*_)+rt*Math.sin(g*_)):_=(T+rt*_)*Math.exp(-_*m),t===0||t===1?t:1-_},X=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e,n=S(r,2),s=n[0],a=s===void 0?10:s,u=n[1],o=u==="start"?Math.ceil:Math.floor;return o(k(t,0,1)*a)/a},yt=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=S(e,4),n=r[0],s=r[1],a=r[2],u=r[3];return tt(n,s,a,u)(t)},Q=tt(.42,0,1,1),p=function(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return 1-t(1-e,r,n)}},v=function(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return e<.5?t(e*2,r,n)/2:1-t(e*-2+2,r,n)/2}},y=function(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return e<.5?(1-t(1-e*2,r,n))/2:(t(e*2-1,r,n)+1)/2}},gt={steps:X,"step-start":function(t){return X(t,[1,"start"])},"step-end":function(t){return X(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":yt,ease:function(t){return yt(t,[.25,.1,.25,1])},in:Q,out:p(Q),"in-out":v(Q),"out-in":y(Q),"in-quad":M,"out-quad":p(M),"in-out-quad":v(M),"out-in-quad":y(M),"in-cubic":D,"out-cubic":p(D),"in-out-cubic":v(D),"out-in-cubic":y(D),"in-quart":I,"out-quart":p(I),"in-out-quart":v(I),"out-in-quart":y(I),"in-quint":q,"out-quint":p(q),"in-out-quint":v(q),"out-in-quint":y(q),"in-expo":j,"out-expo":p(j),"in-out-expo":v(j),"out-in-expo":y(j),"in-sine":z,"out-sine":p(z),"in-out-sine":v(z),"out-in-sine":y(z),"in-circ":K,"out-circ":p(K),"in-out-circ":v(K),"out-in-circ":y(K),"in-back":W,"out-back":p(W),"in-out-back":v(W),"out-in-back":y(W),"in-bounce":B,"out-bounce":p(B),"in-out-bounce":v(B),"out-in-bounce":y(B),"in-elastic":L,"out-elastic":p(L),"in-out-elastic":v(L),"out-in-elastic":y(L),spring:F,"spring-in":F,"spring-out":p(F),"spring-in-out":v(F),"spring-out-in":y(F)},$t=function(t){return Qt(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},Ht=function(t){return gt[$t(t)]||gt.linear},Ut=function(t){return t},Zt=1,Gt=.5,bt=0;function _t(i,t){return function(e){if(e>=1)return 1;var r=1/i;return e+=t*r,e-e%r}}var $="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",Jt=new RegExp("cubic-bezier\\(".concat($,",").concat($,",").concat($,",").concat($,"\\)")),Yt=/steps\(\s*(\d+)\s*\)/,Vt=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function et(i){var t=Jt.exec(i);if(t)return tt.apply(void 0,J(t.slice(1).map(Number)));var e=Yt.exec(i);if(e)return _t(Number(e[1]),bt);var r=Vt.exec(i);return r?_t(Number(r[1]),{start:Zt,middle:Gt,end:bt}[r[2]]):Ht(i)}function Xt(i){return Math.abs(te(i)/(i.playbackRate||1))}function te(i){var t;return i.duration===0||i.iterations===0?0:(i.duration==="auto"?0:Number(i.duration))*((t=i.iterations)!==null&&t!==void 0?t:1)}var Ot=0,it=1,Z=2,Ft=3;function ee(i,t,e){if(t===null)return Ot;var r=e.endTime;return t<Math.min(e.delay,r)?it:t>=Math.min(e.delay+i+e.endDelay,r)?Z:Ft}function ie(i,t,e,r,n){switch(r){case it:return t==="backwards"||t==="both"?0:null;case Ft:return e-n;case Z:return t==="forwards"||t==="both"?i:null;case Ot:return null}}function re(i,t,e,r,n){var s=n;return i===0?t!==it&&(s+=e):s+=r/i,s}function ne(i,t,e,r,n,s){var a=i===1/0?t%1:i%1;return a===0&&e===Z&&r!==0&&(n!==0||s===0)&&(a=1),a}function ae(i,t,e,r){return i===Z&&t===1/0?1/0:e===1?Math.floor(r)-1:Math.floor(r)}function se(i,t,e){var r=i;if(i!=="normal"&&i!=="reverse"){var n=t;i==="alternate-reverse"&&(n+=1),r="normal",n!==1/0&&n%2!==0&&(r="reverse")}return r==="normal"?e:1-e}function oe(i,t,e){var r=ee(i,t,e),n=ie(i,e.fill,t,r,e.delay);if(n===null)return null;var s=e.duration==="auto"?0:e.duration,a=re(s,r,e.iterations,n,e.iterationStart),u=ne(a,e.iterationStart,r,e.iterations,n,s),o=ae(r,e.iterations,u,a),f=se(e.direction,o,u);return e.currentIteration=o,e.progress=f,e.easingFunction(f)}function ue(i,t,e){var r=fe(i,t),n=le(r,e);return function(s,a){if(a!==null)n.filter(function(o){return a>=o.applyFrom&&a<o.applyTo}).forEach(function(o){var f=a-o.startOffset,c=o.endOffset-o.startOffset,l=c===0?0:f/c;s.setAttribute(o.property,o.interpolation(l),!1,!1)});else for(var u in r)Nt(u)&&s.setAttribute(u,null)}}function Nt(i){return i!=="offset"&&i!=="easing"&&i!=="composite"&&i!=="computedOffset"}function fe(i,t){for(var e={},r=0;r<i.length;r++)for(var n in i[r])if(Nt(n)){var s={offset:i[r].offset,computedOffset:i[r].computedOffset,easing:i[r].easing,easingFunction:et(i[r].easing)||t.easingFunction,value:i[r][n]};e[n]=e[n]||[],e[n].push(s)}return e}function le(i,t){var e=[];for(var r in i)for(var n=i[r],s=0;s<n.length-1;s++){var a=s,u=s+1,o=n[a].computedOffset,f=n[u].computedOffset,c=o,l=f;s===0&&(c=-1/0,f===0&&(u=a)),s===n.length-2&&(l=1/0,o===1&&(a=u)),e.push({applyFrom:c,applyTo:l,startOffset:n[a].computedOffset,endOffset:n[u].computedOffset,easingFunction:n[a].easingFunction,property:r,interpolation:ce(r,n[a].value,n[u].value,t)})}return e.sort(function(h,m){return h.startOffset-m.startOffset}),e}var Tt=function(t,e,r){return function(n){var s=Rt(t,e,n);return Mt(s)?s:r(s)}};function ce(i,t,e,r){var n=Ct[i];if(n&&n.syntax&&n.int){var s=U.styleValueRegistry.getPropertySyntax(n.syntax);if(s){var a=s.parser,u=a?a(t,r):t,o=a?a(e,r):e,f=s.mixer(u,o,r);if(f){var c=Tt.apply(void 0,J(f));return function(l){return l===0?t:l===1?e:c(l)}}}}return Tt(!1,!0,function(l){return l?e:t})}function Rt(i,t,e){if(typeof i=="number"&&typeof t=="number")return i*(1-e)+t*e;if(typeof i=="boolean"&&typeof t=="boolean"||typeof i=="string"&&typeof t=="string")return e<.5?i:t;if(Array.isArray(i)&&Array.isArray(t)){for(var r=i.length,n=t.length,s=Math.max(r,n),a=[],u=0;u<s;u++)a.push(Rt(i[u<r?u:r-1],t[u<n?u:n-1],e));return a}throw new Error("Mismatched interpolation arguments ".concat(i,":").concat(t))}var he=function(){function i(){P(this,i),this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=Ut,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.currentIteration=null,this.progress=null}return A(i,[{key:"easing",get:function(){return this._easing},set:function(e){this.easingFunction=et(e),this._easing=e}}])}();function de(i){var t=[];for(var e in i)if(!(e in["easing","offset","composite"])){var r=i[e];Array.isArray(r)||(r=[r]);for(var n=r.length,s=0;s<n;s++){if(!t[s]){var a={};"offset"in i&&(a.offset=Number(i.offset)),"easing"in i&&(a.easing=i.easing),"composite"in i&&(a.composite=i.composite),t[s]=a}r[s]!==void 0&&r[s]!==null&&(t[s][e]=r[s])}}return t.sort(function(u,o){return(u.computedOffset||0)-(o.computedOffset||0)}),t}function kt(i,t){if(i===null)return[];Array.isArray(i)||(i=de(i));for(var e=i.map(function(o){var f={};t!=null&&t.composite&&(f.composite="auto");for(var c in o){var l=o[c];if(c==="offset"){if(l!==null){if(l=Number(l),!isFinite(l))throw new Error("Keyframe offsets must be numbers.");if(l<0||l>1)throw new Error("Keyframe offsets must be between 0 and 1.");f.computedOffset=l}}else if(c==="composite"&&["replace","add","accumulate","auto"].indexOf(l)===-1)throw new Error("".concat(l," compositing is not supported"));f[c]=l}return f.offset===void 0&&(f.offset=null),f.easing===void 0&&(f.easing=t?.easing||"linear"),f.composite===void 0&&(f.composite="auto"),f}),r=!0,n=-1/0,s=0;s<e.length;s++){var a=e[s].offset;if(Y(a))r=!1;else{if(a<n)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");n=a}}e=e.filter(function(o){return Number(o.offset)>=0&&Number(o.offset)<=1});function u(){var o,f=e,c=f.length;if(e[c-1].computedOffset=Number((o=e[c-1].offset)!==null&&o!==void 0?o:1),c>1){var l;e[0].computedOffset=Number((l=e[0].offset)!==null&&l!==void 0?l:0)}for(var h=0,m=Number(e[0].computedOffset),d=1;d<c;d++){var g=e[d].computedOffset;if(!Y(g)&&!Y(m)){for(var T=1;T<d-h;T++)e[h+T].computedOffset=m+(Number(g)-m)*T/(d-h);h=d,m=Number(g)}}}return r||u(),e}var me="backwards|forwards|both|none".split("|"),pe="reverse|alternate|alternate-reverse".split("|");function ve(i,t){var e=new he;return t&&(e.fill="both",e.duration="auto"),typeof i=="number"&&!isNaN(i)?e.duration=i:i!==void 0&&Object.keys(i).forEach(function(r){if(i[r]!==void 0&&i[r]!==null&&i[r]!=="auto"){if((typeof e[r]=="number"||r==="duration")&&(typeof i[r]!="number"||isNaN(i[r]))||r==="fill"&&me.indexOf(i[r])===-1||r==="direction"&&pe.indexOf(i[r])===-1)return;e[r]=i[r]}}),e}function ye(i,t){return i=ge(i??{duration:"auto"}),ve(i,t)}function ge(i){return typeof i=="number"&&(isNaN(i)?i={duration:"auto"}:i={duration:i}),i}var be=function(){function i(t,e,r){var n=this;P(this,i),this.composite="replace",this.iterationComposite="replace",this.target=t,this.timing=ye(r,!1),this.timing.effect=this,this.timing.activeDuration=Xt(this.timing),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=kt(e,this.timing),this.interpolations=ue(this.normalizedKeyframes,this.timing,this.target);var s=U.globalThis.Proxy;this.computedTiming=s?new s(this.timing,{get:function(u,o){return o==="duration"?u.duration==="auto"?0:u.duration:o==="fill"?u.fill==="auto"?"none":u.fill:o==="localTime"?n.animation&&n.animation.currentTime||null:o==="currentIteration"?!n.animation||n.animation.playState!=="running"?null:u.currentIteration||0:o==="progress"?!n.animation||n.animation.playState!=="running"?null:u.progress||0:u[o]},set:function(){return!0}}):this.timing}return A(i,[{key:"applyInterpolations",value:function(){this.interpolations(this.target,Number(this.timeFraction))}},{key:"update",value:function(e){return e===null?!1:(this.timeFraction=oe(this.timing.activeDuration,e,this.timing),this.timeFraction!==null)}},{key:"getKeyframes",value:function(){return this.normalizedKeyframes}},{key:"setKeyframes",value:function(e){this.normalizedKeyframes=kt(e)}},{key:"getComputedTiming",value:function(){return this.computedTiming}},{key:"getTiming",value:function(){return this.timing}},{key:"updateTiming",value:function(e){var r=this;Object.keys(e||{}).forEach(function(n){r.timing[n]=e[n]})}}])}();function Pt(i,t){return Number(i.id)-Number(t.id)}var _e=function(){function i(t){var e=this;P(this,i),this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(r){e.currentTime=r,e.discardAnimations(),e.animations.length===0?e.timelineTicking=!1:e.requestAnimationFrame(e.webAnimationsNextTick)},this.processRafCallbacks=function(r){var n=e.rafCallbacks;e.rafCallbacks=[],r<Number(e.currentTime)&&(r=Number(e.currentTime)),e.animations.sort(Pt),e.animations=e.tick(r,!0,e.animations)[0],n.forEach(function(s){s[1](r)}),e.applyPendingEffects()},this.document=t}return A(i,[{key:"getAnimations",value:function(){return this.discardAnimations(),this.animations.slice()}},{key:"isTicking",value:function(){return this.inTick}},{key:"play",value:function(e,r,n){var s=new be(e,r,n),a=new It(s,this);return this.animations.push(a),this.restartWebAnimationsNextTick(),a.updatePromises(),a.play(),a.updatePromises(),a}},{key:"applyDirtiedAnimation",value:function(e){var r=this;if(!this.inTick){e.markTarget();var n=e.targetAnimations();n.sort(Pt);var s=this.tick(Number(this.currentTime),!1,n.slice())[1];s.forEach(function(a){var u=r.animations.indexOf(a);u!==-1&&r.animations.splice(u,1)}),this.applyPendingEffects()}}},{key:"restart",value:function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame}},{key:"destroy",value:function(){this.document.defaultView.cancelAnimationFrame(this.frameId)}},{key:"applyPendingEffects",value:function(){this.pendingEffects.forEach(function(e){e?.applyInterpolations()}),this.pendingEffects=[]}},{key:"updateAnimationsPromises",value:function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(e){return e.updatePromises()})}},{key:"discardAnimations",value:function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(e){return e.playState!=="finished"&&e.playState!=="idle"})}},{key:"restartWebAnimationsNextTick",value:function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))}},{key:"rAF",value:function(e){var r=this.rafId++;return this.rafCallbacks.length===0&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([r,e]),r}},{key:"requestAnimationFrame",value:function(e){var r=this;return this.rAF(function(n){r.updateAnimationsPromises(),e(n),r.updateAnimationsPromises()})}},{key:"tick",value:function(e,r,n){var s=this,a,u;this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=e,this.ticking=!1;var o=[],f=[],c=[],l=[];return n.forEach(function(h){h.tick(e,r),h._inEffect?(f.push(h.effect),h.markTarget()):(o.push(h.effect),h.unmarkTarget()),h._needsTick&&(s.ticking=!0);var m=h._inEffect||h._needsTick;h._inTimeline=m,m?c.push(h):l.push(h)}),(a=this.pendingEffects).push.apply(a,o),(u=this.pendingEffects).push.apply(u,f),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[c,l]}}])}();U.EasingFunction=et;U.AnimationTimeline=_e;export{It as Animation,V as AnimationEvent,_e as AnimationTimeline,gt as EasingFunctions,be as KeyframeEffect,Pt as compareAnimations,ve as makeTiming,kt as normalizeKeyframes,ye as normalizeTimingInput,ge as numericTimingToObject};
|
|
5
|
+
/*! Bundled license information:
|
|
6
|
+
|
|
7
|
+
@antv/g-web-animations-api/dist/index.esm.js:
|
|
8
|
+
(*!
|
|
9
|
+
* @antv/g-web-animations-api
|
|
10
|
+
* @description A simple implementation of Web Animations API.
|
|
11
|
+
* @version 2.1.28
|
|
12
|
+
* @date 7/30/2025, 1:36:24 PM
|
|
13
|
+
* @author AntVis
|
|
14
|
+
* @docs https://g.antv.antgroup.com/
|
|
15
|
+
*)
|
|
16
|
+
*/
|
|
17
|
+
//# sourceMappingURL=g-web-animations-api.mjs.map
|
package/@antv/g@^6.1.11
ADDED
package/@antv/g@^6.1.28
ADDED