@hkyhy/marsun-components-core 0.1.8 → 0.1.11
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/dist/components/File/FilePreview/FilePreviewContent.js +55 -48
- package/dist/components/File/FilePreview/FilePreviewContent.js.map +1 -1
- package/dist/components/File/FilePreview/style.module.scss.js +17 -16
- package/dist/components/File/FilePreview/style.module.scss.js.map +1 -1
- package/dist/components/File/FilePreviewLink/index.d.ts +2 -0
- package/dist/components/File/FilePreviewLink/index.js +46 -33
- package/dist/components/File/FilePreviewLink/index.js.map +1 -1
- package/dist/components/File/FilePreviewLink/style.module.scss.js +7 -5
- package/dist/components/File/FilePreviewLink/style.module.scss.js.map +1 -1
- package/dist/components/File/fileDisplay.d.ts +2 -0
- package/dist/components/File/fileDisplay.js +25 -21
- package/dist/components/File/fileDisplay.js.map +1 -1
- package/dist/components/File/index.d.ts +1 -1
- package/dist/components/File/previewKind.js +17 -17
- package/dist/components/File/previewKind.js.map +1 -1
- package/dist/index.js +36 -35
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjs-dynamic-modules.js +0 -7
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -9
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/jszip.min.js +0 -8
- package/dist/_virtual/jszip.min.js.map +0 -1
- package/dist/_virtual/jszip2.min.js +0 -5
- package/dist/_virtual/jszip2.min.js.map +0 -1
- package/dist/_virtual/lodash.js +0 -6
- package/dist/_virtual/lodash.js.map +0 -1
- package/dist/_virtual/lodash2.js +0 -5
- package/dist/_virtual/lodash2.js.map +0 -1
- package/dist/node_modules/@js-preview/excel/lib/index.js +0 -43346
- package/dist/node_modules/@js-preview/excel/lib/index.js.map +0 -1
- package/dist/node_modules/docx-preview/dist/docx-preview.js +0 -3203
- package/dist/node_modules/docx-preview/dist/docx-preview.js.map +0 -1
- package/dist/node_modules/echarts/index.js +0 -88
- package/dist/node_modules/echarts/index.js.map +0 -1
- package/dist/node_modules/echarts/lib/action/roamHelper.js +0 -23
- package/dist/node_modules/echarts/lib/action/roamHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/animation/basicTransition.js +0 -97
- package/dist/node_modules/echarts/lib/animation/basicTransition.js.map +0 -1
- package/dist/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +0 -57
- package/dist/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js.map +0 -1
- package/dist/node_modules/echarts/lib/animation/customGraphicTransition.js +0 -236
- package/dist/node_modules/echarts/lib/animation/customGraphicTransition.js.map +0 -1
- package/dist/node_modules/echarts/lib/animation/morphTransitionHelper.js +0 -107
- package/dist/node_modules/echarts/lib/animation/morphTransitionHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/animation/universalTransition.js +0 -346
- package/dist/node_modules/echarts/lib/animation/universalTransition.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +0 -55
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +0 -478
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +0 -77
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +0 -49
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarView.js +0 -326
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/install.js +0 -24
- package/dist/node_modules/echarts/lib/chart/bar/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/bar/installPictorialBar.js +0 -11
- package/dist/node_modules/echarts/lib/chart/bar/installPictorialBar.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js +0 -57
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotView.js +0 -96
- package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js +0 -73
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js +0 -24
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/boxplot/install.js +0 -11
- package/dist/node_modules/echarts/lib/chart/boxplot/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js +0 -26
- package/dist/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js +0 -71
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickView.js +0 -196
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js +0 -77
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js +0 -36
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/candlestick/install.js +0 -12
- package/dist/node_modules/echarts/lib/chart/candlestick/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/candlestick/preprocessor.js +0 -10
- package/dist/node_modules/echarts/lib/chart/candlestick/preprocessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/custom/CustomSeries.js +0 -56
- package/dist/node_modules/echarts/lib/chart/custom/CustomSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/custom/CustomView.js +0 -439
- package/dist/node_modules/echarts/lib/chart/custom/CustomView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/custom/install.js +0 -9
- package/dist/node_modules/echarts/lib/chart/custom/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js +0 -61
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js +0 -45
- package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/effectScatter/install.js +0 -10
- package/dist/node_modules/echarts/lib/chart/effectScatter/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelSeries.js +0 -84
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelView.js +0 -110
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/funnel/funnelLayout.js +0 -98
- package/dist/node_modules/echarts/lib/chart/funnel/funnelLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/funnel/install.js +0 -11
- package/dist/node_modules/echarts/lib/chart/funnel/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeSeries.js +0 -143
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeView.js +0 -300
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/gauge/PointerPath.js +0 -30
- package/dist/node_modules/echarts/lib/chart/gauge/PointerPath.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/gauge/install.js +0 -9
- package/dist/node_modules/echarts/lib/chart/gauge/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/GraphSeries.js +0 -181
- package/dist/node_modules/echarts/lib/chart/graph/GraphSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/GraphView.js +0 -137
- package/dist/node_modules/echarts/lib/chart/graph/GraphView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/adjustEdge.js +0 -54
- package/dist/node_modules/echarts/lib/chart/graph/adjustEdge.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/categoryFilter.js +0 -23
- package/dist/node_modules/echarts/lib/chart/graph/categoryFilter.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/categoryVisual.js +0 -30
- package/dist/node_modules/echarts/lib/chart/graph/categoryVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/circularLayout.js +0 -10
- package/dist/node_modules/echarts/lib/chart/graph/circularLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js +0 -81
- package/dist/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/createView.js +0 -34
- package/dist/node_modules/echarts/lib/chart/graph/createView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/edgeVisual.js +0 -29
- package/dist/node_modules/echarts/lib/chart/graph/edgeVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/forceHelper.js +0 -74
- package/dist/node_modules/echarts/lib/chart/graph/forceHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/forceLayout.js +0 -62
- package/dist/node_modules/echarts/lib/chart/graph/forceLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/graphHelper.js +0 -16
- package/dist/node_modules/echarts/lib/chart/graph/graphHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/install.js +0 -43
- package/dist/node_modules/echarts/lib/chart/graph/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayout.js +0 -25
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js +0 -24
- package/dist/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js +0 -46
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js +0 -45
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapView.js +0 -155
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/heatmap/install.js +0 -9
- package/dist/node_modules/echarts/lib/chart/heatmap/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/EffectLine.js +0 -69
- package/dist/node_modules/echarts/lib/chart/helper/EffectLine.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/EffectPolyline.js +0 -55
- package/dist/node_modules/echarts/lib/chart/helper/EffectPolyline.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/EffectSymbol.js +0 -90
- package/dist/node_modules/echarts/lib/chart/helper/EffectSymbol.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/LargeLineDraw.js +0 -158
- package/dist/node_modules/echarts/lib/chart/helper/LargeLineDraw.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +0 -144
- package/dist/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/Line.js +0 -209
- package/dist/node_modules/echarts/lib/chart/helper/Line.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/LineDraw.js +0 -88
- package/dist/node_modules/echarts/lib/chart/helper/LineDraw.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/LinePath.js +0 -53
- package/dist/node_modules/echarts/lib/chart/helper/LinePath.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/Polyline.js +0 -46
- package/dist/node_modules/echarts/lib/chart/helper/Polyline.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +0 -156
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +0 -107
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +0 -71
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js +0 -51
- package/dist/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +0 -12
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +0 -71
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +0 -16
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js +0 -14
- package/dist/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +0 -28
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js +0 -68
- package/dist/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +0 -20
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/treeHelper.js +0 -42
- package/dist/node_modules/echarts/lib/chart/helper/treeHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js +0 -52
- package/dist/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +0 -93
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +0 -532
- package/dist/node_modules/echarts/lib/chart/line/LineView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/line/helper.js +0 -41
- package/dist/node_modules/echarts/lib/chart/line/helper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/line/install.js +0 -17
- package/dist/node_modules/echarts/lib/chart/line/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +0 -61
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/line/poly.js +0 -164
- package/dist/node_modules/echarts/lib/chart/line/poly.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/lines/LinesSeries.js +0 -154
- package/dist/node_modules/echarts/lib/chart/lines/LinesSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/lines/LinesView.js +0 -66
- package/dist/node_modules/echarts/lib/chart/lines/LinesView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/lines/install.js +0 -11
- package/dist/node_modules/echarts/lib/chart/lines/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/lines/linesLayout.js +0 -51
- package/dist/node_modules/echarts/lib/chart/lines/linesLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/lines/linesVisual.js +0 -21
- package/dist/node_modules/echarts/lib/chart/lines/linesVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/map/MapSeries.js +0 -144
- package/dist/node_modules/echarts/lib/chart/map/MapSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/map/MapView.js +0 -84
- package/dist/node_modules/echarts/lib/chart/map/MapView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/map/install.js +0 -14
- package/dist/node_modules/echarts/lib/chart/map/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/map/mapDataStatistic.js +0 -33
- package/dist/node_modules/echarts/lib/chart/map/mapDataStatistic.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +0 -32
- package/dist/node_modules/echarts/lib/chart/map/mapSymbolLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelSeries.js +0 -64
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelView.js +0 -112
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/parallel/install.js +0 -12
- package/dist/node_modules/echarts/lib/chart/parallel/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/parallel/parallelVisual.js +0 -27
- package/dist/node_modules/echarts/lib/chart/parallel/parallelVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +0 -143
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +0 -152
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/pie/install.js +0 -14
- package/dist/node_modules/echarts/lib/chart/pie/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +0 -200
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +0 -100
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/radar/RadarSeries.js +0 -74
- package/dist/node_modules/echarts/lib/chart/radar/RadarSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/radar/RadarView.js +0 -124
- package/dist/node_modules/echarts/lib/chart/radar/RadarView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/radar/backwardCompat.js +0 -18
- package/dist/node_modules/echarts/lib/chart/radar/backwardCompat.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/radar/install.js +0 -14
- package/dist/node_modules/echarts/lib/chart/radar/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/radar/radarLayout.js +0 -31
- package/dist/node_modules/echarts/lib/chart/radar/radarLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sankey/SankeySeries.js +0 -125
- package/dist/node_modules/echarts/lib/chart/sankey/SankeySeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sankey/SankeyView.js +0 -169
- package/dist/node_modules/echarts/lib/chart/sankey/SankeyView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sankey/install.js +0 -24
- package/dist/node_modules/echarts/lib/chart/sankey/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyLayout.js +0 -278
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyVisual.js +0 -34
- package/dist/node_modules/echarts/lib/chart/sankey/sankeyVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +0 -62
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterView.js +0 -61
- package/dist/node_modules/echarts/lib/chart/scatter/ScatterView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/scatter/install.js +0 -12
- package/dist/node_modules/echarts/lib/chart/scatter/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js +0 -83
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js +0 -129
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstView.js +0 -94
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/install.js +0 -14
- package/dist/node_modules/echarts/lib/chart/sunburst/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstAction.js +0 -51
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js +0 -99
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js +0 -24
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js +0 -123
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js +0 -101
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/themeRiver/install.js +0 -11
- package/dist/node_modules/echarts/lib/chart/themeRiver/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js +0 -64
- package/dist/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/TreeSeries.js +0 -101
- package/dist/node_modules/echarts/lib/chart/tree/TreeSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/TreeView.js +0 -320
- package/dist/node_modules/echarts/lib/chart/tree/TreeView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/install.js +0 -12
- package/dist/node_modules/echarts/lib/chart/tree/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/layoutHelper.js +0 -103
- package/dist/node_modules/echarts/lib/chart/tree/layoutHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/traversalHelper.js +0 -25
- package/dist/node_modules/echarts/lib/chart/tree/traversalHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/treeAction.js +0 -38
- package/dist/node_modules/echarts/lib/chart/tree/treeAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/treeLayout.js +0 -54
- package/dist/node_modules/echarts/lib/chart/tree/treeLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/tree/treeVisual.js +0 -14
- package/dist/node_modules/echarts/lib/chart/tree/treeVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/Breadcrumb.js +0 -100
- package/dist/node_modules/echarts/lib/chart/treemap/Breadcrumb.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapSeries.js +0 -204
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapView.js +0 -455
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapView.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/install.js +0 -12
- package/dist/node_modules/echarts/lib/chart/treemap/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/treemapAction.js +0 -31
- package/dist/node_modules/echarts/lib/chart/treemap/treemapAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/treemapLayout.js +0 -218
- package/dist/node_modules/echarts/lib/chart/treemap/treemapLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/chart/treemap/treemapVisual.js +0 -96
- package/dist/node_modules/echarts/lib/chart/treemap/treemapVisual.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/aria/install.js +0 -9
- package/dist/node_modules/echarts/lib/component/aria/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/aria/preprocessor.js +0 -13
- package/dist/node_modules/echarts/lib/component/aria/preprocessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/AngleAxisView.js +0 -196
- package/dist/node_modules/echarts/lib/component/axis/AngleAxisView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +0 -295
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +0 -41
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +0 -123
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/ParallelAxisView.js +0 -89
- package/dist/node_modules/echarts/lib/component/axis/ParallelAxisView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/RadiusAxisView.js +0 -118
- package/dist/node_modules/echarts/lib/component/axis/RadiusAxisView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/SingleAxisView.js +0 -71
- package/dist/node_modules/echarts/lib/component/axis/SingleAxisView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +0 -54
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axis/parallelAxisAction.js +0 -26
- package/dist/node_modules/echarts/lib/component/axis/parallelAxisAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +0 -72
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +0 -32
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +0 -186
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +0 -86
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js +0 -84
- package/dist/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js +0 -81
- package/dist/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +0 -203
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +0 -37
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +0 -59
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js +0 -26
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +0 -138
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +0 -115
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/brush/BrushModel.js +0 -59
- package/dist/node_modules/echarts/lib/component/brush/BrushModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/brush/BrushView.js +0 -47
- package/dist/node_modules/echarts/lib/component/brush/BrushView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/brush/install.js +0 -33
- package/dist/node_modules/echarts/lib/component/brush/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/brush/preprocessor.js +0 -31
- package/dist/node_modules/echarts/lib/component/brush/preprocessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/brush/selector.js +0 -63
- package/dist/node_modules/echarts/lib/component/brush/selector.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/brush/visualEncoding.js +0 -141
- package/dist/node_modules/echarts/lib/component/brush/visualEncoding.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/calendar/CalendarView.js +0 -188
- package/dist/node_modules/echarts/lib/component/calendar/CalendarView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/calendar/install.js +0 -10
- package/dist/node_modules/echarts/lib/component/calendar/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +0 -126
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +0 -189
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +0 -19
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +0 -25
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +0 -77
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +0 -17
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +0 -17
- package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +0 -88
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +0 -454
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +0 -19
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +0 -58
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +0 -68
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/history.js +0 -57
- package/dist/node_modules/echarts/lib/component/dataZoom/history.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/install.js +0 -10
- package/dist/node_modules/echarts/lib/component/dataZoom/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +0 -12
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +0 -11
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +0 -10
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +0 -10
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +0 -127
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/dataset/install.js +0 -44
- package/dist/node_modules/echarts/lib/component/dataset/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/geo/GeoView.js +0 -50
- package/dist/node_modules/echarts/lib/component/geo/GeoView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/geo/install.js +0 -73
- package/dist/node_modules/echarts/lib/component/geo/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/graphic/GraphicModel.js +0 -96
- package/dist/node_modules/echarts/lib/component/graphic/GraphicModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/graphic/GraphicView.js +0 -186
- package/dist/node_modules/echarts/lib/component/graphic/GraphicView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/graphic/install.js +0 -17
- package/dist/node_modules/echarts/lib/component/graphic/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/grid/install.js +0 -10
- package/dist/node_modules/echarts/lib/component/grid/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +0 -43
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/BrushController.js +0 -466
- package/dist/node_modules/echarts/lib/component/helper/BrushController.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/BrushTargetManager.js +0 -197
- package/dist/node_modules/echarts/lib/component/helper/BrushTargetManager.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/MapDraw.js +0 -304
- package/dist/node_modules/echarts/lib/component/helper/MapDraw.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +0 -107
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/brushHelper.js +0 -29
- package/dist/node_modules/echarts/lib/component/helper/brushHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +0 -13
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +0 -28
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js +0 -30
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/roamHelper.js +0 -18
- package/dist/node_modules/echarts/lib/component/helper/roamHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +0 -29
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +0 -197
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +0 -246
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +0 -50
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +0 -185
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/install.js +0 -10
- package/dist/node_modules/echarts/lib/component/legend/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +0 -13
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +0 -12
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js +0 -41
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +0 -15
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +0 -16
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaModel.js +0 -44
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaView.js +0 -180
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkLineModel.js +0 -47
- package/dist/node_modules/echarts/lib/component/marker/MarkLineModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkLineView.js +0 -179
- package/dist/node_modules/echarts/lib/component/marker/MarkLineView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkPointModel.js +0 -41
- package/dist/node_modules/echarts/lib/component/marker/MarkPointModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkPointView.js +0 -85
- package/dist/node_modules/echarts/lib/component/marker/MarkPointView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkerModel.js +0 -75
- package/dist/node_modules/echarts/lib/component/marker/MarkerModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkerView.js +0 -46
- package/dist/node_modules/echarts/lib/component/marker/MarkerView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js +0 -13
- package/dist/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/installMarkArea.js +0 -12
- package/dist/node_modules/echarts/lib/component/marker/installMarkArea.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/installMarkLine.js +0 -12
- package/dist/node_modules/echarts/lib/component/marker/installMarkLine.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/installMarkPoint.js +0 -12
- package/dist/node_modules/echarts/lib/component/marker/installMarkPoint.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/marker/markerHelper.js +0 -84
- package/dist/node_modules/echarts/lib/component/marker/markerHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/parallel/ParallelView.js +0 -67
- package/dist/node_modules/echarts/lib/component/parallel/ParallelView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/parallel/install.js +0 -27
- package/dist/node_modules/echarts/lib/component/parallel/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/polar/install.js +0 -41
- package/dist/node_modules/echarts/lib/component/polar/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/radar/RadarView.js +0 -120
- package/dist/node_modules/echarts/lib/component/radar/RadarView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/radar/install.js +0 -18
- package/dist/node_modules/echarts/lib/component/radar/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/singleAxis/install.js +0 -28
- package/dist/node_modules/echarts/lib/component/singleAxis/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js +0 -116
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineView.js +0 -362
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/TimelineAxis.js +0 -21
- package/dist/node_modules/echarts/lib/component/timeline/TimelineAxis.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/TimelineModel.js +0 -80
- package/dist/node_modules/echarts/lib/component/timeline/TimelineModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/TimelineView.js +0 -17
- package/dist/node_modules/echarts/lib/component/timeline/TimelineView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/install.js +0 -13
- package/dist/node_modules/echarts/lib/component/timeline/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/preprocessor.js +0 -36
- package/dist/node_modules/echarts/lib/component/timeline/preprocessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/timeline/timelineAction.js +0 -30
- package/dist/node_modules/echarts/lib/component/timeline/timelineAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/title/install.js +0 -122
- package/dist/node_modules/echarts/lib/component/title/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +0 -61
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxView.js +0 -141
- package/dist/node_modules/echarts/lib/component/toolbox/ToolboxView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Brush.js +0 -70
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Brush.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataView.js +0 -271
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +0 -153
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +0 -124
- package/dist/node_modules/echarts/lib/component/toolbox/feature/MagicType.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Restore.js +0 -38
- package/dist/node_modules/echarts/lib/component/toolbox/feature/Restore.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +0 -70
- package/dist/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/featureManager.js +0 -20
- package/dist/node_modules/echarts/lib/component/toolbox/featureManager.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/toolbox/install.js +0 -17
- package/dist/node_modules/echarts/lib/component/toolbox/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +0 -153
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +0 -83
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +0 -90
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +0 -413
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js +0 -33
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/install.js +0 -20
- package/dist/node_modules/echarts/lib/component/tooltip/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +0 -64
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +0 -187
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/transform/filterTransform.js +0 -36
- package/dist/node_modules/echarts/lib/component/transform/filterTransform.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/transform/install.js +0 -9
- package/dist/node_modules/echarts/lib/component/transform/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/transform/sortTransform.js +0 -59
- package/dist/node_modules/echarts/lib/component/transform/sortTransform.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +0 -110
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousView.js +0 -383
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +0 -217
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +0 -119
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +0 -162
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapView.js +0 -78
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapView.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/helper.js +0 -25
- package/dist/node_modules/echarts/lib/component/visualMap/helper.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/install.js +0 -10
- package/dist/node_modules/echarts/lib/component/visualMap/install.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/installCommon.js +0 -16
- package/dist/node_modules/echarts/lib/component/visualMap/installCommon.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +0 -10
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +0 -10
- package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/preprocessor.js +0 -21
- package/dist/node_modules/echarts/lib/component/visualMap/preprocessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/visualEncoding.js +0 -52
- package/dist/node_modules/echarts/lib/component/visualMap/visualEncoding.js.map +0 -1
- package/dist/node_modules/echarts/lib/component/visualMap/visualMapAction.js +0 -18
- package/dist/node_modules/echarts/lib/component/visualMap/visualMapAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/Axis.js +0 -108
- package/dist/node_modules/echarts/lib/coord/Axis.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +0 -7
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/View.js +0 -92
- package/dist/node_modules/echarts/lib/coord/View.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +0 -47
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +0 -10
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +0 -161
- package/dist/node_modules/echarts/lib/coord/axisDefault.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +0 -163
- package/dist/node_modules/echarts/lib/coord/axisHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +0 -16
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +0 -41
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +0 -177
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/calendar/Calendar.js +0 -159
- package/dist/node_modules/echarts/lib/coord/calendar/Calendar.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/calendar/CalendarModel.js +0 -92
- package/dist/node_modules/echarts/lib/coord/calendar/CalendarModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/calendar/prepareCustom.js +0 -29
- package/dist/node_modules/echarts/lib/coord/calendar/prepareCustom.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +0 -29
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +0 -22
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +0 -27
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +0 -67
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +0 -234
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +0 -31
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +0 -47
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/cartesian/prepareCustom.js +0 -30
- package/dist/node_modules/echarts/lib/coord/cartesian/prepareCustom.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/Geo.js +0 -86
- package/dist/node_modules/echarts/lib/coord/geo/Geo.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +0 -71
- package/dist/node_modules/echarts/lib/coord/geo/GeoJSONResource.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/GeoModel.js +0 -126
- package/dist/node_modules/echarts/lib/coord/geo/GeoModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +0 -109
- package/dist/node_modules/echarts/lib/coord/geo/GeoSVGResource.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/Region.js +0 -138
- package/dist/node_modules/echarts/lib/coord/geo/Region.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +0 -11
- package/dist/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/fix/nanhai.js +0 -23
- package/dist/node_modules/echarts/lib/coord/geo/fix/nanhai.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/fix/textCoord.js +0 -22
- package/dist/node_modules/echarts/lib/coord/geo/fix/textCoord.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/geoCreator.js +0 -109
- package/dist/node_modules/echarts/lib/coord/geo/geoCreator.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/geoSourceManager.js +0 -70
- package/dist/node_modules/echarts/lib/coord/geo/geoSourceManager.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/parseGeoJson.js +0 -68
- package/dist/node_modules/echarts/lib/coord/geo/parseGeoJson.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/geo/prepareCustom.js +0 -30
- package/dist/node_modules/echarts/lib/coord/geo/prepareCustom.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/parallel/AxisModel.js +0 -52
- package/dist/node_modules/echarts/lib/coord/parallel/AxisModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/parallel/Parallel.js +0 -181
- package/dist/node_modules/echarts/lib/coord/parallel/Parallel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelAxis.js +0 -19
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelAxis.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelModel.js +0 -62
- package/dist/node_modules/echarts/lib/coord/parallel/ParallelModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/parallel/parallelCreator.js +0 -21
- package/dist/node_modules/echarts/lib/coord/parallel/parallelCreator.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js +0 -26
- package/dist/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/AngleAxis.js +0 -30
- package/dist/node_modules/echarts/lib/coord/polar/AngleAxis.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/AxisModel.js +0 -45
- package/dist/node_modules/echarts/lib/coord/polar/AxisModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/Polar.js +0 -87
- package/dist/node_modules/echarts/lib/coord/polar/Polar.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/PolarModel.js +0 -27
- package/dist/node_modules/echarts/lib/coord/polar/PolarModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/RadiusAxis.js +0 -20
- package/dist/node_modules/echarts/lib/coord/polar/RadiusAxis.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/polarCreator.js +0 -64
- package/dist/node_modules/echarts/lib/coord/polar/polarCreator.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/polar/prepareCustom.js +0 -30
- package/dist/node_modules/echarts/lib/coord/polar/prepareCustom.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/radar/IndicatorAxis.js +0 -17
- package/dist/node_modules/echarts/lib/coord/radar/IndicatorAxis.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/radar/Radar.js +0 -80
- package/dist/node_modules/echarts/lib/coord/radar/Radar.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/radar/RadarModel.js +0 -90
- package/dist/node_modules/echarts/lib/coord/radar/RadarModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +0 -71
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/single/AxisModel.js +0 -61
- package/dist/node_modules/echarts/lib/coord/single/AxisModel.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/single/Single.js +0 -89
- package/dist/node_modules/echarts/lib/coord/single/Single.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/single/SingleAxis.js +0 -22
- package/dist/node_modules/echarts/lib/coord/single/SingleAxis.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/single/prepareCustom.js +0 -27
- package/dist/node_modules/echarts/lib/coord/single/prepareCustom.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/single/singleAxisHelper.js +0 -33
- package/dist/node_modules/echarts/lib/coord/single/singleAxisHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/coord/single/singleCreator.js +0 -22
- package/dist/node_modules/echarts/lib/coord/single/singleCreator.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +0 -30
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +0 -35
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/Scheduler.js +0 -227
- package/dist/node_modules/echarts/lib/core/Scheduler.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/echarts.js +0 -1058
- package/dist/node_modules/echarts/lib/core/echarts.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/impl.js +0 -13
- package/dist/node_modules/echarts/lib/core/impl.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/lifecycle.js +0 -6
- package/dist/node_modules/echarts/lib/core/lifecycle.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/locale.js +0 -38
- package/dist/node_modules/echarts/lib/core/locale.js.map +0 -1
- package/dist/node_modules/echarts/lib/core/task.js +0 -92
- package/dist/node_modules/echarts/lib/core/task.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/DataDiffer.js +0 -81
- package/dist/node_modules/echarts/lib/data/DataDiffer.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/DataStore.js +0 -431
- package/dist/node_modules/echarts/lib/data/DataStore.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/Graph.js +0 -210
- package/dist/node_modules/echarts/lib/data/Graph.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +0 -37
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/SeriesData.js +0 -339
- package/dist/node_modules/echarts/lib/data/SeriesData.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +0 -14
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/Source.js +0 -158
- package/dist/node_modules/echarts/lib/data/Source.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/Tree.js +0 -155
- package/dist/node_modules/echarts/lib/data/Tree.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +0 -87
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +0 -123
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +0 -177
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +0 -61
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +0 -90
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +0 -59
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/linkSeriesData.js +0 -63
- package/dist/node_modules/echarts/lib/data/helper/linkSeriesData.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +0 -164
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +0 -138
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js.map +0 -1
- package/dist/node_modules/echarts/lib/data/helper/transform.js +0 -174
- package/dist/node_modules/echarts/lib/data/helper/transform.js.map +0 -1
- package/dist/node_modules/echarts/lib/extension.js +0 -62
- package/dist/node_modules/echarts/lib/extension.js.map +0 -1
- package/dist/node_modules/echarts/lib/i18n/langEN.js +0 -115
- package/dist/node_modules/echarts/lib/i18n/langEN.js.map +0 -1
- package/dist/node_modules/echarts/lib/i18n/langZH.js +0 -115
- package/dist/node_modules/echarts/lib/i18n/langZH.js.map +0 -1
- package/dist/node_modules/echarts/lib/label/LabelManager.js +0 -236
- package/dist/node_modules/echarts/lib/label/LabelManager.js.map +0 -1
- package/dist/node_modules/echarts/lib/label/installLabelLayout.js +0 -18
- package/dist/node_modules/echarts/lib/label/installLabelLayout.js.map +0 -1
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +0 -235
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +0 -133
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/label/labelStyle.js +0 -195
- package/dist/node_modules/echarts/lib/label/labelStyle.js.map +0 -1
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +0 -95
- package/dist/node_modules/echarts/lib/label/sectorLabel.js.map +0 -1
- package/dist/node_modules/echarts/lib/layout/barGrid.js +0 -236
- package/dist/node_modules/echarts/lib/layout/barGrid.js.map +0 -1
- package/dist/node_modules/echarts/lib/layout/barPolar.js +0 -102
- package/dist/node_modules/echarts/lib/layout/barPolar.js.map +0 -1
- package/dist/node_modules/echarts/lib/layout/points.js +0 -38
- package/dist/node_modules/echarts/lib/layout/points.js.map +0 -1
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +0 -52
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js.map +0 -1
- package/dist/node_modules/echarts/lib/loading/default.js +0 -93
- package/dist/node_modules/echarts/lib/loading/default.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/Component.js +0 -82
- package/dist/node_modules/echarts/lib/model/Component.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/Global.js +0 -355
- package/dist/node_modules/echarts/lib/model/Global.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/Model.js +0 -65
- package/dist/node_modules/echarts/lib/model/Model.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/OptionManager.js +0 -88
- package/dist/node_modules/echarts/lib/model/OptionManager.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/Series.js +0 -232
- package/dist/node_modules/echarts/lib/model/Series.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/globalDefault.js +0 -88
- package/dist/node_modules/echarts/lib/model/globalDefault.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +0 -23
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +0 -25
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +0 -72
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +0 -32
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +0 -31
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +0 -19
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/palette.js +0 -43
- package/dist/node_modules/echarts/lib/model/mixin/palette.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +0 -31
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js.map +0 -1
- package/dist/node_modules/echarts/lib/model/referHelper.js +0 -61
- package/dist/node_modules/echarts/lib/model/referHelper.js.map +0 -1
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +0 -81
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js.map +0 -1
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +0 -112
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js.map +0 -1
- package/dist/node_modules/echarts/lib/processor/dataFilter.js +0 -23
- package/dist/node_modules/echarts/lib/processor/dataFilter.js.map +0 -1
- package/dist/node_modules/echarts/lib/processor/dataSample.js +0 -52
- package/dist/node_modules/echarts/lib/processor/dataSample.js.map +0 -1
- package/dist/node_modules/echarts/lib/processor/dataStack.js +0 -51
- package/dist/node_modules/echarts/lib/processor/dataStack.js.map +0 -1
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +0 -17
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js.map +0 -1
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +0 -8
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js.map +0 -1
- package/dist/node_modules/echarts/lib/renderer/installSVGRenderer.js +0 -8
- package/dist/node_modules/echarts/lib/renderer/installSVGRenderer.js.map +0 -1
- package/dist/node_modules/echarts/lib/scale/Interval.js +0 -98
- package/dist/node_modules/echarts/lib/scale/Interval.js.map +0 -1
- package/dist/node_modules/echarts/lib/scale/Log.js +0 -69
- package/dist/node_modules/echarts/lib/scale/Log.js.map +0 -1
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +0 -77
- package/dist/node_modules/echarts/lib/scale/Ordinal.js.map +0 -1
- package/dist/node_modules/echarts/lib/scale/Scale.js +0 -33
- package/dist/node_modules/echarts/lib/scale/Scale.js.map +0 -1
- package/dist/node_modules/echarts/lib/scale/Time.js +0 -260
- package/dist/node_modules/echarts/lib/scale/Time.js.map +0 -1
- package/dist/node_modules/echarts/lib/scale/helper.js +0 -48
- package/dist/node_modules/echarts/lib/scale/helper.js.map +0 -1
- package/dist/node_modules/echarts/lib/theme/dark.js +0 -181
- package/dist/node_modules/echarts/lib/theme/dark.js.map +0 -1
- package/dist/node_modules/echarts/lib/theme/light.js +0 -9
- package/dist/node_modules/echarts/lib/theme/light.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +0 -55
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/animation.js +0 -41
- package/dist/node_modules/echarts/lib/util/animation.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/clazz.js +0 -110
- package/dist/node_modules/echarts/lib/util/clazz.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/component.js +0 -80
- package/dist/node_modules/echarts/lib/util/component.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/conditionalExpression.js +0 -147
- package/dist/node_modules/echarts/lib/util/conditionalExpression.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/decal.js +0 -175
- package/dist/node_modules/echarts/lib/util/decal.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/event.js +0 -9
- package/dist/node_modules/echarts/lib/util/event.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/format.js +0 -112
- package/dist/node_modules/echarts/lib/util/format.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/graphic.js +0 -295
- package/dist/node_modules/echarts/lib/util/graphic.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/innerStore.js +0 -15
- package/dist/node_modules/echarts/lib/util/innerStore.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/layout.js +0 -141
- package/dist/node_modules/echarts/lib/util/layout.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/log.js +0 -69
- package/dist/node_modules/echarts/lib/util/log.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/model.js +0 -350
- package/dist/node_modules/echarts/lib/util/model.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/number.js +0 -197
- package/dist/node_modules/echarts/lib/util/number.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +0 -33
- package/dist/node_modules/echarts/lib/util/shape/sausage.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/states.js +0 -395
- package/dist/node_modules/echarts/lib/util/states.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/styleCompat.js +0 -59
- package/dist/node_modules/echarts/lib/util/styleCompat.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/symbol.js +0 -156
- package/dist/node_modules/echarts/lib/util/symbol.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/throttle.js +0 -42
- package/dist/node_modules/echarts/lib/util/throttle.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/time.js +0 -194
- package/dist/node_modules/echarts/lib/util/time.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/types.js +0 -14
- package/dist/node_modules/echarts/lib/util/types.js.map +0 -1
- package/dist/node_modules/echarts/lib/util/vendor.js +0 -9
- package/dist/node_modules/echarts/lib/util/vendor.js.map +0 -1
- package/dist/node_modules/echarts/lib/view/Chart.js +0 -99
- package/dist/node_modules/echarts/lib/view/Chart.js.map +0 -1
- package/dist/node_modules/echarts/lib/view/Component.js +0 -28
- package/dist/node_modules/echarts/lib/view/Component.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +0 -25
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/VisualMapping.js +0 -264
- package/dist/node_modules/echarts/lib/visual/VisualMapping.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/aria.js +0 -134
- package/dist/node_modules/echarts/lib/visual/aria.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/decal.js +0 -24
- package/dist/node_modules/echarts/lib/visual/decal.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/helper.js +0 -54
- package/dist/node_modules/echarts/lib/visual/helper.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/style.js +0 -96
- package/dist/node_modules/echarts/lib/visual/style.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/symbol.js +0 -53
- package/dist/node_modules/echarts/lib/visual/symbol.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/visualDefault.js +0 -47
- package/dist/node_modules/echarts/lib/visual/visualDefault.js.map +0 -1
- package/dist/node_modules/echarts/lib/visual/visualSolution.js +0 -98
- package/dist/node_modules/echarts/lib/visual/visualSolution.js.map +0 -1
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +0 -34
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/jszip/dist/jszip.min.js +0 -2321
- package/dist/node_modules/jszip/dist/jszip.min.js.map +0 -1
- package/dist/node_modules/lodash/lodash.js +0 -3693
- package/dist/node_modules/lodash/lodash.js.map +0 -1
- package/dist/node_modules/pptx-preview/dist/pptx-preview.es.js +0 -2599
- package/dist/node_modules/pptx-preview/dist/pptx-preview.es.js.map +0 -1
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/native.js +0 -8
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/rng.js +0 -10
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/stringify.js +0 -10
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/v4.js +0 -14
- package/dist/node_modules/pptx-preview/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -125
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/zrender/lib/Element.js +0 -455
- package/dist/node_modules/zrender/lib/Element.js.map +0 -1
- package/dist/node_modules/zrender/lib/Handler.js +0 -169
- package/dist/node_modules/zrender/lib/Handler.js.map +0 -1
- package/dist/node_modules/zrender/lib/Storage.js +0 -76
- package/dist/node_modules/zrender/lib/Storage.js.map +0 -1
- package/dist/node_modules/zrender/lib/animation/Animation.js +0 -67
- package/dist/node_modules/zrender/lib/animation/Animation.js.map +0 -1
- package/dist/node_modules/zrender/lib/animation/Animator.js +0 -382
- package/dist/node_modules/zrender/lib/animation/Animator.js.map +0 -1
- package/dist/node_modules/zrender/lib/animation/Clip.js +0 -34
- package/dist/node_modules/zrender/lib/animation/Clip.js.map +0 -1
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js +0 -19
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js.map +0 -1
- package/dist/node_modules/zrender/lib/animation/easing.js +0 -105
- package/dist/node_modules/zrender/lib/animation/easing.js.map +0 -1
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +0 -9
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js.map +0 -1
- package/dist/node_modules/zrender/lib/canvas/Layer.js +0 -135
- package/dist/node_modules/zrender/lib/canvas/Layer.js.map +0 -1
- package/dist/node_modules/zrender/lib/canvas/Painter.js +0 -309
- package/dist/node_modules/zrender/lib/canvas/Painter.js.map +0 -1
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js +0 -19
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js.map +0 -1
- package/dist/node_modules/zrender/lib/canvas/graphic.js +0 -198
- package/dist/node_modules/zrender/lib/canvas/graphic.js.map +0 -1
- package/dist/node_modules/zrender/lib/canvas/helper.js +0 -48
- package/dist/node_modules/zrender/lib/canvas/helper.js.map +0 -1
- package/dist/node_modules/zrender/lib/config.js +0 -12
- package/dist/node_modules/zrender/lib/config.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/arc.js +0 -25
- package/dist/node_modules/zrender/lib/contain/arc.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/cubic.js +0 -14
- package/dist/node_modules/zrender/lib/contain/cubic.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/line.js +0 -17
- package/dist/node_modules/zrender/lib/contain/line.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/path.js +0 -149
- package/dist/node_modules/zrender/lib/contain/path.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/polygon.js +0 -20
- package/dist/node_modules/zrender/lib/contain/polygon.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/quadratic.js +0 -14
- package/dist/node_modules/zrender/lib/contain/quadratic.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/text.js +0 -97
- package/dist/node_modules/zrender/lib/contain/text.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/util.js +0 -8
- package/dist/node_modules/zrender/lib/contain/util.js.map +0 -1
- package/dist/node_modules/zrender/lib/contain/windingLine.js +0 -12
- package/dist/node_modules/zrender/lib/contain/windingLine.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/BoundingRect.js +0 -65
- package/dist/node_modules/zrender/lib/core/BoundingRect.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/Eventful.js +0 -98
- package/dist/node_modules/zrender/lib/core/Eventful.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/GestureMgr.js +0 -64
- package/dist/node_modules/zrender/lib/core/GestureMgr.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/LRU.js +0 -53
- package/dist/node_modules/zrender/lib/core/LRU.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +0 -47
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/PathProxy.js +0 -301
- package/dist/node_modules/zrender/lib/core/PathProxy.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/Point.js +0 -73
- package/dist/node_modules/zrender/lib/core/Point.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/Transformable.js +0 -106
- package/dist/node_modules/zrender/lib/core/Transformable.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/WeakMap.js +0 -27
- package/dist/node_modules/zrender/lib/core/WeakMap.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/bbox.js +0 -53
- package/dist/node_modules/zrender/lib/core/bbox.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/curve.js +0 -162
- package/dist/node_modules/zrender/lib/core/curve.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/dom.js +0 -68
- package/dist/node_modules/zrender/lib/core/dom.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/env.js +0 -22
- package/dist/node_modules/zrender/lib/core/env.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/event.js +0 -70
- package/dist/node_modules/zrender/lib/core/event.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +0 -42
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/matrix.js +0 -45
- package/dist/node_modules/zrender/lib/core/matrix.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/platform.js +0 -49
- package/dist/node_modules/zrender/lib/core/platform.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/timsort.js +0 -287
- package/dist/node_modules/zrender/lib/core/timsort.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/util.js +0 -406
- package/dist/node_modules/zrender/lib/core/util.js.map +0 -1
- package/dist/node_modules/zrender/lib/core/vector.js +0 -77
- package/dist/node_modules/zrender/lib/core/vector.js.map +0 -1
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +0 -189
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +0 -30
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/Displayable.js +0 -147
- package/dist/node_modules/zrender/lib/graphic/Displayable.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/Gradient.js +0 -15
- package/dist/node_modules/zrender/lib/graphic/Gradient.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/Group.js +0 -96
- package/dist/node_modules/zrender/lib/graphic/Group.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/Image.js +0 -56
- package/dist/node_modules/zrender/lib/graphic/Image.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +0 -70
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +0 -14
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/Path.js +0 -217
- package/dist/node_modules/zrender/lib/graphic/Path.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +0 -14
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +0 -53
- package/dist/node_modules/zrender/lib/graphic/TSpan.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/Text.js +0 -221
- package/dist/node_modules/zrender/lib/graphic/Text.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/constants.js +0 -7
- package/dist/node_modules/zrender/lib/graphic/constants.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/image.js +0 -42
- package/dist/node_modules/zrender/lib/graphic/helper/image.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +0 -212
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js +0 -23
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +0 -10
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +0 -80
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +0 -30
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +0 -29
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +0 -30
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +0 -48
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +0 -24
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +0 -25
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js +0 -43
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +0 -25
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +0 -30
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +0 -34
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +0 -25
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js.map +0 -1
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +0 -27
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js.map +0 -1
- package/dist/node_modules/zrender/lib/mixin/Draggable.js +0 -30
- package/dist/node_modules/zrender/lib/mixin/Draggable.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/Painter.js +0 -153
- package/dist/node_modules/zrender/lib/svg/Painter.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/SVGPathRebuilder.js +0 -53
- package/dist/node_modules/zrender/lib/svg/SVGPathRebuilder.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/core.js +0 -99
- package/dist/node_modules/zrender/lib/svg/core.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/cssAnimation.js +0 -183
- package/dist/node_modules/zrender/lib/svg/cssAnimation.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/cssClassId.js +0 -8
- package/dist/node_modules/zrender/lib/svg/cssClassId.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/cssEmphasis.js +0 -34
- package/dist/node_modules/zrender/lib/svg/cssEmphasis.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/domapi.js +0 -31
- package/dist/node_modules/zrender/lib/svg/domapi.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/graphic.js +0 -232
- package/dist/node_modules/zrender/lib/svg/graphic.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/helper.js +0 -113
- package/dist/node_modules/zrender/lib/svg/helper.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/mapStyleToAttrs.js +0 -51
- package/dist/node_modules/zrender/lib/svg/mapStyleToAttrs.js.map +0 -1
- package/dist/node_modules/zrender/lib/svg/patch.js +0 -86
- package/dist/node_modules/zrender/lib/svg/patch.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/color.js +0 -343
- package/dist/node_modules/zrender/lib/tool/color.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/convertPath.js +0 -92
- package/dist/node_modules/zrender/lib/tool/convertPath.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/dividePath.js +0 -182
- package/dist/node_modules/zrender/lib/tool/dividePath.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/morphPath.js +0 -320
- package/dist/node_modules/zrender/lib/tool/morphPath.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/parseSVG.js +0 -404
- package/dist/node_modules/zrender/lib/tool/parseSVG.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/parseXML.js +0 -15
- package/dist/node_modules/zrender/lib/tool/parseXML.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/path.js +0 -165
- package/dist/node_modules/zrender/lib/tool/path.js.map +0 -1
- package/dist/node_modules/zrender/lib/tool/transformPath.js +0 -39
- package/dist/node_modules/zrender/lib/tool/transformPath.js.map +0 -1
- package/dist/node_modules/zrender/lib/zrender.js +0 -141
- package/dist/node_modules/zrender/lib/zrender.js.map +0 -1
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +0 -34
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1,2599 +0,0 @@
|
|
|
1
|
-
import { __awaiter as U, __spreadArray as yt, __assign as I, __extends as gt, __generator as Y } from "../../tslib/tslib.es6.js";
|
|
2
|
-
import Be from "../../../_virtual/jszip.min.js";
|
|
3
|
-
import { l as u } from "../../../_virtual/lodash.js";
|
|
4
|
-
import "../../echarts/index.js";
|
|
5
|
-
import _e from "../node_modules/uuid/dist/esm-browser/v4.js";
|
|
6
|
-
import { init as Te } from "../../echarts/lib/core/echarts.js";
|
|
7
|
-
var Mt = 1;
|
|
8
|
-
function at(i) {
|
|
9
|
-
var r = 60, n = 62, a = 45, s = 47, h = 33, p = 39, y = 34, f = 63, m = `\r
|
|
10
|
-
>/= `, g = 0;
|
|
11
|
-
return Mt = 1, ke((function w() {
|
|
12
|
-
for (var j = []; i[g]; ) {
|
|
13
|
-
if (i.charCodeAt(g) == r) {
|
|
14
|
-
if (i.charCodeAt(g + 1) === s) return g = i.indexOf(">", g), j;
|
|
15
|
-
if (i.charCodeAt(g + 1) === h) {
|
|
16
|
-
if (i.charCodeAt(g + 2) == a) {
|
|
17
|
-
for (; i.charCodeAt(g) !== n || i.charCodeAt(g - 1) != a || i.charCodeAt(g - 2) != a || g == -1; ) g = i.indexOf(">", g + 1);
|
|
18
|
-
g === -1 && (g = i.length);
|
|
19
|
-
} else for (g += 2; i.charCodeAt(g) !== n; g++) ;
|
|
20
|
-
g++;
|
|
21
|
-
continue;
|
|
22
|
-
}
|
|
23
|
-
if (i.charCodeAt(g + 1) === f) {
|
|
24
|
-
g = i.indexOf(">", g), g++;
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
for (var L = ++g; m.indexOf(i[g]) === -1; g++) ;
|
|
28
|
-
for (var C = i.slice(L, g), B = !1, k = {}; i.charCodeAt(g) !== n; g++) {
|
|
29
|
-
var c = i.charCodeAt(g);
|
|
30
|
-
if (c > 64 && c < 91 || c > 96 && c < 123) {
|
|
31
|
-
for (L = g; m.indexOf(i[g]) === -1; g++) ;
|
|
32
|
-
for (var t = i.slice(L, g), o = i.charCodeAt(g); o !== p && o !== y; ) g++, o = i.charCodeAt(g);
|
|
33
|
-
var e = i[g], l = ++g;
|
|
34
|
-
g = i.indexOf(e, l);
|
|
35
|
-
var d = i.slice(l, g);
|
|
36
|
-
B || (k = {}, B = !0), k[t] = d;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
var b = [];
|
|
40
|
-
i.charCodeAt(g - 1) !== s && (g++, b = w()), j.push({ children: b, tagName: C, attrs: k });
|
|
41
|
-
} else {
|
|
42
|
-
var v = g;
|
|
43
|
-
(g = i.indexOf("<", g) - 1) === -2 && (g = i.length);
|
|
44
|
-
var x = i.slice(v, g + 1);
|
|
45
|
-
x.length > 0 && j.push(x);
|
|
46
|
-
}
|
|
47
|
-
g++;
|
|
48
|
-
}
|
|
49
|
-
return j;
|
|
50
|
-
})());
|
|
51
|
-
}
|
|
52
|
-
function ke(i) {
|
|
53
|
-
var r = {};
|
|
54
|
-
if (i === void 0) return {};
|
|
55
|
-
if (i.length === 1 && typeof i[0] == "string") return i[0];
|
|
56
|
-
for (var n in i.forEach((function(a) {
|
|
57
|
-
if (r[a.tagName] || (r[a.tagName] = []), typeof a == "object") {
|
|
58
|
-
var s = ke(a.children);
|
|
59
|
-
typeof s == "object" && (a.attrs && (s.attrs = a.attrs), s.attrs === void 0 ? s.attrs = { order: Mt } : s.attrs.order = Mt), Mt++, r[a.tagName].push(s);
|
|
60
|
-
}
|
|
61
|
-
})), r) r[n].length == 1 && (r[n] = r[n][0]);
|
|
62
|
-
return r;
|
|
63
|
-
}
|
|
64
|
-
function ht(i) {
|
|
65
|
-
return Math.abs(i) > 2e4 ? "emu" : "point";
|
|
66
|
-
}
|
|
67
|
-
function W(i) {
|
|
68
|
-
return i / 12700;
|
|
69
|
-
}
|
|
70
|
-
function ct(i) {
|
|
71
|
-
return i / 20;
|
|
72
|
-
}
|
|
73
|
-
function At(i) {
|
|
74
|
-
return i / 100;
|
|
75
|
-
}
|
|
76
|
-
function jt(i) {
|
|
77
|
-
return i / 6e4;
|
|
78
|
-
}
|
|
79
|
-
function lt(i) {
|
|
80
|
-
return i / 1e5;
|
|
81
|
-
}
|
|
82
|
-
function ne(i) {
|
|
83
|
-
var r = Math.ceil(i / 26), n = (i % 26 || 26) - 1 + 65;
|
|
84
|
-
return String.fromCharCode(n).repeat(r);
|
|
85
|
-
}
|
|
86
|
-
function V(i, r, n) {
|
|
87
|
-
var a = { type: "solidFill" };
|
|
88
|
-
if (i["a:srgbClr"]) a.color = "#" + i["a:srgbClr"].attrs.val;
|
|
89
|
-
else if (i["a:schemeClr"]) {
|
|
90
|
-
var s = i["a:schemeClr"].attrs.val;
|
|
91
|
-
n && (s = n.getColorThemeName(s)), a.color = r.getColor(s);
|
|
92
|
-
} else if (i["a:sysClr"]) a.color = "#" + i["a:sysClr"].attrs.lastClr;
|
|
93
|
-
else if (i["a:prstClr"]) {
|
|
94
|
-
var h = u.get(i["a:prstClr"], ["attrs", "val"]);
|
|
95
|
-
a.color = (function(j) {
|
|
96
|
-
var L, C = ["white", "AliceBlue", "AntiqueWhite", "Aqua", "Aquamarine", "Azure", "Beige", "Bisque", "black", "BlanchedAlmond", "Blue", "BlueViolet", "Brown", "BurlyWood", "CadetBlue", "Chartreuse", "Chocolate", "Coral", "CornflowerBlue", "Cornsilk", "Crimson", "Cyan", "DarkBlue", "DarkCyan", "DarkGoldenRod", "DarkGray", "DarkGrey", "DarkGreen", "DarkKhaki", "DarkMagenta", "DarkOliveGreen", "DarkOrange", "DarkOrchid", "DarkRed", "DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray", "DarkSlateGrey", "DarkTurquoise", "DarkViolet", "DeepPink", "DeepSkyBlue", "DimGray", "DimGrey", "DodgerBlue", "FireBrick", "FloralWhite", "ForestGreen", "Fuchsia", "Gainsboro", "GhostWhite", "Gold", "GoldenRod", "Gray", "Grey", "Green", "GreenYellow", "HoneyDew", "HotPink", "IndianRed", "Indigo", "Ivory", "Khaki", "Lavender", "LavenderBlush", "LawnGreen", "LemonChiffon", "LightBlue", "LightCoral", "LightCyan", "LightGoldenRodYellow", "LightGray", "LightGrey", "LightGreen", "LightPink", "LightSalmon", "LightSeaGreen", "LightSkyBlue", "LightSlateGray", "LightSlateGrey", "LightSteelBlue", "LightYellow", "Lime", "LimeGreen", "Linen", "Magenta", "Maroon", "MediumAquaMarine", "MediumBlue", "MediumOrchid", "MediumPurple", "MediumSeaGreen", "MediumSlateBlue", "MediumSpringGreen", "MediumTurquoise", "MediumVioletRed", "MidnightBlue", "MintCream", "MistyRose", "Moccasin", "NavajoWhite", "Navy", "OldLace", "Olive", "OliveDrab", "Orange", "OrangeRed", "Orchid", "PaleGoldenRod", "PaleGreen", "PaleTurquoise", "PaleVioletRed", "PapayaWhip", "PeachPuff", "Peru", "Pink", "Plum", "PowderBlue", "Purple", "RebeccaPurple", "Red", "RosyBrown", "RoyalBlue", "SaddleBrown", "Salmon", "SandyBrown", "SeaGreen", "SeaShell", "Sienna", "Silver", "SkyBlue", "SlateBlue", "SlateGray", "SlateGrey", "Snow", "SpringGreen", "SteelBlue", "Tan", "Teal", "Thistle", "Tomato", "Turquoise", "Violet", "Wheat", "White", "WhiteSmoke", "Yellow", "YellowGreen"], B = ["ffffff", "f0f8ff", "faebd7", "00ffff", "7fffd4", "f0ffff", "f5f5dc", "ffe4c4", "000000", "ffebcd", "0000ff", "8a2be2", "a52a2a", "deb887", "5f9ea0", "7fff00", "d2691e", "ff7f50", "6495ed", "fff8dc", "dc143c", "00ffff", "00008b", "008b8b", "b8860b", "a9a9a9", "a9a9a9", "006400", "bdb76b", "8b008b", "556b2f", "ff8c00", "9932cc", "8b0000", "e9967a", "8fbc8f", "483d8b", "2f4f4f", "2f4f4f", "00ced1", "9400d3", "ff1493", "00bfff", "696969", "696969", "1e90ff", "b22222", "fffaf0", "228b22", "ff00ff", "dcdcdc", "f8f8ff", "ffd700", "daa520", "808080", "808080", "008000", "adff2f", "f0fff0", "ff69b4", "cd5c5c", "4b0082", "fffff0", "f0e68c", "e6e6fa", "fff0f5", "7cfc00", "fffacd", "add8e6", "f08080", "e0ffff", "fafad2", "d3d3d3", "d3d3d3", "90ee90", "ffb6c1", "ffa07a", "20b2aa", "87cefa", "778899", "778899", "b0c4de", "ffffe0", "00ff00", "32cd32", "faf0e6", "ff00ff", "800000", "66cdaa", "0000cd", "ba55d3", "9370db", "3cb371", "7b68ee", "00fa9a", "48d1cc", "c71585", "191970", "f5fffa", "ffe4e1", "ffe4b5", "ffdead", "000080", "fdf5e6", "808000", "6b8e23", "ffa500", "ff4500", "da70d6", "eee8aa", "98fb98", "afeeee", "db7093", "ffefd5", "ffdab9", "cd853f", "ffc0cb", "dda0dd", "b0e0e6", "800080", "663399", "ff0000", "bc8f8f", "4169e1", "8b4513", "fa8072", "f4a460", "2e8b57", "fff5ee", "a0522d", "c0c0c0", "87ceeb", "6a5acd", "708090", "708090", "fffafa", "00ff7f", "4682b4", "d2b48c", "008080", "d8bfd8", "ff6347", "40e0d0", "ee82ee", "f5deb3", "ffffff", "f5f5f5", "ffff00", "9acd32"], k = C.indexOf(j);
|
|
97
|
-
return k != -1 && (L = B[k]), "#".concat(L || "000000");
|
|
98
|
-
})(h);
|
|
99
|
-
}
|
|
100
|
-
var p = i["a:srgbClr"] || i["a:schemeClr"] || i["a:sysClr"], y = u.get(p, ["a:alpha", "attrs", "val"], 1e5);
|
|
101
|
-
a.alpha = y / 1e5;
|
|
102
|
-
var f = u.get(p, ["a:shade", "attrs", "val"]);
|
|
103
|
-
f && (a.shade = f / 1e5);
|
|
104
|
-
var m = u.get(p, ["a:lumMod", "attrs", "val"]);
|
|
105
|
-
m && (a.lumMod = m / 1e5);
|
|
106
|
-
var g = u.get(p, ["a:lumOff", "attrs", "val"]);
|
|
107
|
-
g && (a.lumOff = g / 1e5);
|
|
108
|
-
var w = u.get(p, ["a:tint", "attrs", "val"]);
|
|
109
|
-
return w && (a.tint = w / 1e5), a;
|
|
110
|
-
}
|
|
111
|
-
function wt(i, r, n) {
|
|
112
|
-
var a, s = { type: "blipFill" }, h = u.get(i, ["a:blip", "attrs", "r:embed"]);
|
|
113
|
-
if (h) {
|
|
114
|
-
var p = (a = n.rels[h]) === null || a === void 0 ? void 0 : a.target;
|
|
115
|
-
p && (s.base64 = r.getMedia(p));
|
|
116
|
-
}
|
|
117
|
-
var y = u.get(i, ["a:blip", "a:alphaModFix", "attrs", "amt"]);
|
|
118
|
-
y && (s.alpha = y / 1e5);
|
|
119
|
-
var f = u.get(i, ["a:stretch", "a:fillRect", "attrs"]);
|
|
120
|
-
return f && (s.fillRect = {}, f.b && (s.fillRect.b = f.b / 1e5), f.t && (s.fillRect.t = f.t / 1e5), f.r && (s.fillRect.r = f.r / 1e5), f.l && (s.fillRect.l = f.l / 1e5)), s;
|
|
121
|
-
}
|
|
122
|
-
function bt(i, r, n) {
|
|
123
|
-
var a = { type: "gradFill", tileRect: {}, lin: {}, gsList: [] };
|
|
124
|
-
a.flip = i.attrs.flip, a.path = u.get(i, ["a:path", "attrs", "path"]) || "linear", a.rotWithShape = i.attrs.rotWithShape === "1", u.get(i, ["a:lin", "attrs", "ang"]) && (a.lin.ang = jt(i["a:lin"].attrs.ang)), u.get(i, ["a:lin", "attrs", "scaled"]) && (a.lin.scaled = i["a:lin"].attrs.scaled === "1");
|
|
125
|
-
var s = u.get(i, ["a:gsLst", "a:gs"]) || [];
|
|
126
|
-
return a.gsList = s.map((function(h) {
|
|
127
|
-
return { color: V(h, r, n), pos: lt(h.attrs.pos) };
|
|
128
|
-
})), u.get(i, ["a:tileRect", "attrs", "l"]) && (a.tileRect.l = lt(i["a:tileRect"].attrs.l)), u.get(i, ["a:tileRect", "attrs", "t"]) && (a.tileRect.t = lt(i["a:tileRect"].attrs.t)), u.get(i, ["a:tileRect", "attrs", "r"]) && (a.tileRect.r = lt(i["a:tileRect"].attrs.r)), u.get(i, ["a:tileRect", "attrs", "b"]) && (a.tileRect.b = lt(i["a:tileRect"].attrs.b)), a;
|
|
129
|
-
}
|
|
130
|
-
function oe(i) {
|
|
131
|
-
return i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
132
|
-
}
|
|
133
|
-
function ce(i) {
|
|
134
|
-
return i < 31308e-7 ? 12.92 * i : 1.055 * Math.pow(i, 1 / 2.4) - 0.055;
|
|
135
|
-
}
|
|
136
|
-
function ue(i, r) {
|
|
137
|
-
var n = i[0], a = i[1], s = i[2], h = oe(n / 255) * r, p = oe(a / 255) * r, y = oe(s / 255) * r;
|
|
138
|
-
return [Math.round(255 * ce(h)), Math.round(255 * ce(p)), Math.round(255 * ce(y))];
|
|
139
|
-
}
|
|
140
|
-
function ie(i, r, n) {
|
|
141
|
-
var a = i / 255, s = r / 255, h = n / 255, p = Math.max(a, s, h), y = Math.min(a, s, h), f = p - y, m = 0, g = (p + y) / 2;
|
|
142
|
-
return f === 0 ? m = 0 : p === a ? m = (s - h) / f % 6 : p === s ? m = (h - a) / f + 2 : p === h && (m = (a - s) / f + 4), (m = Math.round(60 * m)) < 0 && (m += 360), { h: m, s: f === 0 || g === 0 || g === 1 ? 0 : f / (1 - Math.abs(2 * g - 1)), l: g };
|
|
143
|
-
}
|
|
144
|
-
function se(i, r, n) {
|
|
145
|
-
var a, s, h, p = (1 - Math.abs(2 * n - 1)) * r, y = p * (1 - Math.abs(i / 60 % 2 - 1)), f = n - p / 2;
|
|
146
|
-
return i < 60 ? (a = p, s = y, h = 0) : i < 120 ? (a = y, s = p, h = 0) : i < 180 ? (a = 0, s = p, h = y) : i < 240 ? (a = 0, s = y, h = p) : i < 300 ? (a = y, s = 0, h = p) : (a = p, s = 0, h = y), [a = Math.round(255 * (a + f)), s = Math.round(255 * (s + f)), h = Math.round(255 * (h + f))];
|
|
147
|
-
}
|
|
148
|
-
function F(i, r) {
|
|
149
|
-
if (!i || i.type === "none") return "";
|
|
150
|
-
if (i.type === "solidFill" && /^#[\da-fA-F]{3,6}$/.test(i.color)) {
|
|
151
|
-
var n = parseInt(i.color.substr(1, 2), 16), a = parseInt(i.color.substr(3, 2), 16), s = parseInt(i.color.substr(5, 2), 16);
|
|
152
|
-
if (i.shade) {
|
|
153
|
-
var h = ue([n, a, s], i.shade);
|
|
154
|
-
n = h[0], a = h[1], s = h[2];
|
|
155
|
-
}
|
|
156
|
-
if (i.lumMod) {
|
|
157
|
-
var p = (function(g, w, j, L) {
|
|
158
|
-
var C = ie(g, w, j), B = C.h, k = C.l * L;
|
|
159
|
-
return k >= 1 && (k = 1), se(B, C.s, k);
|
|
160
|
-
})(n, a, s, i.lumMod);
|
|
161
|
-
n = p[0], a = p[1], s = p[2];
|
|
162
|
-
}
|
|
163
|
-
if (i.lumOff && (p = (function(g, w, j, L) {
|
|
164
|
-
var C = ie(g, w, j), B = C.h, k = L + C.l;
|
|
165
|
-
return k > 1 && (k = 1), se(B, C.s, k);
|
|
166
|
-
})(n, a, s, i.lumOff), n = p[0], a = p[1], s = p[2]), i.tint || r != null && r.light) {
|
|
167
|
-
var y = (function(g, w, j, L) {
|
|
168
|
-
var C = ie(g, w, j), B = C.h, k = C.l;
|
|
169
|
-
return L >= 1 && (L = 1), se(B, C.s, k * L + (1 - L));
|
|
170
|
-
})(n, a, s, i.tint || (r == null ? void 0 : r.light));
|
|
171
|
-
n = y[0], a = y[1], s = y[2];
|
|
172
|
-
}
|
|
173
|
-
if (r != null && r.dark) {
|
|
174
|
-
var f = ue([n, a, s], r == null ? void 0 : r.dark);
|
|
175
|
-
n = f[0], a = f[1], s = f[2];
|
|
176
|
-
}
|
|
177
|
-
var m = i.alpha;
|
|
178
|
-
return "rgba(".concat(n, ",").concat(a, ",").concat(s, ",").concat(m, ")");
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
var mt = (function() {
|
|
182
|
-
function i(r, n, a) {
|
|
183
|
-
var s, h;
|
|
184
|
-
this.uuid = _e(), this.offset = { x: 0, y: 0 }, this.extend = { w: 0, h: 0 }, this.rotate = 0, this.order = 0, this.flipV = !1, this.flipH = !1, this.source = r, this.ctx = n, this.group = a;
|
|
185
|
-
var p = u.get(r, ["p:nvSpPr", "p:nvPr"]);
|
|
186
|
-
if (p) {
|
|
187
|
-
var y = u.get(p, "p:ph");
|
|
188
|
-
y && y.attrs && (this.idx = y.attrs.idx, this.type = y.attrs.type), u.get(p, ["attrs", "userDrawn"]) && (this.userDrawn = u.get(p, ["attrs", "userDrawn"]) === "1");
|
|
189
|
-
}
|
|
190
|
-
if (this.order = u.get(r, "attrs.order", 0), this.source["p:spPr"]) {
|
|
191
|
-
if (m = this.getXfrm()) {
|
|
192
|
-
var f = this.group && (!((s = this.ctx.pptx) === null || s === void 0) && s.wps || ht(parseInt(m["a:off"].attrs.x)) === "point") ? ct : W;
|
|
193
|
-
this.offset = { x: Math.round(f(parseInt(m["a:off"].attrs.x))), y: Math.round(f(parseInt(m["a:off"].attrs.y))) }, this.extend = { w: Math.round(f(parseInt(m["a:ext"].attrs.cx))), h: Math.round(f(parseInt(m["a:ext"].attrs.cy || "0"))) }, this.rotate = jt(parseInt(u.get(m, "attrs.rot", 0))), this.flipV = u.get(m, "attrs.flipV") === "1", this.flipH = u.get(m, "attrs.flipH") === "1";
|
|
194
|
-
}
|
|
195
|
-
} else if (this.source["p:xfrm"]) {
|
|
196
|
-
var m = this.source["p:xfrm"];
|
|
197
|
-
f = this.group && (!((h = this.ctx.pptx) === null || h === void 0) && h.wps || ht(parseInt(m["a:off"].attrs.x)) === "point") ? ct : W, this.offset = { x: Math.round(f(parseInt(m["a:off"].attrs.x))), y: Math.round(f(parseInt(m["a:off"].attrs.y))) }, this.extend = { w: Math.round(f(parseInt(m["a:ext"].attrs.cx))), h: Math.round(f(parseInt(m["a:ext"].attrs.cy))) };
|
|
198
|
-
}
|
|
199
|
-
if (a) {
|
|
200
|
-
var g = a.extend, w = a.chExtend, j = a.chOffset, L = w.w === 0 ? 0 : g.w / w.w, C = w.h === 0 ? 0 : g.h / w.h;
|
|
201
|
-
this.extend.w = this.extend.w * L, this.extend.h = this.extend.h * C, this.offset.x = (this.offset.x - j.x) * L, this.offset.y = (this.offset.y - j.y) * C;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return Object.defineProperty(i.prototype, "theme", { get: function() {
|
|
205
|
-
return (this.ctx.sliderMaster || this.ctx).theme;
|
|
206
|
-
}, enumerable: !1, configurable: !0 }), i.prototype.getColorThemeName = function(r) {
|
|
207
|
-
return this.ctx.getColorThemeName(r);
|
|
208
|
-
}, i.prototype.getXfrm = function() {
|
|
209
|
-
var r = this.source["p:spPr"]["a:xfrm"];
|
|
210
|
-
return r || (this.idx ? r = this.ctx.getNodeInheritAttrsByIdx(this.idx, ["p:spPr", "a:xfrm"]) : this.type && (r = this.ctx.getNodeInheritAttrsByType(this.type, ["p:spPr", "a:xfrm"]))), r;
|
|
211
|
-
}, i;
|
|
212
|
-
})(), Oe = (function() {
|
|
213
|
-
function i(r, n) {
|
|
214
|
-
this.props = {}, this.inheritProps = {}, this.source = r, this.node = n, this._getInheritBodyProps(), this._parseBodyProps(), this._parseLstStyle(), this._parseText();
|
|
215
|
-
}
|
|
216
|
-
return i.prototype._getInheritBodyProps = function() {
|
|
217
|
-
var r, n = this.node.ctx, a = this.node.type, s = this.node.idx;
|
|
218
|
-
if (a || s) switch (n.slideType) {
|
|
219
|
-
case "slideMaster":
|
|
220
|
-
break;
|
|
221
|
-
case "slideLayout":
|
|
222
|
-
(r = a ? n.slideMaster.getNodeByType(a) : n.slideMaster.getNodeByIdx(s)) && (this.inheritProps = u.get(r, ["textBody", "props"]) || {});
|
|
223
|
-
break;
|
|
224
|
-
case "slide":
|
|
225
|
-
(r = a ? n.slideLayout.slideMaster.getNodeByType(a) : n.slideLayout.slideMaster.getNodeByIdx(s)) && Object.assign(this.inheritProps, u.get(r, ["textBody", "props"]) || {}), (r = a ? n.slideLayout.getNodeByType(a) : n.slideLayout.getNodeByIdx(s)) && Object.assign(this.inheritProps, u.get(r, ["textBody", "props"]) || {});
|
|
226
|
-
}
|
|
227
|
-
}, i.prototype._parseBodyProps = function() {
|
|
228
|
-
var r = this, n = u.get(this.source, ["a:bodyPr", "attrs"]) || {};
|
|
229
|
-
Object.keys(n).forEach((function(p) {
|
|
230
|
-
switch (p) {
|
|
231
|
-
case "anchor":
|
|
232
|
-
r.props.anchor = n[p];
|
|
233
|
-
break;
|
|
234
|
-
case "rtlCol":
|
|
235
|
-
r.props.rtlCol = n[p] === "1";
|
|
236
|
-
break;
|
|
237
|
-
case "lIns":
|
|
238
|
-
case "rIns":
|
|
239
|
-
case "tIns":
|
|
240
|
-
case "bIns":
|
|
241
|
-
r.props[p] = W(parseInt(n[p]));
|
|
242
|
-
break;
|
|
243
|
-
case "order":
|
|
244
|
-
break;
|
|
245
|
-
default:
|
|
246
|
-
r.props[p] = n[p];
|
|
247
|
-
}
|
|
248
|
-
}));
|
|
249
|
-
var a = u.get(this.source, ["a:bodyPr", "a:normAutofit", "attrs"]);
|
|
250
|
-
if (a) {
|
|
251
|
-
this.props.normAutofit = {};
|
|
252
|
-
var s = a.fontScale;
|
|
253
|
-
s && (this.props.normAutofit.fontScale = lt(parseInt(s)));
|
|
254
|
-
var h = a.lnSpcReduction;
|
|
255
|
-
h && (this.props.normAutofit.lnSpcReduction = lt(parseInt(h)));
|
|
256
|
-
}
|
|
257
|
-
}, i.prototype._parseLstStyle = function() {
|
|
258
|
-
var r = this, n = {}, a = u.get(this.source, "a:lstStyle") || {};
|
|
259
|
-
Object.keys(a).forEach((function(s) {
|
|
260
|
-
if (s.startsWith("a:") && s.endsWith("pPr")) {
|
|
261
|
-
var h = s.substr(2, s.length - 5);
|
|
262
|
-
n[h] = { props: r._formatPPr(a[s]) };
|
|
263
|
-
var p = u.get(a[s], ["a:defRPr"]);
|
|
264
|
-
n[h].defRPr = r._formatRPr(p);
|
|
265
|
-
}
|
|
266
|
-
})), this.lstStyle = n;
|
|
267
|
-
}, i.prototype._parseText = function() {
|
|
268
|
-
var r = this, n = u.get(this.source, ["a:p"]) || [];
|
|
269
|
-
Array.isArray(n) || (n = [n]), this.paragraphs = n.map((function(a) {
|
|
270
|
-
return r._parseParagraph(a);
|
|
271
|
-
}));
|
|
272
|
-
}, i.prototype._parseParagraph = function(r) {
|
|
273
|
-
var n = this, a = { props: {}, inheritProps: {}, inheritRProps: {}, endParaRProps: {}, rows: [] }, s = u.get(r, ["a:pPr"]) || {};
|
|
274
|
-
a.props = this._formatPPr(s);
|
|
275
|
-
var h = u.get(r, ["a:endParaRPr"]);
|
|
276
|
-
a.endParaRProps = this._formatRPr(h);
|
|
277
|
-
var p = u.get(r, ["a:r"]) || [];
|
|
278
|
-
Array.isArray(p) || (p = [p]);
|
|
279
|
-
var y = u.get(r, ["a:br"]) || [];
|
|
280
|
-
return Array.isArray(y) || (y = [y]), (p = p.concat(y.map((function(f) {
|
|
281
|
-
return I({ isBr: !0 }, f);
|
|
282
|
-
})))).sort((function(f, m) {
|
|
283
|
-
return u.get(f, ["attrs", "order"]) - u.get(m, ["attrs", "order"]);
|
|
284
|
-
})), a.rows = p.map((function(f) {
|
|
285
|
-
return n._parseRow(f);
|
|
286
|
-
})), a.inheritProps = this._getInheritPProps(a.props.level), a.inheritRProps = this._getInheritRProps(a.props.level), a;
|
|
287
|
-
}, i.prototype._getInheritPProps = function(r) {
|
|
288
|
-
r === void 0 && (r = "0");
|
|
289
|
-
var n, a = {}, s = this.node.ctx, h = this.node.type, p = this.node.idx;
|
|
290
|
-
switch (s.slideType) {
|
|
291
|
-
case "slideMaster":
|
|
292
|
-
this.node.isTextBox ? Object.assign(a, u.get(s.defaultTextStyle, ["lvl".concat(r ? +r + 1 : 1), "props"]) || {}) : Object.assign(a, u.get(s, ["textStyles", "otherStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {});
|
|
293
|
-
break;
|
|
294
|
-
case "slideLayout":
|
|
295
|
-
this.node.isTextBox ? Object.assign(a, u.get(s.slideMaster.defaultTextStyle, ["lvl".concat(r ? +r + 1 : 1), "props"]) || {}) : Object.assign(a, u.get(s.slideMaster, ["textStyles", "otherStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {}), (h || p) && (n = h ? s.slideMaster.getNodeByType(h) : s.slideMaster.getNodeByIdx(p)) && Object.assign(a, u.get(n, ["textBody", "lstStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {});
|
|
296
|
-
break;
|
|
297
|
-
case "slide":
|
|
298
|
-
this.node.isTextBox ? Object.assign(a, u.get(s.slideLayout.slideMaster.defaultTextStyle, ["lvl".concat(r ? +r + 1 : 1), "props"]) || {}) : Object.assign(a, u.get(s.slideLayout.slideMaster, ["textStyles", "otherStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {}), (h || p) && (["subTitle", "ctrTitle", "title"].includes(h) && Object.assign(a, u.get(s.slideLayout.slideMaster, ["textStyles", "titleStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {}), (n = h ? s.slideLayout.slideMaster.getNodeByType(h) : s.slideLayout.slideMaster.getNodeByIdx(p)) && Object.assign(a, u.get(n, ["textBody", "lstStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {}), (n = h ? s.slideLayout.getNodeByType(h) : s.slideLayout.getNodeByIdx(p)) && Object.assign(a, u.get(n, ["textBody", "lstStyle", "lvl".concat(r ? +r + 1 : 1), "props"]) || {}));
|
|
299
|
-
}
|
|
300
|
-
return a;
|
|
301
|
-
}, i.prototype._getInheritRProps = function(r) {
|
|
302
|
-
r === void 0 && (r = "0");
|
|
303
|
-
var n, a = {}, s = this.node.ctx, h = this.node.type, p = this.node.idx;
|
|
304
|
-
switch (s.slideType) {
|
|
305
|
-
case "slideMaster":
|
|
306
|
-
this.node.isTextBox ? Object.assign(a, u.get(s.defaultTextStyle, ["lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}) : Object.assign(a, u.get(s, ["textStyles", "otherStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {});
|
|
307
|
-
break;
|
|
308
|
-
case "slideLayout":
|
|
309
|
-
this.node.isTextBox ? Object.assign(a, u.get(s.slideMaster.defaultTextStyle, ["lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}) : Object.assign(a, u.get(s.slideMaster, ["textStyles", "otherStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}), (h || p) && (n = h ? s.slideMaster.getNodeByType(h) : s.slideMaster.getNodeByIdx(p)) && (a = u.get(n, ["textBody", "lstStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {});
|
|
310
|
-
break;
|
|
311
|
-
case "slide":
|
|
312
|
-
this.node.isTextBox ? Object.assign(a, u.get(s.slideLayout.slideMaster.defaultTextStyle, ["lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}) : Object.assign(a, u.get(s.slideLayout.slideMaster, ["textStyles", "otherStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}), (h || p) && (["subTitle", "ctrTitle", "title"].includes(h) && Object.assign(a, u.get(s.slideLayout.slideMaster, ["textStyles", "titleStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}), (n = h ? s.slideLayout.slideMaster.getNodeByType(h) : s.slideLayout.slideMaster.getNodeByIdx(p)) && Object.assign(a, u.get(n, ["textBody", "lstStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}), (n = h ? s.slideLayout.getNodeByType(h) : s.slideLayout.getNodeByIdx(p)) && Object.assign(a, u.get(n, ["textBody", "lstStyle", "lvl".concat(r ? +r + 1 : 1), "defRPr"]) || {}));
|
|
313
|
-
}
|
|
314
|
-
var y = u.get(this.node.source, ["p:style", "a:fontRef"]);
|
|
315
|
-
return u.get(y, "a:schemeClr") && (a.color = V(y, this.node.theme, this.node)), u.get(this.lstStyle, ["lvl".concat(r ? +r + 1 : 1), "defRPr"]) && Object.assign(a, u.get(this.lstStyle, ["lvl".concat(r ? +r + 1 : 1), "defRPr"])), a;
|
|
316
|
-
}, i.prototype._formatPPr = function(r) {
|
|
317
|
-
var n = {}, a = u.get(r, "attrs") || {};
|
|
318
|
-
return Object.keys(a).forEach((function(s) {
|
|
319
|
-
switch (s) {
|
|
320
|
-
case "algn":
|
|
321
|
-
n.align = a[s];
|
|
322
|
-
break;
|
|
323
|
-
case "marL":
|
|
324
|
-
n.marginLeft = W(parseInt(a[s]));
|
|
325
|
-
break;
|
|
326
|
-
case "indent":
|
|
327
|
-
n.indent = W(parseInt(a[s]));
|
|
328
|
-
break;
|
|
329
|
-
case "lvl":
|
|
330
|
-
n.level = a[s];
|
|
331
|
-
}
|
|
332
|
-
})), u.get(r, ["a:lnSpc", "a:spcPct", "attrs", "val"]) && (n.lineHeight = parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val) / 1e5), u.get(r, ["a:buAutoNum", "attrs", "type"]) && (n.buAutoNum = r["a:buAutoNum"].attrs.type), u.get(r, ["a:buChar", "attrs", "char"]) && (n.buChar = r["a:buChar"].attrs.char), u.get(r, ["a:spcBef", "a:spcPts", "attrs", "val"]) && (n.spaceBefore = At(parseInt(r["a:spcBef"]["a:spcPts"].attrs.val))), u.get(r, ["a:spcAft", "a:spcPts", "attrs", "val"]) && (n.spaceAfter = At(parseInt(r["a:spcAft"]["a:spcPts"].attrs.val))), u.get(r, ["a:defRPr"]) && (n.defRPr = this._formatRPr(u.get(r, ["a:defRPr"]))), n;
|
|
333
|
-
}, i.prototype._parseRow = function(r) {
|
|
334
|
-
if (r.isBr) return { isBr: !0 };
|
|
335
|
-
var n = { props: {}, text: "" }, a = u.get(r, ["a:rPr"]) || {};
|
|
336
|
-
return n.props = this._formatRPr(a), n.text = u.get(r, "a:t") || "", n;
|
|
337
|
-
}, i.prototype._formatRPr = function(r) {
|
|
338
|
-
var n = {}, a = u.get(r, "attrs") || {};
|
|
339
|
-
Object.keys(a).forEach((function(p) {
|
|
340
|
-
switch (p) {
|
|
341
|
-
case "sz":
|
|
342
|
-
n.size = parseInt(a[p]) / 100;
|
|
343
|
-
break;
|
|
344
|
-
case "b":
|
|
345
|
-
n.bold = a[p] === "1";
|
|
346
|
-
break;
|
|
347
|
-
case "i":
|
|
348
|
-
n.italic = a[p] === "1";
|
|
349
|
-
break;
|
|
350
|
-
case "u":
|
|
351
|
-
n.underline = a[p];
|
|
352
|
-
break;
|
|
353
|
-
case "strike":
|
|
354
|
-
n.strike = a[p];
|
|
355
|
-
break;
|
|
356
|
-
case "order":
|
|
357
|
-
case "dirty":
|
|
358
|
-
break;
|
|
359
|
-
default:
|
|
360
|
-
n[p] = a[p];
|
|
361
|
-
}
|
|
362
|
-
}));
|
|
363
|
-
var s = u.get(r, "a:solidFill");
|
|
364
|
-
s && (n.color = V(s, this.node.theme, this.node));
|
|
365
|
-
var h = u.get(r, "a:highlight");
|
|
366
|
-
return h && (n.background = V(h, this.node.theme, this.node)), n.typeface = u.get(r, ["a:ea", "attrs", "typeface"]), n;
|
|
367
|
-
}, i;
|
|
368
|
-
})();
|
|
369
|
-
function pt(i, r, n) {
|
|
370
|
-
var a = {};
|
|
371
|
-
if (!u.get(i, "a:noFill")) {
|
|
372
|
-
u.get(i, "attrs.w") && (a.width = W(parseInt(u.get(i, "attrs.w"))));
|
|
373
|
-
var s = u.get(i, "a:solidFill");
|
|
374
|
-
s && (a.color = V(s, r, n));
|
|
375
|
-
var h = u.get(i, "a:prstDash");
|
|
376
|
-
if (h && (a.type = h.attrs.val), u.get(i, ["a:miter"]) && (a.lineJoin = "miter"), u.get(i, ["a:bevel"]) && (a.lineJoin = "bevel"), u.get(i, ["a:round"]) && (a.lineJoin = "round"), u.get(i, ["a:miter", "attrs", "lim"]) && (a.miterLim = W(parseInt(u.get(i, ["a:miter", "attrs", "lim"])))), u.get(i, ["a:headEnd"])) {
|
|
377
|
-
var p = u.get(i, ["a:headEnd", "attrs"]);
|
|
378
|
-
a.headEnd = { type: p.type, len: p.len, w: p.w };
|
|
379
|
-
}
|
|
380
|
-
if (u.get(i, ["a:tailEnd"])) {
|
|
381
|
-
var y = u.get(i, ["a:tailEnd", "attrs"]);
|
|
382
|
-
a.tailEnd = { type: y.type, len: y.len, w: y.w };
|
|
383
|
-
}
|
|
384
|
-
return a;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
var vt = (function(i) {
|
|
388
|
-
function r(n, a, s, h) {
|
|
389
|
-
var p = i.call(this, n, s, h) || this;
|
|
390
|
-
return p.border = {}, p.prstGeom = {}, p.isTextBox = !1, p.pptx = a, p._parseShape(), p._parIsTextBox(), p._parsePrstGeom(), p._parseBackground(), p._parseBorder(), p._parseTxt(), p;
|
|
391
|
-
}
|
|
392
|
-
return gt(r, i), r.prototype._parseShape = function() {
|
|
393
|
-
if (this.shape = u.get(this.source, ["p:spPr", "a:prstGeom", "attrs", "prst"]), !this.shape && u.get(this.source, ["p:spPr", "a:custGeom"])) {
|
|
394
|
-
this.shape = "customGeom";
|
|
395
|
-
var n = u.get(this.source, ["p:spPr", "a:custGeom", "a:pathLst", "a:path"]), a = [], s = [], h = function(y) {
|
|
396
|
-
switch (y) {
|
|
397
|
-
case "a:moveTo":
|
|
398
|
-
case "a:cubicBezTo":
|
|
399
|
-
case "a:lnTo":
|
|
400
|
-
s = Array.isArray(n[y]) ? n[y] : [n[y]], a = a.concat(s.map((function(f) {
|
|
401
|
-
return { order: f.attrs.order, type: y.split(":")[1], points: (Array.isArray(f["a:pt"]) ? f["a:pt"] : [f["a:pt"]]).map((function(m) {
|
|
402
|
-
return [W(parseInt(u.get(m, ["attrs", "x"]))), W(parseInt(u.get(m, ["attrs", "y"])))];
|
|
403
|
-
})) };
|
|
404
|
-
})));
|
|
405
|
-
break;
|
|
406
|
-
case "a:close":
|
|
407
|
-
s = Array.isArray(n[y]) ? n[y] : [n[y]], a = a.concat(s.map((function(f) {
|
|
408
|
-
return { order: f.attrs.order, type: y.split(":")[1] };
|
|
409
|
-
})));
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
for (var p in n) h(p);
|
|
413
|
-
a.sort((function(y, f) {
|
|
414
|
-
return y.order - f.order;
|
|
415
|
-
})), this.prstGeom.pathList = a, u.get(n, ["attrs", "w"]) && (this.prstGeom.w = W(parseInt(u.get(n, ["attrs", "w"])))), u.get(n, ["attrs", "h"]) && (this.prstGeom.h = W(parseInt(u.get(n, ["attrs", "h"]))));
|
|
416
|
-
}
|
|
417
|
-
}, r.prototype._parIsTextBox = function() {
|
|
418
|
-
this.isTextBox = u.get(this.source, ["p:nvSpPr", "p:cNvSpPr", "attrs", "txBox"]) === "1";
|
|
419
|
-
}, r.prototype._parsePrstGeom = function() {
|
|
420
|
-
var n = this, a = u.get(this.source, ["p:spPr", "a:prstGeom"]), s = u.get(a, ["a:avLst", "a:gd"]);
|
|
421
|
-
s && (Array.isArray(s) || (s = [s]), this.prstGeom.gd = s.map((function(h) {
|
|
422
|
-
var p = ["pie", "chord", "arc"].includes(n.shape) || ["blockArc"].includes(n.shape) && ["adj1", "adj2"].includes(h.attrs.name) ? jt(parseInt(h.attrs.fmla.split(" ")[1])) : lt(parseInt(h.attrs.fmla.split(" ")[1]));
|
|
423
|
-
return { name: h.attrs.name, fmla: p };
|
|
424
|
-
})));
|
|
425
|
-
}, r.prototype._parseBackground = function() {
|
|
426
|
-
if (!u.get(this.source, ["p:spPr", "a:noFill"])) if (u.get(this.source, ["p:spPr", "a:grpFill"]) && this.group) this.background = this.group.getBackground();
|
|
427
|
-
else {
|
|
428
|
-
var n = u.get(this.source, ["p:spPr", "a:solidFill"]);
|
|
429
|
-
if (n) this.background = V(n, this.theme, this);
|
|
430
|
-
else {
|
|
431
|
-
var a = u.get(this.source, ["p:spPr", "a:gradFill"]);
|
|
432
|
-
if (a) this.background = bt(a, this.theme, this);
|
|
433
|
-
else {
|
|
434
|
-
var s = u.get(this.source, ["p:spPr", "a:blipFill"]);
|
|
435
|
-
if (s) this.background = wt(s, this.pptx, this.ctx);
|
|
436
|
-
else {
|
|
437
|
-
var h = u.get(this.source, ["p:style", "a:fillRef"]);
|
|
438
|
-
h && (this.background = V(h, this.theme, this));
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}, r.prototype._parseBorder = function() {
|
|
444
|
-
var n = u.get(this.source, ["p:style", "a:lnRef"]);
|
|
445
|
-
if (n) {
|
|
446
|
-
var a = parseInt(n.attrs.idx), s = this.theme.getLineStyle(a);
|
|
447
|
-
this.border = I(I({}, s), this.border), this.border.color && this.border.color.color || (this.border.color = V(n, this.theme, this));
|
|
448
|
-
}
|
|
449
|
-
var h = u.get(this.source, ["p:spPr", "a:ln"]);
|
|
450
|
-
h && Object.assign(this.border, pt(h, this.theme, this)), this.border.color && this.border.color.color && !this.border.width && (this.border.width = r.defaultBorderWidth);
|
|
451
|
-
}, r.prototype._parseTxt = function() {
|
|
452
|
-
this.textBody = new Oe(u.get(this.source, ["p:txBody"]), this);
|
|
453
|
-
}, r.defaultBorderWidth = 0.75, r;
|
|
454
|
-
})(mt), Pt = (function(i) {
|
|
455
|
-
function r(n, a, s, h, p) {
|
|
456
|
-
var y, f, m = i.call(this, a, h, p) || this;
|
|
457
|
-
m.userDrawn = !0, m.pptx = s, m.path = n;
|
|
458
|
-
var g = u.get(m.source, ["p:blipFill", "a:srcRect"]);
|
|
459
|
-
g && (m.clip = {}, g.attrs.b && (m.clip.b = parseInt(g.attrs.b) / 1e5), g.attrs.t && (m.clip.t = parseInt(g.attrs.t) / 1e5), g.attrs.l && (m.clip.l = parseInt(g.attrs.l) / 1e5), g.attrs.r && (m.clip.r = parseInt(g.attrs.r) / 1e5));
|
|
460
|
-
var w = u.get(a, ["p:nvPicPr", "p:nvPr", "a:audioFile", "attrs", "r:link"]);
|
|
461
|
-
if (w) {
|
|
462
|
-
var j = (y = m.ctx.rels[w]) === null || y === void 0 ? void 0 : y.target;
|
|
463
|
-
m.audioFile = m.pptx.getMedia(j);
|
|
464
|
-
}
|
|
465
|
-
var L = u.get(a, ["p:nvPicPr", "p:nvPr", "a:videoFile", "attrs", "r:link"]);
|
|
466
|
-
if (L) {
|
|
467
|
-
var C = (f = m.ctx.rels[L]) === null || f === void 0 ? void 0 : f.target;
|
|
468
|
-
m.videoFile = m.pptx.getMedia(C);
|
|
469
|
-
}
|
|
470
|
-
return m;
|
|
471
|
-
}
|
|
472
|
-
return gt(r, i), Object.defineProperty(r.prototype, "base64", { get: function() {
|
|
473
|
-
return this.pptx.getMedia(this.path);
|
|
474
|
-
}, enumerable: !1, configurable: !0 }), r;
|
|
475
|
-
})(mt), je = (function(i) {
|
|
476
|
-
function r(n, a, s, h) {
|
|
477
|
-
var p = i.call(this, n, s, h) || this;
|
|
478
|
-
return p.userDrawn = !0, p.props = { tableStyleId: "" }, p.tableGrid = { gridCol: [] }, p.tr = [], p.tableStyles = {}, p.pptx = a, p._parseTableProps(), p._parseTableGrid(), p._parseTr(), p._parseInheritStyles(), p;
|
|
479
|
-
}
|
|
480
|
-
return gt(r, i), Object.defineProperty(r.prototype, "slideMaster", { get: function() {
|
|
481
|
-
return this.ctx.slideMaster || this.ctx;
|
|
482
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "theme", { get: function() {
|
|
483
|
-
return this.slideMaster.theme;
|
|
484
|
-
}, enumerable: !1, configurable: !0 }), r.prototype._parseTableProps = function() {
|
|
485
|
-
var n = u.get(this.source, ["a:graphic", "a:graphicData", "a:tbl", "a:tblPr"]);
|
|
486
|
-
this.props.tableStyleId = u.get(n, "a:tableStyleId"), this.tableStyles = u.get(this.slideMaster.tableStyles, this.props.tableStyleId) || {}, u.get(n, ["attrs", "bandCol"]) === "1" && (this.props.bandCol = !0), u.get(n, ["attrs", "bandRow"]) === "1" && (this.props.bandRow = !0), u.get(n, ["attrs", "firstCol"]) === "1" && (this.props.firstCol = !0), u.get(n, ["attrs", "firstRow"]) === "1" && (this.props.firstRow = !0), u.get(n, ["attrs", "lastCol"]) === "1" && (this.props.lastCol = !0), u.get(n, ["attrs", "lastRow"]) === "1" && (this.props.lastRow = !0);
|
|
487
|
-
}, r.prototype._parseTableGrid = function() {
|
|
488
|
-
var n = u.get(this.source, ["a:graphic", "a:graphicData", "a:tbl", "a:tblGrid", "a:gridCol"]);
|
|
489
|
-
if (n) for (var a = 0; a < n.length; a++) {
|
|
490
|
-
var s = u.get(n[a], ["attrs", "w"]);
|
|
491
|
-
this.tableGrid.gridCol.push({ width: W(parseInt(s)) });
|
|
492
|
-
}
|
|
493
|
-
}, r.prototype._parseTr = function() {
|
|
494
|
-
var n = [], a = u.get(this.source, ["a:graphic", "a:graphicData", "a:tbl", "a:tr"]);
|
|
495
|
-
Array.isArray(a) || (a = [a]);
|
|
496
|
-
for (var s = 0; s < a.length; s++) {
|
|
497
|
-
var h = { props: {}, td: [] }, p = a[s];
|
|
498
|
-
h.props.height = W(parseInt(u.get(p, ["attrs", "h"])));
|
|
499
|
-
var y = u.get(p, ["a:tc"]);
|
|
500
|
-
Array.isArray(y) || (y = [y]);
|
|
501
|
-
for (var f = 0; f < y.length; f++) h.td.push(this._parseTd(y[f]));
|
|
502
|
-
n.push(h);
|
|
503
|
-
}
|
|
504
|
-
this.tr = n;
|
|
505
|
-
}, r.prototype._parseTd = function(n) {
|
|
506
|
-
var a, s, h, p, y = this, f = { props: { border: {} }, paragraphs: [] }, m = u.get(n, ["a:tcPr", "attrs"]);
|
|
507
|
-
m != null && m.marB && (f.props.marB = W(parseInt(m == null ? void 0 : m.marB))), m != null && m.marT && (f.props.marT = W(parseInt(m == null ? void 0 : m.marT))), m != null && m.marL && (f.props.marL = W(parseInt(m == null ? void 0 : m.marL))), m != null && m.marR && (f.props.marR = W(parseInt(m == null ? void 0 : m.marR))), m != null && m.anchor && (f.props.anchor = m == null ? void 0 : m.anchor);
|
|
508
|
-
var g = u.get(n, ["a:tcPr"]);
|
|
509
|
-
u.get(g, ["a:lnR"]) && (f.props.border.right = pt(u.get(g, ["a:lnR"]), this.theme, this.ctx)), u.get(g, ["a:lnL"]) && (f.props.border.left = pt(u.get(g, ["a:lnL"]), this.theme, this.ctx)), u.get(g, ["a:lnT"]) && (f.props.border.top = pt(u.get(g, ["a:lnT"]), this.theme, this.ctx)), u.get(g, ["a:lnB"]) && (f.props.border.bottom = pt(u.get(g, ["a:lnB"]), this.theme, this.ctx)), !((a = n == null ? void 0 : n.attrs) === null || a === void 0) && a.rowSpan && (f.props.rowSpan = parseInt(n.attrs.rowSpan)), !((s = n == null ? void 0 : n.attrs) === null || s === void 0) && s.gridSpan && (f.props.gridSpan = parseInt(n.attrs.gridSpan)), !((h = n == null ? void 0 : n.attrs) === null || h === void 0) && h.vMerge && (f.props.vMerge = n.attrs.vMerge === "1"), !((p = n == null ? void 0 : n.attrs) === null || p === void 0) && p.hMerge && (f.props.hMerge = n.attrs.hMerge === "1");
|
|
510
|
-
var w = u.get(n, ["a:tcPr", "a:solidFill"]);
|
|
511
|
-
w && (f.props.background = V(w, this.theme, this.ctx));
|
|
512
|
-
var j = u.get(n, ["a:txBody"]), L = u.get(j, ["a:p"]);
|
|
513
|
-
return Array.isArray(L) || (L = [L]), f.paragraphs = L.map((function(C) {
|
|
514
|
-
return y._parseParagraph(C);
|
|
515
|
-
})), f;
|
|
516
|
-
}, r.prototype._parseParagraph = function(n) {
|
|
517
|
-
var a = this, s = { props: {}, inheritProps: {}, inheritRProps: {}, endParaRProps: {}, rows: [] }, h = u.get(n, ["a:pPr"]) || {};
|
|
518
|
-
s.props = this._formatPPr(h);
|
|
519
|
-
var p = u.get(n, ["a:endParaRPr"]);
|
|
520
|
-
s.endParaRProps = this._formatRPr(p);
|
|
521
|
-
var y = u.get(n, ["a:r"]) || [];
|
|
522
|
-
Array.isArray(y) || (y = [y]);
|
|
523
|
-
var f = u.get(n, ["a:br"]) || [];
|
|
524
|
-
return Array.isArray(f) || (f = [f]), (y = y.concat(f.map((function(m) {
|
|
525
|
-
return I({ isBr: !0 }, m);
|
|
526
|
-
})))).sort((function(m, g) {
|
|
527
|
-
return u.get(m, ["attrs", "order"]) - u.get(g, ["attrs", "order"]);
|
|
528
|
-
})), s.rows = y.map((function(m) {
|
|
529
|
-
return a._parseRow(m);
|
|
530
|
-
})), s;
|
|
531
|
-
}, r.prototype._parseRow = function(n) {
|
|
532
|
-
if (n.isBr) return { isBr: !0 };
|
|
533
|
-
var a = { props: {}, text: "" }, s = u.get(n, ["a:rPr"]) || {};
|
|
534
|
-
return a.props = this._formatRPr(s), a.text = u.get(n, "a:t") || "", a;
|
|
535
|
-
}, r.prototype._formatPPr = function(n) {
|
|
536
|
-
var a = {}, s = u.get(n, "attrs") || {};
|
|
537
|
-
return Object.keys(s).forEach((function(h) {
|
|
538
|
-
h === "algn" && (a.align = s[h]);
|
|
539
|
-
})), u.get(n, ["a:lnSpc", "a:spcPct", "attrs", "val"]) && (a.lineHeight = parseInt(n["a:lnSpc"]["a:spcPct"].attrs.val) / 1e5), u.get(n, ["a:buAutoNum", "attrs", "type"]) && (a.buAutoNum = n["a:buAutoNum"].attrs.type), u.get(n, ["a:buChar", "attrs", "char"]) && (a.buChar = n["a:buChar"].attrs.char), u.get(n, ["a:spcBef", "a:spcPts", "attrs", "val"]) && (a.spaceBefore = At(parseInt(n["a:spcBef"]["a:spcPts"].attrs.val))), u.get(n, ["a:spcAft", "a:spcPts", "attrs", "val"]) && (a.spaceAfter = At(parseInt(n["a:spcAft"]["a:spcPts"].attrs.val))), a;
|
|
540
|
-
}, r.prototype._formatRPr = function(n) {
|
|
541
|
-
var a = {}, s = u.get(n, "attrs") || {};
|
|
542
|
-
Object.keys(s).forEach((function(y) {
|
|
543
|
-
switch (y) {
|
|
544
|
-
case "sz":
|
|
545
|
-
a.size = parseInt(s[y]) / 100;
|
|
546
|
-
break;
|
|
547
|
-
case "b":
|
|
548
|
-
a.bold = s[y] === "1";
|
|
549
|
-
break;
|
|
550
|
-
case "i":
|
|
551
|
-
a.italic = s[y] === "1";
|
|
552
|
-
break;
|
|
553
|
-
case "u":
|
|
554
|
-
a.underline = s[y];
|
|
555
|
-
break;
|
|
556
|
-
case "strike":
|
|
557
|
-
a.strike = s[y];
|
|
558
|
-
break;
|
|
559
|
-
case "order":
|
|
560
|
-
case "dirty":
|
|
561
|
-
break;
|
|
562
|
-
default:
|
|
563
|
-
a[y] = s[y];
|
|
564
|
-
}
|
|
565
|
-
}));
|
|
566
|
-
var h = u.get(n, "a:solidFill");
|
|
567
|
-
h && (a.color = V(h, this.theme, this.ctx));
|
|
568
|
-
var p = u.get(n, "a:highlight");
|
|
569
|
-
return p && (a.background = V(p, this.theme, this.ctx)), a.typeface = u.get(n, ["a:ea", "attrs", "typeface"]), a;
|
|
570
|
-
}, r.prototype._isLastCol = function(n, a) {
|
|
571
|
-
var s, h;
|
|
572
|
-
if (a === n.length - 1) return !0;
|
|
573
|
-
for (var p = a + 1; p < n.length; p++) if (!(!((s = n[p].props) === null || s === void 0) && s.hMerge) && !(!((h = n[p].props) === null || h === void 0) && h.vMerge)) return !1;
|
|
574
|
-
return !0;
|
|
575
|
-
}, r.prototype._isBandRow = function(n) {
|
|
576
|
-
var a;
|
|
577
|
-
return !((a = this.props) === null || a === void 0) && a.firstRow ? n % 2 == 1 : n % 2 == 0;
|
|
578
|
-
}, r.prototype._isBandCol = function(n) {
|
|
579
|
-
var a;
|
|
580
|
-
return !((a = this.props) === null || a === void 0) && a.firstCol ? n % 2 == 1 : n % 2 == 0;
|
|
581
|
-
}, r.prototype._parseInheritStyles = function() {
|
|
582
|
-
var n, a, s, h, p, y, f, m, g = this, w = (a = (n = this.tableStyles) === null || n === void 0 ? void 0 : n.wholeTbl) === null || a === void 0 ? void 0 : a.tcStyle, j = (h = (s = this.tableStyles) === null || s === void 0 ? void 0 : s.wholeTbl) === null || h === void 0 ? void 0 : h.tcTxStyle, L = (y = (p = this.slideMaster.defaultTextStyle) === null || p === void 0 ? void 0 : p.lvl1) === null || y === void 0 ? void 0 : y.props, C = (m = (f = this.slideMaster.defaultTextStyle) === null || f === void 0 ? void 0 : f.lvl1) === null || m === void 0 ? void 0 : m.defRPr;
|
|
583
|
-
this.tr.forEach((function(B, k) {
|
|
584
|
-
B.td.forEach((function(c, t) {
|
|
585
|
-
var o, e, l, d, b, v, x, P, S, R, _, O, N, D, G, H, E, z, Q, q, X, $, tt, et, rt, ot, St, Ct, It, Rt, Bt, _t, Tt, Ot, Et, Nt, Dt, Ft, Zt, Gt, zt, Wt, Ht, Qt, Vt, Xt, qt, Ut, Yt, Jt, Kt, $t, te, ee, ae, re, Z = I(I({}, L), w), J = I(I({}, C), j);
|
|
586
|
-
g.props.firstRow && k === 0 ? (Z = I(I(I({}, Z), (e = (o = g.tableStyles) === null || o === void 0 ? void 0 : o.firstRow) === null || e === void 0 ? void 0 : e.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (b = (d = (l = g.tableStyles) === null || l === void 0 ? void 0 : l.firstRow) === null || d === void 0 ? void 0 : d.tcStyle) === null || b === void 0 ? void 0 : b.border) }), J = I(I({}, J), (x = (v = g.tableStyles) === null || v === void 0 ? void 0 : v.firstRow) === null || x === void 0 ? void 0 : x.tcTxStyle)) : g.props.lastRow && k === g.tr.length - 1 ? (Z = I(I(I({}, Z), (S = (P = g.tableStyles) === null || P === void 0 ? void 0 : P.lastRow) === null || S === void 0 ? void 0 : S.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (O = (_ = (R = g.tableStyles) === null || R === void 0 ? void 0 : R.lastRow) === null || _ === void 0 ? void 0 : _.tcStyle) === null || O === void 0 ? void 0 : O.border) }), J = I(I({}, J), (D = (N = g.tableStyles) === null || N === void 0 ? void 0 : N.lastRow) === null || D === void 0 ? void 0 : D.tcTxStyle)) : g.props.firstCol && t === 0 ? (Z = I(I(I({}, Z), (H = (G = g.tableStyles) === null || G === void 0 ? void 0 : G.firstCol) === null || H === void 0 ? void 0 : H.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (Q = (z = (E = g.tableStyles) === null || E === void 0 ? void 0 : E.firstCol) === null || z === void 0 ? void 0 : z.tcStyle) === null || Q === void 0 ? void 0 : Q.border) }), J = I(I({}, J), (X = (q = g.tableStyles) === null || q === void 0 ? void 0 : q.firstCol) === null || X === void 0 ? void 0 : X.tcTxStyle)) : g.props.lastCol && g._isLastCol(B.td, t) ? (Z = I(I(I({}, Z), (tt = ($ = g.tableStyles) === null || $ === void 0 ? void 0 : $.lastCol) === null || tt === void 0 ? void 0 : tt.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (ot = (rt = (et = g.tableStyles) === null || et === void 0 ? void 0 : et.lastCol) === null || rt === void 0 ? void 0 : rt.tcStyle) === null || ot === void 0 ? void 0 : ot.border) }), J = I(I({}, J), (Ct = (St = g.tableStyles) === null || St === void 0 ? void 0 : St.lastCol) === null || Ct === void 0 ? void 0 : Ct.tcTxStyle)) : (g.props.bandRow && (g._isBandRow(k) ? (Z = I(I(I({}, Z), (Rt = (It = g.tableStyles) === null || It === void 0 ? void 0 : It.band1H) === null || Rt === void 0 ? void 0 : Rt.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (Tt = (_t = (Bt = g.tableStyles) === null || Bt === void 0 ? void 0 : Bt.band1H) === null || _t === void 0 ? void 0 : _t.tcStyle) === null || Tt === void 0 ? void 0 : Tt.border) }), J = I(I({}, J), (Et = (Ot = g.tableStyles) === null || Ot === void 0 ? void 0 : Ot.band1H) === null || Et === void 0 ? void 0 : Et.tcTxStyle)) : (Z = I(I(I({}, Z), (Dt = (Nt = g.tableStyles) === null || Nt === void 0 ? void 0 : Nt.band2V) === null || Dt === void 0 ? void 0 : Dt.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (Gt = (Zt = (Ft = g.tableStyles) === null || Ft === void 0 ? void 0 : Ft.band2V) === null || Zt === void 0 ? void 0 : Zt.tcStyle) === null || Gt === void 0 ? void 0 : Gt.border) }), J = I(I({}, J), (Wt = (zt = g.tableStyles) === null || zt === void 0 ? void 0 : zt.band2V) === null || Wt === void 0 ? void 0 : Wt.tcTxStyle))), g.props.bandCol && (g._isBandCol(t) ? (Z = I(I(I({}, Z), (Qt = (Ht = g.tableStyles) === null || Ht === void 0 ? void 0 : Ht.band1V) === null || Qt === void 0 ? void 0 : Qt.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (qt = (Xt = (Vt = g.tableStyles) === null || Vt === void 0 ? void 0 : Vt.band1V) === null || Xt === void 0 ? void 0 : Xt.tcStyle) === null || qt === void 0 ? void 0 : qt.border) }), J = I(I({}, J), (Yt = (Ut = g.tableStyles) === null || Ut === void 0 ? void 0 : Ut.band1V) === null || Yt === void 0 ? void 0 : Yt.tcTxStyle)) : (Z = I(I(I({}, Z), (Kt = (Jt = g.tableStyles) === null || Jt === void 0 ? void 0 : Jt.band2H) === null || Kt === void 0 ? void 0 : Kt.tcStyle), { border: I(I({}, Z == null ? void 0 : Z.border), (ee = (te = ($t = g.tableStyles) === null || $t === void 0 ? void 0 : $t.band2H) === null || te === void 0 ? void 0 : te.tcStyle) === null || ee === void 0 ? void 0 : ee.border) }), J = I(I({}, J), (re = (ae = g.tableStyles) === null || ae === void 0 ? void 0 : ae.band2H) === null || re === void 0 ? void 0 : re.tcTxStyle)))), c.inheritTcStyle = Z, c.inheritTcTxStyle = J;
|
|
587
|
-
}));
|
|
588
|
-
}));
|
|
589
|
-
}, r;
|
|
590
|
-
})(mt), de = (function() {
|
|
591
|
-
function i(r, n, a, s) {
|
|
592
|
-
if (this.offset = { x: 0, y: 0 }, this.chOffset = { x: 0, y: 0 }, this.extend = { w: 0, h: 0 }, this.chExtend = { w: 0, h: 0 }, this.rotate = 0, this.nodes = [], this.flipV = !1, this.flipH = !1, this.userDrawn = !0, this.order = u.get(r, ["attrs", "order"]), this.pptx = n, this.ctx = a, this.source = r, this.group = s, this.source["p:grpSpPr"]) {
|
|
593
|
-
var h = u.get(this.source, ["p:grpSpPr", "a:xfrm"]);
|
|
594
|
-
if (h && (this.offset = { x: Math.round(this.group && this.pptx.wps ? ct(parseInt(h["a:off"].attrs.x)) : W(parseInt(h["a:off"].attrs.x))), y: Math.round(this.group && this.pptx.wps ? ct(parseInt(h["a:off"].attrs.y)) : W(parseInt(h["a:off"].attrs.y))) }, this.chOffset = { x: Math.round(ht(h["a:chOff"].attrs.x) === "point" || this.pptx.wps ? ct(parseInt(h["a:chOff"].attrs.x)) : W(parseInt(h["a:chOff"].attrs.x))), y: Math.round(ht(h["a:chOff"].attrs.y) === "point" || this.pptx.wps ? ct(parseInt(h["a:chOff"].attrs.y)) : W(parseInt(h["a:chOff"].attrs.y))) }, this.chExtend = { w: Math.round(ht(h["a:chExt"].attrs.cx) === "point" || this.pptx.wps ? ct(parseInt(h["a:chExt"].attrs.cx)) : W(parseInt(h["a:chExt"].attrs.cx))), h: Math.round(ht(h["a:chExt"].attrs.cy) === "point" || this.pptx.wps ? ct(parseInt(h["a:chExt"].attrs.cy)) : W(parseInt(h["a:chExt"].attrs.cy))) }, this.extend = { w: Math.round(this.group && this.pptx.wps ? ct(parseInt(h["a:ext"].attrs.cx)) : W(parseInt(h["a:ext"].attrs.cx))), h: Math.round(this.group && this.pptx.wps ? ct(parseInt(h["a:ext"].attrs.cy)) : W(parseInt(h["a:ext"].attrs.cy))) }, this.rotate = jt(parseInt(u.get(h, "attrs.rot", 0))), this.flipV = u.get(h, "attrs.flipV") === "1", this.flipH = u.get(h, "attrs.flipH") === "1"), s) {
|
|
595
|
-
var p = s.extend, y = s.chExtend, f = s.chOffset, m = p.w / y.w, g = p.h / y.h;
|
|
596
|
-
this.extend.w = this.extend.w * m, this.extend.h = this.extend.h * g, this.offset.x = (this.offset.x - f.x) * m, this.offset.y = (this.offset.y - f.y) * g;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
this._parseBackground(), this._parseNodes();
|
|
600
|
-
}
|
|
601
|
-
return i.prototype.getBackground = function() {
|
|
602
|
-
return this.background && this.background.type !== "none" ? this.background : this.group ? this.group.getBackground() : void 0;
|
|
603
|
-
}, i.prototype._parseBackground = function() {
|
|
604
|
-
var r = u.get(this.source, ["p:grpSpPr"]);
|
|
605
|
-
r && r["a:solidFill"] ? this.background = V(r["a:solidFill"], this.ctx.theme, this.ctx) : r && r["a:gradFill"] ? this.background = bt(r["a:gradFill"], this.ctx.theme, this.ctx) : r && r["a:blipFill"] && (this.background = wt(r["a:blipFill"], this.pptx, this.ctx));
|
|
606
|
-
}, i.prototype._parseNodes = function() {
|
|
607
|
-
var r = this.source;
|
|
608
|
-
xt(this.nodes, r, this.pptx, this.ctx, this);
|
|
609
|
-
}, i;
|
|
610
|
-
})(), Se = (function(i) {
|
|
611
|
-
function r(n, a, s, h) {
|
|
612
|
-
var p = i.call(this, n, s, h) || this;
|
|
613
|
-
return p.nodes = [], p.pptx = a, p;
|
|
614
|
-
}
|
|
615
|
-
return gt(r, i), r.prototype.parseNode = function() {
|
|
616
|
-
return U(this, void 0, void 0, (function() {
|
|
617
|
-
var n, a, s, h, p, y, f, m, g;
|
|
618
|
-
return Y(this, (function(w) {
|
|
619
|
-
switch (w.label) {
|
|
620
|
-
case 0:
|
|
621
|
-
return w.trys.push([0, 3, , 4]), (n = u.get(this.source, ["a:graphic", "a:graphicData", "dgm:relIds", "attrs", "r:dm"])) && this.ctx.rels[n] ? (a = this.ctx.rels[n].target, h = at, [4, this.pptx.getXmlByPath(a)]) : [2];
|
|
622
|
-
case 1:
|
|
623
|
-
return s = h.apply(void 0, [w.sent()]), (p = u.get(s, ["dgm:dataModel", "dgm:extLst", "a:ext", "dsp:dataModelExt", "attrs", "relId"])) && this.ctx.rels[p] ? (y = this.ctx.rels[p].target, [4, this.pptx.getXmlByPath(y)]) : [2];
|
|
624
|
-
case 2:
|
|
625
|
-
return f = (f = w.sent()).replace(/dsp:/g, "p:"), m = at(f), g = u.get(m, ["p:drawing", "p:spTree"]), xt(this.nodes, g, this.pptx, this.ctx), [3, 4];
|
|
626
|
-
case 3:
|
|
627
|
-
return w.sent(), [3, 4];
|
|
628
|
-
case 4:
|
|
629
|
-
return [2];
|
|
630
|
-
}
|
|
631
|
-
}));
|
|
632
|
-
}));
|
|
633
|
-
}, r;
|
|
634
|
-
})(mt), Ce = (function(i) {
|
|
635
|
-
function r(n, a, s, h) {
|
|
636
|
-
var p = i.call(this, n, s, h) || this;
|
|
637
|
-
return p.options = { title: {}, tooltip: {}, legend: {}, series: [], color: [] }, p.userDrawn = !0, p.pptx = a, p;
|
|
638
|
-
}
|
|
639
|
-
return gt(r, i), Object.defineProperty(r.prototype, "slideMaster", { get: function() {
|
|
640
|
-
return this.ctx.slideMaster || this.ctx;
|
|
641
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "theme", { get: function() {
|
|
642
|
-
return this.slideMaster.theme;
|
|
643
|
-
}, enumerable: !1, configurable: !0 }), r.prototype.parseNode = function() {
|
|
644
|
-
return U(this, void 0, void 0, (function() {
|
|
645
|
-
var n, a, s, h, p, y;
|
|
646
|
-
return Y(this, (function(f) {
|
|
647
|
-
switch (f.label) {
|
|
648
|
-
case 0:
|
|
649
|
-
return f.trys.push([0, 2, , 3]), (n = u.get(this.source, ["a:graphic", "a:graphicData", "c:chart", "attrs", "r:id"])) && this.ctx.rels[n] ? (a = this.ctx.rels[n].target, h = at, [4, this.pptx.getXmlByPath(a)]) : [2];
|
|
650
|
-
case 1:
|
|
651
|
-
return s = h.apply(void 0, [f.sent()]), p = u.get(s, ["c:chartSpace", "c:chart"]), y = u.get(p, ["c:plotArea"]), u.get(y, ["c:lineChart"]) ? this.parseLine(u.get(y, ["c:lineChart"]), p) : u.get(y, ["c:line3DChart"]) ? this.parseLine(u.get(y, ["c:line3DChart"]), p) : u.get(y, ["c:areaChart"]) ? this.parseAreaLine(u.get(y, ["c:areaChart"]), p) : u.get(y, ["c:area3DChart"]) ? this.parseAreaLine(u.get(y, ["c:area3DChart"]), p) : u.get(y, ["c:barChart"]) ? this.parseBar(u.get(y, ["c:barChart"]), p) : u.get(y, ["c:bar3DChart"]) ? this.parseBar(u.get(y, ["c:bar3DChart"]), p) : u.get(y, ["c:pieChart"]) ? this.parsePie(u.get(y, ["c:pieChart"])) : u.get(y, ["c:pie3DChart"]) ? this.parsePie(u.get(y, ["c:pie3DChart"])) : u.get(y, ["c:doughnutChart"]) && this.parseDoughnutChart(u.get(y, ["c:doughnutChart"])), [3, 3];
|
|
652
|
-
case 2:
|
|
653
|
-
return f.sent(), [3, 3];
|
|
654
|
-
case 3:
|
|
655
|
-
return [2];
|
|
656
|
-
}
|
|
657
|
-
}));
|
|
658
|
-
}));
|
|
659
|
-
}, r.prototype.parseAreaLine = function(n, a) {
|
|
660
|
-
this.parseLine(n, a), this.options.series = this.options.series.map((function(s) {
|
|
661
|
-
return s.areaStyle = {}, s;
|
|
662
|
-
}));
|
|
663
|
-
}, r.prototype.parseLine = function(n, a) {
|
|
664
|
-
var s = u.get(n, ["c:ser"]);
|
|
665
|
-
Array.isArray(s) || (s = [s]), this.options.title = { top: "top", left: "center", text: this.parseChartTitle(u.get(a, ["c:title"])) }, this.options.xAxis = { type: "category", data: this.getCategory(s[0]) }, this.options.yAxis = { type: "value" }, this.options.series = this.parseLineSeries(s, n), this.options.color = this.parseLineColors(s), this.options.legend = { bottom: "bottom", left: "center" }, u.get(n, ["c:grouping", "attrs", "val"]) === "percentStacked" && (this.options.tooltip.valueFormatter = function(h) {
|
|
666
|
-
return (100 * h).toFixed(2) + "%";
|
|
667
|
-
});
|
|
668
|
-
}, r.prototype.parseBar = function(n, a) {
|
|
669
|
-
var s = u.get(n, ["c:ser"]);
|
|
670
|
-
Array.isArray(s) || (s = [s]), this.options.title = { top: "top", left: "center", text: this.parseChartTitle(u.get(a, ["c:title"])) }, u.get(n, ["c:barDir", "attrs", "val"]) === "bar" ? (this.options.yAxis = { type: "category", data: this.getCategory(s[0]) }, this.options.xAxis = { type: "value" }) : (this.options.xAxis = { type: "category", data: this.getCategory(s[0]) }, this.options.yAxis = { type: "value" }), this.options.series = this.parseBarSeries(s, n), this.options.color = this.parseBarColors(s), this.options.legend = { bottom: "bottom", left: "center" }, u.get(n, ["c:grouping", "attrs", "val"]) === "percentStacked" && (this.options.tooltip.valueFormatter = function(h) {
|
|
671
|
-
return (100 * h).toFixed(2) + "%";
|
|
672
|
-
});
|
|
673
|
-
}, r.prototype.parsePie = function(n) {
|
|
674
|
-
var a = u.get(n, ["c:ser"]);
|
|
675
|
-
this.options.title = { top: "top", left: "center", text: this.parsePieTitle(a) }, this.options.color = this.parsePieColors(a), this.options.series = [this.parsePieSeries(a, n)], this.options.legend = { bottom: "bottom", left: "center" };
|
|
676
|
-
}, r.prototype.parseDoughnutChart = function(n) {
|
|
677
|
-
var a = u.get(n, ["c:ser"]);
|
|
678
|
-
this.options.title.text = this.parsePieTitle(a), this.options.color = this.parsePieColors(a), this.options.series = [this.parsePieSeries(a, n)], this.options.legend = { bottom: "bottom", left: "center" };
|
|
679
|
-
}, r.prototype.parsePieTitle = function(n) {
|
|
680
|
-
return u.get(n, ["c:tx", "c:strRef", "c:strCache", "c:pt", "c:v"]);
|
|
681
|
-
}, r.prototype.parseChartTitle = function(n) {
|
|
682
|
-
var a = u.get(n, ["c:tx", "c:rich", "a:p"]);
|
|
683
|
-
return Array.isArray(a) || (a = [a]), a.map((function(s) {
|
|
684
|
-
var h = u.get(s, ["a:r"]);
|
|
685
|
-
return Array.isArray(h) || (h = [h]), h.map((function(p) {
|
|
686
|
-
return u.get(p, ["a:t"]) || "";
|
|
687
|
-
})).join("");
|
|
688
|
-
})).join("") || "图表标题";
|
|
689
|
-
}, r.prototype.parseBarColors = function(n) {
|
|
690
|
-
var a = this;
|
|
691
|
-
return n.map((function(s) {
|
|
692
|
-
return F(V(u.get(s, ["c:spPr", "a:solidFill"]), a.theme, a.ctx));
|
|
693
|
-
}));
|
|
694
|
-
}, r.prototype.parseLineColors = function(n) {
|
|
695
|
-
var a = this;
|
|
696
|
-
return n.map((function(s) {
|
|
697
|
-
return F(V(u.get(s, ["c:spPr", "a:ln", "a:solidFill"]) || u.get(s, ["c:spPr", "a:solidFill"]), a.theme, a.ctx));
|
|
698
|
-
}));
|
|
699
|
-
}, r.prototype.parsePieColors = function(n) {
|
|
700
|
-
var a = this, s = [], h = u.get(n, ["c:dPt"]);
|
|
701
|
-
return Array.isArray(h) || (h = [h]), h.forEach((function(p) {
|
|
702
|
-
s.push(F(V(u.get(p, ["c:spPr", "a:solidFill"]), a.theme, a.ctx)));
|
|
703
|
-
})), s;
|
|
704
|
-
}, r.prototype.parsePieSeries = function(n, a) {
|
|
705
|
-
var s = { type: "pie", radius: "80%", startAngle: 90, data: [] };
|
|
706
|
-
u.get(a, ["c:holeSize", "attrs", "val"]) && (s.radius = ["".concat(0.8 * u.get(a, ["c:holeSize", "attrs", "val"]), "%"), "80%"]);
|
|
707
|
-
var h = u.get(a, ["c:firstSliceAng", "attrs", "val"]);
|
|
708
|
-
h && (s.startAngle = 90 - h);
|
|
709
|
-
for (var p = this.getCategory(n), y = this.getVal(n), f = 0; f < p.length; f++) s.data.push({ name: p[f], value: y[f] });
|
|
710
|
-
return s;
|
|
711
|
-
}, r.prototype.parseBarSeries = function(n, a) {
|
|
712
|
-
var s, h = this, p = u.get(a, ["c:grouping", "attrs", "val"]);
|
|
713
|
-
p === "stacked" ? s = "Ad" : p === "percentStacked" && (s = "total");
|
|
714
|
-
var y = n.map((function(m) {
|
|
715
|
-
return { type: "bar", name: u.get(m, ["c:tx", "c:strRef", "c:strCache", "c:pt", "c:v"]), data: h.getVal(m), stack: s };
|
|
716
|
-
}));
|
|
717
|
-
if (p === "percentStacked") {
|
|
718
|
-
var f = [];
|
|
719
|
-
y.forEach((function(m, g) {
|
|
720
|
-
f = g === 0 ? yt([], m.data, !0) : f.map((function(w, j) {
|
|
721
|
-
return w + m.data[j];
|
|
722
|
-
}));
|
|
723
|
-
})), y.forEach((function(m) {
|
|
724
|
-
m.data = m.data.map((function(g, w) {
|
|
725
|
-
return f[w] <= 0 ? 0 : g / f[w];
|
|
726
|
-
}));
|
|
727
|
-
}));
|
|
728
|
-
}
|
|
729
|
-
return y;
|
|
730
|
-
}, r.prototype.parseLineSeries = function(n, a) {
|
|
731
|
-
var s, h = this, p = u.get(a, ["c:grouping", "attrs", "val"]);
|
|
732
|
-
p === "stacked" ? s = "Ad" : p === "percentStacked" && (s = "total");
|
|
733
|
-
var y = n.map((function(m) {
|
|
734
|
-
return { type: "line", name: u.get(m, ["c:tx", "c:strRef", "c:strCache", "c:pt", "c:v"]), data: h.getVal(m), stack: s };
|
|
735
|
-
}));
|
|
736
|
-
if (s === "total") {
|
|
737
|
-
var f = [];
|
|
738
|
-
y.forEach((function(m, g) {
|
|
739
|
-
f = g === 0 ? yt([], m.data, !0) : f.map((function(w, j) {
|
|
740
|
-
return w + m.data[j];
|
|
741
|
-
}));
|
|
742
|
-
})), y.forEach((function(m) {
|
|
743
|
-
m.data = m.data.map((function(g, w) {
|
|
744
|
-
return f[w] <= 0 ? 0 : g / f[w];
|
|
745
|
-
}));
|
|
746
|
-
}));
|
|
747
|
-
}
|
|
748
|
-
return y;
|
|
749
|
-
}, r.prototype.getCategory = function(n) {
|
|
750
|
-
if (u.get(n, ["c:cat", "c:strRef"])) {
|
|
751
|
-
var a = u.get(n, ["c:cat", "c:strRef", "c:strCache", "c:pt"]);
|
|
752
|
-
return Array.isArray(a) || (a = [a]), a.map((function(s) {
|
|
753
|
-
return u.get(s, ["c:v"]);
|
|
754
|
-
}));
|
|
755
|
-
}
|
|
756
|
-
if (u.get(n, ["c:cat", "c:numRef"]))
|
|
757
|
-
return a = u.get(n, ["c:cat", "c:numRef", "c:numCache", "c:pt"]), Array.isArray(a) || (a = [a]), a.map((function(s) {
|
|
758
|
-
return u.get(s, ["c:v"]);
|
|
759
|
-
}));
|
|
760
|
-
}, r.prototype.getVal = function(n) {
|
|
761
|
-
var a = u.get(n, ["c:val", "c:numRef", "c:numCache", "c:pt"]);
|
|
762
|
-
return Array.isArray(a) || (a = [a]), a.map((function(s) {
|
|
763
|
-
return +u.get(s, ["c:v"]);
|
|
764
|
-
}));
|
|
765
|
-
}, r;
|
|
766
|
-
})(mt);
|
|
767
|
-
function fe(i) {
|
|
768
|
-
var r = {}, n = u.get(i, "attrs") || {};
|
|
769
|
-
return Object.keys(n).forEach((function(a) {
|
|
770
|
-
switch (a) {
|
|
771
|
-
case "algn":
|
|
772
|
-
r.align = n[a];
|
|
773
|
-
break;
|
|
774
|
-
case "marL":
|
|
775
|
-
r.marginLeft = W(parseInt(n[a]));
|
|
776
|
-
break;
|
|
777
|
-
case "indent":
|
|
778
|
-
r.indent = W(parseInt(n[a]));
|
|
779
|
-
break;
|
|
780
|
-
case "lvl":
|
|
781
|
-
r.level = n[a];
|
|
782
|
-
}
|
|
783
|
-
})), u.get(i, ["a:lnSpc", "a:spcPct", "attrs", "val"]) && (r.lineHeight = parseInt(i["a:lnSpc"]["a:spcPct"].attrs.val) / 1e5), r;
|
|
784
|
-
}
|
|
785
|
-
function ye(i, r, n) {
|
|
786
|
-
var a = {}, s = u.get(i, "attrs") || {};
|
|
787
|
-
Object.keys(s).forEach((function(p) {
|
|
788
|
-
switch (p) {
|
|
789
|
-
case "sz":
|
|
790
|
-
a.size = parseInt(s[p]) / 100;
|
|
791
|
-
break;
|
|
792
|
-
case "b":
|
|
793
|
-
a.bold = s[p] === "1";
|
|
794
|
-
break;
|
|
795
|
-
case "i":
|
|
796
|
-
a.italic = s[p] === "1";
|
|
797
|
-
break;
|
|
798
|
-
case "u":
|
|
799
|
-
a.underline = s[p];
|
|
800
|
-
break;
|
|
801
|
-
case "strike":
|
|
802
|
-
a.strike = s[p];
|
|
803
|
-
break;
|
|
804
|
-
case "order":
|
|
805
|
-
case "dirty":
|
|
806
|
-
break;
|
|
807
|
-
default:
|
|
808
|
-
a[p] = s[p];
|
|
809
|
-
}
|
|
810
|
-
}));
|
|
811
|
-
var h = u.get(i, "a:solidFill");
|
|
812
|
-
return h && (a.color = V(h, r, n)), a;
|
|
813
|
-
}
|
|
814
|
-
function xt(i, r, n, a, s) {
|
|
815
|
-
return U(this, void 0, void 0, (function() {
|
|
816
|
-
var h, p, y, f, m, g, w, j, L, C, B, k, c, t, o, e, l, d, b, v, x;
|
|
817
|
-
return Y(this, (function(P) {
|
|
818
|
-
switch (P.label) {
|
|
819
|
-
case 0:
|
|
820
|
-
for (y in p = [], h = r) p.push(y);
|
|
821
|
-
f = 0, P.label = 1;
|
|
822
|
-
case 1:
|
|
823
|
-
if (!(f < p.length)) return [3, 17];
|
|
824
|
-
if (!((y = p[f]) in h)) return [3, 16];
|
|
825
|
-
switch (m = y) {
|
|
826
|
-
case "p:sp":
|
|
827
|
-
return [3, 2];
|
|
828
|
-
case "p:pic":
|
|
829
|
-
return [3, 3];
|
|
830
|
-
case "p:cxnSp":
|
|
831
|
-
return [3, 4];
|
|
832
|
-
case "p:graphicFrame":
|
|
833
|
-
return [3, 5];
|
|
834
|
-
case "p:grpSp":
|
|
835
|
-
return [3, 14];
|
|
836
|
-
}
|
|
837
|
-
return [3, 15];
|
|
838
|
-
case 2:
|
|
839
|
-
for (g = Array.isArray(r[m]) ? r[m] : [r[m]], v = 0; v < g.length; v++) c = g[v], i.push(new vt(c, n, a, s));
|
|
840
|
-
return [3, 16];
|
|
841
|
-
case 3:
|
|
842
|
-
for (w = Array.isArray(r[m]) ? r[m] : [r[m]], v = 0; v < w.length; v++) j = w[v], L = j["p:blipFill"]["a:blip"].attrs["r:embed"], C = a.rels[L].target, B = new Pt(C, j, n, a, s), i.push(B);
|
|
843
|
-
return [3, 16];
|
|
844
|
-
case 4:
|
|
845
|
-
for (k = Array.isArray(r[m]) ? r[m] : [r[m]], v = 0; v < k.length; v++) c = k[v], i.push(new vt(c, n, a, s));
|
|
846
|
-
return [3, 16];
|
|
847
|
-
case 5:
|
|
848
|
-
t = Array.isArray(r[m]) ? r[m] : [r[m]], v = 0, P.label = 6;
|
|
849
|
-
case 6:
|
|
850
|
-
if (!(v < t.length)) return [3, 13];
|
|
851
|
-
switch (o = t[v], e = u.get(o, ["a:graphic", "a:graphicData", "attrs", "uri"]), e) {
|
|
852
|
-
case "http://schemas.openxmlformats.org/drawingml/2006/table":
|
|
853
|
-
return [3, 7];
|
|
854
|
-
case "http://schemas.openxmlformats.org/drawingml/2006/diagram":
|
|
855
|
-
return [3, 8];
|
|
856
|
-
case "http://schemas.openxmlformats.org/drawingml/2006/chart":
|
|
857
|
-
return [3, 10];
|
|
858
|
-
}
|
|
859
|
-
return [3, 12];
|
|
860
|
-
case 7:
|
|
861
|
-
return i.push(new je(o, n, a, s)), [3, 12];
|
|
862
|
-
case 8:
|
|
863
|
-
return [4, (l = new Se(o, n, a, s)).parseNode()];
|
|
864
|
-
case 9:
|
|
865
|
-
return P.sent(), i.push(l), [3, 12];
|
|
866
|
-
case 10:
|
|
867
|
-
return [4, (d = new Ce(o, n, a, s)).parseNode()];
|
|
868
|
-
case 11:
|
|
869
|
-
return P.sent(), i.push(d), [3, 12];
|
|
870
|
-
case 12:
|
|
871
|
-
return v++, [3, 6];
|
|
872
|
-
case 13:
|
|
873
|
-
return [3, 16];
|
|
874
|
-
case 14:
|
|
875
|
-
for (b = Array.isArray(r[m]) ? r[m] : [r[m]], v = 0; v < b.length; v++) x = b[v], i.push(new de(x, n, a, s));
|
|
876
|
-
return [3, 16];
|
|
877
|
-
case 15:
|
|
878
|
-
return [3, 16];
|
|
879
|
-
case 16:
|
|
880
|
-
return f++, [3, 1];
|
|
881
|
-
case 17:
|
|
882
|
-
return [2];
|
|
883
|
-
}
|
|
884
|
-
}));
|
|
885
|
-
}));
|
|
886
|
-
}
|
|
887
|
-
var Ee = (function() {
|
|
888
|
-
function i(r, n, a) {
|
|
889
|
-
this.slideType = "slide", this.rels = {}, this.background = { type: "none" }, this.nodes = [], this.name = r, this.source = n, this.pptx = a;
|
|
890
|
-
}
|
|
891
|
-
return Object.defineProperty(i.prototype, "index", { get: function() {
|
|
892
|
-
if (!this.name) return 0;
|
|
893
|
-
var r = this.name.match(/(\d+)/);
|
|
894
|
-
return r ? parseInt(r[0]) : 1;
|
|
895
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "slideMaster", { get: function() {
|
|
896
|
-
return this.slideLayout && this.slideLayout.slideMaster;
|
|
897
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "theme", { get: function() {
|
|
898
|
-
return this.slideMaster.theme;
|
|
899
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "_relsPath", { get: function() {
|
|
900
|
-
return this.name.replace("slides/slide", "slides/_rels/slide") + ".rels";
|
|
901
|
-
}, enumerable: !1, configurable: !0 }), i.prototype.load = function() {
|
|
902
|
-
return U(this, void 0, void 0, (function() {
|
|
903
|
-
return Y(this, (function(r) {
|
|
904
|
-
switch (r.label) {
|
|
905
|
-
case 0:
|
|
906
|
-
return [4, this._loadRels()];
|
|
907
|
-
case 1:
|
|
908
|
-
return r.sent(), this._loadBackground(), [4, this._loadNodes()];
|
|
909
|
-
case 2:
|
|
910
|
-
return r.sent(), [2];
|
|
911
|
-
}
|
|
912
|
-
}));
|
|
913
|
-
}));
|
|
914
|
-
}, i.prototype._loadRels = function() {
|
|
915
|
-
return U(this, void 0, void 0, (function() {
|
|
916
|
-
var r, n, a, s = this;
|
|
917
|
-
return Y(this, (function(h) {
|
|
918
|
-
switch (h.label) {
|
|
919
|
-
case 0:
|
|
920
|
-
return n = at, [4, this.pptx.getXmlByPath(this._relsPath)];
|
|
921
|
-
case 1:
|
|
922
|
-
return r = n.apply(void 0, [h.sent()]), a = u.get(r, ["Relationships", "Relationship"]) || [], Array.isArray(a) || (a = [a]), a.forEach((function(p) {
|
|
923
|
-
switch (u.get(p, ["attrs", "Type"])) {
|
|
924
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":
|
|
925
|
-
var y = p.attrs.Target.replace("../", "ppt/");
|
|
926
|
-
y.startsWith("/ppt") && (y = y.substr(1)), s.slideLayout = s.pptx.getSlideLayout(y);
|
|
927
|
-
break;
|
|
928
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":
|
|
929
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":
|
|
930
|
-
case "http://schemas.microsoft.com/office/2007/relationships/media":
|
|
931
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":
|
|
932
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":
|
|
933
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":
|
|
934
|
-
case "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":
|
|
935
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":
|
|
936
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":
|
|
937
|
-
var f = p.attrs.Target.replace("../", "ppt/");
|
|
938
|
-
f.startsWith("/ppt") && (f = f.substr(1)), s.rels[p.attrs.Id] = { type: p.attrs.Type.split("/").pop(), target: f };
|
|
939
|
-
}
|
|
940
|
-
})), [2];
|
|
941
|
-
}
|
|
942
|
-
}));
|
|
943
|
-
}));
|
|
944
|
-
}, i.prototype._loadBackground = function() {
|
|
945
|
-
var r = u.get(this.source, ["p:sld", "p:cSld", "p:bg", "p:bgPr"]);
|
|
946
|
-
r && r["a:solidFill"] ? this.background = V(r["a:solidFill"], this.theme, this) : r && r["a:gradFill"] ? this.background = bt(r["a:gradFill"], this.theme, this) : r && r["a:blipFill"] && (this.background = wt(r["a:blipFill"], this.pptx, this));
|
|
947
|
-
}, i.prototype._loadNodes = function() {
|
|
948
|
-
return U(this, void 0, void 0, (function() {
|
|
949
|
-
var r;
|
|
950
|
-
return Y(this, (function(n) {
|
|
951
|
-
switch (n.label) {
|
|
952
|
-
case 0:
|
|
953
|
-
return r = u.get(this.source, ["p:sld", "p:cSld", "p:spTree"]), [4, xt(this.nodes, r, this.pptx, this)];
|
|
954
|
-
case 1:
|
|
955
|
-
return n.sent(), [2];
|
|
956
|
-
}
|
|
957
|
-
}));
|
|
958
|
-
}));
|
|
959
|
-
}, i.prototype.getColorThemeName = function(r) {
|
|
960
|
-
return this.slideLayout.getColorThemeName(r);
|
|
961
|
-
}, i.prototype.getNodeInheritAttrsByType = function(r, n) {
|
|
962
|
-
var a = this.slideLayout.getNodeByType(r), s = u.get(a.source, n);
|
|
963
|
-
return s || this.slideLayout.getNodeInheritAttrsByType(r, n);
|
|
964
|
-
}, i.prototype.getNodeInheritAttrsByIdx = function(r, n) {
|
|
965
|
-
var a = this.slideLayout.getNodeByIdx(r), s = u.get(a.source, n);
|
|
966
|
-
return s || this.slideLayout.getNodeInheritAttrsByIdx(r, n);
|
|
967
|
-
}, i;
|
|
968
|
-
})(), Ne = (function() {
|
|
969
|
-
function i(r, n, a) {
|
|
970
|
-
this.slideType = "slideLayout", this.rels = {}, this.background = { type: "none" }, this.nodes = [], this.name = r, this.source = n, this.pptx = a;
|
|
971
|
-
}
|
|
972
|
-
return Object.defineProperty(i.prototype, "_relsPath", { get: function() {
|
|
973
|
-
return this.name.replace("slideLayouts/slideLayout", "slideLayouts/_rels/slideLayout") + ".rels";
|
|
974
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "theme", { get: function() {
|
|
975
|
-
return this.slideMaster.theme;
|
|
976
|
-
}, enumerable: !1, configurable: !0 }), i.prototype.load = function() {
|
|
977
|
-
return U(this, void 0, void 0, (function() {
|
|
978
|
-
return Y(this, (function(r) {
|
|
979
|
-
switch (r.label) {
|
|
980
|
-
case 0:
|
|
981
|
-
return [4, this._loadRels()];
|
|
982
|
-
case 1:
|
|
983
|
-
return r.sent(), [4, this._loadBackground()];
|
|
984
|
-
case 2:
|
|
985
|
-
return r.sent(), [4, this._loadNodes()];
|
|
986
|
-
case 3:
|
|
987
|
-
return r.sent(), [2];
|
|
988
|
-
}
|
|
989
|
-
}));
|
|
990
|
-
}));
|
|
991
|
-
}, i.prototype._loadRels = function() {
|
|
992
|
-
return U(this, void 0, void 0, (function() {
|
|
993
|
-
var r, n, a, s = this;
|
|
994
|
-
return Y(this, (function(h) {
|
|
995
|
-
switch (h.label) {
|
|
996
|
-
case 0:
|
|
997
|
-
return n = at, [4, this.pptx.getXmlByPath(this._relsPath)];
|
|
998
|
-
case 1:
|
|
999
|
-
return r = n.apply(void 0, [h.sent()]), a = u.get(r, ["Relationships", "Relationship"]) || [], Array.isArray(a) || (a = [a]), a.forEach((function(p) {
|
|
1000
|
-
switch (u.get(p, ["attrs", "Type"])) {
|
|
1001
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":
|
|
1002
|
-
var y = p.attrs.Target.replace("../", "ppt/");
|
|
1003
|
-
y.startsWith("/ppt") && (y = y.substr(1)), s.slideMaster = s.pptx.getSlideMaster(y);
|
|
1004
|
-
break;
|
|
1005
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":
|
|
1006
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":
|
|
1007
|
-
case "http://schemas.microsoft.com/office/2007/relationships/media":
|
|
1008
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":
|
|
1009
|
-
var f = p.attrs.Target.replace("../", "ppt/");
|
|
1010
|
-
f.startsWith("/ppt") && (f = f.substr(1)), s.rels[p.attrs.Id] = { type: p.attrs.Type.split("/").pop(), target: f };
|
|
1011
|
-
}
|
|
1012
|
-
})), [2];
|
|
1013
|
-
}
|
|
1014
|
-
}));
|
|
1015
|
-
}));
|
|
1016
|
-
}, i.prototype._loadBackground = function() {
|
|
1017
|
-
return U(this, void 0, void 0, (function() {
|
|
1018
|
-
var r;
|
|
1019
|
-
return Y(this, (function(n) {
|
|
1020
|
-
return (r = u.get(this.source, ["p:sldLayout", "p:cSld", "p:bg", "p:bgPr"])) && r["a:solidFill"] ? this.background = V(r["a:solidFill"], this.theme) : r && r["a:gradFill"] ? this.background = bt(r["a:gradFill"], this.theme, this) : r && r["a:blipFill"] && (this.background = wt(r["a:blipFill"], this.pptx, this)), [2];
|
|
1021
|
-
}));
|
|
1022
|
-
}));
|
|
1023
|
-
}, i.prototype._loadNodes = function() {
|
|
1024
|
-
return U(this, void 0, void 0, (function() {
|
|
1025
|
-
var r;
|
|
1026
|
-
return Y(this, (function(n) {
|
|
1027
|
-
return r = u.get(this.source, ["p:sldLayout", "p:cSld", "p:spTree"]), xt(this.nodes, r, this.pptx, this), [2];
|
|
1028
|
-
}));
|
|
1029
|
-
}));
|
|
1030
|
-
}, i.prototype.getColorThemeName = function(r) {
|
|
1031
|
-
return this.slideMaster.getColorThemeName(r);
|
|
1032
|
-
}, i.prototype.getNodeByType = function(r) {
|
|
1033
|
-
return this.nodes.find((function(n) {
|
|
1034
|
-
return n.type === r;
|
|
1035
|
-
}));
|
|
1036
|
-
}, i.prototype.getNodeByIdx = function(r) {
|
|
1037
|
-
return this.nodes.find((function(n) {
|
|
1038
|
-
return n.idx === r;
|
|
1039
|
-
}));
|
|
1040
|
-
}, i.prototype.getNodeInheritAttrsByType = function(r, n) {
|
|
1041
|
-
var a = this.slideMaster.getNodeByType(r);
|
|
1042
|
-
return a && u.get(a.source, n);
|
|
1043
|
-
}, i.prototype.getNodeInheritAttrsByIdx = function(r, n) {
|
|
1044
|
-
var a = this.slideMaster.getNodeByIdx(r);
|
|
1045
|
-
return a && u.get(a.source, n);
|
|
1046
|
-
}, i;
|
|
1047
|
-
})(), De = (function() {
|
|
1048
|
-
function i(r, n, a) {
|
|
1049
|
-
this.slideType = "slideMaster", this.rels = {}, this.background = { type: "none" }, this.textStyles = { titleStyle: {}, bodyStyle: {}, otherStyle: {} }, this.defaultTextStyle = {}, this.nodes = [], this.tableStyles = {}, this.name = r, this.source = n, this.pptx = a, this.load();
|
|
1050
|
-
}
|
|
1051
|
-
return Object.defineProperty(i.prototype, "_relsPath", { get: function() {
|
|
1052
|
-
return this.name.replace("slideMasters/slideMaster", "slideMasters/_rels/slideMaster") + ".rels";
|
|
1053
|
-
}, enumerable: !1, configurable: !0 }), i.prototype.load = function() {
|
|
1054
|
-
return U(this, void 0, void 0, (function() {
|
|
1055
|
-
return Y(this, (function(r) {
|
|
1056
|
-
switch (r.label) {
|
|
1057
|
-
case 0:
|
|
1058
|
-
return [4, this._parseRels()];
|
|
1059
|
-
case 1:
|
|
1060
|
-
return r.sent(), this._parseColorMap(), this._parseBackground(), this._parseTextStyles(), this._parseTableStyles(), this._parseDefaultTextStyle(), this._loadNodes(), [2];
|
|
1061
|
-
}
|
|
1062
|
-
}));
|
|
1063
|
-
}));
|
|
1064
|
-
}, i.prototype._parseRels = function() {
|
|
1065
|
-
return U(this, void 0, void 0, (function() {
|
|
1066
|
-
var r, n, a, s = this;
|
|
1067
|
-
return Y(this, (function(h) {
|
|
1068
|
-
switch (h.label) {
|
|
1069
|
-
case 0:
|
|
1070
|
-
return n = at, [4, this.pptx.getXmlByPath(this._relsPath)];
|
|
1071
|
-
case 1:
|
|
1072
|
-
return r = n.apply(void 0, [h.sent()]), a = u.get(r, ["Relationships", "Relationship"]) || [], Array.isArray(a) || (a = [a]), a.forEach((function(p) {
|
|
1073
|
-
switch (u.get(p, ["attrs", "Type"])) {
|
|
1074
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":
|
|
1075
|
-
var y = p.attrs.Target.replace("../", "ppt/");
|
|
1076
|
-
y.startsWith("/ppt") && (y = y.substr(1)), s.theme = s.pptx.getTheme(y);
|
|
1077
|
-
break;
|
|
1078
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":
|
|
1079
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":
|
|
1080
|
-
case "http://schemas.microsoft.com/office/2007/relationships/media":
|
|
1081
|
-
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":
|
|
1082
|
-
var f = p.attrs.Target.replace("../", "ppt/");
|
|
1083
|
-
f.startsWith("/ppt") && (f = f.substr(1)), s.rels[p.attrs.Id] = { type: p.attrs.Type.split("/").pop(), target: f };
|
|
1084
|
-
}
|
|
1085
|
-
})), [2];
|
|
1086
|
-
}
|
|
1087
|
-
}));
|
|
1088
|
-
}));
|
|
1089
|
-
}, i.prototype._parseColorMap = function() {
|
|
1090
|
-
this.colorMap = u.omit(u.get(this.source, ["p:sldMaster", "p:clrMap", "attrs"]) || {}, ["order"]);
|
|
1091
|
-
}, i.prototype.getColorThemeName = function(r) {
|
|
1092
|
-
return this.colorMap[r] || r;
|
|
1093
|
-
}, i.prototype._parseBackground = function() {
|
|
1094
|
-
var r = u.get(this.source, ["p:sldMaster", "p:cSld", "p:bg", "p:bgPr"]), n = u.get(this.source, ["p:sldMaster", "p:cSld", "p:bg", "p:bgRef"]);
|
|
1095
|
-
r && r["a:solidFill"] ? this.background = V(r["a:solidFill"], this.theme, this) : r && r["a:gradFill"] ? this.background = bt(r["a:gradFill"], this.theme, this) : r && r["a:blipFill"] ? this.background = wt(r["a:blipFill"], this.pptx, this) : n && (this.background = V(n, this.theme, this));
|
|
1096
|
-
}, i.prototype._parseDefaultTextStyle = function() {
|
|
1097
|
-
var r = this, n = this.pptx.defaultTextStyleSource;
|
|
1098
|
-
Object.keys(n).forEach((function(a) {
|
|
1099
|
-
if (a.startsWith("a:") && a.endsWith("pPr")) {
|
|
1100
|
-
var s = a.substr(2, a.length - 5), h = u.get(n[a], ["a:defRPr"]);
|
|
1101
|
-
r.defaultTextStyle[s] = { props: fe(n[a]), defRPr: ye(h, r.theme, r) };
|
|
1102
|
-
}
|
|
1103
|
-
}));
|
|
1104
|
-
}, i.prototype._parseTextStyles = function() {
|
|
1105
|
-
var r = this, n = u.get(this.source, ["p:sldMaster", "p:txStyles"]);
|
|
1106
|
-
["titleStyle", "bodyStyle", "otherStyle"].forEach((function(a) {
|
|
1107
|
-
var s = r.textStyles[a], h = u.get(n, "p:".concat(a)) || {};
|
|
1108
|
-
Object.keys(h).forEach((function(p) {
|
|
1109
|
-
if (p.startsWith("a:") && p.endsWith("pPr")) {
|
|
1110
|
-
var y = p.substr(2, p.length - 5);
|
|
1111
|
-
s[y] = {}, s[y].props = fe(h[p]);
|
|
1112
|
-
var f = u.get(h[p], ["a:defRPr"]);
|
|
1113
|
-
s[y].defRPr = ye(f, r.theme, r);
|
|
1114
|
-
}
|
|
1115
|
-
}));
|
|
1116
|
-
}));
|
|
1117
|
-
}, i.prototype._parseTableStyles = function() {
|
|
1118
|
-
var r = this, n = {}, a = u.get(this.pptx.tableStyles, ["a:tblStyleLst", "a:tblStyle"]) || [];
|
|
1119
|
-
Array.isArray(a) || (a = [a]), a.forEach((function(s) {
|
|
1120
|
-
var h = u.get(s, ["attrs", "styleId"]);
|
|
1121
|
-
n[h] = {}, Object.keys(s).forEach((function(p) {
|
|
1122
|
-
if (p.startsWith("a:")) {
|
|
1123
|
-
var y = p.substr(2);
|
|
1124
|
-
n[h][y] = {};
|
|
1125
|
-
var f = u.get(s[p], ["a:tcStyle"]);
|
|
1126
|
-
if (f) {
|
|
1127
|
-
var m = {};
|
|
1128
|
-
u.get(f, ["a:fill", "a:solidFill"]) && (m.background = V(u.get(f, ["a:fill", "a:solidFill"]), r.theme, r));
|
|
1129
|
-
var g = u.get(f, "a:tcBdr");
|
|
1130
|
-
g && (m.border = {}, Object.keys(g).forEach((function(L) {
|
|
1131
|
-
if (L.startsWith("a:")) {
|
|
1132
|
-
var C = L.substr(2), B = u.get(g[L], ["a:ln"]);
|
|
1133
|
-
m.border[C] = pt(B, r.theme, r);
|
|
1134
|
-
}
|
|
1135
|
-
}))), n[h][y].tcStyle = m;
|
|
1136
|
-
}
|
|
1137
|
-
var w = u.get(s[p], ["a:tcTxStyle"]);
|
|
1138
|
-
if (w) {
|
|
1139
|
-
var j = {};
|
|
1140
|
-
j.color = V(w, r.theme, r), u.get(w, ["attrs", "b"]) === "on" && (j.bold = !0), n[h][y].tcTxStyle = j;
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
}));
|
|
1144
|
-
})), this.tableStyles = n;
|
|
1145
|
-
}, i.prototype._loadNodes = function() {
|
|
1146
|
-
return U(this, void 0, void 0, (function() {
|
|
1147
|
-
var r;
|
|
1148
|
-
return Y(this, (function(n) {
|
|
1149
|
-
return r = u.get(this.source, ["p:sldMaster", "p:cSld", "p:spTree"]), xt(this.nodes, r, this.pptx, this), [2];
|
|
1150
|
-
}));
|
|
1151
|
-
}));
|
|
1152
|
-
}, i.prototype.getNodeByType = function(r) {
|
|
1153
|
-
return this.nodes.find((function(n) {
|
|
1154
|
-
return n.type === r;
|
|
1155
|
-
}));
|
|
1156
|
-
}, i.prototype.getNodeByIdx = function(r) {
|
|
1157
|
-
return this.nodes.find((function(n) {
|
|
1158
|
-
return n.idx === r;
|
|
1159
|
-
}));
|
|
1160
|
-
}, i.prototype.getNodeInheritAttrsByType = function(r, n) {
|
|
1161
|
-
}, i.prototype.getNodeInheritAttrsByIdx = function(r, n) {
|
|
1162
|
-
}, i;
|
|
1163
|
-
})(), Fe = (function() {
|
|
1164
|
-
function i(r, n, a) {
|
|
1165
|
-
this.clrScheme = {}, this.borderScheme = [], this.name = r, this.source = n, this.pptx = a, this._parseClrScheme(), this._parseLineStyleLst();
|
|
1166
|
-
}
|
|
1167
|
-
return i.prototype._parseClrScheme = function() {
|
|
1168
|
-
var r = u.get(this.source, ["a:theme", "a:themeElements", "a:clrScheme"]);
|
|
1169
|
-
for (var n in r) if (n.startsWith("a:")) {
|
|
1170
|
-
var a = n.substring(2), s = u.get(r[n], ["a:sysClr", "attrs", "lastClr"]) || u.get(r[n], ["a:srgbClr", "attrs", "val"]);
|
|
1171
|
-
this.clrScheme[a] = "#" + s;
|
|
1172
|
-
}
|
|
1173
|
-
}, i.prototype._parseLineStyleLst = function() {
|
|
1174
|
-
var r = this, n = u.get(this.source, ["a:theme", "a:themeElements", "a:fmtScheme", "a:lnStyleLst", "a:ln"]) || [];
|
|
1175
|
-
this.borderScheme = n.map((function(a) {
|
|
1176
|
-
var s = { color: {} };
|
|
1177
|
-
return u.get(a, ["attrs", "w"]) && (s.width = W(parseInt(u.get(a, ["attrs", "w"])))), u.get(a, ["attrs", "algn"]) && (s.algn = u.get(a, ["attrs", "algn"])), u.get(a, ["attrs", "cap"]) && (s.cap = u.get(a, ["attrs", "cap"])), u.get(a, ["attrs", "cmpd"]) && (s.cmpd = u.get(a, ["attrs", "cmpd"])), u.get(a, ["a:miter", "attrs", "lim"]) && (s.miterLim = W(parseInt(u.get(a, ["a:miter", "attrs", "lim"])))), u.get(a, ["a:prstDash", "attrs", "val"]) && (s.type = u.get(a, ["a:prstDash", "attrs", "val"])), u.get(a, ["a:solidFill"]) && (s.color = V(u.get(a, ["a:solidFill"]), r)), s;
|
|
1178
|
-
}));
|
|
1179
|
-
}, i.prototype.getColor = function(r) {
|
|
1180
|
-
if (r !== "phClr") return this.clrScheme[r] || this.defaultColor;
|
|
1181
|
-
}, i.prototype.getLineStyle = function(r) {
|
|
1182
|
-
return this.borderScheme[r - 1];
|
|
1183
|
-
}, i;
|
|
1184
|
-
})(), ve = (function() {
|
|
1185
|
-
function i() {
|
|
1186
|
-
this.slides = [], this.slideLayouts = [], this.slideMaster = [], this.themes = [], this.medias = {}, this.wps = !1;
|
|
1187
|
-
}
|
|
1188
|
-
return i.prototype.load = function(r) {
|
|
1189
|
-
return U(this, void 0, void 0, (function() {
|
|
1190
|
-
var n, a;
|
|
1191
|
-
return Y(this, (function(s) {
|
|
1192
|
-
switch (s.label) {
|
|
1193
|
-
case 0:
|
|
1194
|
-
return n = new Be(), a = this, [4, n.loadAsync(r)];
|
|
1195
|
-
case 1:
|
|
1196
|
-
return a._zipContents = s.sent(), [4, this._loadThumbnail()];
|
|
1197
|
-
case 2:
|
|
1198
|
-
return s.sent(), [4, this._loadMedia()];
|
|
1199
|
-
case 3:
|
|
1200
|
-
return s.sent(), [4, this._loadPresentation()];
|
|
1201
|
-
case 4:
|
|
1202
|
-
return s.sent(), [4, this._loadContentTypes()];
|
|
1203
|
-
case 5:
|
|
1204
|
-
return s.sent(), [2];
|
|
1205
|
-
}
|
|
1206
|
-
}));
|
|
1207
|
-
}));
|
|
1208
|
-
}, i.prototype._loadThumbnail = function() {
|
|
1209
|
-
return U(this, void 0, void 0, (function() {
|
|
1210
|
-
var r;
|
|
1211
|
-
return Y(this, (function(n) {
|
|
1212
|
-
switch (n.label) {
|
|
1213
|
-
case 0:
|
|
1214
|
-
return n.trys.push([0, 3, , 4]), this._zipContents.files["docProps/thumbnail.jpeg"] ? [4, this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")] : [3, 2];
|
|
1215
|
-
case 1:
|
|
1216
|
-
r = n.sent(), this.thumbnail = "data:image/jpeg;base64," + r, n.label = 2;
|
|
1217
|
-
case 2:
|
|
1218
|
-
return [3, 4];
|
|
1219
|
-
case 3:
|
|
1220
|
-
return n.sent(), [3, 4];
|
|
1221
|
-
case 4:
|
|
1222
|
-
return [2];
|
|
1223
|
-
}
|
|
1224
|
-
}));
|
|
1225
|
-
}));
|
|
1226
|
-
}, i.prototype._loadPresentation = function() {
|
|
1227
|
-
return U(this, void 0, void 0, (function() {
|
|
1228
|
-
var r, n, a, s, h, p;
|
|
1229
|
-
return Y(this, (function(y) {
|
|
1230
|
-
switch (y.label) {
|
|
1231
|
-
case 0:
|
|
1232
|
-
return y.trys.push([0, 4, , 5]), [4, this._zipContents.files["ppt/presentation.xml"].async("text")];
|
|
1233
|
-
case 1:
|
|
1234
|
-
return r = y.sent(), n = at(r), a = n["p:presentation"]["p:sldSz"].attrs, this.width = W(parseInt(a.cx)), this.height = W(parseInt(a.cy)), this.defaultTextStyleSource = u.get(n, ["p:presentation", "p:defaultTextStyle"]), this._zipContents.files["docProps/app.xml"] ? [4, this._zipContents.files["docProps/app.xml"].async("text")] : [3, 3];
|
|
1235
|
-
case 2:
|
|
1236
|
-
s = y.sent(), h = at(s), p = u.get(h, ["Properties", "Application"]), this.wps = (p == null ? void 0 : p.includes("WPS")) || !1, y.label = 3;
|
|
1237
|
-
case 3:
|
|
1238
|
-
return [3, 5];
|
|
1239
|
-
case 4:
|
|
1240
|
-
return y.sent(), [3, 5];
|
|
1241
|
-
case 5:
|
|
1242
|
-
return [2];
|
|
1243
|
-
}
|
|
1244
|
-
}));
|
|
1245
|
-
}));
|
|
1246
|
-
}, i.prototype._loadContentTypes = function() {
|
|
1247
|
-
return U(this, void 0, void 0, (function() {
|
|
1248
|
-
var r, n, a, s, h, p, y, f, m, g, w, j, L, C, B, k, c, t, o, e, l;
|
|
1249
|
-
return Y(this, (function(d) {
|
|
1250
|
-
switch (d.label) {
|
|
1251
|
-
case 0:
|
|
1252
|
-
return d.trys.push([0, 22, , 23]), n = at, [4, this._zipContents.files["[Content_Types].xml"].async("text")];
|
|
1253
|
-
case 1:
|
|
1254
|
-
if (r = n.apply(void 0, [d.sent()]), a = r.Types.Override, !(s = a.filter((function(b) {
|
|
1255
|
-
return b.attrs.ContentType === "application/vnd.openxmlformats-officedocument.theme+xml";
|
|
1256
|
-
})))) return [3, 5];
|
|
1257
|
-
h = 0, p = s, d.label = 2;
|
|
1258
|
-
case 2:
|
|
1259
|
-
return h < p.length ? (y = p[h], t = y.attrs.PartName.substr(1), f = at, [4, this._zipContents.files[t].async("text")]) : [3, 5];
|
|
1260
|
-
case 3:
|
|
1261
|
-
o = f.apply(void 0, [d.sent()]), this.themes.push(new Fe(t, o, this)), d.label = 4;
|
|
1262
|
-
case 4:
|
|
1263
|
-
return h++, [3, 2];
|
|
1264
|
-
case 5:
|
|
1265
|
-
return (m = a.find((function(b) {
|
|
1266
|
-
return b.attrs.ContentType === "application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml";
|
|
1267
|
-
}))) ? (t = m.attrs.PartName.substr(1), g = at, [4, this._zipContents.files[t].async("text")]) : [3, 7];
|
|
1268
|
-
case 6:
|
|
1269
|
-
o = g.apply(void 0, [d.sent()]), this.tableStyles = o, d.label = 7;
|
|
1270
|
-
case 7:
|
|
1271
|
-
w = a.filter((function(b) {
|
|
1272
|
-
return b.attrs.ContentType === "application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml";
|
|
1273
|
-
})), c = 0, d.label = 8;
|
|
1274
|
-
case 8:
|
|
1275
|
-
return c < w.length ? (t = w[c].attrs.PartName.substr(1), j = at, [4, this._zipContents.files[t].async("text")]) : [3, 11];
|
|
1276
|
-
case 9:
|
|
1277
|
-
o = j.apply(void 0, [d.sent()]), this.slideMaster.push(new De(t, o, this)), d.label = 10;
|
|
1278
|
-
case 10:
|
|
1279
|
-
return c++, [3, 8];
|
|
1280
|
-
case 11:
|
|
1281
|
-
L = a.filter((function(b) {
|
|
1282
|
-
return b.attrs.ContentType === "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml";
|
|
1283
|
-
})), c = 0, d.label = 12;
|
|
1284
|
-
case 12:
|
|
1285
|
-
return c < L.length ? (t = L[c].attrs.PartName.substr(1), C = at, [4, this._zipContents.files[t].async("text")]) : [3, 16];
|
|
1286
|
-
case 13:
|
|
1287
|
-
return o = C.apply(void 0, [d.sent()]), [4, (B = new Ne(t, o, this)).load()];
|
|
1288
|
-
case 14:
|
|
1289
|
-
d.sent(), this.slideLayouts.push(B), d.label = 15;
|
|
1290
|
-
case 15:
|
|
1291
|
-
return c++, [3, 12];
|
|
1292
|
-
case 16:
|
|
1293
|
-
k = a.filter((function(b) {
|
|
1294
|
-
return b.attrs.ContentType === "application/vnd.openxmlformats-officedocument.presentationml.slide+xml";
|
|
1295
|
-
})), c = 0, d.label = 17;
|
|
1296
|
-
case 17:
|
|
1297
|
-
return c < k.length ? (t = k[c].attrs.PartName.substr(1), e = at, [4, this._zipContents.files[t].async("text")]) : [3, 21];
|
|
1298
|
-
case 18:
|
|
1299
|
-
return o = e.apply(void 0, [d.sent()]), [4, (l = new Ee(t, o, this)).load()];
|
|
1300
|
-
case 19:
|
|
1301
|
-
d.sent(), this.slides.push(l), d.label = 20;
|
|
1302
|
-
case 20:
|
|
1303
|
-
return c++, [3, 17];
|
|
1304
|
-
case 21:
|
|
1305
|
-
return this.slides.sort((function(b, v) {
|
|
1306
|
-
return b.index - v.index;
|
|
1307
|
-
})), [3, 23];
|
|
1308
|
-
case 22:
|
|
1309
|
-
return d.sent(), [3, 23];
|
|
1310
|
-
case 23:
|
|
1311
|
-
return [2];
|
|
1312
|
-
}
|
|
1313
|
-
}));
|
|
1314
|
-
}));
|
|
1315
|
-
}, i.prototype._loadMedia = function() {
|
|
1316
|
-
return U(this, void 0, void 0, (function() {
|
|
1317
|
-
var r, n, a, s, h, p, y, f, m, g, w, j, L, C = this;
|
|
1318
|
-
return Y(this, (function(B) {
|
|
1319
|
-
switch (B.label) {
|
|
1320
|
-
case 0:
|
|
1321
|
-
r = Object.keys(this._zipContents.files).filter((function(c) {
|
|
1322
|
-
return c.startsWith("ppt/media/image");
|
|
1323
|
-
})).map((function(c) {
|
|
1324
|
-
return C._zipContents.files[c];
|
|
1325
|
-
})), n = 0, a = r, B.label = 1;
|
|
1326
|
-
case 1:
|
|
1327
|
-
return n < a.length ? (s = a[n], h = (function(c) {
|
|
1328
|
-
var t;
|
|
1329
|
-
switch (c) {
|
|
1330
|
-
case "jpg":
|
|
1331
|
-
case "jpeg":
|
|
1332
|
-
t = "image/jpeg";
|
|
1333
|
-
break;
|
|
1334
|
-
case "png":
|
|
1335
|
-
t = "image/png";
|
|
1336
|
-
break;
|
|
1337
|
-
case "gif":
|
|
1338
|
-
t = "image/gif";
|
|
1339
|
-
break;
|
|
1340
|
-
case "emf":
|
|
1341
|
-
t = "image/x-emf";
|
|
1342
|
-
break;
|
|
1343
|
-
case "wmf":
|
|
1344
|
-
t = "image/x-wmf";
|
|
1345
|
-
break;
|
|
1346
|
-
default:
|
|
1347
|
-
t = "image/*";
|
|
1348
|
-
}
|
|
1349
|
-
return t;
|
|
1350
|
-
})((k = s.name).substr(2 + (~-k.lastIndexOf(".") >>> 0))), [4, s.async("base64")]) : [3, 4];
|
|
1351
|
-
case 2:
|
|
1352
|
-
p = B.sent(), this.medias[s.name] = "data:".concat(h, ";base64,").concat(p), B.label = 3;
|
|
1353
|
-
case 3:
|
|
1354
|
-
return n++, [3, 1];
|
|
1355
|
-
case 4:
|
|
1356
|
-
y = Object.keys(this._zipContents.files).filter((function(c) {
|
|
1357
|
-
return c.startsWith("ppt/media/media") && ["mp3", "wav", "ogg", "mp4", "webm"].includes(c.split(".").pop().toLowerCase());
|
|
1358
|
-
})).map((function(c) {
|
|
1359
|
-
return C._zipContents.files[c];
|
|
1360
|
-
})), f = 0, m = y, B.label = 5;
|
|
1361
|
-
case 5:
|
|
1362
|
-
return f < m.length ? (g = m[f], w = g.name.split(".").pop().toLowerCase(), [4, g.async("arraybuffer")]) : [3, 8];
|
|
1363
|
-
case 6:
|
|
1364
|
-
j = B.sent(), L = new Blob([j], { type: "".concat(["mp3", "wav"].includes(w) ? "audio" : "video", "/").concat(w) }), this.medias[g.name] = URL.createObjectURL(L), B.label = 7;
|
|
1365
|
-
case 7:
|
|
1366
|
-
return f++, [3, 5];
|
|
1367
|
-
case 8:
|
|
1368
|
-
return [2];
|
|
1369
|
-
}
|
|
1370
|
-
var k;
|
|
1371
|
-
}));
|
|
1372
|
-
}));
|
|
1373
|
-
}, i.prototype.getXmlByPath = function(r) {
|
|
1374
|
-
return U(this, void 0, void 0, (function() {
|
|
1375
|
-
return Y(this, (function(n) {
|
|
1376
|
-
switch (n.label) {
|
|
1377
|
-
case 0:
|
|
1378
|
-
if (!this._zipContents.files[r]) throw new Error("文件不存在");
|
|
1379
|
-
return [4, this._zipContents.files[r].async("text")];
|
|
1380
|
-
case 1:
|
|
1381
|
-
return [2, n.sent()];
|
|
1382
|
-
}
|
|
1383
|
-
}));
|
|
1384
|
-
}));
|
|
1385
|
-
}, i.prototype.getSlideLayout = function(r) {
|
|
1386
|
-
return this.slideLayouts.find((function(n) {
|
|
1387
|
-
return n.name === r;
|
|
1388
|
-
}));
|
|
1389
|
-
}, i.prototype.getSlideMaster = function(r) {
|
|
1390
|
-
return this.slideMaster.find((function(n) {
|
|
1391
|
-
return n.name === r;
|
|
1392
|
-
}));
|
|
1393
|
-
}, i.prototype.getTheme = function(r) {
|
|
1394
|
-
return this.themes.find((function(n) {
|
|
1395
|
-
return n.name === r;
|
|
1396
|
-
}));
|
|
1397
|
-
}, i.prototype.getMedia = function(r) {
|
|
1398
|
-
return this.medias[r];
|
|
1399
|
-
}, i;
|
|
1400
|
-
})();
|
|
1401
|
-
function he(i) {
|
|
1402
|
-
var r = i.extend, n = i.offset, a = i.clip, s = i.base64, h = i.audioFile, p = i.videoFile, y = document.createElement("div");
|
|
1403
|
-
y.style.setProperty("position", "absolute"), y.style.setProperty("left", n.x + "px"), y.style.setProperty("top", n.y + "px");
|
|
1404
|
-
var f, m, g, w, j = document.createElement("div");
|
|
1405
|
-
j.style.setProperty("position", "absolute"), j.style.setProperty("left", "0"), j.style.setProperty("top", "0"), j.style.setProperty("width", r.w + "px"), j.style.setProperty("height", r.h + "px"), j.style.setProperty("overflow", "hidden"), a ? (f = r.w / (1 - (a.l === void 0 ? 0 : a.l) - (a.r === void 0 ? 0 : a.r)), m = r.h / (1 - (a.t === void 0 ? 0 : a.t) - (a.b === void 0 ? 0 : a.b)), g = -1 * f * (a.l === void 0 ? 0 : a.l), w = -1 * m * (a.t === void 0 ? 0 : a.t)) : (f = r.w, m = r.h, g = 0);
|
|
1406
|
-
var L = document.createElement("img");
|
|
1407
|
-
if (L.src = s, L.width = f, L.height = m, L.style.setProperty("position", "absolute"), L.style.setProperty("left", g + "px"), L.style.setProperty("top", w + "px"), j.append(L), y.append(j), h) {
|
|
1408
|
-
var C = document.createElement("audio");
|
|
1409
|
-
C.style.position = "absolute", C.style.left = "0", C.style.top = "0", C.src = h, C.controls = !0, C.style.transform = "translate(-50%)", y.append(C);
|
|
1410
|
-
}
|
|
1411
|
-
if (p) {
|
|
1412
|
-
var B = document.createElement("video");
|
|
1413
|
-
B.style.position = "absolute", B.style.left = "0", B.style.top = "0", B.width = r.w, B.height = r.h, B.src = p, B.controls = !0, y.append(B);
|
|
1414
|
-
}
|
|
1415
|
-
return y;
|
|
1416
|
-
}
|
|
1417
|
-
function Ze(i, r, n) {
|
|
1418
|
-
var a, s = i.props, h = i.text, p = I(I({}, r), s), y = document.createElement("span");
|
|
1419
|
-
y.innerHTML = typeof h == "string" ? h : "";
|
|
1420
|
-
var f = 18;
|
|
1421
|
-
p.size && (!((a = n == null ? void 0 : n.normAutofit) === null || a === void 0) && a.fontScale ? (f = p.size * n.normAutofit.fontScale, y.style.fontSize = f + "px") : (f = p.size, y.style.fontSize = f + "px"));
|
|
1422
|
-
var m = F(p.color);
|
|
1423
|
-
m && (y.style.color = m);
|
|
1424
|
-
var g = /^[^\u4e00-\u9fff]+$/;
|
|
1425
|
-
if (p.typeface) switch (y.style.fontFamily = p.typeface, p.typeface) {
|
|
1426
|
-
case "DengXian":
|
|
1427
|
-
g.test(h) && (y.style.letterSpacing = -0.04 * f + "px");
|
|
1428
|
-
break;
|
|
1429
|
-
case "DengXian Light":
|
|
1430
|
-
g.test(h) && (y.style.letterSpacing = -0.05 * f + "px");
|
|
1431
|
-
break;
|
|
1432
|
-
case "STLiti":
|
|
1433
|
-
case "SimSun":
|
|
1434
|
-
case "NSimSun":
|
|
1435
|
-
case "SimHei":
|
|
1436
|
-
g.test(h) && (y.style.fontSize = 0.85 * parseInt(y.style.fontSize) + "px");
|
|
1437
|
-
break;
|
|
1438
|
-
case "华文中宋":
|
|
1439
|
-
case "Fira Sans Extra Condensed Medium":
|
|
1440
|
-
y.style.fontSize = 0.85 * parseInt(y.style.fontSize) + "px";
|
|
1441
|
-
break;
|
|
1442
|
-
case "FangSong":
|
|
1443
|
-
y.style.letterSpacing = -0.08 * f + "px";
|
|
1444
|
-
}
|
|
1445
|
-
else g.test(h) && (y.style.letterSpacing = -0.04 * f + "px");
|
|
1446
|
-
return p.bold && (y.style.fontWeight = "bold"), p.italic && (y.style.fontStyle = "italic"), p.underline && p.underline !== "none" && (y.style.textDecoration = "underline"), p.background && (y.style.backgroundColor = F(p.background)), y.style.wordBreak = "break-word", y;
|
|
1447
|
-
}
|
|
1448
|
-
function Ge(i, r, n) {
|
|
1449
|
-
var a = document.createElement("span"), s = i.firstElementChild;
|
|
1450
|
-
switch (a.style.fontSize = s.style.fontSize, a.style.color = s.style.color, a.style.fontWeight = s.style.fontWeight, a.style.fontStyle = s.style.fontStyle, a.style.marginRight = "10px", r.buAutoNum) {
|
|
1451
|
-
case "arabicPeriod":
|
|
1452
|
-
default:
|
|
1453
|
-
a.textContent = n + ".";
|
|
1454
|
-
break;
|
|
1455
|
-
case "circleNumDbPlain":
|
|
1456
|
-
a.textContent = ["①", "②", "③", "④", "⑤", "⑥", "⑦", "⑧", "⑨", "⑩", "⑪", "⑫", "⑬", "⑭", "⑮", "⑯", "⑰", "⑱", "⑲", "⑳"][n - 1] || n + "";
|
|
1457
|
-
break;
|
|
1458
|
-
case "romanUcPeriod":
|
|
1459
|
-
a.textContent = (function(h) {
|
|
1460
|
-
var p = [{ value: 1e3, numeral: "M" }, { value: 900, numeral: "CM" }, { value: 500, numeral: "D" }, { value: 400, numeral: "CD" }, { value: 100, numeral: "C" }, { value: 90, numeral: "XC" }, { value: 50, numeral: "L" }, { value: 40, numeral: "XL" }, { value: 10, numeral: "X" }, { value: 9, numeral: "IX" }, { value: 5, numeral: "V" }, { value: 4, numeral: "IV" }, { value: 1, numeral: "I" }];
|
|
1461
|
-
if (typeof h != "number" || h < 1 || h > 3999) throw new Error("Input must be a number between 1 and 3999.");
|
|
1462
|
-
for (var y = "", f = 0; f < p.length; f++) for (; h >= p[f].value; ) y += p[f].numeral, h -= p[f].value;
|
|
1463
|
-
return y;
|
|
1464
|
-
})(n) + ".";
|
|
1465
|
-
break;
|
|
1466
|
-
case "alphaUcPeriod":
|
|
1467
|
-
a.textContent = ne(n) + ".";
|
|
1468
|
-
break;
|
|
1469
|
-
case "alphaLcPeriod":
|
|
1470
|
-
a.textContent = ne(n).toLowerCase() + ".";
|
|
1471
|
-
break;
|
|
1472
|
-
case "alphaLcParenR":
|
|
1473
|
-
a.textContent = ne(n).toLowerCase() + ")";
|
|
1474
|
-
break;
|
|
1475
|
-
case "ea1JpnChsDbPeriod":
|
|
1476
|
-
a.textContent = (function(h) {
|
|
1477
|
-
var p = ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九"];
|
|
1478
|
-
if (!Number.isInteger(h) || h < 0) return "";
|
|
1479
|
-
for (var y = "", f = h.toString(), m = 0; m < f.length; m++) y += p[parseInt(f[m], 10)];
|
|
1480
|
-
return y;
|
|
1481
|
-
})(n) + ".";
|
|
1482
|
-
}
|
|
1483
|
-
i.prepend(a);
|
|
1484
|
-
}
|
|
1485
|
-
function kt(i, r, n) {
|
|
1486
|
-
var a, s, h, p;
|
|
1487
|
-
r === void 0 && (r = 0), n === void 0 && (n = {});
|
|
1488
|
-
var y = i.inheritProps, f = i.inheritRProps, m = i.props, g = i.rows, w = I(I({}, y), m), j = function() {
|
|
1489
|
-
for (var d, b, v = 0, x = 0, P = g; x < P.length; x++) {
|
|
1490
|
-
var S = P[x];
|
|
1491
|
-
S.props && S.props.size && (v = Math.max(v, S.props.size));
|
|
1492
|
-
}
|
|
1493
|
-
var R = ((b = (d = n == null ? void 0 : n.bodyProps) === null || d === void 0 ? void 0 : d.normAutofit) === null || b === void 0 ? void 0 : b.fontScale) || 1;
|
|
1494
|
-
return (v || f.size || 18) * R;
|
|
1495
|
-
}, L = document.createElement("div"), C = n.isFirst ? 0 : w.spaceBefore || 0, B = n.isLast ? 0 : w.spaceAfter || 0;
|
|
1496
|
-
L.style.margin = "".concat(Math.floor(0.2 * j()), "px 0 0 0"), L.style.padding = "".concat(Math.floor(C), "px 0px ").concat(Math.floor(B), "px 0px");
|
|
1497
|
-
var k = document.createElement("p");
|
|
1498
|
-
k.style.margin = "0", k.style.padding = "0px", k.style.wordBreak = "break-word", k.style.textAlign = w.align && { ctr: "center", l: "left", r: "right", dist: "justify" }[w.align] || "center", w.align === "dist" && (k.style.textAlignLast = "justify");
|
|
1499
|
-
var c = w.hasOwnProperty("lineHeight") ? w.lineHeight : 1;
|
|
1500
|
-
if (!((s = (a = n.bodyProps) === null || a === void 0 ? void 0 : a.normAutofit) === null || s === void 0) && s.lnSpcReduction && (c *= 1 - ((p = (h = n.bodyProps) === null || h === void 0 ? void 0 : h.normAutofit) === null || p === void 0 ? void 0 : p.lnSpcReduction)), k.style.lineHeight = c + "", k.style.fontSize = j() + "px", g.length) {
|
|
1501
|
-
for (var t = 0, o = g; t < o.length; t++) {
|
|
1502
|
-
var e = o[t];
|
|
1503
|
-
e.isBr ? k.appendChild(document.createElement("br")) : k.appendChild(Ze(e, I(I({}, f), { marginTop: Math.floor(0.2 * j()) }), n.bodyProps));
|
|
1504
|
-
}
|
|
1505
|
-
w.buAutoNum ? Ge(k, w, r) : w.buChar && (function(d, b) {
|
|
1506
|
-
var v = document.createElement("span"), x = d.firstElementChild;
|
|
1507
|
-
v.style.color = x.style.color, v.style.fontSize = x.style.fontSize, v.textContent = { n: "■", l: "●", u: "◆", p: "□", ü: "✔", Ø: "➢", "•": "•" }[b.buChar] || "■", v.style.marginRight = "10px", d.prepend(v);
|
|
1508
|
-
})(k, w), k.style.paddingLeft = (w.marginLeft || 0) + (w.indent || 0) + "px";
|
|
1509
|
-
} else {
|
|
1510
|
-
var l = document.createElement("span");
|
|
1511
|
-
l.innerHTML = " ", l.style.fontSize = f.size + "px", k.appendChild(l);
|
|
1512
|
-
}
|
|
1513
|
-
return L.appendChild(k), L;
|
|
1514
|
-
}
|
|
1515
|
-
var Ie = "http://www.w3.org/2000/svg";
|
|
1516
|
-
function A(i) {
|
|
1517
|
-
return document.createElementNS(Ie, i);
|
|
1518
|
-
}
|
|
1519
|
-
function st(i) {
|
|
1520
|
-
var r = i.extend;
|
|
1521
|
-
return 0.16667 * Math.min(r.w, r.h);
|
|
1522
|
-
}
|
|
1523
|
-
function T(i, r, n) {
|
|
1524
|
-
n === void 0 && (n = 0);
|
|
1525
|
-
var a = r.prstGeom, s = ((a == null ? void 0 : a.gd) || []).find((function(h) {
|
|
1526
|
-
return h.name === i;
|
|
1527
|
-
}));
|
|
1528
|
-
return s ? s.fmla : n;
|
|
1529
|
-
}
|
|
1530
|
-
function M(i, r, n) {
|
|
1531
|
-
n === void 0 && (n = 0);
|
|
1532
|
-
var a = r.extend, s = r.prstGeom, h = ((s == null ? void 0 : s.gd) || []).find((function(p) {
|
|
1533
|
-
return p.name === i;
|
|
1534
|
-
}));
|
|
1535
|
-
return h ? Math.min(a.w, a.h) * h.fmla : n;
|
|
1536
|
-
}
|
|
1537
|
-
function ge(i, r, n) {
|
|
1538
|
-
n === void 0 && (n = 0);
|
|
1539
|
-
var a = r.extend, s = r.prstGeom, h = ((s == null ? void 0 : s.gd) || []).find((function(p) {
|
|
1540
|
-
return p.name === i;
|
|
1541
|
-
}));
|
|
1542
|
-
return h ? Math.max(a.w, a.h) * h.fmla : n;
|
|
1543
|
-
}
|
|
1544
|
-
function it(i, r) {
|
|
1545
|
-
var n = 0;
|
|
1546
|
-
switch (i) {
|
|
1547
|
-
case "sm":
|
|
1548
|
-
n = 1 * r;
|
|
1549
|
-
break;
|
|
1550
|
-
case "med":
|
|
1551
|
-
n = 1.5 * r;
|
|
1552
|
-
break;
|
|
1553
|
-
case "lg":
|
|
1554
|
-
n = 2.5 * r;
|
|
1555
|
-
}
|
|
1556
|
-
return Math.max(n, 2);
|
|
1557
|
-
}
|
|
1558
|
-
function we(i, r, n, a) {
|
|
1559
|
-
a === void 0 && (a = !1);
|
|
1560
|
-
var s = i.border, h = s === void 0 ? {} : s, p = i.uuid, y = h.headEnd, f = h.width, m = h.color, g = h.tailEnd, w = a ? y : g, j = w.len, L = j === void 0 ? "med" : j, C = w.w, B = C === void 0 ? "med" : C, k = it(L, f), c = it(B, f), t = A("defs"), o = A("marker"), e = "marker-".concat(p, "-").concat(a ? "start" : "end");
|
|
1561
|
-
o.setAttribute("id", e), o.setAttribute("viewBox", "0 0 ".concat(2 * k, " ").concat(2 * c)), o.setAttribute("refX", k + "px"), o.setAttribute("refY", c + "px"), o.setAttribute("markerWidth", 2 * k + "px"), o.setAttribute("markerHeight", 2 * c + "px"), o.setAttribute("orient", "auto"), o.setAttribute("markerUnits", "userSpaceOnUse");
|
|
1562
|
-
var l = A("ellipse");
|
|
1563
|
-
l.setAttribute("cx", k + "px"), l.setAttribute("cy", c + "px"), l.setAttribute("rx", k + "px"), l.setAttribute("ry", c + "px"), l.setAttribute("fill", F(m) || "transparent"), o.appendChild(l), t.appendChild(o), r.appendChild(t), n.setAttribute(a ? "marker-start" : "marker-end", "url(#".concat(e, ")"));
|
|
1564
|
-
}
|
|
1565
|
-
function be(i, r, n, a) {
|
|
1566
|
-
a === void 0 && (a = !1);
|
|
1567
|
-
var s = i.border, h = s === void 0 ? {} : s, p = i.uuid, y = h.headEnd, f = h.width, m = h.color, g = h.tailEnd, w = a ? y : g, j = w.len, L = j === void 0 ? "med" : j, C = w.w, B = C === void 0 ? "med" : C, k = it(L, f), c = it(B, f), t = A("defs"), o = A("marker"), e = "marker-".concat(p, "-").concat(a ? "start" : "end");
|
|
1568
|
-
o.setAttribute("id", e), o.setAttribute("viewBox", "0 0 ".concat(2 * k, " ").concat(2 * c)), o.setAttribute("refX", (a ? 0.9 * k : 1.1 * k) + "px"), o.setAttribute("refY", c + "px"), o.setAttribute("markerWidth", 2 * k + "px"), o.setAttribute("markerHeight", 2 * c + "px"), o.setAttribute("orient", "auto"), o.setAttribute("markerUnits", "userSpaceOnUse");
|
|
1569
|
-
var l = A("path"), d = a ? ["M ".concat(2 * k, ",0"), "L 0,".concat(c), "L ".concat(2 * k, ",").concat(2 * c), "Z"].join(" ") : ["M 0,0", "L ".concat(2 * k, ",").concat(c), "L 0,".concat(2 * c), "Z"].join(" ");
|
|
1570
|
-
l.setAttribute("d", d), l.setAttribute("fill", F(m) || "transparent"), o.appendChild(l), t.appendChild(o), r.appendChild(t), n.setAttribute(a ? "marker-start" : "marker-end", "url(#".concat(e, ")"));
|
|
1571
|
-
}
|
|
1572
|
-
function me(i, r, n, a) {
|
|
1573
|
-
a === void 0 && (a = !1);
|
|
1574
|
-
var s = i.border, h = s === void 0 ? {} : s, p = i.uuid, y = h.headEnd, f = h.width, m = h.color, g = h.tailEnd, w = a ? y : g, j = w.len, L = j === void 0 ? "med" : j, C = w.w, B = C === void 0 ? "med" : C, k = it(L, f), c = it(B, f), t = A("defs"), o = A("marker"), e = "marker-".concat(p, "-").concat(a ? "start" : "end");
|
|
1575
|
-
o.setAttribute("id", e), o.setAttribute("viewBox", "0 0 ".concat(2 * k, " ").concat(2 * c)), o.setAttribute("refX", k + "px"), o.setAttribute("refY", c + "px"), o.setAttribute("markerWidth", 2 * k + "px"), o.setAttribute("markerHeight", 2 * c + "px"), o.setAttribute("orient", "auto"), o.setAttribute("markerUnits", "userSpaceOnUse");
|
|
1576
|
-
var l = A("path"), d = ["M 0,".concat(c), "L ".concat(k, ",0"), "L ".concat(2 * k, ",").concat(c), "L ".concat(k, ",").concat(2 * c), "Z"].join(" ");
|
|
1577
|
-
l.setAttribute("d", d), l.setAttribute("fill", F(m) || "transparent"), o.appendChild(l), t.appendChild(o), r.appendChild(t), n.setAttribute(a ? "marker-start" : "marker-end", "url(#".concat(e, ")"));
|
|
1578
|
-
}
|
|
1579
|
-
function xe(i, r, n, a) {
|
|
1580
|
-
a === void 0 && (a = !1);
|
|
1581
|
-
var s = i.border, h = s === void 0 ? {} : s, p = i.uuid, y = h.headEnd, f = h.width, m = h.color, g = h.tailEnd, w = a ? y : g, j = w.len, L = j === void 0 ? "med" : j, C = w.w, B = C === void 0 ? "med" : C, k = it(L, f), c = it(B, f), t = A("defs"), o = A("marker"), e = "marker-".concat(p, "-").concat(a ? "start" : "end");
|
|
1582
|
-
o.setAttribute("id", e), o.setAttribute("viewBox", "0 0 ".concat(2 * k + 2 * f, " ").concat(2 * c + 2 * f));
|
|
1583
|
-
var l = a ? B === "lg" ? 2 * f : 3 * f : B === "lg" ? 2 * k : 2 * k - f;
|
|
1584
|
-
o.setAttribute("refX", l + "px"), o.setAttribute("refY", c + f + "px"), o.setAttribute("markerWidth", 2 * k + "px"), o.setAttribute("markerHeight", 2 * c + "px"), o.setAttribute("orient", "auto"), o.setAttribute("markerUnits", "userSpaceOnUse");
|
|
1585
|
-
var d = A("path"), b = a ? ["M ".concat(2 * k + f, ", ").concat(f), "L ".concat(f, ",").concat(c + f), "L ".concat(2 * k + f, ",").concat(2 * c + f)].join(" ") : ["M ".concat(f, ", ").concat(f), "L ".concat(2 * k + f, ",").concat(c + f), "L ".concat(f, ",").concat(2 * c + f)].join(" ");
|
|
1586
|
-
d.setAttribute("d", b), d.setAttribute("stroke-width", f + "px"), d.setAttribute("stroke", F(m) || "transparent"), d.setAttribute("fill", "transparent"), d.setAttribute("stroke-linecap", "round"), d.setAttribute("stroke-linejoin", "miter"), d.style.overflow = "visible", o.appendChild(d), t.appendChild(o), r.appendChild(t), n.setAttribute(a ? "marker-start" : "marker-end", "url(#".concat(e, ")"));
|
|
1587
|
-
}
|
|
1588
|
-
function Le(i, r, n, a) {
|
|
1589
|
-
a === void 0 && (a = !1);
|
|
1590
|
-
var s = i.border, h = s === void 0 ? {} : s, p = i.uuid, y = h.headEnd, f = h.width, m = h.color, g = h.tailEnd, w = a ? y : g, j = w.len, L = j === void 0 ? "med" : j, C = w.w, B = C === void 0 ? "med" : C, k = it(L, f), c = it(B, f), t = A("defs"), o = A("marker"), e = "marker-".concat(p, "-").concat(a ? "start" : "end");
|
|
1591
|
-
o.setAttribute("id", e), o.setAttribute("viewBox", "0 0 ".concat(2 * k, " ").concat(2 * c));
|
|
1592
|
-
var l = a ? B === "sm" ? 1.5 * f : 2 * f : B === "sm" ? 2 * k - 1.5 * f : 2 * k - 2 * f;
|
|
1593
|
-
o.setAttribute("refX", l + "px"), o.setAttribute("refY", c + "px"), o.setAttribute("markerWidth", 2 * k + "px"), o.setAttribute("markerHeight", 2 * c + "px"), o.setAttribute("orient", "auto"), o.setAttribute("markerUnits", "userSpaceOnUse");
|
|
1594
|
-
var d = A("path"), b = a ? ["M 0, ".concat(c), "L ".concat(2 * k, ",0"), "L ".concat(k, ",").concat(c), "L ".concat(2 * k, ",").concat(2 * c), "Z"].join(" ") : ["M 0,0", "L ".concat(2 * k, ",").concat(c), "L 0,".concat(2 * c), "L ".concat(k, ",").concat(c), "Z"].join(" ");
|
|
1595
|
-
d.setAttribute("d", b), d.setAttribute("fill", F(m) || "transparent"), d.style.overflow = "visible", o.appendChild(d), t.appendChild(o), r.appendChild(t), n.setAttribute(a ? "marker-start" : "marker-end", "url(#".concat(e, ")"));
|
|
1596
|
-
}
|
|
1597
|
-
function dt(i, r, n) {
|
|
1598
|
-
var a = i.border, s = a === void 0 ? {} : a;
|
|
1599
|
-
i.extend;
|
|
1600
|
-
var h = s.headEnd, p = s.tailEnd;
|
|
1601
|
-
if (h && h.type !== "none") switch (h.type) {
|
|
1602
|
-
case "triangle":
|
|
1603
|
-
be(i, r, n, !0);
|
|
1604
|
-
break;
|
|
1605
|
-
case "oval":
|
|
1606
|
-
we(i, r, n, !0);
|
|
1607
|
-
break;
|
|
1608
|
-
case "diamond":
|
|
1609
|
-
me(i, r, n, !0);
|
|
1610
|
-
break;
|
|
1611
|
-
case "arrow":
|
|
1612
|
-
xe(i, r, n, !0);
|
|
1613
|
-
break;
|
|
1614
|
-
case "stealth":
|
|
1615
|
-
Le(i, r, n, !0);
|
|
1616
|
-
}
|
|
1617
|
-
if (p && p.type !== "none") switch (p.type) {
|
|
1618
|
-
case "triangle":
|
|
1619
|
-
be(i, r, n, !1);
|
|
1620
|
-
break;
|
|
1621
|
-
case "oval":
|
|
1622
|
-
we(i, r, n, !1);
|
|
1623
|
-
break;
|
|
1624
|
-
case "diamond":
|
|
1625
|
-
me(i, r, n, !1);
|
|
1626
|
-
break;
|
|
1627
|
-
case "arrow":
|
|
1628
|
-
xe(i, r, n, !1);
|
|
1629
|
-
break;
|
|
1630
|
-
case "stealth":
|
|
1631
|
-
Le(i, r, n, !1);
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
function Me(i) {
|
|
1635
|
-
var r = i.extend, n = A("rect");
|
|
1636
|
-
return n.setAttribute("x", "0"), n.setAttribute("y", "0"), n.setAttribute("width", r.w + "px"), n.setAttribute("height", r.h + "px"), n;
|
|
1637
|
-
}
|
|
1638
|
-
function K(i, r, n, a, s) {
|
|
1639
|
-
var h = i * Math.PI / 180;
|
|
1640
|
-
return [h === 0 || h === 2 * Math.PI ? r + a : h === Math.PI ? r - a : h === Math.PI / 2 || h === 3 * Math.PI / 2 ? r : h > 0 && h < Math.PI / 2 || h > 3 * Math.PI / 2 && h < 2 * Math.PI ? r + Math.sqrt(1 / (1 / Math.pow(a, 2) + Math.pow(Math.tan(h), 2) / Math.pow(s, 2))) : r - Math.sqrt(1 / (1 / Math.pow(a, 2) + Math.pow(Math.tan(h), 2) / Math.pow(s, 2))), h === 0 || h === 2 * Math.PI || h === Math.PI ? n : h === Math.PI / 2 ? n + s : h === 3 * Math.PI / 2 ? n - s : h > Math.PI && h < 2 * Math.PI ? n - Math.sqrt(1 / (1 / Math.pow(s, 2) + Math.pow(1 / Math.tan(h), 2) / Math.pow(a, 2))) : n + Math.sqrt(1 / (1 / Math.pow(s, 2) + Math.pow(1 / Math.tan(h), 2) / Math.pow(a, 2)))];
|
|
1641
|
-
}
|
|
1642
|
-
function ut(i, r) {
|
|
1643
|
-
var n = 0;
|
|
1644
|
-
return (r > i && r - i > 180 || r < i && i - r < 180) && (n = 1), n;
|
|
1645
|
-
}
|
|
1646
|
-
function ft(i) {
|
|
1647
|
-
var r = i.extend, n = 0.146 * r.w, a = 0.146 * r.h;
|
|
1648
|
-
return { top: a, bottom: a, left: n, right: n, w: r.w - 2 * n, h: r.h - 2 * a };
|
|
1649
|
-
}
|
|
1650
|
-
function pe(i) {
|
|
1651
|
-
var r = i.extend, n = i.offset, a = i.border, s = i.background, h = i.rotate, p = i.flipH, y = i.flipV, f = document.createElement("div"), m = n.x, g = n.y;
|
|
1652
|
-
f.className = "shape-wrapper shape-".concat(i.shape), f.style.setProperty("position", "absolute"), f.style.setProperty("width", (r.w || 1) + "px"), f.style.setProperty("height", (r.h || 1) + "px"), f.style.setProperty("left", m + "px"), f.style.setProperty("top", g + "px");
|
|
1653
|
-
var w, j = document.createElementNS(Ie, "svg");
|
|
1654
|
-
j.style.setProperty("position", "absolute"), j.setAttribute("width", "100%"), j.setAttribute("height", "100%"), j.style.setProperty("left", "0"), j.style.setProperty("top", "0"), j.style.overflow = "visible";
|
|
1655
|
-
var L = { left: 0, top: 0, bottom: 0, w: r.w, h: r.h }, C = !0;
|
|
1656
|
-
switch (i.shape) {
|
|
1657
|
-
case "customGeom":
|
|
1658
|
-
w = (function(c) {
|
|
1659
|
-
var t = c.prstGeom, o = t === void 0 ? {} : t, e = c.extend, l = o.pathList, d = o.w, b = o.h, v = A("path"), x = { moveTo: "M", lnTo: "L", cubicBezTo: "C", close: "Z" }, P = e.w / d, S = e.h / b, R = l.map((function(_) {
|
|
1660
|
-
var O = x[_.type], N = Array.isArray(_.points) ? _.points.map((function(D) {
|
|
1661
|
-
return "".concat(D[0] * P, ",").concat(D[1] * S);
|
|
1662
|
-
})).join(" ") : "";
|
|
1663
|
-
return N ? "".concat(O, " ").concat(N) : "".concat(O);
|
|
1664
|
-
})).join(" ");
|
|
1665
|
-
return v.setAttribute("d", R), v.style.fillRule = "evenodd", v;
|
|
1666
|
-
})(i), dt(i, j, w);
|
|
1667
|
-
break;
|
|
1668
|
-
case "flowChartProcess":
|
|
1669
|
-
case "rect":
|
|
1670
|
-
w = Me(i);
|
|
1671
|
-
break;
|
|
1672
|
-
case "snip1Rect":
|
|
1673
|
-
w = (function(c) {
|
|
1674
|
-
var t = c.extend, o = A("polygon"), e = M("adj", c, st(c)), l = ["0,0", "".concat(t.w - e, ",0"), "".concat(t.w, ",").concat(e), "".concat(t.w, ",").concat(t.h), "0,".concat(t.h)].join(" ");
|
|
1675
|
-
return o.setAttribute("points", l), o;
|
|
1676
|
-
})(i);
|
|
1677
|
-
break;
|
|
1678
|
-
case "snip2SameRect":
|
|
1679
|
-
w = (function(c) {
|
|
1680
|
-
var t = c.extend, o = A("polygon"), e = M("adj1", c, st(c)), l = M("adj2", c, 0), d = [[e, 0], [t.w - e, 0], [t.w, e], [t.w, t.h - l], [t.w - l, t.h], [l, t.h], [0, t.h - l], [0, e]].map((function(b) {
|
|
1681
|
-
return "".concat(b[0], ",").concat(b[1]);
|
|
1682
|
-
})).join(" ");
|
|
1683
|
-
return o.setAttribute("points", d), o;
|
|
1684
|
-
})(i);
|
|
1685
|
-
break;
|
|
1686
|
-
case "snip2DiagRect":
|
|
1687
|
-
w = (function(c) {
|
|
1688
|
-
var t = c.extend, o = A("polygon"), e = M("adj1", c, 0), l = M("adj2", c, st(c)), d = [[e, 0], [t.w - l, 0], [t.w, l], [t.w, t.h - e], [t.w - e, t.h], [l, t.h], [0, t.h - l], [0, e]].map((function(b) {
|
|
1689
|
-
return "".concat(b[0], ",").concat(b[1]);
|
|
1690
|
-
})).join(" ");
|
|
1691
|
-
return o.setAttribute("points", d), o;
|
|
1692
|
-
})(i);
|
|
1693
|
-
break;
|
|
1694
|
-
case "snipRoundRect":
|
|
1695
|
-
w = (function(c) {
|
|
1696
|
-
var t = c.extend, o = A("path"), e = M("adj1", c, st(c)), l = M("adj2", c, st(c)), d = ["M ".concat(e, ",0"), "L ".concat(t.w - l, ",0"), "L ".concat(t.w, ",").concat(l), "L ".concat(t.w, ",").concat(t.h), "L 0,".concat(t.h), "L 0,".concat(e), "Q 0,0 ".concat(e, ",0"), "Z"].join(" ");
|
|
1697
|
-
return o.setAttribute("d", d), o;
|
|
1698
|
-
})(i);
|
|
1699
|
-
break;
|
|
1700
|
-
case "roundRect":
|
|
1701
|
-
w = (function(c) {
|
|
1702
|
-
var t = Me(c), o = M("adj", c, st(c));
|
|
1703
|
-
return t.setAttribute("rx", o + "px"), t.setAttribute("ry", o + "px"), t;
|
|
1704
|
-
})(i);
|
|
1705
|
-
break;
|
|
1706
|
-
case "round1Rect":
|
|
1707
|
-
w = (function(c) {
|
|
1708
|
-
var t = c.extend, o = A("path"), e = M("adj", c, st(c)), l = ["M 0,0", "L ".concat(t.w - e, ",0"), "Q ".concat(t.w, ",0 ").concat(t.w, ",").concat(e), "L ".concat(t.w, ",").concat(t.h), "L 0,".concat(t.h), "Z"].join(" ");
|
|
1709
|
-
return o.setAttribute("d", l), o;
|
|
1710
|
-
})(i);
|
|
1711
|
-
break;
|
|
1712
|
-
case "round2SameRect":
|
|
1713
|
-
w = (function(c) {
|
|
1714
|
-
var t = c.extend, o = A("path"), e = M("adj1", c, st(c)), l = M("adj2", c, 0), d = ["M ".concat(e, ",0"), "L ".concat(t.w - e, ",0"), "Q ".concat(t.w, ",0 ").concat(t.w, ",").concat(e), "L ".concat(t.w, ",").concat(t.h - l), "Q ".concat(t.w, ",").concat(t.h, " ").concat(t.w - l, ",").concat(t.h), "L ".concat(l, ",").concat(t.h), "Q 0,".concat(t.h, " 0,").concat(t.h - l), "L 0,".concat(e), "Q 0,0 ".concat(e, ",0"), "Z"].join(" ");
|
|
1715
|
-
return o.setAttribute("d", d), o;
|
|
1716
|
-
})(i);
|
|
1717
|
-
break;
|
|
1718
|
-
case "round2DiagRect":
|
|
1719
|
-
w = (function(c) {
|
|
1720
|
-
var t = c.extend, o = A("path"), e = M("adj1", c, st(c)), l = M("adj2", c, 0), d = ["M ".concat(e, ",0"), "L ".concat(t.w - l, ",0"), "Q ".concat(t.w, ",0 ").concat(t.w, ",").concat(l), "L ".concat(t.w, ",").concat(t.h - e), "Q ".concat(t.w, ",").concat(t.h, " ").concat(t.w - e, ",").concat(t.h), "L ".concat(l, ",").concat(t.h), "Q 0,".concat(t.h, " 0,").concat(t.h - l), "L 0,".concat(e), "Q 0,0 ".concat(e, ",0"), "Z"].join(" ");
|
|
1721
|
-
return o.setAttribute("d", d), o;
|
|
1722
|
-
})(i);
|
|
1723
|
-
break;
|
|
1724
|
-
case "triangle":
|
|
1725
|
-
w = (function(c) {
|
|
1726
|
-
var t = c.extend, o = A("polygon"), e = ["".concat(t.w / 2, ",0"), "0,".concat(t.h), "".concat(t.w, ",").concat(t.h)].join(" ");
|
|
1727
|
-
return o.setAttribute("points", e), o;
|
|
1728
|
-
})(i);
|
|
1729
|
-
break;
|
|
1730
|
-
case "rtTriangle":
|
|
1731
|
-
w = (function(c) {
|
|
1732
|
-
var t = c.extend, o = A("polygon"), e = ["0,".concat(t.h), "0,0", "".concat(t.w, ",").concat(t.h)].join(" ");
|
|
1733
|
-
return o.setAttribute("points", e), o;
|
|
1734
|
-
})(i);
|
|
1735
|
-
break;
|
|
1736
|
-
case "ellipse":
|
|
1737
|
-
w = (function(c) {
|
|
1738
|
-
var t = c.extend, o = A("ellipse"), e = t.w / 2, l = t.h / 2, d = e, b = l;
|
|
1739
|
-
return o.setAttribute("cx", e + "px"), o.setAttribute("cy", l + "px"), o.setAttribute("rx", d + "px"), o.setAttribute("ry", b + "px"), o;
|
|
1740
|
-
})(i);
|
|
1741
|
-
break;
|
|
1742
|
-
case "line":
|
|
1743
|
-
w = (function(c) {
|
|
1744
|
-
var t = c.extend, o = A("path"), e = ["M 0,0", "L ".concat(t.w, ",").concat(t.h)].join(" ");
|
|
1745
|
-
return o.setAttribute("d", e), o;
|
|
1746
|
-
})(i), dt(i, j, w), C = !1;
|
|
1747
|
-
break;
|
|
1748
|
-
case "straightConnector1":
|
|
1749
|
-
w = (function(c) {
|
|
1750
|
-
var t = c.extend, o = A("path"), e = ["M 0,0", "L ".concat(t.w, ",").concat(t.h)].join(" ");
|
|
1751
|
-
return o.setAttribute("d", e), o;
|
|
1752
|
-
})(i), dt(i, j, w), C = !1;
|
|
1753
|
-
break;
|
|
1754
|
-
case "bentConnector3":
|
|
1755
|
-
w = (function(c) {
|
|
1756
|
-
var t = c.extend, o = A("path"), e = ge("adj1", c, 0.5 * Math.max(t.w, t.h)), l = ["M 0,0", "L ".concat(e, ",0"), "L ".concat(e, ",").concat(t.h), "L ".concat(t.w, ",").concat(t.h)].join(" ");
|
|
1757
|
-
return o.setAttribute("d", l), o;
|
|
1758
|
-
})(i), dt(i, j, w), C = !1;
|
|
1759
|
-
break;
|
|
1760
|
-
case "curvedConnector3":
|
|
1761
|
-
w = (function(c) {
|
|
1762
|
-
var t = c.extend, o = A("path"), e = ge("adj1", c, 0.5 * Math.max(t.w, t.h)), l = ["M0,0", "Q".concat(e, ",0 ").concat(e, ",").concat(t.h / 2), "T".concat(t.w, ",").concat(t.h)].join(" ");
|
|
1763
|
-
return o.setAttribute("d", l), o;
|
|
1764
|
-
})(i), dt(i, j, w), C = !1;
|
|
1765
|
-
break;
|
|
1766
|
-
case "parallelogram":
|
|
1767
|
-
w = (function(c) {
|
|
1768
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.5 * Math.min(t.w, t.h)), l = ["M".concat(e, ",0"), "L".concat(t.w, ",0"), "L".concat(t.w - e, ",").concat(t.h), "L0,".concat(t.h), "Z"].join(" ");
|
|
1769
|
-
return o.setAttribute("d", l), o;
|
|
1770
|
-
})(i), L = (function(c) {
|
|
1771
|
-
var t = c.extend, o = M("adj", c, 0.5 * Math.min(t.w, t.h)), e = 0.84 * (t.w - o), l = 0.08 * t.h + o / t.w * t.h * 0.42;
|
|
1772
|
-
return { top: l, bottom: l, left: (t.w - e) / 2, right: (t.w - e) / 2, w: e, h: t.h - 2 * l };
|
|
1773
|
-
})(i);
|
|
1774
|
-
break;
|
|
1775
|
-
case "trapezoid":
|
|
1776
|
-
w = (function(c) {
|
|
1777
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.25 * Math.min(t.w, t.h)), l = ["M".concat(e, ",0"), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(t.h), "L0,".concat(t.h), "Z"].join(" ");
|
|
1778
|
-
return o.setAttribute("d", l), o;
|
|
1779
|
-
})(i), L = (function(c) {
|
|
1780
|
-
var t = c.extend, o = M("adj", c, 0.5 * Math.min(t.w, t.h)), e = o / t.w * 0.66 * t.h, l = 0.66 * o;
|
|
1781
|
-
return { top: e, bottom: 0, left: l, right: l, w: t.w - 2 * l, h: t.h - e };
|
|
1782
|
-
})(i);
|
|
1783
|
-
break;
|
|
1784
|
-
case "diamond":
|
|
1785
|
-
w = (function(c) {
|
|
1786
|
-
var t = c.extend, o = A("path"), e = ["M".concat(t.w / 2, ",0"), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w / 2, ",").concat(t.h), "L0,".concat(t.h / 2), "Z"].join(" ");
|
|
1787
|
-
return o.setAttribute("d", e), o;
|
|
1788
|
-
})(i), L = (function(c) {
|
|
1789
|
-
var t = c.extend, o = 0.25 * t.h, e = 0.25 * t.w;
|
|
1790
|
-
return { top: o, bottom: o, left: e, right: e, w: 0.5 * t.w, h: 0.5 * t.h };
|
|
1791
|
-
})(i);
|
|
1792
|
-
break;
|
|
1793
|
-
case "pentagon":
|
|
1794
|
-
w = (function(c) {
|
|
1795
|
-
var t = c.extend, o = A("path"), e = ["M".concat(t.w / 2, ",0"), "L".concat(t.w, ",").concat(0.3771 * t.h), "L".concat(0.808 * t.w, ",").concat(t.h), "L".concat(0.192 * t.w, ",").concat(t.h), "L0,".concat(0.3771 * t.h), "Z"].join(" ");
|
|
1796
|
-
return o.setAttribute("d", e), o;
|
|
1797
|
-
})(i), L = (function(c) {
|
|
1798
|
-
var t = c.extend, o = 0.227 * t.h, e = 0.192 * t.w;
|
|
1799
|
-
return { top: o, bottom: 0, left: e, right: e, w: 0.616 * t.w, h: 0.773 * t.h };
|
|
1800
|
-
})(i);
|
|
1801
|
-
break;
|
|
1802
|
-
case "hexagon":
|
|
1803
|
-
w = (function(c) {
|
|
1804
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.25 * Math.min(t.w, t.h)), l = ["M".concat(e, ",0"), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - e, ",").concat(t.h), "L".concat(e, ",").concat(t.h), "L0,".concat(t.h / 2), "Z"].join(" ");
|
|
1805
|
-
return o.setAttribute("d", l), o;
|
|
1806
|
-
})(i), L = (function(c) {
|
|
1807
|
-
var t = c.extend, o = M("adj", c, 0.25 * Math.min(t.w, t.h)), e = 0.098 * t.h + o / t.w * 0.38 * t.h, l = 0.088 * t.w + 0.422 * o;
|
|
1808
|
-
return { top: e, bottom: e, left: l, right: l, w: t.w - 2 * l, h: t.h - 2 * e };
|
|
1809
|
-
})(i);
|
|
1810
|
-
break;
|
|
1811
|
-
case "heptagon":
|
|
1812
|
-
w = (function(c) {
|
|
1813
|
-
var t = c.extend, o = A("path"), e = ["M".concat(t.w / 2, ",0"), "L".concat(0.9 * t.w, ",").concat(0.2 * t.h), "L".concat(t.w, ",").concat(0.642 * t.h), "L".concat(0.722 * t.w, ",").concat(t.h), "L".concat(0.278 * t.w, ",").concat(t.h), "L0,".concat(0.642 * t.h), "L".concat(0.1 * t.w, ",").concat(0.2 * t.h), "Z"].join(" ");
|
|
1814
|
-
return o.setAttribute("d", e), o;
|
|
1815
|
-
})(i), L = (function(c) {
|
|
1816
|
-
var t = c.extend;
|
|
1817
|
-
return { top: 0.2 * t.h, bottom: 0.2 * t.h, left: 0.1 * t.w, right: 0.1 * t.w, w: 0.8 * t.w, h: 0.6 * t.h };
|
|
1818
|
-
})(i);
|
|
1819
|
-
break;
|
|
1820
|
-
case "octagon":
|
|
1821
|
-
w = (function(c) {
|
|
1822
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.29 * Math.min(t.w, t.h)), l = ["M".concat(e, ",0"), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(e), "L".concat(t.w, ",").concat(t.h - e), "L".concat(t.w - e, ",").concat(t.h), "L".concat(e, ",").concat(t.h), "L0,".concat(t.h - e), "L0,".concat(e), "Z"].join(" ");
|
|
1823
|
-
return o.setAttribute("d", l), o;
|
|
1824
|
-
})(i), L = (function(c) {
|
|
1825
|
-
var t = c.extend, o = M("adj", c, 0.29 * Math.min(t.w, t.h));
|
|
1826
|
-
return { top: 0.5 * o, bottom: 0.5 * o, left: 0.5 * o, right: 0.5 * o, w: t.w - o, h: t.h - o };
|
|
1827
|
-
})(i);
|
|
1828
|
-
break;
|
|
1829
|
-
case "decagon":
|
|
1830
|
-
w = (function(c) {
|
|
1831
|
-
var t = c.extend, o = A("path"), e = 0.344, l = 0.117, d = 0.19, b = ["M".concat(t.w * e, ",0"), "L".concat(0.656 * t.w, ",0"), "L".concat(0.883 * t.w, ",").concat(t.h * d), "L".concat(t.w, ",").concat(0.5 * t.h), "L".concat(0.883 * t.w, ",").concat(0.81 * t.h), "L".concat(0.656 * t.w, ",").concat(t.h), "L".concat(t.w * e, ",").concat(t.h), "L".concat(t.w * l, ",").concat(0.81 * t.h), "L0,".concat(0.5 * t.h), "L".concat(t.w * l, ",").concat(t.h * d), "Z"].join(" ");
|
|
1832
|
-
return o.setAttribute("d", b), o;
|
|
1833
|
-
})(i), L = (function(c) {
|
|
1834
|
-
var t = c.extend, o = 0.117, e = 0.19;
|
|
1835
|
-
return { top: t.h * e, bottom: t.h * e, left: t.w * o, right: t.w * o, w: 0.766 * t.w, h: 0.62 * t.h };
|
|
1836
|
-
})(i);
|
|
1837
|
-
break;
|
|
1838
|
-
case "dodecagon":
|
|
1839
|
-
w = (function(c) {
|
|
1840
|
-
var t = c.extend, o = A("path"), e = 0.364, l = 0.133, d = 0.135, b = ["M".concat(t.w * e, ",0"), "L".concat(0.636 * t.w, ",0"), "L".concat(0.867 * t.w, ",").concat(t.h * d), "L".concat(t.w, ",").concat(t.h * e), "L".concat(t.w, ",").concat(0.636 * t.h), "L".concat(0.867 * t.w, ",").concat(0.865 * t.h), "L".concat(0.636 * t.w, ",").concat(t.h), "L".concat(t.w * e, ",").concat(t.h), "L".concat(t.w * l, ",").concat(0.865 * t.h), "L0,".concat(0.636 * t.h), "L0,".concat(t.h * e), "L".concat(t.w * l, ",").concat(t.h * d), "Z"].join(" ");
|
|
1841
|
-
return o.setAttribute("d", b), o;
|
|
1842
|
-
})(i), L = (function(c) {
|
|
1843
|
-
var t = c.extend, o = 0.133, e = 0.135;
|
|
1844
|
-
return { top: t.h * e, bottom: t.h * e, left: t.w * o, right: t.w * o, w: 0.734 * t.w, h: 0.73 * t.h };
|
|
1845
|
-
})(i);
|
|
1846
|
-
break;
|
|
1847
|
-
case "pie":
|
|
1848
|
-
w = (function(c) {
|
|
1849
|
-
var t = c.extend, o = A("path"), e = T("adj1", c, 360), l = T("adj2", c, 270), d = t.w / 2, b = t.h / 2, v = t.w / 2, x = t.h / 2, P = K(e, v, x, d, b), S = P[0], R = P[1], _ = K(l, v, x, d, b), O = _[0], N = _[1], D = ut(e, l), G = "M".concat(v, ",").concat(x, ", L").concat(S, " ").concat(R, " A ").concat(d, " ").concat(b, " 0 ").concat(D, " ").concat(1, " ").concat(O, " ").concat(N, " Z");
|
|
1850
|
-
return o.setAttribute("d", G), o;
|
|
1851
|
-
})(i), L = ft(i);
|
|
1852
|
-
break;
|
|
1853
|
-
case "arc":
|
|
1854
|
-
w = (function(c) {
|
|
1855
|
-
var t = c.extend, o = A("path"), e = T("adj1", c, 270), l = T("adj2", c, 0), d = t.w / 2, b = t.h / 2, v = t.w / 2, x = t.h / 2, P = K(e, v, x, d, b), S = P[0], R = P[1], _ = K(l, v, x, d, b), O = _[0], N = _[1], D = ut(e, l), G = "M".concat(S, ",").concat(R, " A ").concat(d, " ").concat(b, " 0 ").concat(D, " ").concat(1, " ").concat(O, " ").concat(N);
|
|
1856
|
-
return o.setAttribute("d", G), o;
|
|
1857
|
-
})(i), C = !1;
|
|
1858
|
-
break;
|
|
1859
|
-
case "bracketPair":
|
|
1860
|
-
w = (function(c) {
|
|
1861
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.16667 * Math.min(t.w, t.h)), l = ["M".concat(e, ",").concat(t.h), "Q".concat(0, ",").concat(t.h, " ").concat(0, ",").concat(t.h - e), "L".concat(0, ",").concat(e), "Q".concat(0, ",").concat(0, " ").concat(e, ",").concat(0), "M".concat(t.w - e, ",").concat(0), "Q".concat(t.w, ",").concat(0, " ").concat(t.w, ",").concat(e), "L".concat(t.w, ",").concat(t.h - e), "Q".concat(t.w, ",").concat(t.h, " ").concat(t.w - e, ",").concat(t.h)].join(" ");
|
|
1862
|
-
return o.setAttribute("d", l), o;
|
|
1863
|
-
})(i), L = (function(c) {
|
|
1864
|
-
var t = c.extend, o = 0.285 * M("adj", c, 0.16667 * Math.min(t.w, t.h));
|
|
1865
|
-
return { top: o, bottom: o, left: o, right: o, w: t.w - 2 * o, h: t.h - 2 * o };
|
|
1866
|
-
})(i), C = !1;
|
|
1867
|
-
break;
|
|
1868
|
-
case "bracePair":
|
|
1869
|
-
w = (function(c) {
|
|
1870
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.083335 * Math.min(t.w, t.h)), l = ["M".concat(2 * e, ",").concat(t.h), "Q".concat(e, ",").concat(t.h, " ").concat(e, ",").concat(t.h - e), "L".concat(e, ",").concat(t.h / 2 + e), "Q".concat(e, ",").concat(t.h / 2, " ").concat(0, ",").concat(t.h / 2), "Q".concat(e, ",").concat(t.h / 2, " ").concat(e, ",").concat(t.h / 2 - e), "L".concat(e, ",").concat(e), "Q".concat(e, ",").concat(0, " ").concat(2 * e, ",").concat(0), "M".concat(t.w - 2 * e, ",").concat(0), "Q".concat(t.w - e, ",").concat(0, " ").concat(t.w - e, ",").concat(e), "L".concat(t.w - e, ",").concat(t.h / 2 - e), "Q".concat(t.w - e, ",").concat(t.h / 2, " ").concat(t.w, ",").concat(t.h / 2), "Q".concat(t.w - e, ",").concat(t.h / 2, " ").concat(t.w - e, ",").concat(t.h / 2 + e), "L".concat(t.w - e, ",").concat(t.h - e), "Q".concat(t.w - e, ",").concat(t.h, " ").concat(t.w - 2 * e, ",").concat(t.h)].join(" ");
|
|
1871
|
-
return o.setAttribute("d", l), o;
|
|
1872
|
-
})(i), L = (function(c) {
|
|
1873
|
-
var t = c.extend, o = 0.285 * M("adj", c, 0.16667 * Math.min(t.w, t.h));
|
|
1874
|
-
return { top: o, bottom: o, left: o, right: o, w: t.w - 2 * o, h: t.h - 2 * o };
|
|
1875
|
-
})(i), C = !1;
|
|
1876
|
-
break;
|
|
1877
|
-
case "chord":
|
|
1878
|
-
w = (function(c) {
|
|
1879
|
-
var t = c.extend, o = A("path"), e = T("adj1", c, 45), l = T("adj2", c, 270), d = t.w / 2, b = t.h / 2, v = t.w / 2, x = t.h / 2, P = K(e, v, x, d, b), S = P[0], R = P[1], _ = K(l, v, x, d, b), O = _[0], N = _[1], D = ut(e, l), G = "M".concat(S, " ").concat(R, " A ").concat(d, " ").concat(b, " 0 ").concat(D, " ").concat(1, " ").concat(O, " ").concat(N, " Z");
|
|
1880
|
-
return o.setAttribute("d", G), o;
|
|
1881
|
-
})(i), L = ft(i);
|
|
1882
|
-
break;
|
|
1883
|
-
case "teardrop":
|
|
1884
|
-
w = (function(c) {
|
|
1885
|
-
var t = c.extend, o = A("path"), e = T("adj", c, 1), l = t.w / 2, d = t.h / 2, b = t.w / 2, v = t.h / 2, x = K(0, b, v, l, d), P = x[0], S = x[1], R = K(270, b, v, l, d), _ = R[0], O = R[1], N = ut(0, 270), D = "M".concat(P, " ").concat(S, " A ").concat(l, " ").concat(d, " 0 ").concat(N, " ").concat(1, " ").concat(_, " ").concat(O), G = l * e, H = b + G, E = v - d * G / (t.w / 2), z = (t.w / 2 + H) / 2, Q = (t.h / 2 + E) / 2;
|
|
1886
|
-
return D += " Q".concat(z, ",0 ").concat(H, ",").concat(E), D += " Q".concat(t.w, ",").concat(Q, " ").concat(b + l, ",").concat(v), o.setAttribute("d", D), o;
|
|
1887
|
-
})(i), L = ft(i);
|
|
1888
|
-
break;
|
|
1889
|
-
case "frame":
|
|
1890
|
-
w = (function(c) {
|
|
1891
|
-
var t = c.extend, o = A("path"), e = M("adj1", c, 0.12 * Math.min(t.w, t.h)), l = ["M0,0", "L".concat(t.w, ",0"), "L".concat(t.w, ",").concat(t.h), "L0,".concat(t.h), "Z", "M".concat(e, ",").concat(e), "L".concat(e, ",").concat(t.h - e), "L".concat(t.w - e, ",").concat(t.h - e), "L".concat(t.w - e, ",").concat(e), "Z"].join(" ");
|
|
1892
|
-
return o.setAttribute("d", l), o;
|
|
1893
|
-
})(i), L = (function(c) {
|
|
1894
|
-
var t = c.extend, o = M("adj1", c, 0.12 * Math.min(t.w, t.h));
|
|
1895
|
-
return { top: o, bottom: o, left: o, right: o, w: t.w - 2 * o, h: t.h - 2 * o };
|
|
1896
|
-
})(i);
|
|
1897
|
-
break;
|
|
1898
|
-
case "halfFrame":
|
|
1899
|
-
w = (function(c) {
|
|
1900
|
-
var t = c.extend, o = A("path"), e = M("adj1", c, 0.333 * Math.min(t.w, t.h)), l = Math.min(M("adj2", c, 0.333 * Math.min(t.w, t.h)), t.w * (1 - e / t.h)), d = ["M0,0", "L".concat(t.w, ",0"), "L".concat(t.w * (1 - e / t.h), ",").concat(e), "L".concat(l, ",").concat(e), "L".concat(l, ",").concat(t.h * (1 - l / t.w)), "L0,".concat(t.h), "Z"].join(" ");
|
|
1901
|
-
return o.setAttribute("d", d), o;
|
|
1902
|
-
})(i);
|
|
1903
|
-
break;
|
|
1904
|
-
case "corner":
|
|
1905
|
-
w = (function(c) {
|
|
1906
|
-
var t = c.extend, o = A("path"), e = M("adj1", c, 0.5 * Math.min(t.w, t.h)), l = M("adj2", c, 0.5 * Math.min(t.w, t.h)), d = ["M0,0", "L".concat(l, ",0"), "L".concat(l, ",").concat(t.h - e), "L".concat(t.w, ",").concat(t.h - e), "L".concat(t.w, ",").concat(t.h), "L0,".concat(t.h), "Z"].join(" ");
|
|
1907
|
-
return o.setAttribute("d", d), o;
|
|
1908
|
-
})(i), L = (function(c) {
|
|
1909
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h));
|
|
1910
|
-
return { top: t.h - o, bottom: 0, left: 0, right: 0, w: t.w, h: o };
|
|
1911
|
-
})(i);
|
|
1912
|
-
break;
|
|
1913
|
-
case "diagStripe":
|
|
1914
|
-
w = (function(c) {
|
|
1915
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.5 * Math.min(t.w, t.h)), l = t.w * e / t.h, d = ["M".concat(l, ",0"), "L".concat(t.w, ",0"), "L0,".concat(t.h), "L0,".concat(e), "Z"].join(" ");
|
|
1916
|
-
return o.setAttribute("d", d), o;
|
|
1917
|
-
})(i), L = (function(c) {
|
|
1918
|
-
var t = c.extend, o = T("adj", c, 0.5), e = 0.5 * (1 - o) * t.h, l = 0.5 * (1 - o) * t.w;
|
|
1919
|
-
return { top: 0, bottom: e, left: 0, right: l, w: t.w - l, h: t.h - e };
|
|
1920
|
-
})(i);
|
|
1921
|
-
break;
|
|
1922
|
-
case "plus":
|
|
1923
|
-
w = (function(c) {
|
|
1924
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.25 * Math.min(t.w, t.h)), l = ["M".concat(e, ",0"), "L".concat(t.w - e, ",0"), "L".concat(t.w - e, ",").concat(e), "L".concat(t.w, ",").concat(e), "L".concat(t.w, ",").concat(t.h - e), "L".concat(t.w - e, ",").concat(t.h - e), "L".concat(t.w - e, ",").concat(t.h), "L".concat(e, ",").concat(t.h), "L".concat(e, ",").concat(t.h - e), "L0,".concat(t.h - e), "L0,".concat(e), "L".concat(e, ",").concat(e), "Z"].join(" ");
|
|
1925
|
-
return o.setAttribute("d", l), o;
|
|
1926
|
-
})(i), L = (function(c) {
|
|
1927
|
-
var t = c.extend, o = M("adj", c, 0.25 * Math.min(t.w, t.h));
|
|
1928
|
-
return { top: o, bottom: o, left: 0, right: 0, w: t.w, h: t.h - 2 * o };
|
|
1929
|
-
})(i);
|
|
1930
|
-
break;
|
|
1931
|
-
case "plaque":
|
|
1932
|
-
w = (function(c) {
|
|
1933
|
-
var t = c.extend, o = A("path"), e = M("adj", c, 0.16667 * Math.min(t.w, t.h)), l = ["M".concat(e, ",0"), "L".concat(t.w - e, ",0"), "Q".concat(t.w - e, ",").concat(e, " ").concat(t.w, ",").concat(e), "L".concat(t.w, ",").concat(t.h - e), "Q".concat(t.w - e, ",").concat(t.h - e, " ").concat(t.w - e, ",").concat(t.h), "L".concat(e, ",").concat(t.h), "Q".concat(e, ",").concat(t.h - e, " 0,").concat(t.h - e), "L0,".concat(e), "Q".concat(e, ",").concat(e, " ").concat(e, ",0"), "Z"].join(" ");
|
|
1934
|
-
return o.setAttribute("d", l), o;
|
|
1935
|
-
})(i), L = (function(c) {
|
|
1936
|
-
var t = c.extend, o = M("adj", c, 0.16667 * Math.min(t.w, t.h));
|
|
1937
|
-
return { top: 0.72 * o, bottom: 0.72 * o, left: 0.72 * o, right: 0.72 * o, w: t.w - 1.44 * o, h: t.w - 1.44 * o };
|
|
1938
|
-
})(i);
|
|
1939
|
-
break;
|
|
1940
|
-
case "can":
|
|
1941
|
-
w = (function(c) {
|
|
1942
|
-
var t = c.extend, o = c.background, e = A("g"), l = A("path"), d = M("adj", c, 0.25 * Math.min(t.w, t.h)), b = ["M0,".concat(d / 2), "L0,".concat(t.h - d / 2), "A".concat(t.w / 2, ",").concat(d / 2, " 0 0 0 ").concat(t.w, ",").concat(t.h - d / 2), "L".concat(t.w, ",").concat(d / 2), "A".concat(t.w / 2, ",").concat(d / 2, " 0 0 1 0,").concat(d / 2), "Z"].join(" ");
|
|
1943
|
-
l.setAttribute("d", b);
|
|
1944
|
-
var v = A("ellipse"), x = t.w / 2, P = d / 2, S = t.w / 2, R = d / 2;
|
|
1945
|
-
return v.setAttribute("cx", x + "px"), v.setAttribute("cy", P + "px"), v.setAttribute("rx", S + "px"), v.setAttribute("ry", R + "px"), (o == null ? void 0 : o.type) === "solidFill" && v.setAttribute("fill", F(o, { light: 0.5 }) || "transparent"), e.appendChild(l), e.appendChild(v), e;
|
|
1946
|
-
})(i), L = (function(c) {
|
|
1947
|
-
var t = c.extend, o = M("adj", c, 0.25 * Math.min(t.w, t.h));
|
|
1948
|
-
return { top: o, bottom: 0, left: 0, right: 0, w: t.w, h: t.h - o };
|
|
1949
|
-
})(i);
|
|
1950
|
-
break;
|
|
1951
|
-
case "cube":
|
|
1952
|
-
w = (function(c) {
|
|
1953
|
-
var t = c.extend, o = c.background, e = M("adj", c, 0.25 * Math.min(t.w, t.h)), l = A("g"), d = A("path"), b = ["M0,".concat(e), "L".concat(t.w - e, ",").concat(e), "L".concat(t.w - e, ",").concat(t.h), "L0,".concat(t.h), "Z"].join(" ");
|
|
1954
|
-
d.setAttribute("d", b);
|
|
1955
|
-
var v = A("path"), x = ["M0,".concat(e), "L".concat(e, ",0"), "L".concat(t.w, ",0"), "L".concat(t.w - e, ",").concat(e), "Z"].join(" ");
|
|
1956
|
-
v.setAttribute("d", x), (o == null ? void 0 : o.type) === "solidFill" && v.setAttribute("fill", F(o, { light: 0.8 }) || "transparent");
|
|
1957
|
-
var P = A("path"), S = ["M".concat(t.w, ",0"), "L".concat(t.w - e, ",").concat(e), "L".concat(t.w - e, ",").concat(t.h), "L".concat(t.w, ",").concat(t.h - e), "Z"].join(" ");
|
|
1958
|
-
return P.setAttribute("d", S), (o == null ? void 0 : o.type) === "solidFill" && P.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent"), l.appendChild(d), l.appendChild(v), l.appendChild(P), l;
|
|
1959
|
-
})(i), L = (function(c) {
|
|
1960
|
-
var t = c.extend, o = M("adj", c, 0.25 * Math.min(t.w, t.h));
|
|
1961
|
-
return { top: o, bottom: 0, left: 0, right: o, w: t.w - o, h: t.h - o };
|
|
1962
|
-
})(i);
|
|
1963
|
-
break;
|
|
1964
|
-
case "bevel":
|
|
1965
|
-
w = (function(c) {
|
|
1966
|
-
var t = c.extend, o = c.background, e = M("adj", c, 0.125 * Math.min(t.w, t.h)), l = A("g"), d = A("path"), b = ["M".concat(e, ",").concat(e), "L".concat(t.w - e, ",").concat(e), "L".concat(t.w - e, ",").concat(t.h - e), "L".concat(e, ",").concat(t.h - e), "Z"].join(" ");
|
|
1967
|
-
d.setAttribute("d", b);
|
|
1968
|
-
var v = A("path"), x = ["M0,0", "L".concat(e, ",").concat(e), "L".concat(t.w - e, ",").concat(e), "L".concat(t.w, ",0"), "Z"].join(" ");
|
|
1969
|
-
v.setAttribute("d", x), (o == null ? void 0 : o.type) === "solidFill" && v.setAttribute("fill", F(o, { light: 0.8 }) || "transparent");
|
|
1970
|
-
var P = A("path"), S = ["M".concat(t.w, ",0"), "L".concat(t.w - e, ",").concat(e), "L".concat(t.w - e, ",").concat(t.h - e), "L".concat(t.w, ",").concat(t.h), "Z"].join(" ");
|
|
1971
|
-
P.setAttribute("d", S), (o == null ? void 0 : o.type) === "solidFill" && P.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent");
|
|
1972
|
-
var R = A("path"), _ = ["M".concat(t.w, ",").concat(t.h), "L".concat(t.w - e, ",").concat(t.h - e), "L".concat(e, ",").concat(t.h - e), "L0,".concat(t.h), "Z"].join(" ");
|
|
1973
|
-
R.setAttribute("d", _), (o == null ? void 0 : o.type) === "solidFill" && R.setAttribute("fill", F(o, { dark: 0.625 }) || "transparent");
|
|
1974
|
-
var O = A("path"), N = ["M0,".concat(t.h), "L".concat(e, ",").concat(t.h - e), "L".concat(e, ",").concat(e), "L0,0", "Z"].join(" ");
|
|
1975
|
-
return O.setAttribute("d", N), (o == null ? void 0 : o.type) === "solidFill" && O.setAttribute("fill", F(o, { light: 0.6 }) || "transparent"), l.appendChild(d), l.appendChild(v), l.appendChild(P), l.appendChild(R), l.appendChild(O), l;
|
|
1976
|
-
})(i), L = (function(c) {
|
|
1977
|
-
var t = c.extend, o = M("adj", c, 0.125 * Math.min(t.w, t.h));
|
|
1978
|
-
return { top: o, bottom: o, left: o, right: o, w: t.w - 2 * o, h: t.h - 2 * o };
|
|
1979
|
-
})(i);
|
|
1980
|
-
break;
|
|
1981
|
-
case "donut":
|
|
1982
|
-
w = (function(c) {
|
|
1983
|
-
var t = c.extend, o = M("adj", c, 0.25 * Math.min(t.w, t.h)), e = A("path"), l = ["M0,".concat(t.h / 2), "A".concat(t.w / 2, ",").concat(t.h / 2, " 0 1,1 0,").concat(t.h / 2 + 1), "Z", "M".concat(t.w - o, ",").concat(t.h / 2), "A".concat(t.w / 2 - o, ",").concat(t.h / 2 - o, " 0 1,0 ").concat(t.w - o, ",").concat(t.h / 2 + 1), "Z"].join(" ");
|
|
1984
|
-
return e.setAttribute("d", l), e;
|
|
1985
|
-
})(i), L = ft(i);
|
|
1986
|
-
break;
|
|
1987
|
-
case "noSmoking":
|
|
1988
|
-
w = (function(c) {
|
|
1989
|
-
var t = c.extend, o = M("adj", c, 0.25 * Math.min(t.w, t.h)), e = A("path"), l = Math.atan(t.h / t.w), d = o / 2 / Math.sin(l), b = t.w / 2, v = t.h / 2, x = -1 * t.h / t.w, P = t.h * d / t.w, S = t.w / 2 - o, R = t.h / 2 - o, _ = -2 * S * S * x * P, O = Math.sqrt(Math.pow(2 * S * S * x * P, 2) - 4 * (R * R + S * S * x * x) * S * S * (P * P - R * R)), N = 2 * (R * R + S * S * x * x), D = (_ - O) / N, G = x * D + P, H = (_ + O) / N, E = x * H + P, z = -t.h * d / t.w, Q = -2 * S * S * x * z, q = Math.sqrt(Math.pow(2 * S * S * x * z, 2) - 4 * (R * R + S * S * x * x) * S * S * (z * z - R * R)), X = 2 * (R * R + S * S * x * x), $ = (Q - q) / X, tt = x * $ + z, et = (Q + q) / X, rt = x * et + z, ot = ["M0,".concat(t.h / 2), "A".concat(t.w / 2, ",").concat(t.h / 2, " 0 1,1 0,").concat(t.h / 2 + 1), "Z", "M".concat(b + H, ",").concat(v - E), "A".concat(S, ",").concat(R, " 0 0 0 ").concat(b + D, ",").concat(v - G), "Z", "M".concat(b + $, ",").concat(v - tt), "A".concat(S, ",").concat(R, " 0 0 0 ").concat(b + et, ",").concat(v - rt), "Z"].join(" ");
|
|
1990
|
-
return e.setAttribute("d", ot), e;
|
|
1991
|
-
})(i), L = ft(i);
|
|
1992
|
-
break;
|
|
1993
|
-
case "rightArrow":
|
|
1994
|
-
w = (function(c) {
|
|
1995
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = M("adj2", c, 0.5 * Math.min(t.w, t.h)), l = A("path"), d = ["M0,".concat(t.h / 2 - o / 2), "L".concat(t.w - e, ",").concat(t.h / 2 - o / 2), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - e, ",").concat(t.h), "L".concat(t.w - e, ",").concat(t.h / 2 + o / 2), "L0,".concat(t.h / 2 + o / 2), "Z"].join(" ");
|
|
1996
|
-
return l.setAttribute("d", d), l;
|
|
1997
|
-
})(i), L = (function(c) {
|
|
1998
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = o * M("adj2", c, 0.5 * Math.min(t.w, t.h)) / t.h;
|
|
1999
|
-
return { top: t.h / 2 - o / 2, bottom: t.h / 2 - o / 2, left: 0, right: e, w: t.w - e, h: o };
|
|
2000
|
-
})(i);
|
|
2001
|
-
break;
|
|
2002
|
-
case "leftArrow":
|
|
2003
|
-
w = (function(c) {
|
|
2004
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = M("adj2", c, 0.5 * Math.min(t.w, t.h)), l = A("path"), d = ["M0,".concat(t.h / 2), "L".concat(e, ",0"), "L".concat(e, ",").concat(t.h / 2 - o / 2), "L".concat(t.w, ",").concat(t.h / 2 - o / 2), "L".concat(t.w, ",").concat(t.h / 2 + o / 2), "L".concat(e, ",").concat(t.h / 2 + o / 2), "L".concat(e, ",").concat(t.h), "Z"].join(" ");
|
|
2005
|
-
return l.setAttribute("d", d), l;
|
|
2006
|
-
})(i), L = (function(c) {
|
|
2007
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = o * M("adj2", c, 0.5 * Math.min(t.w, t.h)) / t.h;
|
|
2008
|
-
return { top: t.h / 2 - o / 2, bottom: t.h / 2 - o / 2, left: e, right: 0, w: t.w - e, h: o };
|
|
2009
|
-
})(i);
|
|
2010
|
-
break;
|
|
2011
|
-
case "upArrow":
|
|
2012
|
-
w = (function(c) {
|
|
2013
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = M("adj2", c, 0.5 * Math.min(t.w, t.h)), l = A("path"), d = ["M".concat(t.w / 2, ",0"), "L".concat(t.w, ",").concat(e), "L".concat(t.w / 2 + o / 2, ",").concat(e), "L".concat(t.w / 2 + o / 2, ",").concat(t.h), "L".concat(t.w / 2 - o / 2, ",").concat(t.h), "L".concat(t.w / 2 - o / 2, ",").concat(e), "L0,".concat(e), "Z"].join(" ");
|
|
2014
|
-
return l.setAttribute("d", d), l;
|
|
2015
|
-
})(i), L = (function(c) {
|
|
2016
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = o * M("adj2", c, 0.5 * Math.min(t.w, t.h)) / t.w;
|
|
2017
|
-
return { top: e, bottom: 0, left: t.w / 2 - o / 2, right: t.w / 2 - o / 2, w: o, h: t.h - e };
|
|
2018
|
-
})(i);
|
|
2019
|
-
break;
|
|
2020
|
-
case "downArrow":
|
|
2021
|
-
w = (function(c) {
|
|
2022
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = M("adj2", c, 0.5 * Math.min(t.w, t.h)), l = A("path"), d = ["M".concat(t.w / 2, ",").concat(t.h), "L0,".concat(t.h - e), "L".concat(t.w / 2 - o / 2, ",").concat(t.h - e), "L".concat(t.w / 2 - o / 2, ",0"), "L".concat(t.w / 2 + o / 2, ",0"), "L".concat(t.w / 2 + o / 2, ",").concat(t.h - e), "L".concat(t.w, ",").concat(t.h - e), "Z"].join(" ");
|
|
2023
|
-
return l.setAttribute("d", d), l;
|
|
2024
|
-
})(i), L = (function(c) {
|
|
2025
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = o * M("adj2", c, 0.5 * Math.min(t.w, t.h)) / t.w;
|
|
2026
|
-
return { top: 0, bottom: e, left: t.w / 2 - o / 2, right: t.w / 2 - o / 2, w: o, h: t.h - e };
|
|
2027
|
-
})(i);
|
|
2028
|
-
break;
|
|
2029
|
-
case "leftRightArrow":
|
|
2030
|
-
w = (function(c) {
|
|
2031
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = M("adj2", c, 0.5 * Math.min(t.w, t.h)), l = A("path"), d = ["M0,".concat(t.h / 2), "L".concat(e, ",0"), "L".concat(e, ",").concat(t.h / 2 - o / 2), "L".concat(t.w - e, ",").concat(t.h / 2 - o / 2), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - e, ",").concat(t.h), "L".concat(t.w - e, ",").concat(t.h / 2 + o / 2), "L".concat(e, ",").concat(t.h / 2 + o / 2), "L".concat(e, ",").concat(t.h), "Z"].join(" ");
|
|
2032
|
-
return l.setAttribute("d", d), l;
|
|
2033
|
-
})(i), L = (function(c) {
|
|
2034
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = o * M("adj2", c, 0.5 * Math.min(t.w, t.h)) / t.h;
|
|
2035
|
-
return { top: t.h / 2 - o / 2, bottom: t.h / 2 - o / 2, left: e, right: e, w: t.w - 2 * e, h: o };
|
|
2036
|
-
})(i);
|
|
2037
|
-
break;
|
|
2038
|
-
case "upDownArrow":
|
|
2039
|
-
w = (function(c) {
|
|
2040
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = M("adj2", c, 0.5 * Math.min(t.w, t.h)), l = A("path"), d = ["M".concat(t.w / 2, ",").concat(t.h), "L0,".concat(t.h - e), "L".concat(t.w / 2 - o / 2, ",").concat(t.h - e), "L".concat(t.w / 2 - o / 2, ",").concat(e), "L0,".concat(e), "L".concat(t.w / 2, ",0"), "L".concat(t.w, ",").concat(e), "L".concat(t.w / 2 + o / 2, ",").concat(e), "L".concat(t.w / 2 + o / 2, ",").concat(t.h - e), "L".concat(t.w, ",").concat(t.h - e), "Z"].join(" ");
|
|
2041
|
-
return l.setAttribute("d", d), l;
|
|
2042
|
-
})(i), L = (function(c) {
|
|
2043
|
-
var t = c.extend, o = M("adj1", c, 0.5 * Math.min(t.w, t.h)), e = o * M("adj2", c, 0.5 * Math.min(t.w, t.h)) / t.w;
|
|
2044
|
-
return { top: e, bottom: e, left: t.w / 2 - o / 2, right: t.w / 2 - o / 2, w: o, h: t.h - 2 * e };
|
|
2045
|
-
})(i);
|
|
2046
|
-
break;
|
|
2047
|
-
case "quadArrow":
|
|
2048
|
-
w = (function(c) {
|
|
2049
|
-
var t = c.extend, o = M("adj1", c, 0.225 * Math.min(t.w, t.h)), e = M("adj2", c, 0.225 * Math.min(t.w, t.h)), l = M("adj3", c, 0.225 * Math.min(t.w, t.h)), d = A("path"), b = ["M0,".concat(t.h / 2), "L".concat(l, ",").concat(t.h / 2 - e), "L".concat(l, ",").concat(t.h / 2 - o / 2), "L".concat(t.w / 2 - o / 2, ",").concat(t.h / 2 - o / 2), "L".concat(t.w / 2 - o / 2, ",").concat(l), "L".concat(t.w / 2 - e, ",").concat(l), "L".concat(t.w / 2, ",0"), "L".concat(t.w / 2 + e, ",").concat(l), "L".concat(t.w / 2 + o / 2, ",").concat(l), "L".concat(t.w / 2 + o / 2, ",").concat(t.h / 2 - o / 2), "L".concat(t.w - l, ",").concat(t.h / 2 - o / 2), "L".concat(t.w - l, ",").concat(t.h / 2 - e), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - l, ",").concat(t.h / 2 + e), "L".concat(t.w - l, ",").concat(t.h / 2 + o / 2), "L".concat(t.w / 2 + o / 2, ",").concat(t.h / 2 + o / 2), "L".concat(t.w / 2 + o / 2, ",").concat(t.h - l), "L".concat(t.w / 2 + e, ",").concat(t.h - l), "L".concat(t.w / 2, ",").concat(t.h), "L".concat(t.w / 2 - e, ",").concat(t.h - l), "L".concat(t.w / 2 - o / 2, ",").concat(t.h - l), "L".concat(t.w / 2 - o / 2, ",").concat(t.h / 2 + o / 2), "L".concat(l, ",").concat(t.h / 2 + o / 2), "L".concat(l, ",").concat(t.h / 2 + e), "Z"].join(" ");
|
|
2050
|
-
return d.setAttribute("d", b), d;
|
|
2051
|
-
})(i), L = (function(c) {
|
|
2052
|
-
var t = c.extend, o = M("adj1", c, 0.225 * Math.min(t.w, t.h)), e = M("adj2", c, 0.225 * Math.min(t.w, t.h)), l = M("adj3", c, 0.225 * Math.min(t.w, t.h)), d = e === 0 ? 0 : o * l / e / 2;
|
|
2053
|
-
return { top: t.h / 2 - o / 2, bottom: t.h / 2 - o / 2, left: d, right: d, w: t.w - 2 * d, h: o };
|
|
2054
|
-
})(i);
|
|
2055
|
-
break;
|
|
2056
|
-
case "leftRightUpArrow":
|
|
2057
|
-
w = (function(c) {
|
|
2058
|
-
var t = c.extend, o = M("adj1", c, 0.225 * Math.min(t.w, t.h)), e = M("adj2", c, 0.225 * Math.min(t.w, t.h)), l = M("adj3", c, 0.225 * Math.min(t.w, t.h)), d = A("path");
|
|
2059
|
-
o > 2 * e && (o = 2 * e);
|
|
2060
|
-
var b = ["M0,".concat(t.h - e), "L".concat(l, ",").concat(t.h - 2 * e), "L".concat(l, ",").concat(t.h - e - o / 2), "L".concat(t.w / 2 - o / 2, ",").concat(t.h - e - o / 2), "L".concat(t.w / 2 - o / 2, ",").concat(l), "L".concat(t.w / 2 - e, ",").concat(l), "L".concat(t.w / 2, ",0"), "L".concat(t.w / 2 + e, ",").concat(l), "L".concat(t.w / 2 + o / 2, ",").concat(l), "L".concat(t.w / 2 + o / 2, ",").concat(t.h - e - o / 2), "L".concat(t.w - l, ",").concat(t.h - e - o / 2), "L".concat(t.w - l, ",").concat(t.h - 2 * e), "L".concat(t.w, ",").concat(t.h - e), "L".concat(t.w - l, ",").concat(t.h), "L".concat(t.w - l, ",").concat(t.h - e + o / 2), "L".concat(l, ",").concat(t.h - e + o / 2), "L".concat(l, ",").concat(t.h), "Z"].join(" ");
|
|
2061
|
-
return d.setAttribute("d", b), d;
|
|
2062
|
-
})(i), L = (function(c) {
|
|
2063
|
-
var t = c.extend, o = M("adj1", c, 0.225 * Math.min(t.w, t.h)), e = M("adj2", c, 0.225 * Math.min(t.w, t.h)), l = M("adj3", c, 0.225 * Math.min(t.w, t.h)), d = e === 0 ? 0 : o * l / e / 2;
|
|
2064
|
-
return { top: t.h - e - o / 2, bottom: e - o / 2, left: d, right: d, w: t.w - 2 * d, h: o };
|
|
2065
|
-
})(i);
|
|
2066
|
-
break;
|
|
2067
|
-
case "bentArrow":
|
|
2068
|
-
w = (function(c) {
|
|
2069
|
-
var t = c.extend, o = M("adj1", c, 0.25 * Math.min(t.w, t.h)), e = M("adj2", c, 0.25 * Math.min(t.w, t.h)), l = M("adj3", c, 0.25 * Math.min(t.w, t.h)), d = M("adj4", c, 0.4375 * Math.min(t.w, t.h)), b = A("path");
|
|
2070
|
-
o > 2 * e && (o = 2 * e);
|
|
2071
|
-
var v = d - o;
|
|
2072
|
-
v < 0 && (v = 0);
|
|
2073
|
-
var x = ["M0,".concat(t.h), "L0,".concat(e - o / 2 + d), "A".concat(d, " ").concat(d, " 0 0 1 ").concat(d, " ").concat(e - o / 2), "L".concat(t.w - l, ",").concat(e - o / 2), "L".concat(t.w - l, ",0"), "L".concat(t.w, ",").concat(e), "L".concat(t.w - l, ",").concat(2 * e), "L".concat(t.w - l, ",").concat(e + o / 2), "L".concat(o + v, ",").concat(e + o / 2), "A".concat(v, " ").concat(v, " 0 0 0 ").concat(o, " ").concat(e + o / 2 + v), "L".concat(o, ",").concat(t.h), "Z"].join(" ");
|
|
2074
|
-
return b.setAttribute("d", x), b;
|
|
2075
|
-
})(i);
|
|
2076
|
-
break;
|
|
2077
|
-
case "uturnArrow":
|
|
2078
|
-
w = (function(c) {
|
|
2079
|
-
var t = c.extend, o = M("adj1", c, 0.25 * Math.min(t.w, t.h)), e = M("adj2", c, 0.25 * Math.min(t.w, t.h)), l = M("adj3", c, 0.25 * Math.min(t.w, t.h)), d = M("adj4", c, 0.4375 * Math.min(t.w, t.h)), b = M("adj5", c, 0.75 * Math.min(t.w, t.h)), v = A("path");
|
|
2080
|
-
o > 2 * e && (o = 2 * e), b < l && (b = l + o), d > b - l && (d = b - l);
|
|
2081
|
-
var x = d - o;
|
|
2082
|
-
x > b - l - o && (x = b - l - o), x < 0 && (x = 0);
|
|
2083
|
-
var P = e - o / 2, S = ["M0,".concat(t.h), "L0,".concat(d), "A".concat(d, " ").concat(d, " 0 0 1 ").concat(d, " 0"), "L".concat(t.w - d - P, ",0"), "A".concat(d, " ").concat(d, " 0 0 1 ").concat(t.w - P, " ").concat(d), "L".concat(t.w - P, ",").concat(b - l), "L".concat(t.w, ",").concat(b - l), "L".concat(t.w - e, ",").concat(b), "L".concat(t.w - 2 * e, ",").concat(b - l), "L".concat(t.w - e - o / 2, ",").concat(b - l), "L".concat(t.w - e - o / 2, ",").concat(o + x), "A".concat(x, " ").concat(x, " 0 0 0 ").concat(t.w - x - e - o / 2, " ").concat(o), "L".concat(o + x, ",").concat(o), "A".concat(x, " ").concat(x, " 0 0 0 ").concat(o, " ").concat(o + x), "L".concat(o, ",").concat(t.h), "Z"].join(" ");
|
|
2084
|
-
return v.setAttribute("d", S), v;
|
|
2085
|
-
})(i);
|
|
2086
|
-
break;
|
|
2087
|
-
case "leftUpArrow":
|
|
2088
|
-
w = (function(c) {
|
|
2089
|
-
var t = c.extend, o = M("adj1", c, 0.25 * Math.min(t.w, t.h)), e = M("adj2", c, 0.25 * Math.min(t.w, t.h)), l = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2090
|
-
o > 2 * e && (o = 2 * e);
|
|
2091
|
-
var d = Math.min(t.w, t.h) - 2 * e;
|
|
2092
|
-
l > d && (l = d), l < 0 && (l = 0);
|
|
2093
|
-
var b = e - o / 2, v = A("path"), x = ["M0,".concat(t.h - e), "L".concat(l, ",").concat(t.h - 2 * e), "L".concat(l, ",").concat(t.h - e - o / 2), "L".concat(t.w - e - o / 2, ",").concat(t.h - e - o / 2), "L".concat(t.w - e - o / 2, ",").concat(l), "L".concat(t.w - 2 * e, ",").concat(l), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(l), "L".concat(t.w - b, ",").concat(l), "L".concat(t.w - b, ",").concat(t.h - b), "L".concat(l, ",").concat(t.h - b), "L".concat(l, ",").concat(t.h), "Z"].join(" ");
|
|
2094
|
-
return v.setAttribute("d", x), v;
|
|
2095
|
-
})(i), L = (function(c) {
|
|
2096
|
-
var t = c.extend, o = M("adj1", c, 0.25 * Math.min(t.w, t.h)), e = M("adj2", c, 0.25 * Math.min(t.w, t.h)), l = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2097
|
-
o > 2 * e && (o = 2 * e);
|
|
2098
|
-
var d = Math.min(t.w, t.h) - 2 * e;
|
|
2099
|
-
l > d && (l = d), l < 0 && (l = 0);
|
|
2100
|
-
var b = e === 0 ? 0 : o * l / e / 2;
|
|
2101
|
-
return { top: t.h - e - o / 2, bottom: e - o / 2, left: b, right: e, w: t.w - b - e, h: o };
|
|
2102
|
-
})(i);
|
|
2103
|
-
break;
|
|
2104
|
-
case "bentUpArrow":
|
|
2105
|
-
w = (function(c) {
|
|
2106
|
-
var t = c.extend, o = M("adj1", c, 0.25 * Math.min(t.w, t.h)), e = M("adj2", c, 0.25 * Math.min(t.w, t.h)), l = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2107
|
-
o > 2 * e && (o = 2 * e);
|
|
2108
|
-
var d = Math.min(t.w, t.h) - 2 * e;
|
|
2109
|
-
l > d && (l = d), l < 0 && (l = 0);
|
|
2110
|
-
var b = e - o / 2, v = A("path"), x = ["M0,".concat(t.h), "L0,".concat(t.h - o), "L".concat(t.w - e - o / 2, ",").concat(t.h - o), "L".concat(t.w - e - o / 2, ",").concat(l), "L".concat(t.w - 2 * e, ",").concat(l), "L".concat(t.w - e, ",0"), "L".concat(t.w, ",").concat(l), "L".concat(t.w - b, ",").concat(l), "L".concat(t.w - b, ",").concat(t.h), "Z"].join(" ");
|
|
2111
|
-
return v.setAttribute("d", x), v;
|
|
2112
|
-
})(i), L = (function(c) {
|
|
2113
|
-
var t = c.extend, o = M("adj1", c, 0.25 * Math.min(t.w, t.h));
|
|
2114
|
-
return { top: t.h - o, bottom: 0, left: 0, right: 0, w: t.w, h: o };
|
|
2115
|
-
})(i);
|
|
2116
|
-
break;
|
|
2117
|
-
case "curvedRightArrow":
|
|
2118
|
-
w = (function(c) {
|
|
2119
|
-
var t = c.extend, o = c.background, e = M("adj1", c, 0.25 * Math.min(t.w, t.h)), l = M("adj2", c, 0.5 * Math.min(t.w, t.h)), d = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2120
|
-
e > l && (e = l);
|
|
2121
|
-
var b = l / 2 - e / 2, v = (t.h - l / 2 - e / 2) / 2, x = (t.h - b - e) / 2, P = A("g"), S = A("path"), R = ["M".concat(t.w, ",0"), "A ".concat(t.w, " ").concat(v, " 0 0 0 ").concat(0, " ").concat(v), "L0,".concat(x + e), "A ".concat(t.w, " ").concat(x, " 0 0 1 ").concat(t.w, " ").concat(e), "Z"].join(" ");
|
|
2122
|
-
S.setAttribute("d", R), (o == null ? void 0 : o.type) === "solidFill" && S.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent");
|
|
2123
|
-
var _ = A("path"), O = ["M0,".concat(v), "A ".concat(t.w, " ").concat(v, " 0 0 0 ").concat(t.w - d, " ").concat(t.h - l / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h - l), "L".concat(t.w, ",").concat(t.h - l / 2), "L".concat(t.w - d, ",").concat(t.h), "L".concat(t.w - d, ",").concat(t.h - b), "A ".concat(t.w, " ").concat(x, " 0 0 1 0 ").concat(e + x), "Z"].join(" ");
|
|
2124
|
-
return _.setAttribute("d", O), P.appendChild(S), P.appendChild(_), P;
|
|
2125
|
-
})(i);
|
|
2126
|
-
break;
|
|
2127
|
-
case "curvedLeftArrow":
|
|
2128
|
-
w = (function(c) {
|
|
2129
|
-
var t = c.extend, o = c.background, e = M("adj1", c, 0.25 * Math.min(t.w, t.h)), l = M("adj2", c, 0.5 * Math.min(t.w, t.h)), d = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2130
|
-
e > l && (e = l);
|
|
2131
|
-
var b = l / 2 - e / 2, v = (t.h - l / 2 - e / 2) / 2, x = (t.h - b - e) / 2, P = A("g"), S = A("path"), R = ["M0,".concat(t.h - l / 2), "L".concat(d, ",").concat(t.h - l), "L".concat(d, ",").concat(t.h - l / 2 - e / 2), "A".concat(t.w, " ").concat(v, " 0 0 0 ").concat(t.w, " ").concat(v), "L".concat(t.w, ",").concat(x + e), "A ".concat(t.w, " ").concat(x, " 0 0 1 ").concat(d, " ").concat(t.h - b), "L".concat(d, ",").concat(t.h), "Z"].join(" ");
|
|
2132
|
-
S.setAttribute("d", R);
|
|
2133
|
-
var _ = A("path"), O = ["M0,0", "A ".concat(t.w, " ").concat(v, " 0 0 1 ").concat(t.w, " ").concat(v), "L".concat(t.w, ",").concat(x + e), "A ".concat(t.w, " ").concat(x, " 0 0 0 ").concat(0, " ").concat(e), "Z"].join(" ");
|
|
2134
|
-
return _.setAttribute("d", O), (o == null ? void 0 : o.type) === "solidFill" && _.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent"), P.appendChild(S), P.appendChild(_), P;
|
|
2135
|
-
})(i);
|
|
2136
|
-
break;
|
|
2137
|
-
case "curvedUpArrow":
|
|
2138
|
-
w = (function(c) {
|
|
2139
|
-
var t = c.extend, o = c.background, e = M("adj1", c, 0.25 * Math.min(t.w, t.h)), l = M("adj2", c, 0.5 * Math.min(t.w, t.h)), d = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2140
|
-
e > l && (e = l);
|
|
2141
|
-
var b = l / 2 - e / 2, v = (t.w - l / 2 - e / 2) / 2, x = (t.w - b - e) / 2, P = A("g"), S = A("path"), R = ["M".concat(t.w - l / 2, ",").concat(0), "L".concat(t.w - l, ",").concat(d), "L".concat(t.w - l / 2 - e / 2, ",").concat(d), "A".concat(v, " ").concat(t.h, " 0 0 1 ").concat(v, " ").concat(t.h), "L".concat(v + e, ",").concat(t.h), "A".concat(x, " ").concat(t.h, " 0 0 0 ").concat(t.w - b, " ").concat(d), "L".concat(t.w, ",").concat(d), "Z"].join(" ");
|
|
2142
|
-
S.setAttribute("d", R);
|
|
2143
|
-
var _ = A("path"), O = ["M".concat(e, ",0"), "L".concat(0, ",").concat(0), "A ".concat(v, " ").concat(t.h, " 0 0 0 ").concat(v, " ").concat(t.h), "L".concat(v + e, ",").concat(t.h), "A ".concat(x, " ").concat(t.h, " 0 0 1 ").concat(e, " ").concat(0), "Z"].join(" ");
|
|
2144
|
-
return _.setAttribute("d", O), (o == null ? void 0 : o.type) === "solidFill" && _.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent"), P.appendChild(S), P.appendChild(_), P;
|
|
2145
|
-
})(i);
|
|
2146
|
-
break;
|
|
2147
|
-
case "curvedDownArrow":
|
|
2148
|
-
w = (function(c) {
|
|
2149
|
-
var t = c.extend, o = c.background, e = M("adj1", c, 0.25 * Math.min(t.w, t.h)), l = M("adj2", c, 0.5 * Math.min(t.w, t.h)), d = M("adj3", c, 0.25 * Math.min(t.w, t.h));
|
|
2150
|
-
e > l && (e = l);
|
|
2151
|
-
var b = l / 2 - e / 2, v = (t.w - l / 2 - e / 2) / 2, x = (t.w - b - e) / 2, P = A("g"), S = A("path"), R = ["M".concat(0, ",").concat(t.h), "L".concat(e, ",").concat(t.h), "A".concat(x, " ").concat(t.h, " 0 0 1 ").concat(x + e, " ").concat(0), "L".concat(v, ",").concat(0), "A".concat(v, " ").concat(t.h, " 0 0 0 ").concat(0, " ").concat(t.h), "Z"].join(" ");
|
|
2152
|
-
S.setAttribute("d", R), (o == null ? void 0 : o.type) === "solidFill" && S.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent");
|
|
2153
|
-
var _ = A("path"), O = ["M".concat(t.w - l / 2, ",").concat(t.h), "L".concat(t.w - l, ",").concat(t.h - d), "L".concat(t.w - l / 2 - e / 2, ",").concat(t.h - d), "A ".concat(v, " ").concat(t.h, " 0 0 0 ").concat(v, " ").concat(0), "L".concat(v + e, ",").concat(0), "A ".concat(x, " ").concat(t.h, " 0 0 1 ").concat(t.w - b, " ").concat(t.h - d), "L".concat(t.w, ",").concat(t.h - d), "Z"].join(" ");
|
|
2154
|
-
return _.setAttribute("d", O), P.appendChild(S), P.appendChild(_), P;
|
|
2155
|
-
})(i);
|
|
2156
|
-
break;
|
|
2157
|
-
case "stripedRightArrow":
|
|
2158
|
-
w = (function(c) {
|
|
2159
|
-
var t = c.extend, o = A("g"), e = Math.min(t.w, t.h), l = T("adj1", c, 0.5) * t.h, d = T("adj2", c, 0.5) * e, b = e / 8, v = e / 16, x = e / 32, P = 5 * e / 32, S = t.h / 2 - l / 2, R = t.h / 2 + l / 2, _ = A("path");
|
|
2160
|
-
_.setAttribute("d", ["M".concat(0, ",").concat(S), "L".concat(x, ",").concat(S), "L".concat(x, ",").concat(R), "L".concat(0, ",").concat(R), "Z"].join(" "));
|
|
2161
|
-
var O = A("path");
|
|
2162
|
-
O.setAttribute("d", ["M".concat(v, ",").concat(S), "L".concat(b, ",").concat(S), "L".concat(b, ",").concat(R), "L".concat(v, ",").concat(R), "Z"].join(" "));
|
|
2163
|
-
var N = A("path"), D = ["M".concat(P, ",").concat(S), "L".concat(t.w - d, ",").concat(S), "L".concat(t.w - d, ",").concat(0), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - d, ",").concat(t.h), "L".concat(t.w - d, ",").concat(R), "L".concat(P, ",").concat(R), "Z"].join(" ");
|
|
2164
|
-
return N.setAttribute("d", D), o.appendChild(N), o.appendChild(_), o.appendChild(O), o;
|
|
2165
|
-
})(i), L = (function(c) {
|
|
2166
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.5) * t.h, l = e * (T("adj2", c, 0.5) * o) / t.h;
|
|
2167
|
-
return { top: t.h / 2 - e / 2, bottom: t.h / 2 - e / 2, left: 0, right: l, w: t.w - l, h: e };
|
|
2168
|
-
})(i);
|
|
2169
|
-
break;
|
|
2170
|
-
case "notchedRightArrow":
|
|
2171
|
-
w = (function(c) {
|
|
2172
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.5) * t.h, l = T("adj2", c, 0.5) * o, d = e * l / t.h, b = t.h / 2 - e / 2, v = t.h / 2 + e / 2, x = A("path"), P = ["M".concat(0, ",").concat(b), "L".concat(t.w - l, ",").concat(b), "L".concat(t.w - l, ",").concat(0), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - l, ",").concat(t.h), "L".concat(t.w - l, ",").concat(v), "L".concat(0, ",").concat(v), "L".concat(d, ",").concat(t.h / 2), "Z"].join(" ");
|
|
2173
|
-
return x.setAttribute("d", P), x;
|
|
2174
|
-
})(i), L = (function(c) {
|
|
2175
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.5) * t.h, l = T("adj2", c, 0.5) * o, d = e * l / t.h, b = e * l / t.h;
|
|
2176
|
-
return { top: t.h / 2 - e / 2, bottom: t.h / 2 - e / 2, left: d, right: b, w: t.w - d - b, h: e };
|
|
2177
|
-
})(i);
|
|
2178
|
-
break;
|
|
2179
|
-
case "homePlate":
|
|
2180
|
-
w = (function(c) {
|
|
2181
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj", c, 0.5) * o, l = A("path"), d = ["M".concat(0, ",").concat(0), "L".concat(t.w - e, ",").concat(0), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - e, ",").concat(t.h), "L".concat(0, ",").concat(t.h), "Z"].join(" ");
|
|
2182
|
-
return l.setAttribute("d", d), l;
|
|
2183
|
-
})(i), L = (function(c) {
|
|
2184
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj", c, 0.5) * o;
|
|
2185
|
-
return { top: 0, bottom: 0, left: 0, right: e / 2, w: t.w - e / 2, h: t.h };
|
|
2186
|
-
})(i);
|
|
2187
|
-
break;
|
|
2188
|
-
case "chevron":
|
|
2189
|
-
w = (function(c) {
|
|
2190
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj", c, 0.5) * o, l = A("path"), d = ["M".concat(0, ",").concat(0), "L".concat(t.w - e, ",").concat(0), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - e, ",").concat(t.h), "L".concat(0, ",").concat(t.h), "L".concat(e, ",").concat(t.h / 2), "Z"].join(" ");
|
|
2191
|
-
return l.setAttribute("d", d), l;
|
|
2192
|
-
})(i), L = (function(c) {
|
|
2193
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj", c, 0.5) * o;
|
|
2194
|
-
return { top: 0, bottom: 0, left: e, right: e, w: t.w - 2 * e, h: t.h };
|
|
2195
|
-
})(i);
|
|
2196
|
-
break;
|
|
2197
|
-
case "blockArc":
|
|
2198
|
-
w = (function(c) {
|
|
2199
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = A("path"), l = T("adj1", c, 180), d = T("adj2", c, 0), b = M("adj3", c, 0.25 * o), v = t.w / 2, x = t.h / 2, P = t.w / 2, S = t.h / 2, R = t.w / 2 - b, _ = t.h / 2 - b, O = K(l, v, x, P, S), N = O[0], D = O[1], G = K(d, v, x, P, S), H = G[0], E = G[1], z = K(l, v, x, R, _), Q = z[0], q = z[1], X = K(d, v, x, R, _), $ = X[0], tt = X[1], et = ut(l, d), rt = ["M".concat(N, ",").concat(D), "A".concat(P, " ").concat(S, " 0 ").concat(et, " 1 ").concat(H, " ").concat(E), "L".concat($, ",").concat(tt), "A".concat(R, " ").concat(_, " 0 ").concat(et, " 0 ").concat(Q, " ").concat(q), "Z"].join(" ");
|
|
2200
|
-
return e.setAttribute("d", rt), e;
|
|
2201
|
-
})(i), L = (function(c) {
|
|
2202
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 180), l = T("adj2", c, 0), d = M("adj3", c, 0.25 * o), b = t.w / 2, v = t.h / 2, x = t.w / 2, P = t.h / 2, S = t.w / 2 - d, R = t.h / 2 - d, _ = K(e, b, v, x, P), O = _[0], N = _[1], D = K(l, b, v, x, P), G = D[0], H = D[1], E = K(e, b, v, S, R), z = E[0], Q = E[1], q = K(l, b, v, S, R), X = [[O, N], [G, H], [z, Q], [q[0], q[1]]];
|
|
2203
|
-
X.push(), e > l && X.push([t.w, t.h / 2]), (l > 180 && l <= 360 && e < 180 || e > l && l >= 0 && l < 180 && e < 180) && X.push([0, t.h / 2]), (e < l && e < 90 && l > 90 || e > l && l > 90 || e > l && e < 90) && X.push([t.w / 2, t.h]), (e < l && e < 270 && l > 270 || e > l && l > 270 || e > l && e < 270) && X.push([t.w / 2, 0]);
|
|
2204
|
-
var $ = 1 / 0, tt = 1 / 0, et = -1 / 0, rt = -1 / 0;
|
|
2205
|
-
return X.forEach((function(ot) {
|
|
2206
|
-
$ = Math.min(ot[0], $), tt = Math.min(ot[1], tt), et = Math.max(ot[0], et), rt = Math.max(ot[1], rt);
|
|
2207
|
-
})), { top: tt, bottom: t.h - rt, left: $, right: t.w - et, w: et - $, h: rt - tt };
|
|
2208
|
-
})(i);
|
|
2209
|
-
break;
|
|
2210
|
-
case "foldedCorner":
|
|
2211
|
-
w = (function(c) {
|
|
2212
|
-
var t = c.extend, o = c.background, e = A("g"), l = A("path"), d = M("adj", c, 0.16667 * Math.min(t.w, t.h)), b = ["M0,0", "L".concat(t.w, ",0"), "L".concat(t.w, ",").concat(t.h - d), "L".concat(t.w - d, ",").concat(t.h), "L".concat(0, ",").concat(t.h), "Z"].join(" ");
|
|
2213
|
-
l.setAttribute("d", b);
|
|
2214
|
-
var v = d * Math.cos(Math.PI / 4) / Math.cos(Math.PI / 6) * Math.cos(75 / 180 * Math.PI), x = A("path"), P = ["M".concat(t.w - d + v, ", ").concat(t.h - d + v), "L".concat(t.w, ",").concat(t.h - d), "L".concat(t.w - d, ",").concat(t.h), "Z"].join(" ");
|
|
2215
|
-
return x.setAttribute("d", P), (o == null ? void 0 : o.type) === "solidFill" && x.setAttribute("fill", F(o, { dark: 0.6 }) || "transparent"), e.appendChild(l), e.appendChild(x), e;
|
|
2216
|
-
})(i), L = (function(c) {
|
|
2217
|
-
var t = c.extend, o = M("adj", c, 0.16667 * Math.min(t.w, t.h));
|
|
2218
|
-
return { top: 0, bottom: o, left: 0, right: 0, w: t.w, h: t.h - o };
|
|
2219
|
-
})(i);
|
|
2220
|
-
break;
|
|
2221
|
-
case "rightArrowCallout":
|
|
2222
|
-
w = (function(c) {
|
|
2223
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.25) * o, l = T("adj2", c, 0.25) * o, d = T("adj3", c, 0.25) * o, b = T("adj4", c, 0.64977) * t.w, v = A("path"), x = ["M".concat(0, ",").concat(0), "L".concat(b, ",").concat(0), "L".concat(b, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h / 2 - l), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - d, ",").concat(t.h / 2 + l), "L".concat(t.w - d, ",").concat(t.h / 2 + e / 2), "L".concat(b, ",").concat(t.h / 2 + e / 2), "L".concat(b, ",").concat(t.h), "L".concat(0, ",").concat(t.h), "Z"].join(" ");
|
|
2224
|
-
return v.setAttribute("d", x), v;
|
|
2225
|
-
})(i), L = (function(c) {
|
|
2226
|
-
var t = c.extend, o = T("adj4", c, 0.64977) * t.w;
|
|
2227
|
-
return { top: 0, bottom: 0, left: 0, right: t.w - o, w: o, h: t.h };
|
|
2228
|
-
})(i);
|
|
2229
|
-
break;
|
|
2230
|
-
case "leftArrowCallout":
|
|
2231
|
-
w = (function(c) {
|
|
2232
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.25) * o, l = T("adj2", c, 0.25) * o, d = T("adj3", c, 0.25) * o, b = T("adj4", c, 0.64977) * t.w, v = A("path"), x = ["M".concat(0, ",").concat(t.h / 2), "L".concat(d, ",").concat(t.h / 2 - l), "L".concat(d, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - b, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - b, ",").concat(0), "L".concat(t.w, ",").concat(0), "L".concat(t.w, ",").concat(t.h), "L".concat(t.w - b, ",").concat(t.h), "L".concat(t.w - b, ",").concat(t.h / 2 + e / 2), "L".concat(d, ",").concat(t.h / 2 + e / 2), "L".concat(d, ",").concat(t.h / 2 + l), "Z"].join(" ");
|
|
2233
|
-
return v.setAttribute("d", x), v;
|
|
2234
|
-
})(i), L = (function(c) {
|
|
2235
|
-
var t = c.extend, o = T("adj4", c, 0.64977) * t.w;
|
|
2236
|
-
return { top: 0, bottom: 0, left: t.w - o, right: 0, w: o, h: t.h };
|
|
2237
|
-
})(i);
|
|
2238
|
-
break;
|
|
2239
|
-
case "upArrowCallout":
|
|
2240
|
-
w = (function(c) {
|
|
2241
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.25) * o, l = T("adj2", c, 0.25) * o, d = T("adj3", c, 0.25) * o, b = T("adj4", c, 0.64977) * t.h, v = A("path"), x = ["M".concat(0, ",").concat(t.h - b), "L".concat(t.w / 2 - e / 2, ",").concat(t.h - b), "L".concat(t.w / 2 - e / 2, ",").concat(d), "L".concat(t.w / 2 - l, ",").concat(d), "L".concat(t.w / 2, ",").concat(0), "L".concat(t.w / 2 + l, ",").concat(d), "L".concat(t.w / 2 + e / 2, ",").concat(d), "L".concat(t.w / 2 + e / 2, ",").concat(t.h - b), "L".concat(t.w, ",").concat(t.h - b), "L".concat(t.w, ",").concat(t.h), "L".concat(0, ",").concat(t.h), "Z"].join(" ");
|
|
2242
|
-
return v.setAttribute("d", x), v;
|
|
2243
|
-
})(i), L = (function(c) {
|
|
2244
|
-
var t = c.extend, o = T("adj4", c, 0.64977) * t.h;
|
|
2245
|
-
return { top: t.h - o, bottom: 0, left: 0, right: 0, w: t.w, h: o };
|
|
2246
|
-
})(i);
|
|
2247
|
-
break;
|
|
2248
|
-
case "downArrowCallout":
|
|
2249
|
-
w = (function(c) {
|
|
2250
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.25) * o, l = T("adj2", c, 0.25) * o, d = T("adj3", c, 0.25) * o, b = T("adj4", c, 0.64977) * t.h, v = A("path"), x = ["M".concat(0, ",").concat(0), "L".concat(t.w, ",").concat(0), "L".concat(t.w, ",").concat(b), "L".concat(t.w / 2 + e / 2, ",").concat(b), "L".concat(t.w / 2 + e / 2, ",").concat(t.h - d), "L".concat(t.w / 2 + l, ",").concat(t.h - d), "L".concat(t.w / 2, ",").concat(t.h), "L".concat(t.w / 2 - l, ",").concat(t.h - d), "L".concat(t.w / 2 - e / 2, ",").concat(t.h - d), "L".concat(t.w / 2 - e / 2, ",").concat(b), "L".concat(0, ",").concat(b), "Z"].join(" ");
|
|
2251
|
-
return v.setAttribute("d", x), v;
|
|
2252
|
-
})(i), L = (function(c) {
|
|
2253
|
-
var t = c.extend, o = T("adj4", c, 0.64977) * t.h;
|
|
2254
|
-
return { top: 0, bottom: t.h - o, left: 0, right: 0, w: t.w, h: o };
|
|
2255
|
-
})(i);
|
|
2256
|
-
break;
|
|
2257
|
-
case "leftRightArrowCallout":
|
|
2258
|
-
w = (function(c) {
|
|
2259
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.25) * o, l = T("adj2", c, 0.25) * o, d = T("adj3", c, 0.25) * o, b = T("adj4", c, 0.48123) * t.w, v = A("path"), x = ["M".concat(0, ",").concat(t.h / 2), "L".concat(d, ",").concat(t.h / 2 - l), "L".concat(d, ",").concat(t.h / 2 - e / 2), "L".concat(t.w / 2 - b / 2, ",").concat(t.h / 2 - e / 2), "L".concat(t.w / 2 - b / 2, ",").concat(0), "L".concat(t.w / 2 + b / 2, ",").concat(0), "L".concat(t.w / 2 + b / 2, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h / 2 - l), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - d, ",").concat(t.h / 2 + l), "L".concat(t.w - d, ",").concat(t.h / 2 + e / 2), "L".concat(t.w / 2 + b / 2, ",").concat(t.h / 2 + e / 2), "L".concat(t.w / 2 + b / 2, ",").concat(t.h), "L".concat(t.w / 2 - b / 2, ",").concat(t.h), "L".concat(t.w / 2 - b / 2, ",").concat(t.h / 2 + e / 2), "L".concat(d, ",").concat(t.h / 2 + e / 2), "L".concat(d, ",").concat(t.h / 2 + l), "Z"].join(" ");
|
|
2260
|
-
return v.setAttribute("d", x), v;
|
|
2261
|
-
})(i), L = (function(c) {
|
|
2262
|
-
var t = c.extend, o = T("adj4", c, 0.48123) * t.w;
|
|
2263
|
-
return { top: 0, bottom: 0, left: t.w / 2 - o / 2, right: t.w / 2 - o / 2, w: o, h: t.h };
|
|
2264
|
-
})(i);
|
|
2265
|
-
break;
|
|
2266
|
-
case "quadArrowCallout":
|
|
2267
|
-
w = (function(c) {
|
|
2268
|
-
var t = c.extend, o = Math.min(t.w, t.h), e = T("adj1", c, 0.18515) * o, l = T("adj2", c, 0.18515) * o, d = T("adj3", c, 0.18515) * o, b = T("adj4", c, 0.48123) * t.w, v = T("adj4", c, 0.48123) * t.h, x = A("path"), P = ["M".concat(0, ",").concat(t.h / 2), "L".concat(d, ",").concat(t.h / 2 - l), "L".concat(d, ",").concat(t.h / 2 - e / 2), "L".concat(t.w / 2 - b / 2, ",").concat(t.h / 2 - e / 2), "L".concat(t.w / 2 - b / 2, ",").concat(t.h / 2 - v / 2), "L".concat(t.w / 2 - e / 2, ",").concat(t.h / 2 - v / 2), "L".concat(t.w / 2 - e / 2, ",").concat(d), "L".concat(t.w / 2 - l, ",").concat(d), "L".concat(t.w / 2, ",").concat(0), "L".concat(t.w / 2 + l, ",").concat(d), "L".concat(t.w / 2 + e / 2, ",").concat(d), "L".concat(t.w / 2 + e / 2, ",").concat(t.h / 2 - v / 2), "L".concat(t.w / 2 + b / 2, ",").concat(t.h / 2 - v / 2), "L".concat(t.w / 2 + b / 2, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h / 2 - e / 2), "L".concat(t.w - d, ",").concat(t.h / 2 - l), "L".concat(t.w, ",").concat(t.h / 2), "L".concat(t.w - d, ",").concat(t.h / 2 + l), "L".concat(t.w - d, ",").concat(t.h / 2 + e / 2), "L".concat(t.w / 2 + b / 2, ",").concat(t.h / 2 + e / 2), "L".concat(t.w / 2 + b / 2, ",").concat(t.h / 2 + v / 2), "L".concat(t.w / 2 + e / 2, ",").concat(t.h / 2 + v / 2), "L".concat(t.w / 2 + e / 2, ",").concat(t.h - d), "L".concat(t.w / 2 + l, ",").concat(t.h - d), "L".concat(t.w / 2, ",").concat(t.h), "L".concat(t.w / 2 - l, ",").concat(t.h - d), "L".concat(t.w / 2 - e / 2, ",").concat(t.h - d), "L".concat(t.w / 2 - e / 2, ",").concat(t.h / 2 + v / 2), "L".concat(t.w / 2 - b / 2, ",").concat(t.h / 2 + v / 2), "L".concat(t.w / 2 - b / 2, ",").concat(t.h / 2 + e / 2), "L".concat(d, ",").concat(t.h / 2 + e / 2), "L".concat(d, ",").concat(t.h / 2 + l), "Z"].join(" ");
|
|
2269
|
-
return x.setAttribute("d", P), x;
|
|
2270
|
-
})(i), L = (function(c) {
|
|
2271
|
-
var t = c.extend, o = T("adj4", c, 0.48123) * t.w, e = T("adj4", c, 0.48123) * t.h;
|
|
2272
|
-
return { top: t.h / 2 - e / 2, bottom: t.h / 2 - e / 2, left: t.w / 2 - o / 2, right: t.w / 2 - o / 2, w: o, h: e };
|
|
2273
|
-
})(i);
|
|
2274
|
-
}
|
|
2275
|
-
w && (C ? (s == null ? void 0 : s.type) === "blipFill" ? (function(c, t, o) {
|
|
2276
|
-
var e = c.background, l = e === void 0 ? {} : e, d = c.extend, b = l.base64, v = l.alpha, x = l.fillRect, P = x === void 0 ? {} : x, S = P.b, R = S === void 0 ? 0 : S, _ = P.t, O = _ === void 0 ? 0 : _, N = P.l, D = N === void 0 ? 0 : N, G = P.r, H = G === void 0 ? 0 : G, E = A("defs"), z = A("pattern");
|
|
2277
|
-
z.setAttribute("id", "background_" + c.uuid), z.setAttribute("patternUnits", "userSpaceOnUse"), z.setAttribute("width", d.w + ""), z.setAttribute("height", d.h + "");
|
|
2278
|
-
var Q = A("image");
|
|
2279
|
-
Q.setAttribute("href", b), Q.setAttribute("preserveAspectRatio", "none");
|
|
2280
|
-
var q = d.w * D, X = d.h * O, $ = d.w * (1 - D - H), tt = d.h * (1 - O - R);
|
|
2281
|
-
Q.setAttribute("width", $ + ""), Q.setAttribute("height", tt + ""), Q.setAttribute("x", q + ""), Q.setAttribute("y", X + ""), typeof v == "number" && Q.setAttribute("opacity", v + ""), z.appendChild(Q), E.appendChild(z), t.appendChild(E), o.setAttribute("fill", "url(#background_".concat(c.uuid, ")"));
|
|
2282
|
-
})(i, j, w) : (s == null ? void 0 : s.type) === "gradFill" ? (function(c, t, o) {
|
|
2283
|
-
var e = c.background, l = e === void 0 ? {} : e;
|
|
2284
|
-
c.extend;
|
|
2285
|
-
var d = l.gsList, b = l.lin, v = l.path, x = l.tileRect, P = x === void 0 ? {} : x, S = A("defs"), R = A(v === "circle" ? "radialGradient" : "linearGradient");
|
|
2286
|
-
R.setAttribute("id", "background_grad_fill_" + c.uuid);
|
|
2287
|
-
var _ = d || [];
|
|
2288
|
-
if (_.sort((function(H, E) {
|
|
2289
|
-
return H.pos - E.pos;
|
|
2290
|
-
})), _.forEach((function(H) {
|
|
2291
|
-
var E = A("stop");
|
|
2292
|
-
E.setAttribute("offset", "".concat(100 * H.pos, "%")), E.setAttribute("stop-color", F(H.color)), R.appendChild(E);
|
|
2293
|
-
})), v === "circle") {
|
|
2294
|
-
var O = P.r, N = P.l, D = P.t, G = P.b;
|
|
2295
|
-
O === -1 ? R.setAttribute("cx", "100%") : N === -1 && R.setAttribute("cx", "0%"), D === -1 ? R.setAttribute("cy", "0%") : G === -1 && R.setAttribute("cy", "100%");
|
|
2296
|
-
} else b != null && b.ang && R.setAttribute("gradientTransform", "rotate(".concat(b.ang, ")"));
|
|
2297
|
-
S.appendChild(R), t.appendChild(S), o.setAttribute("fill", "url(#background_grad_fill_".concat(c.uuid, ")"));
|
|
2298
|
-
})(i, j, w) : w.setAttribute("fill", F(s) || "transparent") : w.setAttribute("fill", "transparent"), a.width ? (w.setAttribute("stroke-width", a.width + "px"), w.setAttribute("stroke", F(a.color) || "transparent")) : w.setAttribute("stroke-width", "0"), w.setAttribute("stroke-dasharray", (function(c) {
|
|
2299
|
-
return c && c.type !== "solid" ? ({ sysDot: [1, 1], sysDash: [3, 1], dash: [4, 3], dashDot: [4, 3, 1, 3], lgDash: [8, 3], lgDashDot: [8, 3, 1, 3], lgDashDotDot: [8, 3, 1, 3, 1, 3] }[c.type] || []).map((function(t) {
|
|
2300
|
-
return t * c.width;
|
|
2301
|
-
})).join(",") : "";
|
|
2302
|
-
})(a)), w.setAttribute("stroke-linecap", a.cap && { sq: "square", rnd: "round", flat: "butt" }[a.cap] || "square"), w.setAttribute("stroke-linejoin", a.lineJoin || "round"), a.lineJoin === "miter" && w.setAttribute("stroke-miterlimit", a.miterLim + ""), j.appendChild(w));
|
|
2303
|
-
var B = [];
|
|
2304
|
-
p && B.push("scaleX(-1)"), y && B.push("scaleY(-1)"), j.style.setProperty("transform", B.join(" ")), f.appendChild(j);
|
|
2305
|
-
var k = (function(c, t, o) {
|
|
2306
|
-
var e;
|
|
2307
|
-
o === void 0 && (o = !1);
|
|
2308
|
-
var l = c.inheritProps, d = c.props, b = c.paragraphs;
|
|
2309
|
-
if (!b || b.length === 0) return null;
|
|
2310
|
-
var v = I(I({}, l), d), x = document.createElement("div");
|
|
2311
|
-
switch (x.className = "text-wrapper", x.style.boxSizing = "border-box", x.style.position = "absolute", x.style.left = t.left + "px", v.vert === "eaVert" ? (x.style.writingMode = "vertical-rl", x.style.height = t.h + "px") : x.style.width = t.w + "px", v.anchor) {
|
|
2312
|
-
case "b":
|
|
2313
|
-
x.style.bottom = t.bottom + "px";
|
|
2314
|
-
break;
|
|
2315
|
-
case "t":
|
|
2316
|
-
x.style.top = t.top + "px";
|
|
2317
|
-
break;
|
|
2318
|
-
case "ctr":
|
|
2319
|
-
x.style.top = t.top + t.h / 2 + "px", x.style.transform = "translateY(-50%)";
|
|
2320
|
-
break;
|
|
2321
|
-
default:
|
|
2322
|
-
o ? x.style.top = t.top + "px" : (x.style.top = t.top + t.h / 2 + "px", x.style.transform = "translateY(-50%)");
|
|
2323
|
-
}
|
|
2324
|
-
var P = [v.hasOwnProperty("tIns") ? Math.floor(v.tIns) + "px" : "3px", v.hasOwnProperty("rIns") ? Math.floor(v.rIns) + "px" : "5px", v.hasOwnProperty("bIns") ? Math.floor(v.bIns) + "px" : "3px", v.hasOwnProperty("lIns") ? Math.floor(v.lIns) + "px" : "5px"];
|
|
2325
|
-
x.style.padding = P.join(" ");
|
|
2326
|
-
for (var S = {}, R = 0, _ = function(D) {
|
|
2327
|
-
var G = I(I({}, D.inheritProps), D.props), H = void 0;
|
|
2328
|
-
if (G.buAutoNum) {
|
|
2329
|
-
var E = G.level ? +G.level : 0;
|
|
2330
|
-
S[E] || (S[E] = 0), !((e = D.rows) === null || e === void 0) && e.length && S[E]++, Object.keys(S).forEach((function(z) {
|
|
2331
|
-
+z > E && (S[z] = 0);
|
|
2332
|
-
})), H = kt(D, S[E], { isFirst: R === 0, isLast: b.length - 1 === R, bodyProps: v });
|
|
2333
|
-
} else H = kt(D, 0, { isFirst: R === 0, isLast: b.length - 1 === R, bodyProps: v });
|
|
2334
|
-
x.appendChild(H), R++;
|
|
2335
|
-
}, O = 0, N = b; O < N.length; O++) _(N[O]);
|
|
2336
|
-
return x;
|
|
2337
|
-
})(i.textBody, L, i.isTextBox);
|
|
2338
|
-
return k && f.appendChild(k), h && f.style.setProperty("transform", "rotate(".concat(h, "deg)")), f;
|
|
2339
|
-
}
|
|
2340
|
-
function Re(i) {
|
|
2341
|
-
var r = document.createElement("div"), n = i.extend;
|
|
2342
|
-
i.chExtend;
|
|
2343
|
-
var a = i.offset;
|
|
2344
|
-
i.chOffset;
|
|
2345
|
-
var s = i.flipV, h = i.flipH, p = i.rotate, y = a.x, f = a.y, m = n.w, g = n.h;
|
|
2346
|
-
r.className = "group", r.style.position = "absolute", r.style.left = y + "px", r.style.top = f + "px", r.style.width = m + "px", r.style.height = g + "px";
|
|
2347
|
-
var w = [];
|
|
2348
|
-
h && w.push("scaleX(-1)"), s && w.push("scaleY(-1)"), p && w.push("rotate(".concat(p, "deg)")), r.style.transformOrigin = "center center", r.style.transform = w.join(" ");
|
|
2349
|
-
for (var j = 0; j < i.nodes.length; j++) {
|
|
2350
|
-
var L = i.nodes[j], C = void 0;
|
|
2351
|
-
L instanceof Pt ? C = he(L) : L instanceof vt ? C = pe(L) : L instanceof de && (C = Re(L)), C && r.appendChild(C);
|
|
2352
|
-
}
|
|
2353
|
-
return r;
|
|
2354
|
-
}
|
|
2355
|
-
var nt = {};
|
|
2356
|
-
function Ae(i, r) {
|
|
2357
|
-
nt[i] || (nt[i] = []), nt[i].push(r);
|
|
2358
|
-
}
|
|
2359
|
-
function Lt(i, r) {
|
|
2360
|
-
if (nt[i]) for (var n = 0; n < nt[i].length; n++) nt[i][n](r);
|
|
2361
|
-
}
|
|
2362
|
-
function le(i, r) {
|
|
2363
|
-
nt ? nt[i] && (nt[i] = nt[i].filter((function(n) {
|
|
2364
|
-
return n !== r;
|
|
2365
|
-
}))) : nt[i] = [];
|
|
2366
|
-
}
|
|
2367
|
-
var Pe = (function() {
|
|
2368
|
-
function i(r, n, a) {
|
|
2369
|
-
this.scale = 1, this.wrapper = r, this.pptx = n, this.options = a, this._calcScaleAndRenderPort();
|
|
2370
|
-
}
|
|
2371
|
-
return i.prototype._calcScaleAndRenderPort = function() {
|
|
2372
|
-
var r = this.options.viewPort.width / this.pptx.width;
|
|
2373
|
-
this.scale = r;
|
|
2374
|
-
var n = this.options.viewPort.width, a = this.pptx.height * this.scale;
|
|
2375
|
-
this.renderPort = { width: n, height: a, left: 0, top: 0 };
|
|
2376
|
-
}, i.prototype.renderSlide = function(r) {
|
|
2377
|
-
var n = this.pptx.slides[r], a = document.createElement("div");
|
|
2378
|
-
a.classList.add("pptx-preview-slide-wrapper"), a.classList.add("pptx-preview-slide-wrapper-".concat(r)), a.style.setProperty("width", this.renderPort.width + "px"), a.style.setProperty("height", this.renderPort.height + "px"), a.style.setProperty("position", this.options.mode === "slide" ? "absolute" : "relative"), this.options.mode === "slide" && a.style.setProperty("top", (this.options.viewPort.height - this.renderPort.height) / 2 + "px"), a.style.margin = "0 auto 10px", a.style.setProperty("background", "#fff"), a.style.setProperty("overflow", "hidden"), this._renderBackground(n, a), this._renderSlideMaster(n.slideMaster, a), this._renderSlideLayout(n.slideLayout, a), this._renderSlide(n, a), this.wrapper.append(a);
|
|
2379
|
-
}, i.prototype._renderSlideMaster = function(r, n) {
|
|
2380
|
-
var a = document.createElement("div");
|
|
2381
|
-
a.classList.add("slide-master-wrapper"), a.style.setProperty("position", "absolute"), a.style.setProperty("left", "0"), a.style.setProperty("top", "0"), a.style.setProperty("width", this.pptx.width + "px"), a.style.setProperty("height", this.pptx.height + "px"), a.style.setProperty("transform", "scale(".concat(this.scale, ")")), a.style.setProperty("transform-origin", "0 0");
|
|
2382
|
-
var s = yt([], r.nodes, !0).filter((function(y) {
|
|
2383
|
-
return y.userDrawn;
|
|
2384
|
-
}));
|
|
2385
|
-
s.sort((function(y, f) {
|
|
2386
|
-
return y.order > f.order ? 1 : -1;
|
|
2387
|
-
}));
|
|
2388
|
-
for (var h = 0; h < s.length; h++) {
|
|
2389
|
-
var p = this._renderNode(s[h]);
|
|
2390
|
-
p && a.append(p);
|
|
2391
|
-
}
|
|
2392
|
-
n.append(a);
|
|
2393
|
-
}, i.prototype._renderSlideLayout = function(r, n) {
|
|
2394
|
-
var a = document.createElement("div");
|
|
2395
|
-
a.classList.add("slide-layout-wrapper"), a.style.setProperty("position", "absolute"), a.style.setProperty("left", "0"), a.style.setProperty("top", "0"), a.style.setProperty("width", this.pptx.width + "px"), a.style.setProperty("height", this.pptx.height + "px"), a.style.setProperty("transform", "scale(".concat(this.scale, ")")), a.style.setProperty("transform-origin", "0 0");
|
|
2396
|
-
var s = yt([], r.nodes, !0).filter((function(y) {
|
|
2397
|
-
return y.userDrawn;
|
|
2398
|
-
}));
|
|
2399
|
-
s.sort((function(y, f) {
|
|
2400
|
-
return y.order > f.order ? 1 : -1;
|
|
2401
|
-
}));
|
|
2402
|
-
for (var h = 0; h < s.length; h++) {
|
|
2403
|
-
var p = this._renderNode(s[h]);
|
|
2404
|
-
p && a.append(p);
|
|
2405
|
-
}
|
|
2406
|
-
n.append(a);
|
|
2407
|
-
}, i.prototype._renderSlide = function(r, n) {
|
|
2408
|
-
var a = document.createElement("div");
|
|
2409
|
-
a.classList.add("slide-wrapper"), a.style.setProperty("position", "absolute"), a.style.setProperty("left", "0"), a.style.setProperty("top", "0"), a.style.setProperty("width", this.pptx.width + "px"), a.style.setProperty("height", this.pptx.height + "px"), a.style.setProperty("transform", "scale(".concat(this.scale, ")")), a.style.setProperty("transform-origin", "0 0");
|
|
2410
|
-
var s = yt([], r.nodes, !0);
|
|
2411
|
-
s.sort((function(y, f) {
|
|
2412
|
-
return y.order > f.order ? 1 : -1;
|
|
2413
|
-
}));
|
|
2414
|
-
for (var h = 0; h < s.length; h++) {
|
|
2415
|
-
var p = this._renderNode(s[h]);
|
|
2416
|
-
p && a.append(p);
|
|
2417
|
-
}
|
|
2418
|
-
n.append(a);
|
|
2419
|
-
}, i.prototype._renderNode = function(r) {
|
|
2420
|
-
return r instanceof Pt ? he(r) : r instanceof vt ? pe(r) : r instanceof de ? Re(r) : r instanceof Se ? (function(n) {
|
|
2421
|
-
var a = document.createElement("div"), s = n.extend, h = n.offset, p = n.flipV, y = n.flipH, f = n.rotate, m = h.x, g = h.y, w = s.w, j = s.h;
|
|
2422
|
-
a.className = "smart-chart-diagram", a.style.position = "absolute", a.style.left = m + "px", a.style.top = g + "px", a.style.width = w + "px", a.style.height = j + "px";
|
|
2423
|
-
var L = [];
|
|
2424
|
-
y && L.push("scaleX(-1)"), p && L.push("scaleY(-1)"), f && L.push("rotate(".concat(f, "deg)")), a.style.transformOrigin = "center center", a.style.transform = L.join(" ");
|
|
2425
|
-
for (var C = 0; C < n.nodes.length; C++) {
|
|
2426
|
-
var B = n.nodes[C], k = void 0;
|
|
2427
|
-
B instanceof Pt ? k = he(B) : B instanceof vt && (k = pe(B)), k && a.appendChild(k);
|
|
2428
|
-
}
|
|
2429
|
-
return a;
|
|
2430
|
-
})(r) : r instanceof je ? (function(n) {
|
|
2431
|
-
var a = n.extend, s = n.offset, h = n.tr, p = n.tableGrid.gridCol, y = document.createElement("div");
|
|
2432
|
-
y.style.position = "absolute", y.style.left = s.x + "px", y.style.top = s.y + "px", y.style.width = a.w + "px", y.style.height = a.h + "px";
|
|
2433
|
-
var f = document.createElement("table");
|
|
2434
|
-
return f.style.borderCollapse = "collapse", h.forEach((function(m) {
|
|
2435
|
-
var g = m.props, w = m.td, j = g.height, L = document.createElement("tr");
|
|
2436
|
-
L.style.height = j + "px", w.forEach((function(C, B) {
|
|
2437
|
-
var k, c, t = C.props, o = C.inheritTcStyle, e = C.inheritTcTxStyle, l = C.paragraphs;
|
|
2438
|
-
if (!t.vMerge && !t.hMerge) {
|
|
2439
|
-
var d = document.createElement("td");
|
|
2440
|
-
d.style.width = (((k = p[B]) === null || k === void 0 ? void 0 : k.width) || 30) + "px", t.rowSpan && d.setAttribute("rowspan", t.rowSpan + ""), t.gridSpan && d.setAttribute("colspan", t.gridSpan + "");
|
|
2441
|
-
var b = t.background || o.background;
|
|
2442
|
-
b && (d.style.background = F(b));
|
|
2443
|
-
var v = I(I({}, o.border), t.border), x = function(E) {
|
|
2444
|
-
return E ? E.toLowerCase().includes("dash") ? "dashed" : E.toLowerCase().includes("dot") ? "dotted" : "solid" : "solid";
|
|
2445
|
-
};
|
|
2446
|
-
v.bottom && (d.style.borderBottom = "".concat(v.bottom.width, "px ").concat(x(v.bottom.type), " ").concat(F(v.bottom.color))), v.top && (d.style.borderTop = "".concat(v.top.width, "px ").concat(x(v.top.type), " ").concat(F(v.top.color))), v.left && (d.style.borderLeft = "".concat(v.left.width, "px ").concat(x(v.left.type), " ").concat(F(v.left.color))), v.right && (d.style.borderRight = "".concat(v.right.width, "px ").concat(x(v.right.type), " ").concat(F(v.right.color)));
|
|
2447
|
-
var P = document.createElement("div");
|
|
2448
|
-
switch (P.className = "text-wrapper", P.style.boxSizing = "border-box", P.style.width = "100%", P.style.height = "100%", P.style.overflow = "hidden", P.style.display = "flex", P.style.flexDirection = "column", t.anchor) {
|
|
2449
|
-
case "b":
|
|
2450
|
-
P.style.justifyContent = "flex-end";
|
|
2451
|
-
break;
|
|
2452
|
-
case "t":
|
|
2453
|
-
P.style.justifyContent = "flex-start";
|
|
2454
|
-
break;
|
|
2455
|
-
case "ctr":
|
|
2456
|
-
P.style.justifyContent = "center";
|
|
2457
|
-
}
|
|
2458
|
-
var S = [t.hasOwnProperty("marT") ? Math.floor(t.marT) + "px" : "3px", t.hasOwnProperty("marR") ? Math.floor(t.marR - 1) + "px" : "5px", t.hasOwnProperty("marB") ? Math.floor(t.marB) + "px" : "3px", t.hasOwnProperty("marL") ? Math.floor(t.marL - 1) + "px" : "5px"];
|
|
2459
|
-
P.style.padding = S.join(" ");
|
|
2460
|
-
for (var R = I({}, t), _ = {}, O = l.map((function(E) {
|
|
2461
|
-
return I(I({}, E), { props: I({ align: "l" }, E.props), inheritRProps: I(I({}, E.inheritRProps), e) });
|
|
2462
|
-
})), N = 0, D = function(E) {
|
|
2463
|
-
var z = I(I({}, E.inheritProps), E.props), Q = void 0;
|
|
2464
|
-
if (z.buAutoNum) {
|
|
2465
|
-
var q = z.level ? +z.level : 0;
|
|
2466
|
-
_[q] || (_[q] = 0), !((c = E.rows) === null || c === void 0) && c.length && _[q]++, Object.keys(_).forEach((function(X) {
|
|
2467
|
-
+X > q && (_[X] = 0);
|
|
2468
|
-
})), Q = kt(E, _[q], { isFirst: N === 0, isLast: l.length - 1 === N, bodyProps: R });
|
|
2469
|
-
} else Q = kt(E, 0, { isFirst: N === 0, isLast: l.length - 1 === N, bodyProps: R });
|
|
2470
|
-
P.appendChild(Q), N++;
|
|
2471
|
-
}, G = 0, H = O; G < H.length; G++) D(H[G]);
|
|
2472
|
-
d.append(P), L.append(d);
|
|
2473
|
-
}
|
|
2474
|
-
})), f.append(L);
|
|
2475
|
-
})), y.append(f), y;
|
|
2476
|
-
})(r) : r instanceof Ce ? (function(n) {
|
|
2477
|
-
var a = document.createElement("div"), s = n.extend, h = n.offset, p = n.flipV, y = n.flipH, f = n.rotate, m = n.options, g = h.x, w = h.y, j = s.w, L = s.h;
|
|
2478
|
-
a.className = "chart-node", a.style.position = "absolute", a.style.left = g + "px", a.style.top = w + "px", a.style.width = j + "px", a.style.height = L + "px";
|
|
2479
|
-
var C = [];
|
|
2480
|
-
return y && C.push("scaleX(-1)"), p && C.push("scaleY(-1)"), f && C.push("rotate(".concat(f, "deg)")), a.style.transformOrigin = "center center", a.style.transform = C.join(" "), setTimeout((function() {
|
|
2481
|
-
var B = Te(a, null, { renderer: "svg" });
|
|
2482
|
-
B.setOption(m), Ae("destroy", (function() {
|
|
2483
|
-
B && B.dispose(), B && (B = null);
|
|
2484
|
-
})), Ae("removeSlide", (function() {
|
|
2485
|
-
B && B.dispose(), B && (B = null);
|
|
2486
|
-
}));
|
|
2487
|
-
}), 0), a;
|
|
2488
|
-
})(r) : void 0;
|
|
2489
|
-
}, i.prototype._renderBackground = function(r, n) {
|
|
2490
|
-
var a, s = document.createElement("div");
|
|
2491
|
-
s.classList.add("slide-background"), s.style.setProperty("position", "absolute"), s.style.setProperty("left", "0"), s.style.setProperty("top", "0"), s.style.setProperty("width", "100%"), s.style.setProperty("height", "100%");
|
|
2492
|
-
var h = r.background;
|
|
2493
|
-
if (h.type === "none" && (h = r.slideLayout.background), h.type === "none" && (h = r.slideMaster.background), h.type === "blipFill") {
|
|
2494
|
-
var p = h, y = p.base64, f = p.alpha, m = p.fillRect, g = m === void 0 ? {} : m, w = g.b, j = w === void 0 ? 0 : w, L = g.t, C = L === void 0 ? 0 : L, B = g.l, k = B === void 0 ? 0 : B, c = g.r, t = c === void 0 ? 0 : c, o = this.renderPort.width * k, e = this.renderPort.height * C, l = this.renderPort.width * (1 - k - t), d = this.renderPort.height * (1 - C - j);
|
|
2495
|
-
s.style.backgroundImage = "url(".concat(y, ")"), s.style.backgroundSize = "".concat(l, " ").concat(d), s.style.backgroundPosition = "".concat(o, "px ").concat(e, "px"), f && (s.style.opacity = f + ""), s.style.backgroundRepeat = "no-repeat";
|
|
2496
|
-
} else if (h.type === "solidFill") {
|
|
2497
|
-
var b = F(r.background) || F(r.slideLayout.background) || F(r.slideMaster.background);
|
|
2498
|
-
b ? s.style.setProperty("background", b) : s.style.setProperty("background", "#fff");
|
|
2499
|
-
} else if (h.type === "gradFill") if (h.path === "circle") {
|
|
2500
|
-
var v = h.tileRect || {}, x = (j = v.b, C = v.t, k = v.l, "radial-gradient(circle at ");
|
|
2501
|
-
(t = v.r) === -1 ? x += " right" : k === -1 && (x += " left"), C === -1 ? x += " top" : j === -1 && (x += " bottom"), j || C || k || t || (x += " center"), x += ",", x += h.gsList.map((function(S) {
|
|
2502
|
-
return "".concat(F(S.color), " ").concat(100 * S.pos + "%");
|
|
2503
|
-
})).join(","), s.style.setProperty("background", x);
|
|
2504
|
-
} else {
|
|
2505
|
-
var P = ((a = h == null ? void 0 : h.lin) === null || a === void 0 ? void 0 : a.ang) || 0;
|
|
2506
|
-
x = "linear-gradient(".concat(P + 90, "deg,"), x += h.gsList.map((function(S) {
|
|
2507
|
-
return "".concat(F(S.color), " ").concat(100 * S.pos + "%");
|
|
2508
|
-
})).join(","), s.style.setProperty("background", x);
|
|
2509
|
-
}
|
|
2510
|
-
n.append(s);
|
|
2511
|
-
}, i;
|
|
2512
|
-
})(), ze = (function() {
|
|
2513
|
-
function i(r, n) {
|
|
2514
|
-
this.currentIndex = -1, this.dom = r, this.options = n, this._renderWrapper();
|
|
2515
|
-
}
|
|
2516
|
-
return Object.defineProperty(i.prototype, "slideCount", { get: function() {
|
|
2517
|
-
var r, n;
|
|
2518
|
-
return (n = (r = this.pptx) === null || r === void 0 ? void 0 : r.slides) === null || n === void 0 ? void 0 : n.length;
|
|
2519
|
-
}, enumerable: !1, configurable: !0 }), i.prototype._renderWrapper = function() {
|
|
2520
|
-
var r = document.createElement("div");
|
|
2521
|
-
r.classList.add("pptx-preview-wrapper"), r.setAttribute("position", "relative"), r.style.setProperty("background", "#000"), r.style.setProperty("width", this.options.width + "px"), this.options.height && r.style.setProperty("height", this.options.height + "px"), r.style.setProperty("position", "relative"), r.style.setProperty("margin", "0 auto"), this.options.height && r.style.setProperty("overflow-y", "auto"), this.dom.append(r), this.wrapper = r;
|
|
2522
|
-
}, i.prototype.renderNextButton = function() {
|
|
2523
|
-
var r = document.createElement("div");
|
|
2524
|
-
r.classList.add("pptx-preview-wrapper-next"), r.style.setProperty("position", "absolute"), r.style.setProperty("bottom", "20px"), r.style.setProperty("right", "80px"), r.style.setProperty("z-index", "100"), r.style.setProperty("cursor", "pointer"), r.style.setProperty("width", "40px"), r.style.setProperty("height", "40px"), r.style.setProperty("background", "#666666"), r.style.setProperty("border-radius", "100%");
|
|
2525
|
-
var n = document.createElement("div");
|
|
2526
|
-
return n.style.setProperty("width", "10px"), n.style.setProperty("height", "10px"), n.style.setProperty("border-left", "2px solid #fff"), n.style.setProperty("border-bottom", "2px solid #fff"), n.style.setProperty("transform", "rotate(225deg)"), n.style.setProperty("position", "absolute"), n.style.setProperty("top", "15px"), n.style.setProperty("left", "15px"), r.append(n), r;
|
|
2527
|
-
}, i.prototype.renderPreButton = function() {
|
|
2528
|
-
var r = document.createElement("div");
|
|
2529
|
-
r.classList.add("pptx-preview-wrapper-next"), r.style.setProperty("position", "absolute"), r.style.setProperty("bottom", "20px"), r.style.setProperty("right", "140px"), r.style.setProperty("z-index", "100"), r.style.setProperty("cursor", "pointer"), r.style.setProperty("width", "40px"), r.style.setProperty("height", "40px"), r.style.setProperty("background", "#666666"), r.style.setProperty("border-radius", "100%");
|
|
2530
|
-
var n = document.createElement("div");
|
|
2531
|
-
return n.style.setProperty("width", "10px"), n.style.setProperty("height", "10px"), n.style.setProperty("border-left", "2px solid #fff"), n.style.setProperty("border-bottom", "2px solid #fff"), n.style.setProperty("transform", "rotate(45deg)"), n.style.setProperty("position", "absolute"), n.style.setProperty("top", "15px"), n.style.setProperty("left", "15px"), r.append(n), r;
|
|
2532
|
-
}, i.prototype.updatePagination = function() {
|
|
2533
|
-
var r = this.wrapper.querySelector(".pptx-preview-wrapper-pagination");
|
|
2534
|
-
r && (r.innerText = "".concat(this.currentIndex + 1, "/").concat(this.slideCount));
|
|
2535
|
-
}, i.prototype.renderPagination = function(r) {
|
|
2536
|
-
var n = document.createElement("div");
|
|
2537
|
-
n.classList.add("pptx-preview-wrapper-pagination"), n.innerText = "".concat(this.currentIndex + 1, "/").concat(this.slideCount), n.style.setProperty("position", "absolute"), n.style.setProperty("bottom", "33px"), n.style.setProperty("right", "20px"), n.style.setProperty("color", "#666666"), n.style.setProperty("font-size", "14px"), n.style.setProperty("z-index", "100"), r.append(n);
|
|
2538
|
-
}, i.prototype.removeCurrentSlide = function() {
|
|
2539
|
-
var r = this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));
|
|
2540
|
-
r && this.wrapper.removeChild(r), Lt("removeSlide");
|
|
2541
|
-
}, i.prototype.renderNextSlide = function() {
|
|
2542
|
-
this.removeCurrentSlide(), this.currentIndex = this.currentIndex < this.slideCount - 1 ? this.currentIndex + 1 : 0, this.htmlRender.renderSlide(this.currentIndex), this.updatePagination();
|
|
2543
|
-
}, i.prototype.renderPreSlide = function() {
|
|
2544
|
-
this.removeCurrentSlide(), this.currentIndex = this.currentIndex > 0 ? this.currentIndex - 1 : this.slideCount - 1, this.htmlRender.renderSlide(this.currentIndex), this.updatePagination();
|
|
2545
|
-
}, i.prototype._addPre = function(r) {
|
|
2546
|
-
}, i.prototype.preview = function(r) {
|
|
2547
|
-
var n = this;
|
|
2548
|
-
return Lt("destroy"), le("destroy"), new Promise((function(a, s) {
|
|
2549
|
-
n.wrapper.innerHTML = "";
|
|
2550
|
-
var h = n.pptx = new ve();
|
|
2551
|
-
h.load(r).then((function() {
|
|
2552
|
-
try {
|
|
2553
|
-
var p = n.htmlRender = new Pe(n.wrapper, h, { viewPort: { width: n.options.width, height: n.options.height }, mode: n.options.mode });
|
|
2554
|
-
if (n.options.mode === "slide") {
|
|
2555
|
-
var y = n.renderNextButton();
|
|
2556
|
-
y.onclick = function() {
|
|
2557
|
-
n.renderNextSlide();
|
|
2558
|
-
}, n.wrapper.append(y);
|
|
2559
|
-
var f = n.renderPreButton();
|
|
2560
|
-
f.onclick = function() {
|
|
2561
|
-
n.renderPreSlide();
|
|
2562
|
-
}, n.wrapper.append(f), n.renderPagination(n.wrapper), n._addPre(n.wrapper), n.currentIndex = 0, p.renderSlide(0);
|
|
2563
|
-
} else for (var m = 0; m < h.slides.length; m++) p.renderSlide(m);
|
|
2564
|
-
a(h);
|
|
2565
|
-
} catch (g) {
|
|
2566
|
-
s(g);
|
|
2567
|
-
}
|
|
2568
|
-
})).catch((function(p) {
|
|
2569
|
-
s(p);
|
|
2570
|
-
}));
|
|
2571
|
-
}));
|
|
2572
|
-
}, i.prototype.load = function(r) {
|
|
2573
|
-
var n = this;
|
|
2574
|
-
return Lt("destroy"), le("destroy"), new Promise((function(a, s) {
|
|
2575
|
-
n.wrapper.innerHTML = "";
|
|
2576
|
-
var h = n.pptx = new ve();
|
|
2577
|
-
h.load(r).then((function() {
|
|
2578
|
-
try {
|
|
2579
|
-
n.htmlRender = new Pe(n.wrapper, h, { viewPort: { width: n.options.width, height: n.options.height }, mode: n.options.mode }), a(h);
|
|
2580
|
-
} catch (p) {
|
|
2581
|
-
s(p);
|
|
2582
|
-
}
|
|
2583
|
-
})).catch((function(p) {
|
|
2584
|
-
s(p);
|
|
2585
|
-
}));
|
|
2586
|
-
}));
|
|
2587
|
-
}, i.prototype.renderSingleSlide = function(r) {
|
|
2588
|
-
this.removeCurrentSlide(), this.currentIndex = r, this.htmlRender.renderSlide(this.currentIndex);
|
|
2589
|
-
}, i.prototype.destroy = function() {
|
|
2590
|
-
Lt("destroy"), le("destroy");
|
|
2591
|
-
}, i;
|
|
2592
|
-
})();
|
|
2593
|
-
function Ue(i, r) {
|
|
2594
|
-
return new ze(i, r);
|
|
2595
|
-
}
|
|
2596
|
-
export {
|
|
2597
|
-
Ue as init
|
|
2598
|
-
};
|
|
2599
|
-
//# sourceMappingURL=pptx-preview.es.js.map
|