@visactor/vstory 0.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/cjs/animate/animate.d.ts +13 -0
- package/cjs/animate/animate.js +20 -0
- package/cjs/animate/animate.js.map +1 -0
- package/cjs/animate/bounce.d.ts +15 -0
- package/cjs/animate/bounce.js +31 -0
- package/cjs/animate/bounce.js.map +1 -0
- package/cjs/animate/highlight.d.ts +5 -0
- package/cjs/animate/highlight.js +43 -0
- package/cjs/animate/highlight.js.map +1 -0
- package/cjs/animate/typewirter.d.ts +14 -0
- package/cjs/animate/typewirter.js +58 -0
- package/cjs/animate/typewirter.js.map +1 -0
- package/cjs/animate/util/paths.d.ts +31 -0
- package/cjs/animate/util/paths.js +368 -0
- package/cjs/animate/util/paths.js.map +1 -0
- package/cjs/animate/util/util.d.ts +18 -0
- package/cjs/animate/util/util.js +119 -0
- package/cjs/animate/util/util.js.map +1 -0
- package/cjs/animate/wipeIn.d.ts +32 -0
- package/cjs/animate/wipeIn.js +121 -0
- package/cjs/animate/wipeIn.js.map +1 -0
- package/cjs/component/title.d.ts +18 -0
- package/cjs/component/title.js +55 -0
- package/cjs/component/title.js.map +1 -0
- package/cjs/constants/attribute.d.ts +2 -0
- package/cjs/constants/attribute.js +6 -0
- package/cjs/constants/attribute.js.map +1 -0
- package/cjs/dsl/constant/index.d.ts +29 -0
- package/cjs/dsl/constant/index.js +24 -0
- package/cjs/dsl/constant/index.js.map +1 -0
- package/cjs/dsl/story-chart/area.d.ts +5 -0
- package/cjs/dsl/story-chart/area.js +16 -0
- package/cjs/dsl/story-chart/area.js.map +1 -0
- package/cjs/dsl/story-chart/bar.d.ts +13 -0
- package/cjs/dsl/story-chart/bar.js +48 -0
- package/cjs/dsl/story-chart/bar.js.map +1 -0
- package/cjs/dsl/story-chart/chart.d.ts +25 -0
- package/cjs/dsl/story-chart/chart.js +61 -0
- package/cjs/dsl/story-chart/chart.js.map +1 -0
- package/cjs/dsl/story-chart/component/base.d.ts +9 -0
- package/cjs/dsl/story-chart/component/base.js +24 -0
- package/cjs/dsl/story-chart/component/base.js.map +1 -0
- package/cjs/dsl/story-chart/component/markPoint.d.ts +11 -0
- package/cjs/dsl/story-chart/component/markPoint.js +24 -0
- package/cjs/dsl/story-chart/component/markPoint.js.map +1 -0
- package/cjs/dsl/story-chart/component/title.d.ts +1 -0
- package/cjs/dsl/story-chart/component/title.js +3 -0
- package/cjs/dsl/story-chart/component/title.js.map +1 -0
- package/cjs/dsl/story-chart/default/add.d.ts +4 -0
- package/cjs/dsl/story-chart/default/add.js +14 -0
- package/cjs/dsl/story-chart/default/add.js.map +1 -0
- package/cjs/dsl/story-chart/default/updateStyle.d.ts +2 -0
- package/cjs/dsl/story-chart/default/updateStyle.js +11 -0
- package/cjs/dsl/story-chart/default/updateStyle.js.map +1 -0
- package/cjs/dsl/story-chart/element.d.ts +3 -0
- package/cjs/dsl/story-chart/element.js +16 -0
- package/cjs/dsl/story-chart/element.js.map +1 -0
- package/cjs/dsl/story-chart/index.d.ts +6 -0
- package/cjs/dsl/story-chart/index.js +42 -0
- package/cjs/dsl/story-chart/index.js.map +1 -0
- package/cjs/dsl/story-chart/line.d.ts +10 -0
- package/cjs/dsl/story-chart/line.js +38 -0
- package/cjs/dsl/story-chart/line.js.map +1 -0
- package/cjs/dsl/story-chart/pie.d.ts +8 -0
- package/cjs/dsl/story-chart/pie.js +27 -0
- package/cjs/dsl/story-chart/pie.js.map +1 -0
- package/cjs/dsl/story-executor/index.d.ts +14 -0
- package/cjs/dsl/story-executor/index.js +55 -0
- package/cjs/dsl/story-executor/index.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/appear.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/appear.js +46 -0
- package/cjs/dsl/story-processor/graphic/appear.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/brighten.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/brighten.js +42 -0
- package/cjs/dsl/story-processor/graphic/brighten.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/darken.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/darken.js +42 -0
- package/cjs/dsl/story-processor/graphic/darken.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/disappear.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/disappear.js +45 -0
- package/cjs/dsl/story-processor/graphic/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/appear.d.ts +48 -0
- package/cjs/dsl/story-processor/graphic/effect/appear.js +135 -0
- package/cjs/dsl/story-processor/graphic/effect/appear.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/bounce.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/effect/bounce.js +23 -0
- package/cjs/dsl/story-processor/graphic/effect/bounce.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/disappear.d.ts +38 -0
- package/cjs/dsl/story-processor/graphic/effect/disappear.js +108 -0
- package/cjs/dsl/story-processor/graphic/effect/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/flicker.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/effect/flicker.js +15 -0
- package/cjs/dsl/story-processor/graphic/effect/flicker.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/moveTo.d.ts +9 -0
- package/cjs/dsl/story-processor/graphic/effect/moveTo.js +13 -0
- package/cjs/dsl/story-processor/graphic/effect/moveTo.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/shade.d.ts +5 -0
- package/cjs/dsl/story-processor/graphic/effect/shade.js +34 -0
- package/cjs/dsl/story-processor/graphic/effect/shade.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/effect/typewriter.d.ts +2 -0
- package/cjs/dsl/story-processor/graphic/effect/typewriter.js +21 -0
- package/cjs/dsl/story-processor/graphic/effect/typewriter.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/flicker.d.ts +3 -0
- package/cjs/dsl/story-processor/graphic/flicker.js +42 -0
- package/cjs/dsl/story-processor/graphic/flicker.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/moveTo.d.ts +4 -0
- package/cjs/dsl/story-processor/graphic/moveTo.js +45 -0
- package/cjs/dsl/story-processor/graphic/moveTo.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/style.d.ts +5 -0
- package/cjs/dsl/story-processor/graphic/style.js +44 -0
- package/cjs/dsl/story-processor/graphic/style.js.map +1 -0
- package/cjs/dsl/story-processor/graphic/util.d.ts +7 -0
- package/cjs/dsl/story-processor/graphic/util.js +24 -0
- package/cjs/dsl/story-processor/graphic/util.js.map +1 -0
- package/cjs/dsl/story-processor/index.d.ts +2 -0
- package/cjs/dsl/story-processor/index.js +30 -0
- package/cjs/dsl/story-processor/index.js.map +1 -0
- package/cjs/dsl/story-processor/processor.d.ts +17 -0
- package/cjs/dsl/story-processor/processor.js +70 -0
- package/cjs/dsl/story-processor/processor.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/common.d.ts +4 -0
- package/cjs/dsl/story-processor/processorMap/common.js +13 -0
- package/cjs/dsl/story-processor/processorMap/common.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/index.d.ts +1 -0
- package/cjs/dsl/story-processor/processorMap/index.js +21 -0
- package/cjs/dsl/story-processor/processorMap/index.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/processorMap.d.ts +460 -0
- package/cjs/dsl/story-processor/processorMap/processorMap.js +71 -0
- package/cjs/dsl/story-processor/processorMap/processorMap.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/radar.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/radar.js +20 -0
- package/cjs/dsl/story-processor/processorMap/radar.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/rangeColumn.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/rangeColumn.js +20 -0
- package/cjs/dsl/story-processor/processorMap/rangeColumn.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/rose.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/rose.js +20 -0
- package/cjs/dsl/story-processor/processorMap/rose.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/scatter.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/scatter.js +20 -0
- package/cjs/dsl/story-processor/processorMap/scatter.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/sunburst.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/sunburst.js +20 -0
- package/cjs/dsl/story-processor/processorMap/sunburst.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/treeMap.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/treeMap.js +20 -0
- package/cjs/dsl/story-processor/processorMap/treeMap.js.map +1 -0
- package/cjs/dsl/story-processor/processorMap/wordCloud.d.ts +11 -0
- package/cjs/dsl/story-processor/processorMap/wordCloud.js +20 -0
- package/cjs/dsl/story-processor/processorMap/wordCloud.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/add.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/add.js +42 -0
- package/cjs/dsl/story-processor/vchart/add.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/bounce.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/bounce.js +42 -0
- package/cjs/dsl/story-processor/vchart/bounce.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/area/areaAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/area/areaAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/area/areaAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/area/areaDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/area/areaDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/area/areaDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/area/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/area/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/area/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/barAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/barAppear.js +39 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/barAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/barDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/barDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/barDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/bar/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/character/characterAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/character/characterAppear.js +50 -0
- package/cjs/dsl/story-processor/vchart/charts/character/characterAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/character/characterDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/character/characterDisappear.js +42 -0
- package/cjs/dsl/story-processor/vchart/charts/character/characterDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/character/index.d.ts +6 -0
- package/cjs/dsl/story-processor/vchart/charts/character/index.js +29 -0
- package/cjs/dsl/story-processor/vchart/charts/character/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/common/commonAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/common/commonAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/common/commonAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/common/commonDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/common/commonDisappear.js +45 -0
- package/cjs/dsl/story-processor/vchart/charts/common/commonDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/common/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/common/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/common/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/index.d.ts +10 -0
- package/cjs/dsl/story-processor/vchart/charts/index.js +25 -0
- package/cjs/dsl/story-processor/vchart/charts/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/line/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/line/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/line/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/line/lineAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/line/lineAppear.js +39 -0
- package/cjs/dsl/story-processor/vchart/charts/line/lineAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/line/lineDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/line/lineDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/line/lineDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/line/transformLineSymbolAppear.d.ts +20 -0
- package/cjs/dsl/story-processor/vchart/charts/line/transformLineSymbolAppear.js +52 -0
- package/cjs/dsl/story-processor/vchart/charts/line/transformLineSymbolAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/pieAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/pieAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/pieAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/pieDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/pieDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/pie/pieDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/radarAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/radarAppear.js +41 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/radarAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/radarDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/radarDisappear.js +56 -0
- package/cjs/dsl/story-processor/vchart/charts/radar/radarDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/roseAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/roseAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/roseAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/roseDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/roseDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/rose/roseDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/scatterAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/scatterAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/scatterAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/scatterDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/scatterDisappear.js +54 -0
- package/cjs/dsl/story-processor/vchart/charts/scatter/scatterDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/sunburstAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/sunburstAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/sunburstAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/sunburstDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/sunburstDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/sunburst/sunburstDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/treeMapAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/treeMapAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/treeMapAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/treeMapDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/treeMapDisappear.js +55 -0
- package/cjs/dsl/story-processor/vchart/charts/treeMap/treeMapDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/wordCloudAppear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/wordCloudAppear.js +38 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/wordCloudAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/wordCloudDisappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/wordCloudDisappear.js +54 -0
- package/cjs/dsl/story-processor/vchart/charts/wordCloud/wordCloudDisappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/components/axes/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/components/axes/disappear.js +67 -0
- package/cjs/dsl/story-processor/vchart/components/axes/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/components/axes/index.d.ts +1 -0
- package/cjs/dsl/story-processor/vchart/components/axes/index.js +15 -0
- package/cjs/dsl/story-processor/vchart/components/axes/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/components/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/components/index.js +21 -0
- package/cjs/dsl/story-processor/vchart/components/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/components/title/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/components/title/disappear.js +58 -0
- package/cjs/dsl/story-processor/vchart/components/title/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/components/title/index.d.ts +1 -0
- package/cjs/dsl/story-processor/vchart/components/title/index.js +15 -0
- package/cjs/dsl/story-processor/vchart/components/title/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/dance.d.ts +3 -0
- package/cjs/dsl/story-processor/vchart/dance.js +46 -0
- package/cjs/dsl/story-processor/vchart/dance.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/markPoint.d.ts +5 -0
- package/cjs/dsl/story-processor/vchart/markPoint.js +55 -0
- package/cjs/dsl/story-processor/vchart/markPoint.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/appear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/appear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/appear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/disappear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/transformArcAppear.d.ts +14 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/transformArcAppear.js +51 -0
- package/cjs/dsl/story-processor/vchart/marks/arc/transformArcAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/area/appear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/area/appear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/area/appear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/area/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/area/disappear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/area/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/area/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/marks/area/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/marks/area/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/area/transformAreaAppear.d.ts +14 -0
- package/cjs/dsl/story-processor/vchart/marks/area/transformAreaAppear.js +30 -0
- package/cjs/dsl/story-processor/vchart/marks/area/transformAreaAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/index.d.ts +6 -0
- package/cjs/dsl/story-processor/vchart/marks/index.js +23 -0
- package/cjs/dsl/story-processor/vchart/marks/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/line/appear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/line/appear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/line/appear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/line/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/line/disappear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/line/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/line/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/marks/line/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/marks/line/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/line/transformLineAppear.d.ts +12 -0
- package/cjs/dsl/story-processor/vchart/marks/line/transformLineAppear.js +30 -0
- package/cjs/dsl/story-processor/vchart/marks/line/transformLineAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/appear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/appear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/appear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/disappear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/transformRectAppear.d.ts +12 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/transformRectAppear.js +81 -0
- package/cjs/dsl/story-processor/vchart/marks/rect/transformRectAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/appear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/appear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/appear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/disappear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/transformSymbolAppear.d.ts +12 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/transformSymbolAppear.js +30 -0
- package/cjs/dsl/story-processor/vchart/marks/symbol/transformSymbolAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/text/appear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/text/appear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/text/appear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/text/disappear.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/marks/text/disappear.js +60 -0
- package/cjs/dsl/story-processor/vchart/marks/text/disappear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/text/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/marks/text/index.js +24 -0
- package/cjs/dsl/story-processor/vchart/marks/text/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/marks/text/transformTextAppear.d.ts +14 -0
- package/cjs/dsl/story-processor/vchart/marks/text/transformTextAppear.js +30 -0
- package/cjs/dsl/story-processor/vchart/marks/text/transformTextAppear.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/style/lineStyle.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/style/lineStyle.js +53 -0
- package/cjs/dsl/story-processor/vchart/style/lineStyle.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/style/style.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/style/style.js +51 -0
- package/cjs/dsl/story-processor/vchart/style/style.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/title.d.ts +3 -0
- package/cjs/dsl/story-processor/vchart/title.js +42 -0
- package/cjs/dsl/story-processor/vchart/title.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/update.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/update.js +48 -0
- package/cjs/dsl/story-processor/vchart/update.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/utils/index.d.ts +2 -0
- package/cjs/dsl/story-processor/vchart/utils/index.js +21 -0
- package/cjs/dsl/story-processor/vchart/utils/index.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/utils/isMatch.d.ts +1 -0
- package/cjs/dsl/story-processor/vchart/utils/isMatch.js +13 -0
- package/cjs/dsl/story-processor/vchart/utils/isMatch.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/utils/mark.d.ts +3 -0
- package/cjs/dsl/story-processor/vchart/utils/mark.js +18 -0
- package/cjs/dsl/story-processor/vchart/utils/mark.js.map +1 -0
- package/cjs/dsl/story-processor/vchart/utils/series.d.ts +4 -0
- package/cjs/dsl/story-processor/vchart/utils/series.js +18 -0
- package/cjs/dsl/story-processor/vchart/utils/series.js.map +1 -0
- package/cjs/dsl/types/Datum.d.ts +1 -0
- package/cjs/dsl/types/Datum.js +6 -0
- package/cjs/dsl/types/Datum.js.map +1 -0
- package/cjs/dsl/types/chart/add.d.ts +13 -0
- package/cjs/dsl/types/chart/add.js +6 -0
- package/cjs/dsl/types/chart/add.js.map +1 -0
- package/cjs/dsl/types/chart/appear.d.ts +12 -0
- package/cjs/dsl/types/chart/appear.js +6 -0
- package/cjs/dsl/types/chart/appear.js.map +1 -0
- package/cjs/dsl/types/chart/createComponent.d.ts +26 -0
- package/cjs/dsl/types/chart/createComponent.js +6 -0
- package/cjs/dsl/types/chart/createComponent.js.map +1 -0
- package/cjs/dsl/types/chart/index.d.ts +11 -0
- package/cjs/dsl/types/chart/index.js +6 -0
- package/cjs/dsl/types/chart/index.js.map +1 -0
- package/cjs/dsl/types/chart/style.d.ts +10 -0
- package/cjs/dsl/types/chart/style.js +6 -0
- package/cjs/dsl/types/chart/style.js.map +1 -0
- package/cjs/dsl/types/chart/update.d.ts +14 -0
- package/cjs/dsl/types/chart/update.js +6 -0
- package/cjs/dsl/types/chart/update.js.map +1 -0
- package/cjs/dsl/types/common/bounce.d.ts +13 -0
- package/cjs/dsl/types/common/bounce.js +6 -0
- package/cjs/dsl/types/common/bounce.js.map +1 -0
- package/cjs/dsl/types/common/brighten.d.ts +12 -0
- package/cjs/dsl/types/common/brighten.js +6 -0
- package/cjs/dsl/types/common/brighten.js.map +1 -0
- package/cjs/dsl/types/common/darken.d.ts +12 -0
- package/cjs/dsl/types/common/darken.js +6 -0
- package/cjs/dsl/types/common/darken.js.map +1 -0
- package/cjs/dsl/types/common/flicker.d.ts +12 -0
- package/cjs/dsl/types/common/flicker.js +6 -0
- package/cjs/dsl/types/common/flicker.js.map +1 -0
- package/cjs/dsl/types/common/index.d.ts +7 -0
- package/cjs/dsl/types/common/index.js +21 -0
- package/cjs/dsl/types/common/index.js.map +1 -0
- package/cjs/dsl/types/common/moveTo.d.ts +9 -0
- package/cjs/dsl/types/common/moveTo.js +6 -0
- package/cjs/dsl/types/common/moveTo.js.map +1 -0
- package/cjs/dsl/types/graphic/appear.d.ts +22 -0
- package/cjs/dsl/types/graphic/appear.js +6 -0
- package/cjs/dsl/types/graphic/appear.js.map +1 -0
- package/cjs/dsl/types/graphic/disappear.d.ts +22 -0
- package/cjs/dsl/types/graphic/disappear.js +6 -0
- package/cjs/dsl/types/graphic/disappear.js.map +1 -0
- package/cjs/dsl/types/graphic/index.d.ts +10 -0
- package/cjs/dsl/types/graphic/index.js +6 -0
- package/cjs/dsl/types/graphic/index.js.map +1 -0
- package/cjs/dsl/types/graphic/style.d.ts +9 -0
- package/cjs/dsl/types/graphic/style.js +6 -0
- package/cjs/dsl/types/graphic/style.js.map +1 -0
- package/cjs/dsl/types/index.d.ts +20 -0
- package/cjs/dsl/types/index.js +22 -0
- package/cjs/dsl/types/index.js.map +1 -0
- package/cjs/dsl/utils/datum.d.ts +1 -0
- package/cjs/dsl/utils/datum.js +16 -0
- package/cjs/dsl/utils/datum.js.map +1 -0
- package/cjs/dsl/utils/flicker.d.ts +2 -0
- package/cjs/dsl/utils/flicker.js +18 -0
- package/cjs/dsl/utils/flicker.js.map +1 -0
- package/cjs/edit/const.d.ts +5 -0
- package/cjs/edit/const.js +10 -0
- package/cjs/edit/const.js.map +1 -0
- package/cjs/edit/edit-action.d.ts +15 -0
- package/cjs/edit/edit-action.js +37 -0
- package/cjs/edit/edit-action.js.map +1 -0
- package/cjs/edit/edit-component/base-selection.d.ts +29 -0
- package/cjs/edit/edit-component/base-selection.js +68 -0
- package/cjs/edit/edit-component/base-selection.js.map +1 -0
- package/cjs/edit/edit-component/box-selection.d.ts +10 -0
- package/cjs/edit/edit-component/box-selection.js +27 -0
- package/cjs/edit/edit-component/box-selection.js.map +1 -0
- package/cjs/edit/edit-component/common.d.ts +11 -0
- package/cjs/edit/edit-component/common.js +31 -0
- package/cjs/edit/edit-component/common.js.map +1 -0
- package/cjs/edit/edit-component/edit-control/constants.d.ts +9 -0
- package/cjs/edit/edit-component/edit-control/constants.js +10 -0
- package/cjs/edit/edit-component/edit-control/constants.js.map +1 -0
- package/cjs/edit/edit-component/edit-control/enum.d.ts +1 -0
- package/cjs/edit/edit-component/edit-control/enum.js +3 -0
- package/cjs/edit/edit-component/edit-control/enum.js.map +1 -0
- package/cjs/edit/edit-component/edit-control/richtext-transform-control.d.ts +12 -0
- package/cjs/edit/edit-component/edit-control/richtext-transform-control.js +60 -0
- package/cjs/edit/edit-component/edit-control/richtext-transform-control.js.map +1 -0
- package/cjs/edit/edit-component/edit-control/transform-control.d.ts +136 -0
- package/cjs/edit/edit-component/edit-control/transform-control.js +443 -0
- package/cjs/edit/edit-component/edit-control/transform-control.js.map +1 -0
- package/cjs/edit/edit-component/edit-control/transform-drag.d.ts +19 -0
- package/cjs/edit/edit-component/edit-control/transform-drag.js +45 -0
- package/cjs/edit/edit-component/edit-control/transform-drag.js.map +1 -0
- package/cjs/edit/edit-component/image-selection.d.ts +8 -0
- package/cjs/edit/edit-component/image-selection.js +19 -0
- package/cjs/edit/edit-component/image-selection.js.map +1 -0
- package/cjs/edit/edit-component/index.d.ts +1 -0
- package/cjs/edit/edit-component/index.js +17 -0
- package/cjs/edit/edit-component/index.js.map +1 -0
- package/cjs/edit/edit-component/layer-edit.d.ts +1 -0
- package/cjs/edit/edit-component/layer-edit.js +1 -0
- package/cjs/edit/edit-component/layer-edit.js.map +1 -0
- package/cjs/edit/edit-component/rect-selection.d.ts +18 -0
- package/cjs/edit/edit-component/rect-selection.js +35 -0
- package/cjs/edit/edit-component/rect-selection.js.map +1 -0
- package/cjs/edit/edit-component/richtext-selection.d.ts +17 -0
- package/cjs/edit/edit-component/richtext-selection.js +39 -0
- package/cjs/edit/edit-component/richtext-selection.js.map +1 -0
- package/cjs/edit/edit-component/text-selection.d.ts +12 -0
- package/cjs/edit/edit-component/text-selection.js +30 -0
- package/cjs/edit/edit-component/text-selection.js.map +1 -0
- package/cjs/edit/edit.d.ts +32 -0
- package/cjs/edit/edit.js +56 -0
- package/cjs/edit/edit.js.map +1 -0
- package/cjs/edit/index.d.ts +2 -0
- package/cjs/edit/index.js +21 -0
- package/cjs/edit/index.js.map +1 -0
- package/cjs/edit/interface.d.ts +60 -0
- package/cjs/edit/interface.js +10 -0
- package/cjs/edit/interface.js.map +1 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +24 -0
- package/cjs/index.js.map +1 -0
- package/cjs/interface/type.d.ts +26 -0
- package/cjs/interface/type.js +6 -0
- package/cjs/interface/type.js.map +1 -0
- package/cjs/scene/action.d.ts +20 -0
- package/cjs/scene/action.js +44 -0
- package/cjs/scene/action.js.map +1 -0
- package/cjs/scene/index.d.ts +1 -0
- package/cjs/scene/index.js +20 -0
- package/cjs/scene/index.js.map +1 -0
- package/cjs/scene/scene.d.ts +21 -0
- package/cjs/scene/scene.js +72 -0
- package/cjs/scene/scene.js.map +1 -0
- package/cjs/story/act/act.d.ts +2 -0
- package/cjs/story/act/act.js +10 -0
- package/cjs/story/act/act.js.map +1 -0
- package/cjs/story/canvas/canvas.d.ts +20 -0
- package/cjs/story/canvas/canvas.js +65 -0
- package/cjs/story/canvas/canvas.js.map +1 -0
- package/cjs/story/character/base/base.d.ts +26 -0
- package/cjs/story/character/base/base.js +40 -0
- package/cjs/story/character/base/base.js.map +1 -0
- package/cjs/story/character/chart/character.d.ts +24 -0
- package/cjs/story/character/chart/character.js +117 -0
- package/cjs/story/character/chart/character.js.map +1 -0
- package/cjs/story/character/chart/characters/area.d.ts +4 -0
- package/cjs/story/character/chart/characters/area.js +14 -0
- package/cjs/story/character/chart/characters/area.js.map +1 -0
- package/cjs/story/character/chart/characters/bar.d.ts +4 -0
- package/cjs/story/character/chart/characters/bar.js +14 -0
- package/cjs/story/character/chart/characters/bar.js.map +1 -0
- package/cjs/story/character/chart/characters/line.d.ts +4 -0
- package/cjs/story/character/chart/characters/line.js +14 -0
- package/cjs/story/character/chart/characters/line.js.map +1 -0
- package/cjs/story/character/chart/characters/pie.d.ts +4 -0
- package/cjs/story/character/chart/characters/pie.js +14 -0
- package/cjs/story/character/chart/characters/pie.js.map +1 -0
- package/cjs/story/character/chart/characters/radar.d.ts +4 -0
- package/cjs/story/character/chart/characters/radar.js +14 -0
- package/cjs/story/character/chart/characters/radar.js.map +1 -0
- package/cjs/story/character/chart/characters/rangeColumn.d.ts +4 -0
- package/cjs/story/character/chart/characters/rangeColumn.js +14 -0
- package/cjs/story/character/chart/characters/rangeColumn.js.map +1 -0
- package/cjs/story/character/chart/characters/rose.d.ts +4 -0
- package/cjs/story/character/chart/characters/rose.js +14 -0
- package/cjs/story/character/chart/characters/rose.js.map +1 -0
- package/cjs/story/character/chart/characters/scatter.d.ts +4 -0
- package/cjs/story/character/chart/characters/scatter.js +14 -0
- package/cjs/story/character/chart/characters/scatter.js.map +1 -0
- package/cjs/story/character/chart/characters/sunburst.d.ts +4 -0
- package/cjs/story/character/chart/characters/sunburst.js +14 -0
- package/cjs/story/character/chart/characters/sunburst.js.map +1 -0
- package/cjs/story/character/chart/characters/treemap.d.ts +4 -0
- package/cjs/story/character/chart/characters/treemap.js +14 -0
- package/cjs/story/character/chart/characters/treemap.js.map +1 -0
- package/cjs/story/character/chart/characters/wordcloud.d.ts +4 -0
- package/cjs/story/character/chart/characters/wordcloud.js +14 -0
- package/cjs/story/character/chart/characters/wordcloud.js.map +1 -0
- package/cjs/story/character/chart/const.d.ts +9 -0
- package/cjs/story/character/chart/const.js +13 -0
- package/cjs/story/character/chart/const.js.map +1 -0
- package/cjs/story/character/chart/data/interface.d.ts +44 -0
- package/cjs/story/character/chart/data/interface.js +6 -0
- package/cjs/story/character/chart/data/interface.js.map +1 -0
- package/cjs/story/character/chart/data/parser/standard.d.ts +30 -0
- package/cjs/story/character/chart/data/parser/standard.js +71 -0
- package/cjs/story/character/chart/data/parser/standard.js.map +1 -0
- package/cjs/story/character/chart/graphic/vchart-graphic-picker.d.ts +6 -0
- package/cjs/story/character/chart/graphic/vchart-graphic-picker.js +37 -0
- package/cjs/story/character/chart/graphic/vchart-graphic-picker.js.map +1 -0
- package/cjs/story/character/chart/graphic/vchart-graphic-render.d.ts +10 -0
- package/cjs/story/character/chart/graphic/vchart-graphic-render.js +41 -0
- package/cjs/story/character/chart/graphic/vchart-graphic-render.js.map +1 -0
- package/cjs/story/character/chart/graphic/vchart-graphic.d.ts +35 -0
- package/cjs/story/character/chart/graphic/vchart-graphic.js +67 -0
- package/cjs/story/character/chart/graphic/vchart-graphic.js.map +1 -0
- package/cjs/story/character/chart/parser.d.ts +1 -0
- package/cjs/story/character/chart/parser.js +3 -0
- package/cjs/story/character/chart/parser.js.map +1 -0
- package/cjs/story/character/chart/runtime/common-spec.d.ts +10 -0
- package/cjs/story/character/chart/runtime/common-spec.js +27 -0
- package/cjs/story/character/chart/runtime/common-spec.js.map +1 -0
- package/cjs/story/character/chart/runtime/component-spec.d.ts +12 -0
- package/cjs/story/character/chart/runtime/component-spec.js +32 -0
- package/cjs/story/character/chart/runtime/component-spec.js.map +1 -0
- package/cjs/story/character/chart/runtime/interface.d.ts +10 -0
- package/cjs/story/character/chart/runtime/interface.js +6 -0
- package/cjs/story/character/chart/runtime/interface.js.map +1 -0
- package/cjs/story/character/chart/runtime/series-spec.d.ts +10 -0
- package/cjs/story/character/chart/runtime/series-spec.js +27 -0
- package/cjs/story/character/chart/runtime/series-spec.js.map +1 -0
- package/cjs/story/character/chart/runtime/utils.d.ts +2 -0
- package/cjs/story/character/chart/runtime/utils.js +15 -0
- package/cjs/story/character/chart/runtime/utils.js.map +1 -0
- package/cjs/story/character/chart/spec-process/data-temp-transform.d.ts +9 -0
- package/cjs/story/character/chart/spec-process/data-temp-transform.js +19 -0
- package/cjs/story/character/chart/spec-process/data-temp-transform.js.map +1 -0
- package/cjs/story/character/chart/spec-process/interface.d.ts +22 -0
- package/cjs/story/character/chart/spec-process/interface.js +6 -0
- package/cjs/story/character/chart/spec-process/interface.js.map +1 -0
- package/cjs/story/character/chart/spec-process/spec-process.d.ts +11 -0
- package/cjs/story/character/chart/spec-process/spec-process.js +44 -0
- package/cjs/story/character/chart/spec-process/spec-process.js.map +1 -0
- package/cjs/story/character/chart/temp/constant.d.ts +14 -0
- package/cjs/story/character/chart/temp/constant.js +18 -0
- package/cjs/story/character/chart/temp/constant.js.map +1 -0
- package/cjs/story/character/chart/temp/index.d.ts +2 -0
- package/cjs/story/character/chart/temp/index.js +21 -0
- package/cjs/story/character/chart/temp/index.js.map +1 -0
- package/cjs/story/character/chart/temp/interface.d.ts +21 -0
- package/cjs/story/character/chart/temp/interface.js +6 -0
- package/cjs/story/character/chart/temp/interface.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/area.d.ts +17 -0
- package/cjs/story/character/chart/temp/templates/area.js +28 -0
- package/cjs/story/character/chart/temp/templates/area.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/bar.d.ts +13 -0
- package/cjs/story/character/chart/temp/templates/bar.js +26 -0
- package/cjs/story/character/chart/temp/templates/bar.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/base-temp.d.ts +18 -0
- package/cjs/story/character/chart/temp/templates/base-temp.js +18 -0
- package/cjs/story/character/chart/temp/templates/base-temp.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/cartesian-single.d.ts +18 -0
- package/cjs/story/character/chart/temp/templates/cartesian-single.js +33 -0
- package/cjs/story/character/chart/temp/templates/cartesian-single.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/common.d.ts +165 -0
- package/cjs/story/character/chart/temp/templates/common.js +157 -0
- package/cjs/story/character/chart/temp/templates/common.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/line.d.ts +43 -0
- package/cjs/story/character/chart/temp/templates/line.js +41 -0
- package/cjs/story/character/chart/temp/templates/line.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/pie.d.ts +11 -0
- package/cjs/story/character/chart/temp/templates/pie.js +34 -0
- package/cjs/story/character/chart/temp/templates/pie.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/polar-single.d.ts +11 -0
- package/cjs/story/character/chart/temp/templates/polar-single.js +28 -0
- package/cjs/story/character/chart/temp/templates/polar-single.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/radar.d.ts +10 -0
- package/cjs/story/character/chart/temp/templates/radar.js +24 -0
- package/cjs/story/character/chart/temp/templates/radar.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/rangeColumn.d.ts +16 -0
- package/cjs/story/character/chart/temp/templates/rangeColumn.js +29 -0
- package/cjs/story/character/chart/temp/templates/rangeColumn.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/rose.d.ts +8 -0
- package/cjs/story/character/chart/temp/templates/rose.js +21 -0
- package/cjs/story/character/chart/temp/templates/rose.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/scatter.d.ts +12 -0
- package/cjs/story/character/chart/temp/templates/scatter.js +24 -0
- package/cjs/story/character/chart/temp/templates/scatter.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/sunburst.d.ts +11 -0
- package/cjs/story/character/chart/temp/templates/sunburst.js +34 -0
- package/cjs/story/character/chart/temp/templates/sunburst.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/treemap.d.ts +11 -0
- package/cjs/story/character/chart/temp/templates/treemap.js +34 -0
- package/cjs/story/character/chart/temp/templates/treemap.js.map +1 -0
- package/cjs/story/character/chart/temp/templates/wordcloud.d.ts +11 -0
- package/cjs/story/character/chart/temp/templates/wordcloud.js +34 -0
- package/cjs/story/character/chart/temp/templates/wordcloud.js.map +1 -0
- package/cjs/story/character/component/character.d.ts +34 -0
- package/cjs/story/character/component/character.js +75 -0
- package/cjs/story/character/component/character.js.map +1 -0
- package/cjs/story/character/component/characters/character-image.d.ts +6 -0
- package/cjs/story/character/component/characters/character-image.js +19 -0
- package/cjs/story/character/component/characters/character-image.js.map +1 -0
- package/cjs/story/character/component/characters/character-line.d.ts +6 -0
- package/cjs/story/character/component/characters/character-line.js +19 -0
- package/cjs/story/character/component/characters/character-line.js.map +1 -0
- package/cjs/story/character/component/characters/character-qipao.d.ts +6 -0
- package/cjs/story/character/component/characters/character-qipao.js +19 -0
- package/cjs/story/character/component/characters/character-qipao.js.map +1 -0
- package/cjs/story/character/component/characters/character-rect.d.ts +6 -0
- package/cjs/story/character/component/characters/character-rect.js +19 -0
- package/cjs/story/character/component/characters/character-rect.js.map +1 -0
- package/cjs/story/character/component/characters/character-richtext.d.ts +6 -0
- package/cjs/story/character/component/characters/character-richtext.js +19 -0
- package/cjs/story/character/component/characters/character-richtext.js.map +1 -0
- package/cjs/story/character/component/characters/character-text.d.ts +6 -0
- package/cjs/story/character/component/characters/character-text.js +19 -0
- package/cjs/story/character/component/characters/character-text.js.map +1 -0
- package/cjs/story/character/component/graphic/graphic-text.d.ts +18 -0
- package/cjs/story/character/component/graphic/graphic-text.js +103 -0
- package/cjs/story/character/component/graphic/graphic-text.js.map +1 -0
- package/cjs/story/character/component/graphic/graphic.d.ts +40 -0
- package/cjs/story/character/component/graphic/graphic.js +92 -0
- package/cjs/story/character/component/graphic/graphic.js.map +1 -0
- package/cjs/story/character/component/graphic/image.d.ts +17 -0
- package/cjs/story/character/component/graphic/image.js +30 -0
- package/cjs/story/character/component/graphic/image.js.map +1 -0
- package/cjs/story/character/component/graphic/line.d.ts +7 -0
- package/cjs/story/character/component/graphic/line.js +29 -0
- package/cjs/story/character/component/graphic/line.js.map +1 -0
- package/cjs/story/character/component/graphic/qipao.d.ts +15 -0
- package/cjs/story/character/component/graphic/qipao.js +29 -0
- package/cjs/story/character/component/graphic/qipao.js.map +1 -0
- package/cjs/story/character/component/graphic/rect.d.ts +18 -0
- package/cjs/story/character/component/graphic/rect.js +31 -0
- package/cjs/story/character/component/graphic/rect.js.map +1 -0
- package/cjs/story/character/component/graphic/richtext.d.ts +9 -0
- package/cjs/story/character/component/graphic/richtext.js +48 -0
- package/cjs/story/character/component/graphic/richtext.js.map +1 -0
- package/cjs/story/character/component/graphic/text.d.ts +24 -0
- package/cjs/story/character/component/graphic/text.js +47 -0
- package/cjs/story/character/component/graphic/text.js.map +1 -0
- package/cjs/story/character/component/graphic/utils.d.ts +2 -0
- package/cjs/story/character/component/graphic/utils.js +14 -0
- package/cjs/story/character/component/graphic/utils.js.map +1 -0
- package/cjs/story/character/dsl-interface.d.ts +67 -0
- package/cjs/story/character/dsl-interface.js +6 -0
- package/cjs/story/character/dsl-interface.js.map +1 -0
- package/cjs/story/character/index.d.ts +2 -0
- package/cjs/story/character/index.js +21 -0
- package/cjs/story/character/index.js.map +1 -0
- package/cjs/story/character/runtime-interface.d.ts +41 -0
- package/cjs/story/character/runtime-interface.js +6 -0
- package/cjs/story/character/runtime-interface.js.map +1 -0
- package/cjs/story/character/visactor/character.d.ts +31 -0
- package/cjs/story/character/visactor/character.js +58 -0
- package/cjs/story/character/visactor/character.js.map +1 -0
- package/cjs/story/character/visactor/data-temp-transform-base.d.ts +25 -0
- package/cjs/story/character/visactor/data-temp-transform-base.js +65 -0
- package/cjs/story/character/visactor/data-temp-transform-base.js.map +1 -0
- package/cjs/story/character/visactor/interface.d.ts +100 -0
- package/cjs/story/character/visactor/interface.js +6 -0
- package/cjs/story/character/visactor/interface.js.map +1 -0
- package/cjs/story/character/visactor/spec-process-base.d.ts +28 -0
- package/cjs/story/character/visactor/spec-process-base.js +50 -0
- package/cjs/story/character/visactor/spec-process-base.js.map +1 -0
- package/cjs/story/factory/factory.d.ts +27 -0
- package/cjs/story/factory/factory.js +42 -0
- package/cjs/story/factory/factory.js.map +1 -0
- package/cjs/story/index.d.ts +2 -0
- package/cjs/story/index.js +53 -0
- package/cjs/story/index.js.map +1 -0
- package/cjs/story/interface/dsl-interface.d.ts +25 -0
- package/cjs/story/interface/dsl-interface.js +6 -0
- package/cjs/story/interface/dsl-interface.js.map +1 -0
- package/cjs/story/interface/index.d.ts +2 -0
- package/cjs/story/interface/index.js +21 -0
- package/cjs/story/interface/index.js.map +1 -0
- package/cjs/story/interface/player.d.ts +14 -0
- package/cjs/story/interface/player.js +6 -0
- package/cjs/story/interface/player.js.map +1 -0
- package/cjs/story/interface/runtime-interface.d.ts +11 -0
- package/cjs/story/interface/runtime-interface.js +6 -0
- package/cjs/story/interface/runtime-interface.js.map +1 -0
- package/cjs/story/player/encode.d.ts +1 -0
- package/cjs/story/player/encode.js +3 -0
- package/cjs/story/player/encode.js.map +1 -0
- package/cjs/story/player/index.d.ts +45 -0
- package/cjs/story/player/index.js +138 -0
- package/cjs/story/player/index.js.map +1 -0
- package/cjs/story/player/ticker.d.ts +1 -0
- package/cjs/story/player/ticker.js +3 -0
- package/cjs/story/player/ticker.js.map +1 -0
- package/cjs/story/story.d.ts +27 -0
- package/cjs/story/story.js +88 -0
- package/cjs/story/story.js.map +1 -0
- package/cjs/story/utils/chart.d.ts +8 -0
- package/cjs/story/utils/chart.js +75 -0
- package/cjs/story/utils/chart.js.map +1 -0
- package/cjs/story/utils/layout.d.ts +2 -0
- package/cjs/story/utils/layout.js +15 -0
- package/cjs/story/utils/layout.js.map +1 -0
- package/cjs/task.d.ts +21 -0
- package/cjs/task.js +23 -0
- package/cjs/task.js.map +1 -0
- package/cjs/template/base-template.d.ts +13 -0
- package/cjs/template/base-template.js +21 -0
- package/cjs/template/base-template.js.map +1 -0
- package/cjs/template/charts/simple-chart.d.ts +8 -0
- package/cjs/template/charts/simple-chart.js +38 -0
- package/cjs/template/charts/simple-chart.js.map +1 -0
- package/cjs/template/ranking-bar/interface.d.ts +41 -0
- package/cjs/template/ranking-bar/interface.js +6 -0
- package/cjs/template/ranking-bar/interface.js.map +1 -0
- package/cjs/template/ranking-bar/ranking-bar.d.ts +16 -0
- package/cjs/template/ranking-bar/ranking-bar.js +39 -0
- package/cjs/template/ranking-bar/ranking-bar.js.map +1 -0
- package/cjs/template/ranking-bar/spec-parser.d.ts +7 -0
- package/cjs/template/ranking-bar/spec-parser.js +319 -0
- package/cjs/template/ranking-bar/spec-parser.js.map +1 -0
- package/cjs/type/common.d.ts +3 -0
- package/cjs/type/common.js +6 -0
- package/cjs/type/common.js.map +1 -0
- package/cjs/type/space.d.ts +6 -0
- package/cjs/type/space.js +6 -0
- package/cjs/type/space.js.map +1 -0
- package/cjs/util/common.d.ts +2 -0
- package/cjs/util/common.js +18 -0
- package/cjs/util/common.js.map +1 -0
- package/cjs/util/math.d.ts +5 -0
- package/cjs/util/math.js +46 -0
- package/cjs/util/math.js.map +1 -0
- package/cjs/util/size.d.ts +7 -0
- package/cjs/util/size.js +28 -0
- package/cjs/util/size.js.map +1 -0
- package/cjs/util/space.d.ts +42 -0
- package/cjs/util/space.js +109 -0
- package/cjs/util/space.js.map +1 -0
- package/cjs/util/vchart-api.d.ts +3 -0
- package/cjs/util/vchart-api.js +17 -0
- package/cjs/util/vchart-api.js.map +1 -0
- package/cjs/util/vrender-api.d.ts +2 -0
- package/cjs/util/vrender-api.js +13 -0
- package/cjs/util/vrender-api.js.map +1 -0
- package/dist/index.js +52990 -0
- package/dist/index.min.js +21 -0
- package/es/animate/animate.d.ts +13 -0
- package/es/animate/animate.js +12 -0
- package/es/animate/animate.js.map +1 -0
- package/es/animate/bounce.d.ts +15 -0
- package/es/animate/bounce.js +23 -0
- package/es/animate/bounce.js.map +1 -0
- package/es/animate/highlight.d.ts +5 -0
- package/es/animate/highlight.js +41 -0
- package/es/animate/highlight.js.map +1 -0
- package/es/animate/typewirter.d.ts +14 -0
- package/es/animate/typewirter.js +50 -0
- package/es/animate/typewirter.js.map +1 -0
- package/es/animate/util/paths.d.ts +31 -0
- package/es/animate/util/paths.js +352 -0
- package/es/animate/util/paths.js.map +1 -0
- package/es/animate/util/util.d.ts +18 -0
- package/es/animate/util/util.js +112 -0
- package/es/animate/util/util.js.map +1 -0
- package/es/animate/wipeIn.d.ts +32 -0
- package/es/animate/wipeIn.js +113 -0
- package/es/animate/wipeIn.js.map +1 -0
- package/es/component/title.d.ts +18 -0
- package/es/component/title.js +42 -0
- package/es/component/title.js.map +1 -0
- package/es/constants/attribute.d.ts +2 -0
- package/es/constants/attribute.js +4 -0
- package/es/constants/attribute.js.map +1 -0
- package/es/dsl/constant/index.d.ts +29 -0
- package/es/dsl/constant/index.js +26 -0
- package/es/dsl/constant/index.js.map +1 -0
- package/es/dsl/story-chart/area.d.ts +5 -0
- package/es/dsl/story-chart/area.js +8 -0
- package/es/dsl/story-chart/area.js.map +1 -0
- package/es/dsl/story-chart/bar.d.ts +13 -0
- package/es/dsl/story-chart/bar.js +42 -0
- package/es/dsl/story-chart/bar.js.map +1 -0
- package/es/dsl/story-chart/chart.d.ts +25 -0
- package/es/dsl/story-chart/chart.js +62 -0
- package/es/dsl/story-chart/chart.js.map +1 -0
- package/es/dsl/story-chart/component/base.d.ts +9 -0
- package/es/dsl/story-chart/component/base.js +18 -0
- package/es/dsl/story-chart/component/base.js.map +1 -0
- package/es/dsl/story-chart/component/markPoint.d.ts +11 -0
- package/es/dsl/story-chart/component/markPoint.js +16 -0
- package/es/dsl/story-chart/component/markPoint.js.map +1 -0
- package/es/dsl/story-chart/component/title.d.ts +1 -0
- package/es/dsl/story-chart/component/title.js +3 -0
- package/es/dsl/story-chart/component/title.js.map +1 -0
- package/es/dsl/story-chart/default/add.d.ts +4 -0
- package/es/dsl/story-chart/default/add.js +10 -0
- package/es/dsl/story-chart/default/add.js.map +1 -0
- package/es/dsl/story-chart/default/updateStyle.d.ts +2 -0
- package/es/dsl/story-chart/default/updateStyle.js +7 -0
- package/es/dsl/story-chart/default/updateStyle.js.map +1 -0
- package/es/dsl/story-chart/element.d.ts +3 -0
- package/es/dsl/story-chart/element.js +8 -0
- package/es/dsl/story-chart/element.js.map +1 -0
- package/es/dsl/story-chart/index.d.ts +6 -0
- package/es/dsl/story-chart/index.js +10 -0
- package/es/dsl/story-chart/index.js.map +1 -0
- package/es/dsl/story-chart/line.d.ts +10 -0
- package/es/dsl/story-chart/line.js +32 -0
- package/es/dsl/story-chart/line.js.map +1 -0
- package/es/dsl/story-chart/pie.d.ts +8 -0
- package/es/dsl/story-chart/pie.js +21 -0
- package/es/dsl/story-chart/pie.js.map +1 -0
- package/es/dsl/story-executor/index.d.ts +14 -0
- package/es/dsl/story-executor/index.js +47 -0
- package/es/dsl/story-executor/index.js.map +1 -0
- package/es/dsl/story-processor/graphic/appear.d.ts +3 -0
- package/es/dsl/story-processor/graphic/appear.js +42 -0
- package/es/dsl/story-processor/graphic/appear.js.map +1 -0
- package/es/dsl/story-processor/graphic/brighten.d.ts +3 -0
- package/es/dsl/story-processor/graphic/brighten.js +38 -0
- package/es/dsl/story-processor/graphic/brighten.js.map +1 -0
- package/es/dsl/story-processor/graphic/darken.d.ts +3 -0
- package/es/dsl/story-processor/graphic/darken.js +38 -0
- package/es/dsl/story-processor/graphic/darken.js.map +1 -0
- package/es/dsl/story-processor/graphic/disappear.d.ts +3 -0
- package/es/dsl/story-processor/graphic/disappear.js +41 -0
- package/es/dsl/story-processor/graphic/disappear.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/appear.d.ts +48 -0
- package/es/dsl/story-processor/graphic/effect/appear.js +134 -0
- package/es/dsl/story-processor/graphic/effect/appear.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/bounce.d.ts +3 -0
- package/es/dsl/story-processor/graphic/effect/bounce.js +17 -0
- package/es/dsl/story-processor/graphic/effect/bounce.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/disappear.d.ts +38 -0
- package/es/dsl/story-processor/graphic/effect/disappear.js +101 -0
- package/es/dsl/story-processor/graphic/effect/disappear.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/flicker.d.ts +3 -0
- package/es/dsl/story-processor/graphic/effect/flicker.js +9 -0
- package/es/dsl/story-processor/graphic/effect/flicker.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/moveTo.d.ts +9 -0
- package/es/dsl/story-processor/graphic/effect/moveTo.js +7 -0
- package/es/dsl/story-processor/graphic/effect/moveTo.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/shade.d.ts +5 -0
- package/es/dsl/story-processor/graphic/effect/shade.js +26 -0
- package/es/dsl/story-processor/graphic/effect/shade.js.map +1 -0
- package/es/dsl/story-processor/graphic/effect/typewriter.d.ts +2 -0
- package/es/dsl/story-processor/graphic/effect/typewriter.js +15 -0
- package/es/dsl/story-processor/graphic/effect/typewriter.js.map +1 -0
- package/es/dsl/story-processor/graphic/flicker.d.ts +3 -0
- package/es/dsl/story-processor/graphic/flicker.js +38 -0
- package/es/dsl/story-processor/graphic/flicker.js.map +1 -0
- package/es/dsl/story-processor/graphic/moveTo.d.ts +4 -0
- package/es/dsl/story-processor/graphic/moveTo.js +40 -0
- package/es/dsl/story-processor/graphic/moveTo.js.map +1 -0
- package/es/dsl/story-processor/graphic/style.d.ts +5 -0
- package/es/dsl/story-processor/graphic/style.js +37 -0
- package/es/dsl/story-processor/graphic/style.js.map +1 -0
- package/es/dsl/story-processor/graphic/util.d.ts +7 -0
- package/es/dsl/story-processor/graphic/util.js +14 -0
- package/es/dsl/story-processor/graphic/util.js.map +1 -0
- package/es/dsl/story-processor/index.d.ts +2 -0
- package/es/dsl/story-processor/index.js +4 -0
- package/es/dsl/story-processor/index.js.map +1 -0
- package/es/dsl/story-processor/processor.d.ts +17 -0
- package/es/dsl/story-processor/processor.js +64 -0
- package/es/dsl/story-processor/processor.js.map +1 -0
- package/es/dsl/story-processor/processorMap/common.d.ts +4 -0
- package/es/dsl/story-processor/processorMap/common.js +7 -0
- package/es/dsl/story-processor/processorMap/common.js.map +1 -0
- package/es/dsl/story-processor/processorMap/index.d.ts +1 -0
- package/es/dsl/story-processor/processorMap/index.js +2 -0
- package/es/dsl/story-processor/processorMap/index.js.map +1 -0
- package/es/dsl/story-processor/processorMap/processorMap.d.ts +460 -0
- package/es/dsl/story-processor/processorMap/processorMap.js +127 -0
- package/es/dsl/story-processor/processorMap/processorMap.js.map +1 -0
- package/es/dsl/story-processor/processorMap/radar.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/radar.js +26 -0
- package/es/dsl/story-processor/processorMap/radar.js.map +1 -0
- package/es/dsl/story-processor/processorMap/rangeColumn.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/rangeColumn.js +26 -0
- package/es/dsl/story-processor/processorMap/rangeColumn.js.map +1 -0
- package/es/dsl/story-processor/processorMap/rose.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/rose.js +26 -0
- package/es/dsl/story-processor/processorMap/rose.js.map +1 -0
- package/es/dsl/story-processor/processorMap/scatter.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/scatter.js +26 -0
- package/es/dsl/story-processor/processorMap/scatter.js.map +1 -0
- package/es/dsl/story-processor/processorMap/sunburst.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/sunburst.js +26 -0
- package/es/dsl/story-processor/processorMap/sunburst.js.map +1 -0
- package/es/dsl/story-processor/processorMap/treeMap.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/treeMap.js +26 -0
- package/es/dsl/story-processor/processorMap/treeMap.js.map +1 -0
- package/es/dsl/story-processor/processorMap/wordCloud.d.ts +11 -0
- package/es/dsl/story-processor/processorMap/wordCloud.js +26 -0
- package/es/dsl/story-processor/processorMap/wordCloud.js.map +1 -0
- package/es/dsl/story-processor/vchart/add.d.ts +4 -0
- package/es/dsl/story-processor/vchart/add.js +35 -0
- package/es/dsl/story-processor/vchart/add.js.map +1 -0
- package/es/dsl/story-processor/vchart/bounce.d.ts +4 -0
- package/es/dsl/story-processor/vchart/bounce.js +36 -0
- package/es/dsl/story-processor/vchart/bounce.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/area/areaAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/area/areaAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/area/areaAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/area/areaDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/area/areaDisappear.js +53 -0
- package/es/dsl/story-processor/vchart/charts/area/areaDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/area/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/area/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/area/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/bar/barAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/bar/barAppear.js +35 -0
- package/es/dsl/story-processor/vchart/charts/bar/barAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/bar/barDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/bar/barDisappear.js +52 -0
- package/es/dsl/story-processor/vchart/charts/bar/barDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/bar/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/bar/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/bar/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/character/characterAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/character/characterAppear.js +44 -0
- package/es/dsl/story-processor/vchart/charts/character/characterAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/character/characterDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/character/characterDisappear.js +36 -0
- package/es/dsl/story-processor/vchart/charts/character/characterDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/character/index.d.ts +6 -0
- package/es/dsl/story-processor/vchart/charts/character/index.js +13 -0
- package/es/dsl/story-processor/vchart/charts/character/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/common/commonAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/common/commonAppear.js +32 -0
- package/es/dsl/story-processor/vchart/charts/common/commonAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/common/commonDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/common/commonDisappear.js +43 -0
- package/es/dsl/story-processor/vchart/charts/common/commonDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/common/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/common/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/common/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/index.d.ts +10 -0
- package/es/dsl/story-processor/vchart/charts/index.js +20 -0
- package/es/dsl/story-processor/vchart/charts/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/line/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/line/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/line/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/line/lineAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/line/lineAppear.js +35 -0
- package/es/dsl/story-processor/vchart/charts/line/lineAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/line/lineDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/line/lineDisappear.js +53 -0
- package/es/dsl/story-processor/vchart/charts/line/lineDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/line/transformLineSymbolAppear.d.ts +20 -0
- package/es/dsl/story-processor/vchart/charts/line/transformLineSymbolAppear.js +44 -0
- package/es/dsl/story-processor/vchart/charts/line/transformLineSymbolAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/pie/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/pie/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/pie/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/pie/pieAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/pie/pieAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/pie/pieAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/pie/pieDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/pie/pieDisappear.js +53 -0
- package/es/dsl/story-processor/vchart/charts/pie/pieDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/radar/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/radar/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/radar/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/radar/radarAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/radar/radarAppear.js +37 -0
- package/es/dsl/story-processor/vchart/charts/radar/radarAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/radar/radarDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/radar/radarDisappear.js +54 -0
- package/es/dsl/story-processor/vchart/charts/radar/radarDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/rose/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/rose/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/rose/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/rose/roseAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/rose/roseAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/rose/roseAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/rose/roseDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/rose/roseDisappear.js +53 -0
- package/es/dsl/story-processor/vchart/charts/rose/roseDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/scatter/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/scatter/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/scatter/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/scatter/scatterAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/scatter/scatterAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/scatter/scatterAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/scatter/scatterDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/scatter/scatterDisappear.js +52 -0
- package/es/dsl/story-processor/vchart/charts/scatter/scatterDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/sunburstAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/sunburstAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/sunburstAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/sunburstDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/sunburstDisappear.js +53 -0
- package/es/dsl/story-processor/vchart/charts/sunburst/sunburstDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/treeMapAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/treeMapAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/treeMapAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/treeMapDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/treeMapDisappear.js +53 -0
- package/es/dsl/story-processor/vchart/charts/treeMap/treeMapDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/index.js +4 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/wordCloudAppear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/wordCloudAppear.js +34 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/wordCloudAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/wordCloudDisappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/wordCloudDisappear.js +52 -0
- package/es/dsl/story-processor/vchart/charts/wordCloud/wordCloudDisappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/components/axes/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/components/axes/disappear.js +59 -0
- package/es/dsl/story-processor/vchart/components/axes/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/components/axes/index.d.ts +1 -0
- package/es/dsl/story-processor/vchart/components/axes/index.js +2 -0
- package/es/dsl/story-processor/vchart/components/axes/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/components/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/components/index.js +4 -0
- package/es/dsl/story-processor/vchart/components/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/components/title/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/components/title/disappear.js +54 -0
- package/es/dsl/story-processor/vchart/components/title/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/components/title/index.d.ts +1 -0
- package/es/dsl/story-processor/vchart/components/title/index.js +2 -0
- package/es/dsl/story-processor/vchart/components/title/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/dance.d.ts +3 -0
- package/es/dsl/story-processor/vchart/dance.js +43 -0
- package/es/dsl/story-processor/vchart/dance.js.map +1 -0
- package/es/dsl/story-processor/vchart/markPoint.d.ts +5 -0
- package/es/dsl/story-processor/vchart/markPoint.js +49 -0
- package/es/dsl/story-processor/vchart/markPoint.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/arc/appear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/arc/appear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/arc/appear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/arc/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/arc/disappear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/arc/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/arc/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/marks/arc/index.js +4 -0
- package/es/dsl/story-processor/vchart/marks/arc/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/arc/transformArcAppear.d.ts +14 -0
- package/es/dsl/story-processor/vchart/marks/arc/transformArcAppear.js +43 -0
- package/es/dsl/story-processor/vchart/marks/arc/transformArcAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/area/appear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/area/appear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/area/appear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/area/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/area/disappear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/area/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/area/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/marks/area/index.js +4 -0
- package/es/dsl/story-processor/vchart/marks/area/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/area/transformAreaAppear.d.ts +14 -0
- package/es/dsl/story-processor/vchart/marks/area/transformAreaAppear.js +22 -0
- package/es/dsl/story-processor/vchart/marks/area/transformAreaAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/index.d.ts +6 -0
- package/es/dsl/story-processor/vchart/marks/index.js +12 -0
- package/es/dsl/story-processor/vchart/marks/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/line/appear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/line/appear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/line/appear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/line/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/line/disappear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/line/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/line/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/marks/line/index.js +4 -0
- package/es/dsl/story-processor/vchart/marks/line/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/line/transformLineAppear.d.ts +12 -0
- package/es/dsl/story-processor/vchart/marks/line/transformLineAppear.js +22 -0
- package/es/dsl/story-processor/vchart/marks/line/transformLineAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/rect/appear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/rect/appear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/rect/appear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/rect/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/rect/disappear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/rect/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/rect/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/marks/rect/index.js +4 -0
- package/es/dsl/story-processor/vchart/marks/rect/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/rect/transformRectAppear.d.ts +12 -0
- package/es/dsl/story-processor/vchart/marks/rect/transformRectAppear.js +73 -0
- package/es/dsl/story-processor/vchart/marks/rect/transformRectAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/symbol/appear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/symbol/appear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/symbol/appear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/symbol/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/symbol/disappear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/symbol/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/symbol/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/marks/symbol/index.js +4 -0
- package/es/dsl/story-processor/vchart/marks/symbol/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/symbol/transformSymbolAppear.d.ts +12 -0
- package/es/dsl/story-processor/vchart/marks/symbol/transformSymbolAppear.js +22 -0
- package/es/dsl/story-processor/vchart/marks/symbol/transformSymbolAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/text/appear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/text/appear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/text/appear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/text/disappear.d.ts +4 -0
- package/es/dsl/story-processor/vchart/marks/text/disappear.js +58 -0
- package/es/dsl/story-processor/vchart/marks/text/disappear.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/text/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/marks/text/index.js +4 -0
- package/es/dsl/story-processor/vchart/marks/text/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/marks/text/transformTextAppear.d.ts +14 -0
- package/es/dsl/story-processor/vchart/marks/text/transformTextAppear.js +22 -0
- package/es/dsl/story-processor/vchart/marks/text/transformTextAppear.js.map +1 -0
- package/es/dsl/story-processor/vchart/style/lineStyle.d.ts +4 -0
- package/es/dsl/story-processor/vchart/style/lineStyle.js +50 -0
- package/es/dsl/story-processor/vchart/style/lineStyle.js.map +1 -0
- package/es/dsl/story-processor/vchart/style/style.d.ts +4 -0
- package/es/dsl/story-processor/vchart/style/style.js +49 -0
- package/es/dsl/story-processor/vchart/style/style.js.map +1 -0
- package/es/dsl/story-processor/vchart/title.d.ts +3 -0
- package/es/dsl/story-processor/vchart/title.js +34 -0
- package/es/dsl/story-processor/vchart/title.js.map +1 -0
- package/es/dsl/story-processor/vchart/update.d.ts +4 -0
- package/es/dsl/story-processor/vchart/update.js +43 -0
- package/es/dsl/story-processor/vchart/update.js.map +1 -0
- package/es/dsl/story-processor/vchart/utils/index.d.ts +2 -0
- package/es/dsl/story-processor/vchart/utils/index.js +4 -0
- package/es/dsl/story-processor/vchart/utils/index.js.map +1 -0
- package/es/dsl/story-processor/vchart/utils/isMatch.d.ts +1 -0
- package/es/dsl/story-processor/vchart/utils/isMatch.js +5 -0
- package/es/dsl/story-processor/vchart/utils/isMatch.js.map +1 -0
- package/es/dsl/story-processor/vchart/utils/mark.d.ts +3 -0
- package/es/dsl/story-processor/vchart/utils/mark.js +8 -0
- package/es/dsl/story-processor/vchart/utils/mark.js.map +1 -0
- package/es/dsl/story-processor/vchart/utils/series.d.ts +4 -0
- package/es/dsl/story-processor/vchart/utils/series.js +6 -0
- package/es/dsl/story-processor/vchart/utils/series.js.map +1 -0
- package/es/dsl/types/Datum.d.ts +1 -0
- package/es/dsl/types/Datum.js +2 -0
- package/es/dsl/types/Datum.js.map +1 -0
- package/es/dsl/types/chart/add.d.ts +13 -0
- package/es/dsl/types/chart/add.js +2 -0
- package/es/dsl/types/chart/add.js.map +1 -0
- package/es/dsl/types/chart/appear.d.ts +12 -0
- package/es/dsl/types/chart/appear.js +2 -0
- package/es/dsl/types/chart/appear.js.map +1 -0
- package/es/dsl/types/chart/createComponent.d.ts +26 -0
- package/es/dsl/types/chart/createComponent.js +2 -0
- package/es/dsl/types/chart/createComponent.js.map +1 -0
- package/es/dsl/types/chart/index.d.ts +11 -0
- package/es/dsl/types/chart/index.js +2 -0
- package/es/dsl/types/chart/index.js.map +1 -0
- package/es/dsl/types/chart/style.d.ts +10 -0
- package/es/dsl/types/chart/style.js +2 -0
- package/es/dsl/types/chart/style.js.map +1 -0
- package/es/dsl/types/chart/update.d.ts +14 -0
- package/es/dsl/types/chart/update.js +2 -0
- package/es/dsl/types/chart/update.js.map +1 -0
- package/es/dsl/types/common/bounce.d.ts +13 -0
- package/es/dsl/types/common/bounce.js +2 -0
- package/es/dsl/types/common/bounce.js.map +1 -0
- package/es/dsl/types/common/brighten.d.ts +12 -0
- package/es/dsl/types/common/brighten.js +2 -0
- package/es/dsl/types/common/brighten.js.map +1 -0
- package/es/dsl/types/common/darken.d.ts +12 -0
- package/es/dsl/types/common/darken.js +2 -0
- package/es/dsl/types/common/darken.js.map +1 -0
- package/es/dsl/types/common/flicker.d.ts +12 -0
- package/es/dsl/types/common/flicker.js +2 -0
- package/es/dsl/types/common/flicker.js.map +1 -0
- package/es/dsl/types/common/index.d.ts +7 -0
- package/es/dsl/types/common/index.js +2 -0
- package/es/dsl/types/common/index.js.map +1 -0
- package/es/dsl/types/common/moveTo.d.ts +9 -0
- package/es/dsl/types/common/moveTo.js +2 -0
- package/es/dsl/types/common/moveTo.js.map +1 -0
- package/es/dsl/types/graphic/appear.d.ts +22 -0
- package/es/dsl/types/graphic/appear.js +2 -0
- package/es/dsl/types/graphic/appear.js.map +1 -0
- package/es/dsl/types/graphic/disappear.d.ts +22 -0
- package/es/dsl/types/graphic/disappear.js +2 -0
- package/es/dsl/types/graphic/disappear.js.map +1 -0
- package/es/dsl/types/graphic/index.d.ts +10 -0
- package/es/dsl/types/graphic/index.js +2 -0
- package/es/dsl/types/graphic/index.js.map +1 -0
- package/es/dsl/types/graphic/style.d.ts +9 -0
- package/es/dsl/types/graphic/style.js +2 -0
- package/es/dsl/types/graphic/style.js.map +1 -0
- package/es/dsl/types/index.d.ts +20 -0
- package/es/dsl/types/index.js +6 -0
- package/es/dsl/types/index.js.map +1 -0
- package/es/dsl/utils/datum.d.ts +1 -0
- package/es/dsl/utils/datum.js +10 -0
- package/es/dsl/utils/datum.js.map +1 -0
- package/es/dsl/utils/flicker.d.ts +2 -0
- package/es/dsl/utils/flicker.js +10 -0
- package/es/dsl/utils/flicker.js.map +1 -0
- package/es/edit/const.d.ts +5 -0
- package/es/edit/const.js +6 -0
- package/es/edit/const.js.map +1 -0
- package/es/edit/edit-action.d.ts +15 -0
- package/es/edit/edit-action.js +33 -0
- package/es/edit/edit-action.js.map +1 -0
- package/es/edit/edit-component/base-selection.d.ts +29 -0
- package/es/edit/edit-component/base-selection.js +61 -0
- package/es/edit/edit-component/base-selection.js.map +1 -0
- package/es/edit/edit-component/box-selection.d.ts +10 -0
- package/es/edit/edit-component/box-selection.js +19 -0
- package/es/edit/edit-component/box-selection.js.map +1 -0
- package/es/edit/edit-component/common.d.ts +11 -0
- package/es/edit/edit-component/common.js +25 -0
- package/es/edit/edit-component/common.js.map +1 -0
- package/es/edit/edit-component/edit-control/constants.d.ts +9 -0
- package/es/edit/edit-component/edit-control/constants.js +18 -0
- package/es/edit/edit-component/edit-control/constants.js.map +1 -0
- package/es/edit/edit-component/edit-control/enum.d.ts +1 -0
- package/es/edit/edit-component/edit-control/enum.js +3 -0
- package/es/edit/edit-component/edit-control/enum.js.map +1 -0
- package/es/edit/edit-component/edit-control/richtext-transform-control.d.ts +12 -0
- package/es/edit/edit-component/edit-control/richtext-transform-control.js +55 -0
- package/es/edit/edit-component/edit-control/richtext-transform-control.js.map +1 -0
- package/es/edit/edit-component/edit-control/transform-control.d.ts +136 -0
- package/es/edit/edit-component/edit-control/transform-control.js +453 -0
- package/es/edit/edit-component/edit-control/transform-control.js.map +1 -0
- package/es/edit/edit-component/edit-control/transform-drag.d.ts +19 -0
- package/es/edit/edit-component/edit-control/transform-drag.js +37 -0
- package/es/edit/edit-component/edit-control/transform-drag.js.map +1 -0
- package/es/edit/edit-component/image-selection.d.ts +8 -0
- package/es/edit/edit-component/image-selection.js +13 -0
- package/es/edit/edit-component/image-selection.js.map +1 -0
- package/es/edit/edit-component/index.d.ts +1 -0
- package/es/edit/edit-component/index.js +20 -0
- package/es/edit/edit-component/index.js.map +1 -0
- package/es/edit/edit-component/layer-edit.d.ts +1 -0
- package/es/edit/edit-component/layer-edit.js +1 -0
- package/es/edit/edit-component/layer-edit.js.map +1 -0
- package/es/edit/edit-component/rect-selection.d.ts +18 -0
- package/es/edit/edit-component/rect-selection.js +31 -0
- package/es/edit/edit-component/rect-selection.js.map +1 -0
- package/es/edit/edit-component/richtext-selection.d.ts +17 -0
- package/es/edit/edit-component/richtext-selection.js +35 -0
- package/es/edit/edit-component/richtext-selection.js.map +1 -0
- package/es/edit/edit-component/text-selection.d.ts +12 -0
- package/es/edit/edit-component/text-selection.js +24 -0
- package/es/edit/edit-component/text-selection.js.map +1 -0
- package/es/edit/edit.d.ts +32 -0
- package/es/edit/edit.js +53 -0
- package/es/edit/edit.js.map +1 -0
- package/es/edit/index.d.ts +2 -0
- package/es/edit/index.js +4 -0
- package/es/edit/index.js.map +1 -0
- package/es/edit/interface.d.ts +60 -0
- package/es/edit/interface.js +6 -0
- package/es/edit/interface.js.map +1 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +7 -0
- package/es/index.js.map +1 -0
- package/es/interface/type.d.ts +26 -0
- package/es/interface/type.js +2 -0
- package/es/interface/type.js.map +1 -0
- package/es/scene/action.d.ts +20 -0
- package/es/scene/action.js +34 -0
- package/es/scene/action.js.map +1 -0
- package/es/scene/index.d.ts +1 -0
- package/es/scene/index.js +1 -0
- package/es/scene/index.js.map +1 -0
- package/es/scene/scene.d.ts +21 -0
- package/es/scene/scene.js +76 -0
- package/es/scene/scene.js.map +1 -0
- package/es/story/act/act.d.ts +2 -0
- package/es/story/act/act.js +2 -0
- package/es/story/act/act.js.map +1 -0
- package/es/story/canvas/canvas.d.ts +20 -0
- package/es/story/canvas/canvas.js +58 -0
- package/es/story/canvas/canvas.js.map +1 -0
- package/es/story/character/base/base.d.ts +26 -0
- package/es/story/character/base/base.js +32 -0
- package/es/story/character/base/base.js.map +1 -0
- package/es/story/character/chart/character.d.ts +24 -0
- package/es/story/character/chart/character.js +130 -0
- package/es/story/character/chart/character.js.map +1 -0
- package/es/story/character/chart/characters/area.d.ts +4 -0
- package/es/story/character/chart/characters/area.js +12 -0
- package/es/story/character/chart/characters/area.js.map +1 -0
- package/es/story/character/chart/characters/bar.d.ts +4 -0
- package/es/story/character/chart/characters/bar.js +12 -0
- package/es/story/character/chart/characters/bar.js.map +1 -0
- package/es/story/character/chart/characters/line.d.ts +4 -0
- package/es/story/character/chart/characters/line.js +12 -0
- package/es/story/character/chart/characters/line.js.map +1 -0
- package/es/story/character/chart/characters/pie.d.ts +4 -0
- package/es/story/character/chart/characters/pie.js +12 -0
- package/es/story/character/chart/characters/pie.js.map +1 -0
- package/es/story/character/chart/characters/radar.d.ts +4 -0
- package/es/story/character/chart/characters/radar.js +12 -0
- package/es/story/character/chart/characters/radar.js.map +1 -0
- package/es/story/character/chart/characters/rangeColumn.d.ts +4 -0
- package/es/story/character/chart/characters/rangeColumn.js +12 -0
- package/es/story/character/chart/characters/rangeColumn.js.map +1 -0
- package/es/story/character/chart/characters/rose.d.ts +4 -0
- package/es/story/character/chart/characters/rose.js +12 -0
- package/es/story/character/chart/characters/rose.js.map +1 -0
- package/es/story/character/chart/characters/scatter.d.ts +4 -0
- package/es/story/character/chart/characters/scatter.js +12 -0
- package/es/story/character/chart/characters/scatter.js.map +1 -0
- package/es/story/character/chart/characters/sunburst.d.ts +4 -0
- package/es/story/character/chart/characters/sunburst.js +12 -0
- package/es/story/character/chart/characters/sunburst.js.map +1 -0
- package/es/story/character/chart/characters/treemap.d.ts +4 -0
- package/es/story/character/chart/characters/treemap.js +12 -0
- package/es/story/character/chart/characters/treemap.js.map +1 -0
- package/es/story/character/chart/characters/wordcloud.d.ts +4 -0
- package/es/story/character/chart/characters/wordcloud.js +12 -0
- package/es/story/character/chart/characters/wordcloud.js.map +1 -0
- package/es/story/character/chart/const.d.ts +9 -0
- package/es/story/character/chart/const.js +14 -0
- package/es/story/character/chart/const.js.map +1 -0
- package/es/story/character/chart/data/interface.d.ts +44 -0
- package/es/story/character/chart/data/interface.js +2 -0
- package/es/story/character/chart/data/interface.js.map +1 -0
- package/es/story/character/chart/data/parser/standard.d.ts +30 -0
- package/es/story/character/chart/data/parser/standard.js +67 -0
- package/es/story/character/chart/data/parser/standard.js.map +1 -0
- package/es/story/character/chart/graphic/vchart-graphic-picker.d.ts +6 -0
- package/es/story/character/chart/graphic/vchart-graphic-picker.js +35 -0
- package/es/story/character/chart/graphic/vchart-graphic-picker.js.map +1 -0
- package/es/story/character/chart/graphic/vchart-graphic-render.d.ts +10 -0
- package/es/story/character/chart/graphic/vchart-graphic-render.js +41 -0
- package/es/story/character/chart/graphic/vchart-graphic-render.js.map +1 -0
- package/es/story/character/chart/graphic/vchart-graphic.d.ts +35 -0
- package/es/story/character/chart/graphic/vchart-graphic.js +59 -0
- package/es/story/character/chart/graphic/vchart-graphic.js.map +1 -0
- package/es/story/character/chart/parser.d.ts +1 -0
- package/es/story/character/chart/parser.js +3 -0
- package/es/story/character/chart/parser.js.map +1 -0
- package/es/story/character/chart/runtime/common-spec.d.ts +10 -0
- package/es/story/character/chart/runtime/common-spec.js +19 -0
- package/es/story/character/chart/runtime/common-spec.js.map +1 -0
- package/es/story/character/chart/runtime/component-spec.d.ts +12 -0
- package/es/story/character/chart/runtime/component-spec.js +26 -0
- package/es/story/character/chart/runtime/component-spec.js.map +1 -0
- package/es/story/character/chart/runtime/interface.d.ts +10 -0
- package/es/story/character/chart/runtime/interface.js +2 -0
- package/es/story/character/chart/runtime/interface.js.map +1 -0
- package/es/story/character/chart/runtime/series-spec.d.ts +10 -0
- package/es/story/character/chart/runtime/series-spec.js +21 -0
- package/es/story/character/chart/runtime/series-spec.js.map +1 -0
- package/es/story/character/chart/runtime/utils.d.ts +2 -0
- package/es/story/character/chart/runtime/utils.js +6 -0
- package/es/story/character/chart/runtime/utils.js.map +1 -0
- package/es/story/character/chart/spec-process/data-temp-transform.d.ts +9 -0
- package/es/story/character/chart/spec-process/data-temp-transform.js +11 -0
- package/es/story/character/chart/spec-process/data-temp-transform.js.map +1 -0
- package/es/story/character/chart/spec-process/interface.d.ts +22 -0
- package/es/story/character/chart/spec-process/interface.js +2 -0
- package/es/story/character/chart/spec-process/interface.js.map +1 -0
- package/es/story/character/chart/spec-process/spec-process.d.ts +11 -0
- package/es/story/character/chart/spec-process/spec-process.js +40 -0
- package/es/story/character/chart/spec-process/spec-process.js.map +1 -0
- package/es/story/character/chart/temp/constant.d.ts +14 -0
- package/es/story/character/chart/temp/constant.js +14 -0
- package/es/story/character/chart/temp/constant.js.map +1 -0
- package/es/story/character/chart/temp/index.d.ts +2 -0
- package/es/story/character/chart/temp/index.js +4 -0
- package/es/story/character/chart/temp/index.js.map +1 -0
- package/es/story/character/chart/temp/interface.d.ts +21 -0
- package/es/story/character/chart/temp/interface.js +2 -0
- package/es/story/character/chart/temp/interface.js.map +1 -0
- package/es/story/character/chart/temp/templates/area.d.ts +17 -0
- package/es/story/character/chart/temp/templates/area.js +24 -0
- package/es/story/character/chart/temp/templates/area.js.map +1 -0
- package/es/story/character/chart/temp/templates/bar.d.ts +13 -0
- package/es/story/character/chart/temp/templates/bar.js +22 -0
- package/es/story/character/chart/temp/templates/bar.js.map +1 -0
- package/es/story/character/chart/temp/templates/base-temp.d.ts +18 -0
- package/es/story/character/chart/temp/templates/base-temp.js +13 -0
- package/es/story/character/chart/temp/templates/base-temp.js.map +1 -0
- package/es/story/character/chart/temp/templates/cartesian-single.d.ts +18 -0
- package/es/story/character/chart/temp/templates/cartesian-single.js +27 -0
- package/es/story/character/chart/temp/templates/cartesian-single.js.map +1 -0
- package/es/story/character/chart/temp/templates/common.d.ts +165 -0
- package/es/story/character/chart/temp/templates/common.js +143 -0
- package/es/story/character/chart/temp/templates/common.js.map +1 -0
- package/es/story/character/chart/temp/templates/line.d.ts +43 -0
- package/es/story/character/chart/temp/templates/line.js +39 -0
- package/es/story/character/chart/temp/templates/line.js.map +1 -0
- package/es/story/character/chart/temp/templates/pie.d.ts +11 -0
- package/es/story/character/chart/temp/templates/pie.js +34 -0
- package/es/story/character/chart/temp/templates/pie.js.map +1 -0
- package/es/story/character/chart/temp/templates/polar-single.d.ts +11 -0
- package/es/story/character/chart/temp/templates/polar-single.js +22 -0
- package/es/story/character/chart/temp/templates/polar-single.js.map +1 -0
- package/es/story/character/chart/temp/templates/radar.d.ts +10 -0
- package/es/story/character/chart/temp/templates/radar.js +22 -0
- package/es/story/character/chart/temp/templates/radar.js.map +1 -0
- package/es/story/character/chart/temp/templates/rangeColumn.d.ts +16 -0
- package/es/story/character/chart/temp/templates/rangeColumn.js +25 -0
- package/es/story/character/chart/temp/templates/rangeColumn.js.map +1 -0
- package/es/story/character/chart/temp/templates/rose.d.ts +8 -0
- package/es/story/character/chart/temp/templates/rose.js +17 -0
- package/es/story/character/chart/temp/templates/rose.js.map +1 -0
- package/es/story/character/chart/temp/templates/scatter.d.ts +12 -0
- package/es/story/character/chart/temp/templates/scatter.js +20 -0
- package/es/story/character/chart/temp/templates/scatter.js.map +1 -0
- package/es/story/character/chart/temp/templates/sunburst.d.ts +11 -0
- package/es/story/character/chart/temp/templates/sunburst.js +34 -0
- package/es/story/character/chart/temp/templates/sunburst.js.map +1 -0
- package/es/story/character/chart/temp/templates/treemap.d.ts +11 -0
- package/es/story/character/chart/temp/templates/treemap.js +34 -0
- package/es/story/character/chart/temp/templates/treemap.js.map +1 -0
- package/es/story/character/chart/temp/templates/wordcloud.d.ts +11 -0
- package/es/story/character/chart/temp/templates/wordcloud.js +34 -0
- package/es/story/character/chart/temp/templates/wordcloud.js.map +1 -0
- package/es/story/character/component/character.d.ts +34 -0
- package/es/story/character/component/character.js +72 -0
- package/es/story/character/component/character.js.map +1 -0
- package/es/story/character/component/characters/character-image.d.ts +6 -0
- package/es/story/character/component/characters/character-image.js +15 -0
- package/es/story/character/component/characters/character-image.js.map +1 -0
- package/es/story/character/component/characters/character-line.d.ts +6 -0
- package/es/story/character/component/characters/character-line.js +15 -0
- package/es/story/character/component/characters/character-line.js.map +1 -0
- package/es/story/character/component/characters/character-qipao.d.ts +6 -0
- package/es/story/character/component/characters/character-qipao.js +13 -0
- package/es/story/character/component/characters/character-qipao.js.map +1 -0
- package/es/story/character/component/characters/character-rect.d.ts +6 -0
- package/es/story/character/component/characters/character-rect.js +15 -0
- package/es/story/character/component/characters/character-rect.js.map +1 -0
- package/es/story/character/component/characters/character-richtext.d.ts +6 -0
- package/es/story/character/component/characters/character-richtext.js +15 -0
- package/es/story/character/component/characters/character-richtext.js.map +1 -0
- package/es/story/character/component/characters/character-text.d.ts +6 -0
- package/es/story/character/component/characters/character-text.js +15 -0
- package/es/story/character/component/characters/character-text.js.map +1 -0
- package/es/story/character/component/graphic/graphic-text.d.ts +18 -0
- package/es/story/character/component/graphic/graphic-text.js +97 -0
- package/es/story/character/component/graphic/graphic-text.js.map +1 -0
- package/es/story/character/component/graphic/graphic.d.ts +40 -0
- package/es/story/character/component/graphic/graphic.js +85 -0
- package/es/story/character/component/graphic/graphic.js.map +1 -0
- package/es/story/character/component/graphic/image.d.ts +17 -0
- package/es/story/character/component/graphic/image.js +24 -0
- package/es/story/character/component/graphic/image.js.map +1 -0
- package/es/story/character/component/graphic/line.d.ts +7 -0
- package/es/story/character/component/graphic/line.js +23 -0
- package/es/story/character/component/graphic/line.js.map +1 -0
- package/es/story/character/component/graphic/qipao.d.ts +15 -0
- package/es/story/character/component/graphic/qipao.js +23 -0
- package/es/story/character/component/graphic/qipao.js.map +1 -0
- package/es/story/character/component/graphic/rect.d.ts +18 -0
- package/es/story/character/component/graphic/rect.js +25 -0
- package/es/story/character/component/graphic/rect.js.map +1 -0
- package/es/story/character/component/graphic/richtext.d.ts +9 -0
- package/es/story/character/component/graphic/richtext.js +44 -0
- package/es/story/character/component/graphic/richtext.js.map +1 -0
- package/es/story/character/component/graphic/text.d.ts +24 -0
- package/es/story/character/component/graphic/text.js +43 -0
- package/es/story/character/component/graphic/text.js.map +1 -0
- package/es/story/character/component/graphic/utils.d.ts +2 -0
- package/es/story/character/component/graphic/utils.js +6 -0
- package/es/story/character/component/graphic/utils.js.map +1 -0
- package/es/story/character/dsl-interface.d.ts +67 -0
- package/es/story/character/dsl-interface.js +2 -0
- package/es/story/character/dsl-interface.js.map +1 -0
- package/es/story/character/index.d.ts +2 -0
- package/es/story/character/index.js +4 -0
- package/es/story/character/index.js.map +1 -0
- package/es/story/character/runtime-interface.d.ts +41 -0
- package/es/story/character/runtime-interface.js +2 -0
- package/es/story/character/runtime-interface.js.map +1 -0
- package/es/story/character/visactor/character.d.ts +31 -0
- package/es/story/character/visactor/character.js +50 -0
- package/es/story/character/visactor/character.js.map +1 -0
- package/es/story/character/visactor/data-temp-transform-base.d.ts +25 -0
- package/es/story/character/visactor/data-temp-transform-base.js +59 -0
- package/es/story/character/visactor/data-temp-transform-base.js.map +1 -0
- package/es/story/character/visactor/interface.d.ts +100 -0
- package/es/story/character/visactor/interface.js +2 -0
- package/es/story/character/visactor/interface.js.map +1 -0
- package/es/story/character/visactor/spec-process-base.d.ts +28 -0
- package/es/story/character/visactor/spec-process-base.js +42 -0
- package/es/story/character/visactor/spec-process-base.js.map +1 -0
- package/es/story/factory/factory.d.ts +27 -0
- package/es/story/factory/factory.js +36 -0
- package/es/story/factory/factory.js.map +1 -0
- package/es/story/index.d.ts +2 -0
- package/es/story/index.js +76 -0
- package/es/story/index.js.map +1 -0
- package/es/story/interface/dsl-interface.d.ts +25 -0
- package/es/story/interface/dsl-interface.js +2 -0
- package/es/story/interface/dsl-interface.js.map +1 -0
- package/es/story/interface/index.d.ts +2 -0
- package/es/story/interface/index.js +4 -0
- package/es/story/interface/index.js.map +1 -0
- package/es/story/interface/player.d.ts +14 -0
- package/es/story/interface/player.js +2 -0
- package/es/story/interface/player.js.map +1 -0
- package/es/story/interface/runtime-interface.d.ts +11 -0
- package/es/story/interface/runtime-interface.js +2 -0
- package/es/story/interface/runtime-interface.js.map +1 -0
- package/es/story/player/encode.d.ts +1 -0
- package/es/story/player/encode.js +3 -0
- package/es/story/player/encode.js.map +1 -0
- package/es/story/player/index.d.ts +45 -0
- package/es/story/player/index.js +130 -0
- package/es/story/player/index.js.map +1 -0
- package/es/story/player/ticker.d.ts +1 -0
- package/es/story/player/ticker.js +3 -0
- package/es/story/player/ticker.js.map +1 -0
- package/es/story/story.d.ts +27 -0
- package/es/story/story.js +89 -0
- package/es/story/story.js.map +1 -0
- package/es/story/utils/chart.d.ts +8 -0
- package/es/story/utils/chart.js +65 -0
- package/es/story/utils/chart.js.map +1 -0
- package/es/story/utils/layout.d.ts +2 -0
- package/es/story/utils/layout.js +9 -0
- package/es/story/utils/layout.js.map +1 -0
- package/es/task.d.ts +21 -0
- package/es/task.js +13 -0
- package/es/task.js.map +1 -0
- package/es/template/base-template.d.ts +13 -0
- package/es/template/base-template.js +13 -0
- package/es/template/base-template.js.map +1 -0
- package/es/template/charts/simple-chart.d.ts +8 -0
- package/es/template/charts/simple-chart.js +26 -0
- package/es/template/charts/simple-chart.js.map +1 -0
- package/es/template/ranking-bar/interface.d.ts +41 -0
- package/es/template/ranking-bar/interface.js +2 -0
- package/es/template/ranking-bar/interface.js.map +1 -0
- package/es/template/ranking-bar/ranking-bar.d.ts +16 -0
- package/es/template/ranking-bar/ranking-bar.js +35 -0
- package/es/template/ranking-bar/ranking-bar.js.map +1 -0
- package/es/template/ranking-bar/spec-parser.d.ts +7 -0
- package/es/template/ranking-bar/spec-parser.js +311 -0
- package/es/template/ranking-bar/spec-parser.js.map +1 -0
- package/es/type/common.d.ts +3 -0
- package/es/type/common.js +2 -0
- package/es/type/common.js.map +1 -0
- package/es/type/space.d.ts +6 -0
- package/es/type/space.js +2 -0
- package/es/type/space.js.map +1 -0
- package/es/util/common.d.ts +2 -0
- package/es/util/common.js +10 -0
- package/es/util/common.js.map +1 -0
- package/es/util/math.d.ts +5 -0
- package/es/util/math.js +38 -0
- package/es/util/math.js.map +1 -0
- package/es/util/size.d.ts +7 -0
- package/es/util/size.js +20 -0
- package/es/util/size.js.map +1 -0
- package/es/util/space.d.ts +42 -0
- package/es/util/space.js +97 -0
- package/es/util/space.js.map +1 -0
- package/es/util/vchart-api.d.ts +3 -0
- package/es/util/vchart-api.js +10 -0
- package/es/util/vchart-api.js.map +1 -0
- package/es/util/vrender-api.d.ts +2 -0
- package/es/util/vrender-api.js +7 -0
- package/es/util/vrender-api.js.map +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAnimate as IVRenderAnimate, IGraphic } from '@visactor/vrender';
|
|
2
|
+
import type { IContext } from '../interface/type';
|
|
3
|
+
import type { ITask, TaskCb } from '../task';
|
|
4
|
+
import { AbstractTask } from '../task';
|
|
5
|
+
export declare class GraphicAnimate extends AbstractTask {
|
|
6
|
+
protected _animate: IVRenderAnimate;
|
|
7
|
+
prev: ITask;
|
|
8
|
+
next: ITask;
|
|
9
|
+
protected _target: IGraphic;
|
|
10
|
+
constructor(target: IGraphic);
|
|
11
|
+
runCb(cb: TaskCb): void;
|
|
12
|
+
run(context: Partial<IContext>): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractTask } from "../task";
|
|
2
|
+
|
|
3
|
+
export class GraphicAnimate extends AbstractTask {
|
|
4
|
+
constructor(target) {
|
|
5
|
+
super(), this._target = target, this._target && (this._animate = this._target.animate().afterAll(Array.from(this._target.animates.values())));
|
|
6
|
+
}
|
|
7
|
+
runCb(cb) {
|
|
8
|
+
this._animate && this._animate.runCb(cb);
|
|
9
|
+
}
|
|
10
|
+
run(context) {}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=animate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/animate/animate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAQ9C,YAAY,MAAgB;QAC1B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;SAC7F;IACH,CAAC;IAED,KAAK,CAAC,EAAU;QACd,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SACzB;IACH,CAAC;IAGD,GAAG,CAAC,OAA0B;QAC5B,OAAO;IACT,CAAC;CACF","file":"animate.js","sourcesContent":["import type { IAnimate as IVRenderAnimate, IGraphic } from '@visactor/vrender';\nimport type { IContext } from '../interface/type';\nimport type { ITask, TaskCb } from '../task';\nimport { AbstractTask } from '../task';\n\nexport class GraphicAnimate extends AbstractTask {\n protected _animate: IVRenderAnimate;\n\n prev: ITask;\n next: ITask;\n\n protected _target: IGraphic;\n\n constructor(target: IGraphic) {\n super();\n this._target = target;\n if (this._target) {\n this._animate = this._target.animate().afterAll(Array.from(this._target.animates.values()));\n }\n }\n\n runCb(cb: TaskCb) {\n if (this._animate) {\n this._animate.runCb(cb);\n }\n }\n\n // 覆写这个方法\n run(context: Partial<IContext>) {\n return;\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ACustomAnimate } from '@visactor/vrender';
|
|
2
|
+
import type { EasingType } from '@visactor/vrender';
|
|
3
|
+
export declare class Bounce extends ACustomAnimate<any> {
|
|
4
|
+
valid: boolean;
|
|
5
|
+
private dy;
|
|
6
|
+
private customEase;
|
|
7
|
+
constructor(from: any, to: any, duration: number, easing: EasingType, params: {
|
|
8
|
+
dy: number;
|
|
9
|
+
customEase?: any;
|
|
10
|
+
});
|
|
11
|
+
getEndProps(): Record<string, any>;
|
|
12
|
+
getFromProps(): void | Record<string, any>;
|
|
13
|
+
onBind(): void;
|
|
14
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ACustomAnimate } from "@visactor/vrender";
|
|
2
|
+
|
|
3
|
+
export class Bounce extends ACustomAnimate {
|
|
4
|
+
constructor(from, to, duration, easing, params) {
|
|
5
|
+
super(from, to, duration, easing, params);
|
|
6
|
+
const {dy: dy = 20, customEase: customEase} = params || {};
|
|
7
|
+
this.dy = dy, customEase && (this.customEase = customEase);
|
|
8
|
+
}
|
|
9
|
+
getEndProps() {
|
|
10
|
+
return this.to;
|
|
11
|
+
}
|
|
12
|
+
getFromProps() {
|
|
13
|
+
return this.from;
|
|
14
|
+
}
|
|
15
|
+
onBind() {
|
|
16
|
+
this.target && this.target.setAttributes(this.from);
|
|
17
|
+
}
|
|
18
|
+
onUpdate(end, ratio, out) {
|
|
19
|
+
const r = this.customEase ? this.customEase(ratio) : ratio;
|
|
20
|
+
out.dy = -this.dy * r;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=bounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/animate/bounce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,OAAO,MAAO,SAAQ,cAAmB;IAM7C,YAAY,IAAS,EAAE,EAAO,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAwC;QAC5G,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,UAAU,EAAE;YACd,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAC9B;IACH,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,QAAQ,CAAC,GAAY,EAAE,KAAa,EAAE,GAAwB;QAC5D,MAAM,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC;CACF","file":"bounce.js","sourcesContent":["import { ACustomAnimate } from '@visactor/vrender';\nimport type { EasingType } from '@visactor/vrender';\n\nexport class Bounce extends ACustomAnimate<any> {\n declare valid: boolean;\n\n private dy: number;\n private customEase: any;\n\n constructor(from: any, to: any, duration: number, easing: EasingType, params: { dy: number; customEase?: any }) {\n super(from, to, duration, easing, params);\n const { dy = 20, customEase } = params || {};\n this.dy = dy;\n if (customEase) {\n this.customEase = customEase;\n }\n }\n\n getEndProps(): Record<string, any> {\n return this.to;\n }\n\n getFromProps(): void | Record<string, any> {\n return this.from;\n }\n\n onBind(): void {\n this.target && this.target.setAttributes(this.from);\n }\n\n onUpdate(end: boolean, ratio: number, out: Record<string, any>): void {\n const r = this.customEase ? this.customEase(ratio) : ratio;\n out.dy = -this.dy * r;\n }\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Dict } from '@visactor/vutils';
|
|
2
|
+
import type { Template } from '../template/base-template';
|
|
3
|
+
import type { Data, MaybeArray } from '../type/common';
|
|
4
|
+
import { Action } from '../scene/action';
|
|
5
|
+
export declare function highlight(template: Template, data: MaybeArray<Data>, style: Dict<any>): Action;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { isArray } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { getAllSeriesMarksWithoutRoot } from "../util/vchart-api";
|
|
4
|
+
|
|
5
|
+
import { GraphicAnimate } from "./animate";
|
|
6
|
+
|
|
7
|
+
import { Action } from "../scene/action";
|
|
8
|
+
|
|
9
|
+
export function highlight(template, data, style) {
|
|
10
|
+
if (!data || !template) return null;
|
|
11
|
+
const highlight = new HighLight(template, data, style);
|
|
12
|
+
return new Action(highlight, (highlight => {
|
|
13
|
+
highlight.run();
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class HighLight extends GraphicAnimate {
|
|
18
|
+
constructor(target, data, style, duration) {
|
|
19
|
+
super(null), this.type = "highlight", this._duration = duration, this._dataList = isArray(data) ? data : [ data ],
|
|
20
|
+
this._template = target, this._style = style;
|
|
21
|
+
}
|
|
22
|
+
run() {
|
|
23
|
+
if (this._dataList.length) {
|
|
24
|
+
const {_dataList: _dataList, _style: _style} = this, vchart = this._template.vchartInstance();
|
|
25
|
+
if (vchart) {
|
|
26
|
+
const marks = getAllSeriesMarksWithoutRoot(vchart);
|
|
27
|
+
marks && marks.length && (marks.forEach((mark => {
|
|
28
|
+
mark.getProduct().encodeState("highlight", _style);
|
|
29
|
+
})), vchart.updateState({
|
|
30
|
+
highlight: {
|
|
31
|
+
filter: {
|
|
32
|
+
datums: _dataList,
|
|
33
|
+
dataKeys: void 0
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=highlight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/animate/highlight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,UAAU,SAAS,CAAC,QAAkB,EAAE,IAAsB,EAAE,KAAgB;IACpF,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE;QACtB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACvD,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;QACvC,SAAS,CAAC,GAAG,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,SAAU,SAAQ,cAAc;IAQpC,YAAY,MAAgB,EAAE,IAAsB,EAAE,KAAU,EAAE,QAAiB;QACjF,KAAK,CAAC,IAAI,CAAC,CAAC;QARd,SAAI,GAAG,WAAW,CAAC;QASjB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,GAAG;QACD,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;YACzB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC;YAC/C,IAAI,MAAM,EAAE;gBACV,MAAM,KAAK,GAAG,4BAA4B,CAAC,MAAM,CAAC,CAAC;gBACnD,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE;oBACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBACnB,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;oBACrD,CAAC,CAAC,CAAC;oBACH,MAAM,CAAC,WAAW,CAAC;wBACjB,SAAS,EAAE;4BACT,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAS;yBAC1D;qBACF,CAAC,CAAC;iBACJ;aACF;SACF;IACH,CAAC;CACF","file":"highlight.js","sourcesContent":["import type { Dict } from '@visactor/vutils';\nimport { isArray } from '@visactor/vutils';\nimport type { Template } from '../template/base-template';\nimport type { Data, MaybeArray } from '../type/common';\nimport { getAllSeriesMarksWithoutRoot } from '../util/vchart-api';\nimport { GraphicAnimate } from './animate';\nimport { Action } from '../scene/action';\n\nexport function highlight(template: Template, data: MaybeArray<Data>, style: Dict<any>) {\n if (!data || !template) {\n return null;\n }\n const highlight = new HighLight(template, data, style);\n return new Action(highlight, highlight => {\n highlight.run();\n });\n}\n\nclass HighLight extends GraphicAnimate {\n type = 'highlight';\n\n protected _duration: number;\n protected _dataList: Data[];\n protected _template: Template;\n protected _style: any;\n\n constructor(target: Template, data: MaybeArray<Data>, style: any, duration?: number) {\n super(null);\n this._duration = duration;\n this._dataList = isArray(data) ? data : [data];\n this._template = target;\n this._style = style;\n }\n\n run() {\n if (this._dataList.length) {\n const { _dataList, _style } = this;\n const vchart = this._template.vchartInstance();\n if (vchart) {\n const marks = getAllSeriesMarksWithoutRoot(vchart);\n if (marks && marks.length) {\n marks.forEach(mark => {\n mark.getProduct().encodeState('highlight', _style);\n });\n vchart.updateState({\n highlight: {\n filter: { datums: _dataList, dataKeys: undefined } as any\n }\n });\n }\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ACustomAnimate } from '@visactor/vrender';
|
|
2
|
+
import type { IGraphic } from '@visactor/vrender';
|
|
3
|
+
export declare class TypeWriter extends ACustomAnimate<{
|
|
4
|
+
text: string;
|
|
5
|
+
}> {
|
|
6
|
+
valid: boolean;
|
|
7
|
+
target: IGraphic;
|
|
8
|
+
private fromText;
|
|
9
|
+
private toText;
|
|
10
|
+
getEndProps(): Record<string, any>;
|
|
11
|
+
onBind(): void;
|
|
12
|
+
onEnd(): void;
|
|
13
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ACustomAnimate, createLine, getTextBounds, registerShadowRootGraphic } from "@visactor/vrender";
|
|
2
|
+
|
|
3
|
+
import { isArray } from "@visactor/vutils";
|
|
4
|
+
|
|
5
|
+
registerShadowRootGraphic();
|
|
6
|
+
|
|
7
|
+
export class TypeWriter extends ACustomAnimate {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.fromText = "", this.toText = "";
|
|
10
|
+
}
|
|
11
|
+
getEndProps() {
|
|
12
|
+
return !1 === this.valid ? {} : {
|
|
13
|
+
text: this.to
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
onBind() {
|
|
17
|
+
var _a, _b, _c, _d;
|
|
18
|
+
if (this.fromText = null !== (_b = null === (_a = this.from) || void 0 === _a ? void 0 : _a.text) && void 0 !== _b ? _b : "",
|
|
19
|
+
this.toText = null !== (_d = null === (_c = this.to) || void 0 === _c ? void 0 : _c.text) && void 0 !== _d ? _d : "",
|
|
20
|
+
!this.toText || isArray(this.toText)) this.valid = !1; else {
|
|
21
|
+
this.toText = this.toText.toString();
|
|
22
|
+
const root = this.target.attachShadow(), fontSize = this.target.getComputedAttribute("fontSize"), line = createLine({
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
dy: -fontSize / 2,
|
|
26
|
+
points: [ {
|
|
27
|
+
x: 0,
|
|
28
|
+
y: 0
|
|
29
|
+
}, {
|
|
30
|
+
x: 0,
|
|
31
|
+
y: fontSize
|
|
32
|
+
} ],
|
|
33
|
+
stroke: "black"
|
|
34
|
+
});
|
|
35
|
+
root.add(line);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
onEnd() {
|
|
39
|
+
this.target.detachShadow();
|
|
40
|
+
}
|
|
41
|
+
onUpdate(end, ratio, out) {
|
|
42
|
+
var _a;
|
|
43
|
+
if (!1 === this.valid) return;
|
|
44
|
+
const fromCount = this.fromText.length, toCount = this.toText.length, count = Math.ceil(fromCount + (toCount - fromCount) * ratio);
|
|
45
|
+
out.text = this.toText.substr(0, count);
|
|
46
|
+
const line = null === (_a = this.target.shadowRoot) || void 0 === _a ? void 0 : _a.at(0), endX = getTextBounds(Object.assign(Object.assign({}, this.target.attribute), out)).width() / 2 + 2;
|
|
47
|
+
line.setAttribute("x", endX);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=typewirter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/animate/typewirter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEzG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,yBAAyB,EAAE,CAAC;AAC5B,MAAM,OAAO,UAAW,SAAQ,cAAgC;IAAhE;;QAIU,aAAQ,GAAG,EAAE,CAAC;QACd,WAAM,GAAG,EAAE,CAAC;IAyDtB,CAAC;IAvDC,WAAW;QACT,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,EAAE;YACxB,OAAO,EAAE,CAAC;SACX;QACD,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,EAAE;SACd,CAAC;IACJ,CAAC;IAED,MAAM;;QACJ,IAAI,CAAC,QAAQ,GAAG,MAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI,mCAAI,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,MAAA,MAAA,IAAI,CAAC,EAAE,0CAAE,IAAI,mCAAI,EAAE,CAAC;QAClC,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACxC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACpB;aAAM;YACL,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;YAC9D,MAAM,IAAI,GAAG,UAAU,CAAC;gBACtB,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,EAAE,EAAE,CAAC,QAAQ,GAAG,CAAC;gBACjB,MAAM,EAAE;oBACN,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;oBACd,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE;iBACtB;gBACD,MAAM,EAAE,OAAO;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IAED,QAAQ,CAAC,GAAY,EAAE,KAAa,EAAE,GAAwB;;QAC5D,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,EAAE;YACxB,OAAO;SACR;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACnC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC;QAEnE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QAGxC,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,MAAM,CAAC,UAAU,0CAAE,EAAE,CAAC,CAAC,CAAa,CAAC;QAEvD,MAAM,IAAI,GAAG,aAAa,iCAAM,IAAI,CAAC,MAAM,CAAC,SAAS,GAAK,GAAG,EAAG,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;QAEjF,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF","file":"typewirter.js","sourcesContent":["import { ACustomAnimate, createLine, getTextBounds, registerShadowRootGraphic } from '@visactor/vrender';\nimport type { IGraphic } from '@visactor/vrender';\nimport { isArray } from '@visactor/vutils';\nregisterShadowRootGraphic();\nexport class TypeWriter extends ACustomAnimate<{ text: string }> {\n declare valid: boolean;\n declare target: IGraphic;\n\n private fromText = '';\n private toText = '';\n\n getEndProps(): Record<string, any> {\n if (this.valid === false) {\n return {};\n }\n return {\n text: this.to\n };\n }\n\n onBind(): void {\n this.fromText = this.from?.text ?? '';\n this.toText = this.to?.text ?? '';\n if (!this.toText || isArray(this.toText)) {\n this.valid = false;\n } else {\n this.toText = this.toText.toString();\n const root = this.target.attachShadow();\n const fontSize = this.target.getComputedAttribute('fontSize');\n const line = createLine({\n x: 0,\n y: 0,\n dy: -fontSize / 2,\n points: [\n { x: 0, y: 0 },\n { x: 0, y: fontSize }\n ],\n stroke: 'black'\n });\n root.add(line);\n }\n }\n\n onEnd(): void {\n this.target.detachShadow();\n return;\n }\n\n onUpdate(end: boolean, ratio: number, out: Record<string, any>): void {\n if (this.valid === false) {\n return;\n }\n // update text\n const fromCount = this.fromText.length;\n const toCount = this.toText.length;\n const count = Math.ceil(fromCount + (toCount - fromCount) * ratio);\n\n out.text = this.toText.substr(0, count);\n\n // update line position\n const line = this.target.shadowRoot?.at(0) as IGraphic;\n\n const endX = getTextBounds({ ...this.target.attribute, ...out }).width() / 2 + 2;\n\n line.setAttribute('x', endX);\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* paths 3.12.5
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
8
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRawPath(value: any): any;
|
|
11
|
+
export declare function copyRawPath(rawPath: any): any;
|
|
12
|
+
export declare function reverseSegment(segment: any): void;
|
|
13
|
+
export declare function convertToPath(element: any, swap: any): any;
|
|
14
|
+
export declare function getRotationAtProgress(rawPath: any, progress: any): number;
|
|
15
|
+
export declare function sliceRawPath(rawPath: any, start: any, end: any): any;
|
|
16
|
+
export declare function cacheRawPathMeasurements(rawPath: any, resolution: any): any;
|
|
17
|
+
export declare function subdivideSegment(segment: any, i: any, t: any): 0 | 6;
|
|
18
|
+
export declare function getPositionOnPath(rawPath: any, progress: any, includeAngle: any, point: any): any;
|
|
19
|
+
export declare function transformRawPath(rawPath: any, a: any, b: any, c: any, d: any, tx: any, ty: any): any;
|
|
20
|
+
export declare function stringToRawPath(d: any): any[];
|
|
21
|
+
export declare function bezierToPoints(x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, x4: any, y4: any, threshold: any, points: any, index: any): any;
|
|
22
|
+
export declare function flatPointsToSegment(points: any, curviness?: number): any[];
|
|
23
|
+
export declare function pointsToSegment(points: any, curviness: any): number[];
|
|
24
|
+
export declare function simplifyPoints(points: any, tolerance: any): number[];
|
|
25
|
+
export declare function getClosestData(rawPath: any, x: any, y: any, slices: any): {
|
|
26
|
+
j: number;
|
|
27
|
+
i: number;
|
|
28
|
+
t: number;
|
|
29
|
+
};
|
|
30
|
+
export declare function subdivideSegmentNear(x: any, y: any, segment: any, slices: any, iterations: any): number;
|
|
31
|
+
export declare function rawPathToString(rawPath: any): string;
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* paths 3.12.5
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
8
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
+
*/
|
|
10
|
+
let _bestDistance, _svgPathExp = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, _numbersExp = /(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, _scientific = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi, _selectorExp = /(^[#\.][a-z]|[a-y][a-z])/i, _DEG2RAD = Math.PI / 180, _RAD2DEG = 180 / Math.PI, _sin = Math.sin, _cos = Math.cos, _abs = Math.abs, _sqrt = Math.sqrt, _atan2 = Math.atan2, _largeNum = 1e8, _isString = value => "string" == typeof value, _isNumber = value => "number" == typeof value, _isUndefined = value => void 0 === value, _temp = {}, _temp2 = {}, _roundingNum = 1e5, _wrapProgress = progress => Math.round((progress + _largeNum) % 1 * _roundingNum) / _roundingNum || (progress < 0 ? 0 : 1), _round = value => Math.round(value * _roundingNum) / _roundingNum || 0, _roundPrecise = value => Math.round(1e10 * value) / 1e10 || 0, _splitSegment = (rawPath, segIndex, i, t) => {
|
|
11
|
+
let segment = rawPath[segIndex], shift = 1 === t ? 6 : subdivideSegment(segment, i, t);
|
|
12
|
+
if ((shift || !t) && shift + i + 2 < segment.length) return rawPath.splice(segIndex, 0, segment.slice(0, i + shift + 2)),
|
|
13
|
+
segment.splice(0, i + shift), 1;
|
|
14
|
+
}, _getSampleIndex = (samples, length, progress) => {
|
|
15
|
+
let l = samples.length, i = ~~(progress * l);
|
|
16
|
+
if (samples[i] > length) {
|
|
17
|
+
for (;--i && samples[i] > length; ) ;
|
|
18
|
+
i < 0 && (i = 0);
|
|
19
|
+
} else for (;samples[++i] < length && i < l; ) ;
|
|
20
|
+
return i < l ? i : l - 1;
|
|
21
|
+
}, _reverseRawPath = (rawPath, skipOuter) => {
|
|
22
|
+
let i = rawPath.length;
|
|
23
|
+
for (skipOuter || rawPath.reverse(); i--; ) rawPath[i].reversed || reverseSegment(rawPath[i]);
|
|
24
|
+
}, _copyMetaData = (source, copy) => (copy.totalLength = source.totalLength, source.samples ? (copy.samples = source.samples.slice(0),
|
|
25
|
+
copy.lookup = source.lookup.slice(0), copy.minLength = source.minLength, copy.resolution = source.resolution) : source.totalPoints && (copy.totalPoints = source.totalPoints),
|
|
26
|
+
copy), _appendOrMerge = (rawPath, segment) => {
|
|
27
|
+
let index = rawPath.length, prevSeg = rawPath[index - 1] || [], l = prevSeg.length;
|
|
28
|
+
index && segment[0] === prevSeg[l - 2] && segment[1] === prevSeg[l - 1] && (segment = prevSeg.concat(segment.slice(2)),
|
|
29
|
+
index--), rawPath[index] = segment;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export function getRawPath(value) {
|
|
33
|
+
let rawPath, e = (value = _isString(value) && _selectorExp.test(value) && document.querySelector(value) || value).getAttribute ? value : 0;
|
|
34
|
+
return e && (value = value.getAttribute("d")) ? (e._gsPath || (e._gsPath = {}),
|
|
35
|
+
rawPath = e._gsPath[value], rawPath && !rawPath._dirty ? rawPath : e._gsPath[value] = stringToRawPath(value)) : value ? _isString(value) ? stringToRawPath(value) : _isNumber(value[0]) ? [ value ] : value : console.warn("Expecting a <path> element or an SVG path data string");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function copyRawPath(rawPath) {
|
|
39
|
+
let a = [], i = 0;
|
|
40
|
+
for (;i < rawPath.length; i++) a[i] = _copyMetaData(rawPath[i], rawPath[i].slice(0));
|
|
41
|
+
return _copyMetaData(rawPath, a);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function reverseSegment(segment) {
|
|
45
|
+
let y, i = 0;
|
|
46
|
+
for (segment.reverse(); i < segment.length; i += 2) y = segment[i], segment[i] = segment[i + 1],
|
|
47
|
+
segment[i + 1] = y;
|
|
48
|
+
segment.reversed = !segment.reversed;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
let _createPath = (e, ignore) => {
|
|
52
|
+
let name, path = document.createElementNS("http://www.w3.org/2000/svg", "path"), attr = [].slice.call(e.attributes), i = attr.length;
|
|
53
|
+
for (ignore = "," + ignore + ","; --i > -1; ) name = attr[i].nodeName.toLowerCase(),
|
|
54
|
+
ignore.indexOf("," + name + ",") < 0 && path.setAttributeNS(null, name, attr[i].nodeValue);
|
|
55
|
+
return path;
|
|
56
|
+
}, _typeAttrs = {
|
|
57
|
+
rect: "rx,ry,x,y,width,height",
|
|
58
|
+
circle: "r,cx,cy",
|
|
59
|
+
ellipse: "rx,ry,cx,cy",
|
|
60
|
+
line: "x1,x2,y1,y2"
|
|
61
|
+
}, _attrToObj = (e, attrs) => {
|
|
62
|
+
let props = attrs ? attrs.split(",") : [], obj = {}, i = props.length;
|
|
63
|
+
for (;--i > -1; ) obj[props[i]] = +e.getAttribute(props[i]) || 0;
|
|
64
|
+
return obj;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export function convertToPath(element, swap) {
|
|
68
|
+
let data, x, y, r, ry, path, rcirc, rycirc, points, w, h, x2, x3, x4, x5, x6, y2, y3, y4, y5, y6, attr, type = element.tagName.toLowerCase(), circ = .552284749831;
|
|
69
|
+
return "path" !== type && element.getBBox ? (path = _createPath(element, "x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),
|
|
70
|
+
attr = _attrToObj(element, _typeAttrs[type]), "rect" === type ? (r = attr.rx, ry = attr.ry || r,
|
|
71
|
+
x = attr.x, y = attr.y, w = attr.width - 2 * r, h = attr.height - 2 * ry, r || ry ? (x2 = x + r * (1 - circ),
|
|
72
|
+
x3 = x + r, x4 = x3 + w, x5 = x4 + r * circ, x6 = x4 + r, y2 = y + ry * (1 - circ),
|
|
73
|
+
y3 = y + ry, y4 = y3 + h, y5 = y4 + ry * circ, y6 = y4 + ry, data = "M" + x6 + "," + y3 + " V" + y4 + " C" + [ x6, y5, x5, y6, x4, y6, x4 - (x4 - x3) / 3, y6, x3 + (x4 - x3) / 3, y6, x3, y6, x2, y6, x, y5, x, y4, x, y4 - (y4 - y3) / 3, x, y3 + (y4 - y3) / 3, x, y3, x, y2, x2, y, x3, y, x3 + (x4 - x3) / 3, y, x4 - (x4 - x3) / 3, y, x4, y, x5, y, x6, y2, x6, y3 ].join(",") + "z") : data = "M" + (x + w) + "," + y + " v" + h + " h" + -w + " v" + -h + " h" + w + "z") : "circle" === type || "ellipse" === type ? ("circle" === type ? (r = ry = attr.r,
|
|
74
|
+
rycirc = r * circ) : (r = attr.rx, ry = attr.ry, rycirc = ry * circ), x = attr.cx,
|
|
75
|
+
y = attr.cy, rcirc = r * circ, data = "M" + (x + r) + "," + y + " C" + [ x + r, y + rycirc, x + rcirc, y + ry, x, y + ry, x - rcirc, y + ry, x - r, y + rycirc, x - r, y, x - r, y - rycirc, x - rcirc, y - ry, x, y - ry, x + rcirc, y - ry, x + r, y - rycirc, x + r, y ].join(",") + "z") : "line" === type ? data = "M" + attr.x1 + "," + attr.y1 + " L" + attr.x2 + "," + attr.y2 : "polyline" !== type && "polygon" !== type || (points = (element.getAttribute("points") + "").match(_numbersExp) || [],
|
|
76
|
+
x = points.shift(), y = points.shift(), data = "M" + x + "," + y + " L" + points.join(","),
|
|
77
|
+
"polygon" === type && (data += "," + x + "," + y + "z")), path.setAttribute("d", rawPathToString(path._gsRawPath = stringToRawPath(data))),
|
|
78
|
+
swap && element.parentNode && (element.parentNode.insertBefore(path, element), element.parentNode.removeChild(element)),
|
|
79
|
+
path) : element;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function getRotationAtProgress(rawPath, progress) {
|
|
83
|
+
let d = getProgressData(rawPath, progress >= 1 ? 1 - 1e-9 : progress || 1e-9);
|
|
84
|
+
return getRotationAtBezierT(d.segment, d.i, d.t);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function getRotationAtBezierT(segment, i, t) {
|
|
88
|
+
let x, a = segment[i], b = segment[i + 2], c = segment[i + 4];
|
|
89
|
+
return a += (b - a) * t, b += (c - b) * t, a += (b - a) * t, x = b + (c + (segment[i + 6] - c) * t - b) * t - a,
|
|
90
|
+
a = segment[i + 1], b = segment[i + 3], c = segment[i + 5], a += (b - a) * t, b += (c - b) * t,
|
|
91
|
+
a += (b - a) * t, _round(_atan2(b + (c + (segment[i + 7] - c) * t - b) * t - a, x) * _RAD2DEG);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function sliceRawPath(rawPath, start, end) {
|
|
95
|
+
end = _isUndefined(end) ? 1 : _roundPrecise(end) || 0, start = _roundPrecise(start) || 0;
|
|
96
|
+
let loops = Math.max(0, ~~(_abs(end - start) - 1e-8)), path = copyRawPath(rawPath);
|
|
97
|
+
if (start > end && (start = 1 - start, end = 1 - end, _reverseRawPath(path), path.totalLength = 0),
|
|
98
|
+
start < 0 || end < 0) {
|
|
99
|
+
let offset = Math.abs(~~Math.min(start, end)) + 1;
|
|
100
|
+
start += offset, end += offset;
|
|
101
|
+
}
|
|
102
|
+
path.totalLength || cacheRawPathMeasurements(path);
|
|
103
|
+
let wrapsBehind, sShift, eShift, i, copy, totalSegments, l, j, wrap = end > 1, s = getProgressData(path, start, _temp, !0), e = getProgressData(path, end, _temp2), eSeg = e.segment, sSeg = s.segment, eSegIndex = e.segIndex, sSegIndex = s.segIndex, ei = e.i, si = s.i, sameSegment = sSegIndex === eSegIndex, sameBezier = ei === si && sameSegment;
|
|
104
|
+
if (wrap || loops) {
|
|
105
|
+
for (wrapsBehind = eSegIndex < sSegIndex || sameSegment && ei < si || sameBezier && e.t < s.t,
|
|
106
|
+
_splitSegment(path, sSegIndex, si, s.t) && (sSegIndex++, wrapsBehind || (eSegIndex++,
|
|
107
|
+
sameBezier ? (e.t = (e.t - s.t) / (1 - s.t), ei = 0) : sameSegment && (ei -= si))),
|
|
108
|
+
Math.abs(1 - (end - start)) < 1e-5 ? eSegIndex = sSegIndex - 1 : !e.t && eSegIndex ? eSegIndex-- : _splitSegment(path, eSegIndex, ei, e.t) && wrapsBehind && sSegIndex++,
|
|
109
|
+
1 === s.t && (sSegIndex = (sSegIndex + 1) % path.length), copy = [], totalSegments = path.length,
|
|
110
|
+
l = 1 + totalSegments * loops, j = sSegIndex, l += (totalSegments - sSegIndex + eSegIndex) % totalSegments,
|
|
111
|
+
i = 0; i < l; i++) _appendOrMerge(copy, path[j++ % totalSegments]);
|
|
112
|
+
path = copy;
|
|
113
|
+
} else if (eShift = 1 === e.t ? 6 : subdivideSegment(eSeg, ei, e.t), start !== end) for (sShift = subdivideSegment(sSeg, si, sameBezier ? s.t / e.t : s.t),
|
|
114
|
+
sameSegment && (eShift += sShift), eSeg.splice(ei + eShift + 2), (sShift || si) && sSeg.splice(0, si + sShift),
|
|
115
|
+
i = path.length; i--; ) (i < sSegIndex || i > eSegIndex) && path.splice(i, 1); else eSeg.angle = getRotationAtBezierT(eSeg, ei + eShift, 0),
|
|
116
|
+
ei += eShift, s = eSeg[ei], e = eSeg[ei + 1], eSeg.length = eSeg.totalLength = 0,
|
|
117
|
+
eSeg.totalPoints = path.totalPoints = 8, eSeg.push(s, e, s, e, s, e, s, e);
|
|
118
|
+
return path.totalLength = 0, path;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function measureSegment(segment, startIndex, bezierQty) {
|
|
122
|
+
startIndex = startIndex || 0, segment.samples || (segment.samples = [], segment.lookup = []);
|
|
123
|
+
let i, j, x4, x3, x2, xd, xd1, y4, y3, y2, yd, yd1, inv, t, lengthIndex, l, segLength, resolution = ~~segment.resolution || 12, inc = 1 / resolution, endIndex = bezierQty ? startIndex + 6 * bezierQty + 1 : segment.length, x1 = segment[startIndex], y1 = segment[startIndex + 1], samplesIndex = startIndex ? startIndex / 6 * resolution : 0, samples = segment.samples, lookup = segment.lookup, min = (startIndex ? segment.minLength : _largeNum) || _largeNum, prevLength = samples[samplesIndex + bezierQty * resolution - 1], length = startIndex ? samples[samplesIndex - 1] : 0;
|
|
124
|
+
for (samples.length = lookup.length = 0, j = startIndex + 2; j < endIndex; j += 6) {
|
|
125
|
+
if (x4 = segment[j + 4] - x1, x3 = segment[j + 2] - x1, x2 = segment[j] - x1, y4 = segment[j + 5] - y1,
|
|
126
|
+
y3 = segment[j + 3] - y1, y2 = segment[j + 1] - y1, xd = xd1 = yd = yd1 = 0, _abs(x4) < .01 && _abs(y4) < .01 && _abs(x2) + _abs(y2) < .01) segment.length > 8 && (segment.splice(j, 6),
|
|
127
|
+
j -= 6, endIndex -= 6); else for (i = 1; i <= resolution; i++) t = inc * i, inv = 1 - t,
|
|
128
|
+
xd = xd1 - (xd1 = (t * t * x4 + 3 * inv * (t * x3 + inv * x2)) * t), yd = yd1 - (yd1 = (t * t * y4 + 3 * inv * (t * y3 + inv * y2)) * t),
|
|
129
|
+
l = _sqrt(yd * yd + xd * xd), l < min && (min = l), length += l, samples[samplesIndex++] = length;
|
|
130
|
+
x1 += x4, y1 += y4;
|
|
131
|
+
}
|
|
132
|
+
if (prevLength) for (prevLength -= length; samplesIndex < samples.length; samplesIndex++) samples[samplesIndex] += prevLength;
|
|
133
|
+
if (samples.length && min) {
|
|
134
|
+
if (segment.totalLength = segLength = samples[samples.length - 1] || 0, segment.minLength = min,
|
|
135
|
+
segLength / min < 9999) for (l = lengthIndex = 0, i = 0; i < segLength; i += min) lookup[l++] = samples[lengthIndex] < i ? ++lengthIndex : lengthIndex;
|
|
136
|
+
} else segment.totalLength = samples[0] = 0;
|
|
137
|
+
return startIndex ? length - samples[startIndex / 2 - 1] : length;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function cacheRawPathMeasurements(rawPath, resolution) {
|
|
141
|
+
let pathLength, points, i;
|
|
142
|
+
for (i = pathLength = points = 0; i < rawPath.length; i++) rawPath[i].resolution = ~~resolution || 12,
|
|
143
|
+
points += rawPath[i].length, pathLength += measureSegment(rawPath[i]);
|
|
144
|
+
return rawPath.totalPoints = points, rawPath.totalLength = pathLength, rawPath;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function subdivideSegment(segment, i, t) {
|
|
148
|
+
if (t <= 0 || t >= 1) return 0;
|
|
149
|
+
let ax = segment[i], ay = segment[i + 1], cp1x = segment[i + 2], cp1y = segment[i + 3], cp2x = segment[i + 4], cp2y = segment[i + 5], x1a = ax + (cp1x - ax) * t, x2 = cp1x + (cp2x - cp1x) * t, y1a = ay + (cp1y - ay) * t, y2 = cp1y + (cp2y - cp1y) * t, x1 = x1a + (x2 - x1a) * t, y1 = y1a + (y2 - y1a) * t, x2a = cp2x + (segment[i + 6] - cp2x) * t, y2a = cp2y + (segment[i + 7] - cp2y) * t;
|
|
150
|
+
return x2 += (x2a - x2) * t, y2 += (y2a - y2) * t, segment.splice(i + 2, 4, _round(x1a), _round(y1a), _round(x1), _round(y1), _round(x1 + (x2 - x1) * t), _round(y1 + (y2 - y1) * t), _round(x2), _round(y2), _round(x2a), _round(y2a)),
|
|
151
|
+
segment.samples && segment.samples.splice(i / 6 * segment.resolution | 0, 0, 0, 0, 0, 0, 0, 0),
|
|
152
|
+
6;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function getProgressData(rawPath, progress, decoratee, pushToNextIfAtEnd) {
|
|
156
|
+
decoratee = decoratee || {}, rawPath.totalLength || cacheRawPathMeasurements(rawPath),
|
|
157
|
+
(progress < 0 || progress > 1) && (progress = _wrapProgress(progress));
|
|
158
|
+
let samples, resolution, length, min, max, i, t, segIndex = 0, segment = rawPath[0];
|
|
159
|
+
if (progress) if (1 === progress) t = 1, segIndex = rawPath.length - 1, segment = rawPath[segIndex],
|
|
160
|
+
i = segment.length - 8; else {
|
|
161
|
+
if (rawPath.length > 1) {
|
|
162
|
+
for (length = rawPath.totalLength * progress, max = i = 0; (max += rawPath[i++].totalLength) < length; ) segIndex = i;
|
|
163
|
+
segment = rawPath[segIndex], min = max - segment.totalLength, progress = (length - min) / (max - min) || 0;
|
|
164
|
+
}
|
|
165
|
+
samples = segment.samples, resolution = segment.resolution, length = segment.totalLength * progress,
|
|
166
|
+
i = segment.lookup.length ? segment.lookup[~~(length / segment.minLength)] || 0 : _getSampleIndex(samples, length, progress),
|
|
167
|
+
min = i ? samples[i - 1] : 0, max = samples[i], max < length && (min = max, max = samples[++i]),
|
|
168
|
+
t = 1 / resolution * ((length - min) / (max - min) + i % resolution), i = 6 * ~~(i / resolution),
|
|
169
|
+
pushToNextIfAtEnd && 1 === t && (i + 6 < segment.length ? (i += 6, t = 0) : segIndex + 1 < rawPath.length && (i = t = 0,
|
|
170
|
+
segment = rawPath[++segIndex]));
|
|
171
|
+
} else t = i = segIndex = 0, segment = rawPath[0];
|
|
172
|
+
return decoratee.t = t, decoratee.i = i, decoratee.path = rawPath, decoratee.segment = segment,
|
|
173
|
+
decoratee.segIndex = segIndex, decoratee;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function getPositionOnPath(rawPath, progress, includeAngle, point) {
|
|
177
|
+
let samples, resolution, length, min, max, i, t, a, inv, segment = rawPath[0], result = point || {};
|
|
178
|
+
if ((progress < 0 || progress > 1) && (progress = _wrapProgress(progress)), segment.lookup || cacheRawPathMeasurements(rawPath),
|
|
179
|
+
rawPath.length > 1) {
|
|
180
|
+
for (length = rawPath.totalLength * progress, max = i = 0; (max += rawPath[i++].totalLength) < length; ) segment = rawPath[i];
|
|
181
|
+
min = max - segment.totalLength, progress = (length - min) / (max - min) || 0;
|
|
182
|
+
}
|
|
183
|
+
return samples = segment.samples, resolution = segment.resolution, length = segment.totalLength * progress,
|
|
184
|
+
i = segment.lookup.length ? segment.lookup[progress < 1 ? ~~(length / segment.minLength) : segment.lookup.length - 1] || 0 : _getSampleIndex(samples, length, progress),
|
|
185
|
+
min = i ? samples[i - 1] : 0, max = samples[i], max < length && (min = max, max = samples[++i]),
|
|
186
|
+
t = 1 / resolution * ((length - min) / (max - min) + i % resolution) || 0, inv = 1 - t,
|
|
187
|
+
i = 6 * ~~(i / resolution), a = segment[i], result.x = _round((t * t * (segment[i + 6] - a) + 3 * inv * (t * (segment[i + 4] - a) + inv * (segment[i + 2] - a))) * t + a),
|
|
188
|
+
result.y = _round((t * t * (segment[i + 7] - (a = segment[i + 1])) + 3 * inv * (t * (segment[i + 5] - a) + inv * (segment[i + 3] - a))) * t + a),
|
|
189
|
+
includeAngle && (result.angle = segment.totalLength ? getRotationAtBezierT(segment, i, t >= 1 ? 1 - 1e-9 : t || 1e-9) : segment.angle || 0),
|
|
190
|
+
result;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function transformRawPath(rawPath, a, b, c, d, tx, ty) {
|
|
194
|
+
let segment, l, i, x, y, j = rawPath.length;
|
|
195
|
+
for (;--j > -1; ) for (segment = rawPath[j], l = segment.length, i = 0; i < l; i += 2) x = segment[i],
|
|
196
|
+
y = segment[i + 1], segment[i] = x * a + y * c + tx, segment[i + 1] = x * b + y * d + ty;
|
|
197
|
+
return rawPath._dirty = 1, rawPath;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function arcToSegment(lastX, lastY, rx, ry, angle, largeArcFlag, sweepFlag, x, y) {
|
|
201
|
+
if (lastX === x && lastY === y) return;
|
|
202
|
+
rx = _abs(rx), ry = _abs(ry);
|
|
203
|
+
let angleRad = angle % 360 * _DEG2RAD, cosAngle = _cos(angleRad), sinAngle = _sin(angleRad), PI = Math.PI, TWOPI = 2 * PI, dx2 = (lastX - x) / 2, dy2 = (lastY - y) / 2, x1 = cosAngle * dx2 + sinAngle * dy2, y1 = -sinAngle * dx2 + cosAngle * dy2, x1_sq = x1 * x1, y1_sq = y1 * y1, radiiCheck = x1_sq / (rx * rx) + y1_sq / (ry * ry);
|
|
204
|
+
radiiCheck > 1 && (rx = _sqrt(radiiCheck) * rx, ry = _sqrt(radiiCheck) * ry);
|
|
205
|
+
let rx_sq = rx * rx, ry_sq = ry * ry, sq = (rx_sq * ry_sq - rx_sq * y1_sq - ry_sq * x1_sq) / (rx_sq * y1_sq + ry_sq * x1_sq);
|
|
206
|
+
sq < 0 && (sq = 0);
|
|
207
|
+
let coef = (largeArcFlag === sweepFlag ? -1 : 1) * _sqrt(sq), cx1 = coef * (rx * y1 / ry), cy1 = coef * (-ry * x1 / rx), cx = (lastX + x) / 2 + (cosAngle * cx1 - sinAngle * cy1), cy = (lastY + y) / 2 + (sinAngle * cx1 + cosAngle * cy1), ux = (x1 - cx1) / rx, uy = (y1 - cy1) / ry, vx = (-x1 - cx1) / rx, vy = (-y1 - cy1) / ry, temp = ux * ux + uy * uy, angleStart = (uy < 0 ? -1 : 1) * Math.acos(ux / _sqrt(temp)), angleExtent = (ux * vy - uy * vx < 0 ? -1 : 1) * Math.acos((ux * vx + uy * vy) / _sqrt(temp * (vx * vx + vy * vy)));
|
|
208
|
+
isNaN(angleExtent) && (angleExtent = PI), !sweepFlag && angleExtent > 0 ? angleExtent -= TWOPI : sweepFlag && angleExtent < 0 && (angleExtent += TWOPI),
|
|
209
|
+
angleStart %= TWOPI, angleExtent %= TWOPI;
|
|
210
|
+
let i, segments = Math.ceil(_abs(angleExtent) / (TWOPI / 4)), rawPath = [], angleIncrement = angleExtent / segments, controlLength = 4 / 3 * _sin(angleIncrement / 2) / (1 + _cos(angleIncrement / 2)), ma = cosAngle * rx, mb = sinAngle * rx, mc = sinAngle * -ry, md = cosAngle * ry;
|
|
211
|
+
for (i = 0; i < segments; i++) x1 = _cos(angle = angleStart + i * angleIncrement),
|
|
212
|
+
y1 = _sin(angle), ux = _cos(angle += angleIncrement), uy = _sin(angle), rawPath.push(x1 - controlLength * y1, y1 + controlLength * x1, ux + controlLength * uy, uy - controlLength * ux, ux, uy);
|
|
213
|
+
for (i = 0; i < rawPath.length; i += 2) x1 = rawPath[i], y1 = rawPath[i + 1], rawPath[i] = x1 * ma + y1 * mc + cx,
|
|
214
|
+
rawPath[i + 1] = x1 * mb + y1 * md + cy;
|
|
215
|
+
return rawPath[i - 2] = x, rawPath[i - 1] = y, rawPath;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export function stringToRawPath(d) {
|
|
219
|
+
let i, j, x, y, command, isRelative, segment, startX, startY, difX, difY, beziers, prevCommand, flag1, flag2, a = (d + "").replace(_scientific, (m => {
|
|
220
|
+
let n = +m;
|
|
221
|
+
return n < 1e-4 && n > -1e-4 ? 0 : n;
|
|
222
|
+
})).match(_svgPathExp) || [], path = [], relativeX = 0, relativeY = 0, twoThirds = 2 / 3, elements = a.length, points = 0, errorMessage = "ERROR: malformed path: " + d, line = function(sx, sy, ex, ey) {
|
|
223
|
+
difX = (ex - sx) / 3, difY = (ey - sy) / 3, segment.push(sx + difX, sy + difY, ex - difX, ey - difY, ex, ey);
|
|
224
|
+
};
|
|
225
|
+
if (!d || !isNaN(a[0]) || isNaN(a[1])) return console.log(errorMessage), path;
|
|
226
|
+
for (i = 0; i < elements; i++) if (prevCommand = command, isNaN(a[i]) ? (command = a[i].toUpperCase(),
|
|
227
|
+
isRelative = command !== a[i]) : i--, x = +a[i + 1], y = +a[i + 2], isRelative && (x += relativeX,
|
|
228
|
+
y += relativeY), i || (startX = x, startY = y), "M" === command) segment && (segment.length < 8 ? path.length -= 1 : points += segment.length),
|
|
229
|
+
relativeX = startX = x, relativeY = startY = y, segment = [ x, y ], path.push(segment),
|
|
230
|
+
i += 2, command = "L"; else if ("C" === command) segment || (segment = [ 0, 0 ]),
|
|
231
|
+
isRelative || (relativeX = relativeY = 0), segment.push(x, y, relativeX + 1 * a[i + 3], relativeY + 1 * a[i + 4], relativeX += 1 * a[i + 5], relativeY += 1 * a[i + 6]),
|
|
232
|
+
i += 6; else if ("S" === command) difX = relativeX, difY = relativeY, "C" !== prevCommand && "S" !== prevCommand || (difX += relativeX - segment[segment.length - 4],
|
|
233
|
+
difY += relativeY - segment[segment.length - 3]), isRelative || (relativeX = relativeY = 0),
|
|
234
|
+
segment.push(difX, difY, x, y, relativeX += 1 * a[i + 3], relativeY += 1 * a[i + 4]),
|
|
235
|
+
i += 4; else if ("Q" === command) difX = relativeX + (x - relativeX) * twoThirds,
|
|
236
|
+
difY = relativeY + (y - relativeY) * twoThirds, isRelative || (relativeX = relativeY = 0),
|
|
237
|
+
relativeX += 1 * a[i + 3], relativeY += 1 * a[i + 4], segment.push(difX, difY, relativeX + (x - relativeX) * twoThirds, relativeY + (y - relativeY) * twoThirds, relativeX, relativeY),
|
|
238
|
+
i += 4; else if ("T" === command) difX = relativeX - segment[segment.length - 4],
|
|
239
|
+
difY = relativeY - segment[segment.length - 3], segment.push(relativeX + difX, relativeY + difY, x + (relativeX + 1.5 * difX - x) * twoThirds, y + (relativeY + 1.5 * difY - y) * twoThirds, relativeX = x, relativeY = y),
|
|
240
|
+
i += 2; else if ("H" === command) line(relativeX, relativeY, relativeX = x, relativeY),
|
|
241
|
+
i += 1; else if ("V" === command) line(relativeX, relativeY, relativeX, relativeY = x + (isRelative ? relativeY - relativeX : 0)),
|
|
242
|
+
i += 1; else if ("L" === command || "Z" === command) "Z" === command && (x = startX,
|
|
243
|
+
y = startY, segment.closed = !0), ("L" === command || _abs(relativeX - x) > .5 || _abs(relativeY - y) > .5) && (line(relativeX, relativeY, x, y),
|
|
244
|
+
"L" === command && (i += 2)), relativeX = x, relativeY = y; else if ("A" === command) {
|
|
245
|
+
if (flag1 = a[i + 4], flag2 = a[i + 5], difX = a[i + 6], difY = a[i + 7], j = 7,
|
|
246
|
+
flag1.length > 1 && (flag1.length < 3 ? (difY = difX, difX = flag2, j--) : (difY = flag2,
|
|
247
|
+
difX = flag1.substr(2), j -= 2), flag2 = flag1.charAt(1), flag1 = flag1.charAt(0)),
|
|
248
|
+
beziers = arcToSegment(relativeX, relativeY, +a[i + 1], +a[i + 2], +a[i + 3], +flag1, +flag2, (isRelative ? relativeX : 0) + 1 * difX, (isRelative ? relativeY : 0) + 1 * difY),
|
|
249
|
+
i += j, beziers) for (j = 0; j < beziers.length; j++) segment.push(beziers[j]);
|
|
250
|
+
relativeX = segment[segment.length - 2], relativeY = segment[segment.length - 1];
|
|
251
|
+
} else console.log(errorMessage);
|
|
252
|
+
return i = segment.length, i < 6 ? (path.pop(), i = 0) : segment[0] === segment[i - 2] && segment[1] === segment[i - 1] && (segment.closed = !0),
|
|
253
|
+
path.totalPoints = points + i, path;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export function bezierToPoints(x1, y1, x2, y2, x3, y3, x4, y4, threshold, points, index) {
|
|
257
|
+
let length, x12 = (x1 + x2) / 2, y12 = (y1 + y2) / 2, x23 = (x2 + x3) / 2, y23 = (y2 + y3) / 2, x34 = (x3 + x4) / 2, y34 = (y3 + y4) / 2, x123 = (x12 + x23) / 2, y123 = (y12 + y23) / 2, x234 = (x23 + x34) / 2, y234 = (y23 + y34) / 2, x1234 = (x123 + x234) / 2, y1234 = (y123 + y234) / 2, dx = x4 - x1, dy = y4 - y1, d2 = _abs((x2 - x4) * dy - (y2 - y4) * dx), d3 = _abs((x3 - x4) * dy - (y3 - y4) * dx);
|
|
258
|
+
return points || (points = [ x1, y1, x4, y4 ], index = 2), points.splice(index || points.length - 2, 0, x1234, y1234),
|
|
259
|
+
(d2 + d3) * (d2 + d3) > threshold * (dx * dx + dy * dy) && (length = points.length,
|
|
260
|
+
bezierToPoints(x1, y1, x12, y12, x123, y123, x1234, y1234, threshold, points, index),
|
|
261
|
+
bezierToPoints(x1234, y1234, x234, y234, x34, y34, x4, y4, threshold, points, index + 2 + (points.length - length))),
|
|
262
|
+
points;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function flatPointsToSegment(points, curviness = 1) {
|
|
266
|
+
let x = points[0], y = 0, segment = [ x, y ], i = 2;
|
|
267
|
+
for (;i < points.length; i += 2) segment.push(x, y, points[i], y = (points[i] - x) * curviness / 2, x = points[i], -y);
|
|
268
|
+
return segment;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function pointsToSegment(points, curviness) {
|
|
272
|
+
_abs(points[0] - points[2]) < 1e-4 && _abs(points[1] - points[3]) < 1e-4 && (points = points.slice(2));
|
|
273
|
+
let prevX, prevY, i, dx1, dy1, r1, r2, r3, tl, mx1, mx2, mxm, my1, my2, mym, l = points.length - 2, x = +points[0], y = +points[1], nextX = +points[2], nextY = +points[3], segment = [ x, y, x, y ], dx2 = nextX - x, dy2 = nextY - y, closed = Math.abs(points[l] - x) < .001 && Math.abs(points[l + 1] - y) < .001;
|
|
274
|
+
for (closed && (points.push(nextX, nextY), nextX = x, nextY = y, x = points[l - 2],
|
|
275
|
+
y = points[l - 1], points.unshift(x, y), l += 4), curviness = curviness || 0 === curviness ? +curviness : 1,
|
|
276
|
+
i = 2; i < l; i += 2) prevX = x, prevY = y, x = nextX, y = nextY, nextX = +points[i + 2],
|
|
277
|
+
nextY = +points[i + 3], x === nextX && y === nextY || (dx1 = dx2, dy1 = dy2, dx2 = nextX - x,
|
|
278
|
+
dy2 = nextY - y, r1 = _sqrt(dx1 * dx1 + dy1 * dy1), r2 = _sqrt(dx2 * dx2 + dy2 * dy2),
|
|
279
|
+
r3 = _sqrt((dx2 / r2 + dx1 / r1) ** 2 + (dy2 / r2 + dy1 / r1) ** 2), tl = (r1 + r2) * curviness * .25 / r3,
|
|
280
|
+
mx1 = x - (x - prevX) * (r1 ? tl / r1 : 0), mx2 = x + (nextX - x) * (r2 ? tl / r2 : 0),
|
|
281
|
+
mxm = x - (mx1 + ((mx2 - mx1) * (3 * r1 / (r1 + r2) + .5) / 4 || 0)), my1 = y - (y - prevY) * (r1 ? tl / r1 : 0),
|
|
282
|
+
my2 = y + (nextY - y) * (r2 ? tl / r2 : 0), mym = y - (my1 + ((my2 - my1) * (3 * r1 / (r1 + r2) + .5) / 4 || 0)),
|
|
283
|
+
x === prevX && y === prevY || segment.push(_round(mx1 + mxm), _round(my1 + mym), _round(x), _round(y), _round(mx2 + mxm), _round(my2 + mym)));
|
|
284
|
+
return x !== nextX || y !== nextY || segment.length < 4 ? segment.push(_round(nextX), _round(nextY), _round(nextX), _round(nextY)) : segment.length -= 2,
|
|
285
|
+
2 === segment.length ? segment.push(x, y, x, y, x, y) : closed && (segment.splice(0, 6),
|
|
286
|
+
segment.length = segment.length - 6), segment;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function pointToSegDist(x, y, x1, y1, x2, y2) {
|
|
290
|
+
let t, dx = x2 - x1, dy = y2 - y1;
|
|
291
|
+
return (dx || dy) && (t = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy),
|
|
292
|
+
t > 1 ? (x1 = x2, y1 = y2) : t > 0 && (x1 += dx * t, y1 += dy * t)), (x - x1) ** 2 + (y - y1) ** 2;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function simplifyStep(points, first, last, tolerance, simplified) {
|
|
296
|
+
let index, i, d, maxSqDist = tolerance, firstX = points[first], firstY = points[first + 1], lastX = points[last], lastY = points[last + 1];
|
|
297
|
+
for (i = first + 2; i < last; i += 2) d = pointToSegDist(points[i], points[i + 1], firstX, firstY, lastX, lastY),
|
|
298
|
+
d > maxSqDist && (index = i, maxSqDist = d);
|
|
299
|
+
maxSqDist > tolerance && (index - first > 2 && simplifyStep(points, first, index, tolerance, simplified),
|
|
300
|
+
simplified.push(points[index], points[index + 1]), last - index > 2 && simplifyStep(points, index, last, tolerance, simplified));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export function simplifyPoints(points, tolerance) {
|
|
304
|
+
let i, x, y, dx, dy, result, last, prevX = parseFloat(points[0]), prevY = parseFloat(points[1]), temp = [ prevX, prevY ], l = points.length - 2;
|
|
305
|
+
for (tolerance = (tolerance || 1) ** 2, i = 2; i < l; i += 2) x = parseFloat(points[i]),
|
|
306
|
+
y = parseFloat(points[i + 1]), dx = prevX - x, dy = prevY - y, dx * dx + dy * dy > tolerance && (temp.push(x, y),
|
|
307
|
+
prevX = x, prevY = y);
|
|
308
|
+
return temp.push(parseFloat(points[l]), parseFloat(points[l + 1])), last = temp.length - 2,
|
|
309
|
+
result = [ temp[0], temp[1] ], simplifyStep(temp, 0, last, tolerance, result), result.push(temp[last], temp[last + 1]),
|
|
310
|
+
result;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
function getClosestProgressOnBezier(iterations, px, py, start, end, slices, x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
314
|
+
let x, y, d, dx, dy, inv, inc = (end - start) / slices, best = 0, t = start;
|
|
315
|
+
for (_bestDistance = _largeNum; t <= end; ) inv = 1 - t, x = inv * inv * inv * x0 + 3 * inv * inv * t * x1 + 3 * inv * t * t * x2 + t * t * t * x3,
|
|
316
|
+
y = inv * inv * inv * y0 + 3 * inv * inv * t * y1 + 3 * inv * t * t * y2 + t * t * t * y3,
|
|
317
|
+
dx = x - px, dy = y - py, d = dx * dx + dy * dy, d < _bestDistance && (_bestDistance = d,
|
|
318
|
+
best = t), t += inc;
|
|
319
|
+
return iterations > 1 ? getClosestProgressOnBezier(iterations - 1, px, py, Math.max(best - inc, 0), Math.min(best + inc, 1), slices, x0, y0, x1, y1, x2, y2, x3, y3) : best;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export function getClosestData(rawPath, x, y, slices) {
|
|
323
|
+
let i, j, t, segment, closest = {
|
|
324
|
+
j: 0,
|
|
325
|
+
i: 0,
|
|
326
|
+
t: 0
|
|
327
|
+
}, bestDistance = _largeNum;
|
|
328
|
+
for (j = 0; j < rawPath.length; j++) for (segment = rawPath[j], i = 0; i < segment.length; i += 6) t = getClosestProgressOnBezier(1, x, y, 0, 1, slices || 20, segment[i], segment[i + 1], segment[i + 2], segment[i + 3], segment[i + 4], segment[i + 5], segment[i + 6], segment[i + 7]),
|
|
329
|
+
bestDistance > _bestDistance && (bestDistance = _bestDistance, closest.j = j, closest.i = i,
|
|
330
|
+
closest.t = t);
|
|
331
|
+
return closest;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export function subdivideSegmentNear(x, y, segment, slices, iterations) {
|
|
335
|
+
let t, i, l = segment.length, bestDistance = _largeNum, bestT = 0, bestSegmentIndex = 0;
|
|
336
|
+
for (slices = slices || 20, iterations = iterations || 3, i = 0; i < l; i += 6) t = getClosestProgressOnBezier(1, x, y, 0, 1, slices, segment[i], segment[i + 1], segment[i + 2], segment[i + 3], segment[i + 4], segment[i + 5], segment[i + 6], segment[i + 7]),
|
|
337
|
+
bestDistance > _bestDistance && (bestDistance = _bestDistance, bestT = t, bestSegmentIndex = i);
|
|
338
|
+
return t = getClosestProgressOnBezier(iterations, x, y, bestT - .05, bestT + .05, slices, segment[bestSegmentIndex], segment[bestSegmentIndex + 1], segment[bestSegmentIndex + 2], segment[bestSegmentIndex + 3], segment[bestSegmentIndex + 4], segment[bestSegmentIndex + 5], segment[bestSegmentIndex + 6], segment[bestSegmentIndex + 7]),
|
|
339
|
+
subdivideSegment(segment, bestSegmentIndex, t), bestSegmentIndex + 6;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export function rawPathToString(rawPath) {
|
|
343
|
+
_isNumber(rawPath[0]) && (rawPath = [ rawPath ]);
|
|
344
|
+
let sl, s, i, segment, result = "", l = rawPath.length;
|
|
345
|
+
for (s = 0; s < l; s++) {
|
|
346
|
+
for (segment = rawPath[s], result += "M" + _round(segment[0]) + "," + _round(segment[1]) + " C",
|
|
347
|
+
sl = segment.length, i = 2; i < sl; i++) result += _round(segment[i++]) + "," + _round(segment[i++]) + " " + _round(segment[i++]) + "," + _round(segment[i++]) + " " + _round(segment[i++]) + "," + _round(segment[i]) + " ";
|
|
348
|
+
segment.closed && (result += "z");
|
|
349
|
+
}
|
|
350
|
+
return result;
|
|
351
|
+
}
|
|
352
|
+
//# sourceMappingURL=paths.js.map
|