web-core-tcm 0.0.62 → 0.0.64
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/node_modules/@alova/shared/dist/alova-shared.esm.js +229 -92
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/clone.js +35 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +109 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +16 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +9 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +9 -10
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +28 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +48 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +8 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +49 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +1 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +1 -1
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/equals.js +127 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +86 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/fields.js +11 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +60 -56
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +434 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/index.js +49 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/merge.js +33 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +12 -3
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +14 -10
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +32 -12
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +42 -6
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +58 -50
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +26 -4
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +1 -1
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +130 -99
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +279 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/types.js +1 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +48 -27
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +24 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +123 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +10 -6
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +40 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +18 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +11 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +19 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +18 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +137 -63
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +25 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +26 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +17 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +35 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +15 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +180 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +29 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/api.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/app.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/component.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/context.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/hooks.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/index.js +6 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/api/util.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/const.js +5 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/env.js +12 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/index.js +24 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/plugin.js +1 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/proxy.js +67 -0
- package/dist/node_modules/@vue/devtools-api/lib/esm/time.js +12 -0
- package/dist/node_modules/@vueuse/core/index.js +5189 -199
- package/dist/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.js +24 -0
- package/dist/node_modules/@vueuse/shared/index.js +1172 -23
- package/dist/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.js +24 -0
- package/dist/node_modules/alova/dist/adapter/fetch.esm.js +30 -34
- package/dist/node_modules/alova/dist/alova.esm.js +266 -220
- package/dist/node_modules/alova/dist/clienthook/index.esm.js +2110 -70
- package/dist/node_modules/builder-pattern/dist/index.js +25 -13
- package/dist/node_modules/echarts/index.js +5 -0
- package/dist/node_modules/echarts/lib/animation/basicTransition.js +1 -1
- package/dist/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +40 -39
- package/dist/node_modules/echarts/lib/animation/customGraphicTransition.js +146 -148
- package/dist/node_modules/echarts/lib/animation/universalTransition.js +208 -203
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +77 -76
- package/dist/node_modules/echarts/lib/chart/bar/PictorialBarView.js +6 -6
- package/dist/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js +8 -8
- package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickView.js +8 -8
- package/dist/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js +34 -34
- package/dist/node_modules/echarts/lib/chart/custom/CustomView.js +157 -157
- package/dist/node_modules/echarts/lib/chart/funnel/FunnelView.js +7 -6
- package/dist/node_modules/echarts/lib/chart/funnel/funnelLayout.js +52 -52
- package/dist/node_modules/echarts/lib/chart/gauge/GaugeView.js +45 -44
- package/dist/node_modules/echarts/lib/chart/graph/GraphView.js +4 -2
- package/dist/node_modules/echarts/lib/chart/graph/adjustEdge.js +5 -5
- package/dist/node_modules/echarts/lib/chart/graph/forceHelper.js +4 -4
- package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapView.js +54 -54
- package/dist/node_modules/echarts/lib/chart/helper/EffectLine.js +26 -25
- package/dist/node_modules/echarts/lib/chart/helper/LargeLineDraw.js +42 -41
- package/dist/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +9 -8
- package/dist/node_modules/echarts/lib/chart/helper/Line.js +8 -7
- package/dist/node_modules/echarts/lib/chart/helper/LinePath.js +18 -15
- package/dist/node_modules/echarts/lib/chart/helper/Polyline.js +13 -12
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +3 -2
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +4 -3
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +4 -4
- package/dist/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js +1 -1
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +17 -15
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +201 -200
- package/dist/node_modules/echarts/lib/chart/lines/LinesSeries.js +64 -61
- package/dist/node_modules/echarts/lib/chart/lines/LinesView.js +36 -36
- package/dist/node_modules/echarts/lib/chart/lines/linesLayout.js +21 -20
- package/dist/node_modules/echarts/lib/chart/map/MapView.js +13 -12
- package/dist/node_modules/echarts/lib/chart/parallel/ParallelView.js +7 -6
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +19 -18
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +1 -1
- package/dist/node_modules/echarts/lib/chart/radar/RadarView.js +5 -5
- package/dist/node_modules/echarts/lib/chart/sankey/SankeySeries.js +27 -27
- package/dist/node_modules/echarts/lib/chart/sankey/SankeyView.js +6 -5
- package/dist/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js +3 -2
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstAction.js +22 -21
- package/dist/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js +3 -3
- package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js +3 -2
- package/dist/node_modules/echarts/lib/chart/tree/TreeView.js +13 -12
- package/dist/node_modules/echarts/lib/chart/tree/treeLayout.js +1 -1
- package/dist/node_modules/echarts/lib/chart/treemap/Breadcrumb.js +3 -2
- package/dist/node_modules/echarts/lib/chart/treemap/TreemapView.js +131 -130
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +4 -4
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +3 -3
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +11 -10
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +3 -3
- package/dist/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js +3 -3
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +1 -1
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +3 -3
- package/dist/node_modules/echarts/lib/component/brush/BrushModel.js +29 -29
- package/dist/node_modules/echarts/lib/component/calendar/CalendarView.js +3 -2
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +4 -4
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +12 -12
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +22 -21
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +49 -41
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +5 -5
- package/dist/node_modules/echarts/lib/component/graphic/GraphicModel.js +66 -59
- package/dist/node_modules/echarts/lib/component/graphic/GraphicView.js +93 -93
- package/dist/node_modules/echarts/lib/component/helper/BrushController.js +168 -168
- package/dist/node_modules/echarts/lib/component/helper/BrushTargetManager.js +95 -95
- package/dist/node_modules/echarts/lib/component/helper/MapDraw.js +8 -8
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js +3 -2
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +1 -1
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +46 -45
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js +1 -1
- package/dist/node_modules/echarts/lib/component/marker/MarkAreaView.js +84 -83
- package/dist/node_modules/echarts/lib/component/marker/MarkLineView.js +47 -47
- package/dist/node_modules/echarts/lib/component/marker/MarkerModel.js +32 -32
- package/dist/node_modules/echarts/lib/component/marker/markerHelper.js +1 -1
- package/dist/node_modules/echarts/lib/component/radar/RadarView.js +24 -24
- package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineView.js +1 -1
- package/dist/node_modules/echarts/lib/component/title/install.js +8 -7
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataView.js +80 -79
- package/dist/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +10 -9
- package/dist/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +24 -23
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +10 -10
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +7 -7
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js +1 -1
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +13 -13
- package/dist/node_modules/echarts/lib/component/transform/filterTransform.js +17 -17
- package/dist/node_modules/echarts/lib/component/transform/sortTransform.js +34 -34
- package/dist/node_modules/echarts/lib/component/visualMap/ContinuousView.js +3 -3
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +4 -4
- package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +7 -6
- package/dist/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +4 -4
- package/dist/node_modules/echarts/lib/component/visualMap/preprocessor.js +1 -1
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +29 -27
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +1 -1
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +4 -4
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +1 -1
- package/dist/node_modules/echarts/lib/coord/calendar/Calendar.js +7 -7
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +91 -91
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +21 -21
- package/dist/node_modules/echarts/lib/coord/cartesian/prepareCustom.js +3 -3
- package/dist/node_modules/echarts/lib/coord/geo/Geo.js +22 -23
- package/dist/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +3 -3
- package/dist/node_modules/echarts/lib/coord/geo/geoCreator.js +38 -38
- package/dist/node_modules/echarts/lib/coord/geo/geoSourceManager.js +2 -2
- package/dist/node_modules/echarts/lib/coord/geo/parseGeoJson.js +1 -1
- package/dist/node_modules/echarts/lib/coord/geo/prepareCustom.js +3 -3
- package/dist/node_modules/echarts/lib/coord/parallel/Parallel.js +4 -4
- package/dist/node_modules/echarts/lib/coord/polar/polarCreator.js +11 -11
- package/dist/node_modules/echarts/lib/coord/polar/prepareCustom.js +3 -3
- package/dist/node_modules/echarts/lib/coord/radar/Radar.js +1 -1
- package/dist/node_modules/echarts/lib/coord/radar/RadarModel.js +1 -1
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +37 -37
- package/dist/node_modules/echarts/lib/core/Scheduler.js +22 -22
- package/dist/node_modules/echarts/lib/core/echarts.js +615 -559
- package/dist/node_modules/echarts/lib/core/impl.js +8 -7
- package/dist/node_modules/echarts/lib/core/task.js +19 -19
- package/dist/node_modules/echarts/lib/data/DataStore.js +193 -191
- package/dist/node_modules/echarts/lib/data/Graph.js +69 -69
- package/dist/node_modules/echarts/lib/data/SeriesData.js +73 -68
- package/dist/node_modules/echarts/lib/data/Source.js +58 -58
- package/dist/node_modules/echarts/lib/data/Tree.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +4 -4
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +40 -36
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +103 -92
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +17 -17
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +15 -15
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +58 -58
- package/dist/node_modules/echarts/lib/data/helper/transform.js +97 -95
- package/dist/node_modules/echarts/lib/export/api/format.js +16 -0
- package/dist/node_modules/echarts/lib/export/api/graphic.js +54 -0
- package/dist/node_modules/echarts/lib/export/api/helper.js +44 -0
- package/dist/node_modules/echarts/lib/export/api/number.js +21 -0
- package/dist/node_modules/echarts/lib/export/api/time.js +6 -0
- package/dist/node_modules/echarts/lib/export/api/util.js +19 -0
- package/dist/node_modules/echarts/lib/export/api.js +71 -0
- package/dist/node_modules/echarts/lib/export/charts.js +46 -0
- package/dist/node_modules/echarts/lib/export/components.js +62 -0
- package/dist/node_modules/echarts/lib/export/core.js +39 -0
- package/dist/node_modules/echarts/lib/export/features.js +6 -0
- package/dist/node_modules/echarts/lib/export/renderers.js +6 -0
- package/dist/node_modules/echarts/lib/label/LabelManager.js +1 -1
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +4 -4
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +87 -84
- package/dist/node_modules/echarts/lib/label/labelStyle.js +116 -115
- package/dist/node_modules/echarts/lib/layout/barGrid.js +84 -84
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +27 -26
- package/dist/node_modules/echarts/lib/legacy/getTextRect.js +20 -0
- package/dist/node_modules/echarts/lib/loading/default.js +3 -2
- package/dist/node_modules/echarts/lib/model/Global.js +162 -157
- package/dist/node_modules/echarts/lib/model/Model.js +14 -12
- package/dist/node_modules/echarts/lib/model/OptionManager.js +36 -35
- package/dist/node_modules/echarts/lib/model/Series.js +52 -52
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +17 -11
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +38 -37
- package/dist/node_modules/echarts/lib/model/referHelper.js +13 -13
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +60 -59
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +82 -81
- package/dist/node_modules/echarts/lib/scale/Time.js +35 -34
- package/dist/node_modules/echarts/lib/scale/helper.js +25 -20
- package/dist/node_modules/echarts/lib/util/clazz.js +62 -62
- package/dist/node_modules/echarts/lib/util/component.js +40 -39
- package/dist/node_modules/echarts/lib/util/conditionalExpression.js +73 -73
- package/dist/node_modules/echarts/lib/util/decal.js +54 -52
- package/dist/node_modules/echarts/lib/util/format.js +81 -65
- package/dist/node_modules/echarts/lib/util/graphic.js +22 -22
- package/dist/node_modules/echarts/lib/util/layout.js +29 -29
- package/dist/node_modules/echarts/lib/util/log.js +41 -2
- package/dist/node_modules/echarts/lib/util/model.js +171 -170
- package/dist/node_modules/echarts/lib/util/number.js +97 -90
- package/dist/node_modules/echarts/lib/util/states.js +170 -164
- package/dist/node_modules/echarts/lib/util/styleCompat.js +27 -22
- package/dist/node_modules/echarts/lib/util/symbol.js +3 -3
- package/dist/node_modules/echarts/lib/util/time.js +2 -2
- package/dist/node_modules/echarts/lib/view/Chart.js +22 -21
- package/dist/node_modules/echarts/lib/visual/VisualMapping.js +45 -44
- package/dist/node_modules/echarts/lib/visual/helper.js +20 -17
- package/dist/node_modules/echarts/lib/visual/symbol.js +4 -4
- package/dist/node_modules/echarts/lib/visual/visualSolution.js +64 -64
- package/dist/node_modules/pinyin/lib/esm/pinyin.js +2 -2
- package/dist/node_modules/punycode/punycode.es6.js +17 -17
- package/dist/node_modules/quasar/src/components/btn-toggle/QBtnToggle.js +3 -3
- package/dist/node_modules/quasar/src/components/chip/QChip.js +3 -3
- package/dist/node_modules/quasar/src/components/dialog/QDialog.js +71 -73
- package/dist/node_modules/quasar/src/components/field/QField.js +4 -4
- package/dist/node_modules/quasar/src/components/infinite-scroll/QInfiniteScroll.js +8 -8
- package/dist/node_modules/quasar/src/components/input/QInput.js +28 -26
- package/dist/node_modules/quasar/src/components/menu/QMenu.js +13 -13
- package/dist/node_modules/quasar/src/components/radio/QRadio.js +4 -4
- package/dist/node_modules/quasar/src/components/resize-observer/QResizeObserver.js +14 -14
- package/dist/node_modules/quasar/src/components/scroll-area/QScrollArea.js +1 -1
- package/dist/node_modules/quasar/src/components/scroll-observer/QScrollObserver.js +4 -4
- package/dist/node_modules/quasar/src/components/select/QSelect.js +22 -22
- package/dist/node_modules/quasar/src/components/virtual-scroll/use-virtual-scroll.js +73 -72
- package/dist/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js +10 -10
- package/dist/node_modules/quasar/src/composables/private.use-field/use-field.js +6 -6
- package/dist/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js +6 -6
- package/dist/node_modules/quasar/src/composables/private.use-history/use-history.js +13 -8
- package/dist/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js +16 -16
- package/dist/node_modules/quasar/src/composables/private.use-portal/use-portal.js +28 -28
- package/dist/node_modules/quasar/src/composables/use-form/private.use-form.js +20 -12
- package/dist/node_modules/quasar/src/composables/use-render-cache/use-render-cache.js +8 -8
- package/dist/node_modules/quasar/src/directives/close-popup/ClosePopup.js +6 -5
- package/dist/node_modules/quasar/src/directives/ripple/Ripple.js +17 -16
- package/dist/node_modules/quasar/src/directives/touch-pan/TouchPan.js +23 -22
- package/dist/node_modules/quasar/src/plugins/lang/Lang.js +14 -16
- package/dist/node_modules/quasar/src/plugins/platform/Platform.js +6 -6
- package/dist/node_modules/quasar/src/plugins/private.history/History.js +55 -0
- package/dist/node_modules/quasar/src/utils/date/date.js +70 -69
- package/dist/node_modules/quasar/src/utils/date/private.persian.js +107 -0
- package/dist/node_modules/quasar/src/utils/debounce/debounce.js +8 -8
- package/dist/node_modules/quasar/src/utils/dom/dom.js +50 -13
- package/dist/node_modules/quasar/src/utils/event/event.js +83 -51
- package/dist/node_modules/quasar/src/utils/format/format.js +22 -6
- package/dist/node_modules/quasar/src/utils/is/is.js +17 -1
- package/dist/node_modules/quasar/src/utils/patterns/patterns.js +8 -5
- package/dist/node_modules/quasar/src/utils/private.click-outside/click-outside.js +11 -9
- package/dist/node_modules/quasar/src/utils/private.config/instance-config.js +8 -2
- package/dist/node_modules/quasar/src/utils/private.config/nodes.js +26 -9
- package/dist/node_modules/quasar/src/utils/private.create/create.js +18 -18
- package/dist/node_modules/quasar/src/utils/private.inject-obj-prop/inject-obj-prop.js +10 -4
- package/dist/node_modules/quasar/src/utils/private.keyboard/key-composition.js +11 -6
- package/dist/node_modules/quasar/src/utils/private.noop-ssr-directive-transform/noop-ssr-directive-transform.js +4 -0
- package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +13 -3
- package/dist/node_modules/quasar/src/utils/private.vm/vm.js +23 -11
- package/dist/node_modules/quasar/src/utils/scroll/prevent-scroll.js +4 -4
- package/dist/node_modules/quasar/src/utils/scroll/scroll.js +52 -34
- package/dist/node_modules/tslib/tslib.es6.js +305 -14
- package/dist/node_modules/vue-router/dist/devtools-BLCumUwL.js +659 -0
- package/dist/node_modules/vue-router/dist/vue-router.js +919 -9
- package/dist/node_modules/zrender/lib/Element.js +126 -122
- package/dist/node_modules/zrender/lib/animation/Animator.js +7 -7
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +6 -5
- package/dist/node_modules/zrender/lib/canvas/Layer.js +4 -4
- package/dist/node_modules/zrender/lib/canvas/Painter.js +19 -19
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js +3 -3
- package/dist/node_modules/zrender/lib/canvas/graphic.js +4 -4
- package/dist/node_modules/zrender/lib/config.js +7 -6
- package/dist/node_modules/zrender/lib/contain/path.js +8 -8
- package/dist/node_modules/zrender/lib/contain/text.js +50 -46
- package/dist/node_modules/zrender/lib/core/BoundingRect.js +3 -3
- package/dist/node_modules/zrender/lib/core/PathProxy.js +1 -1
- package/dist/node_modules/zrender/lib/core/bbox.js +4 -4
- package/dist/node_modules/zrender/lib/core/curve.js +1 -1
- package/dist/node_modules/zrender/lib/core/event.js +12 -10
- package/dist/node_modules/zrender/lib/core/platform.js +29 -24
- package/dist/node_modules/zrender/lib/core/util.js +94 -91
- package/dist/node_modules/zrender/lib/core/vector.js +54 -34
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +4 -4
- package/dist/node_modules/zrender/lib/graphic/Group.js +4 -4
- package/dist/node_modules/zrender/lib/graphic/Image.js +4 -4
- package/dist/node_modules/zrender/lib/graphic/Path.js +4 -4
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +3 -3
- package/dist/node_modules/zrender/lib/graphic/Text.js +5 -5
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +92 -87
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +6 -6
- package/dist/node_modules/zrender/lib/svg/Painter.js +43 -43
- package/dist/node_modules/zrender/lib/svg/cssAnimation.js +12 -12
- package/dist/node_modules/zrender/lib/svg/cssEmphasis.js +16 -16
- package/dist/node_modules/zrender/lib/svg/domapi.js +34 -10
- package/dist/node_modules/zrender/lib/svg/graphic.js +67 -67
- package/dist/node_modules/zrender/lib/svg/helper.js +57 -43
- package/dist/node_modules/zrender/lib/svg/mapStyleToAttrs.js +39 -39
- package/dist/node_modules/zrender/lib/svg/patch.js +26 -26
- package/dist/node_modules/zrender/lib/tool/color.js +87 -69
- package/dist/node_modules/zrender/lib/tool/morphPath.js +136 -129
- package/dist/node_modules/zrender/lib/tool/parseSVG.js +12 -12
- package/dist/node_modules/zrender/lib/zrender.js +106 -90
- package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +12 -16
- package/dist/src/api/algorithm/alova/implement/index.js +13 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +4 -7
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +7 -10
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +6 -9
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +7 -10
- package/dist/src/api/algorithm/alova/index.js +14 -21
- package/dist/src/api/algorithm/comprehensiveAlgorithm.js +5 -6
- package/dist/src/api/authorization/alova/createApis.js +1 -7
- package/dist/src/api/authorization/alova/globals.d.ts +331 -250
- package/dist/src/api/authorization/alova/implement/index.js +4 -0
- package/dist/src/api/authorization/alova/index.d.ts +1 -1
- package/dist/src/api/authorization/alova/index.js +7 -6
- package/dist/src/api/check/alova/createApis.js +1 -7
- package/dist/src/api/check/alova/globals.d.ts +1227 -1126
- package/dist/src/api/check/alova/implement/index.js +5 -0
- package/dist/src/api/check/alova/index.d.ts +1 -1
- package/dist/src/api/check/alova/index.js +9 -11
- package/dist/src/api/check/check.js +2 -2
- package/dist/src/api/config/index.d.ts +1 -0
- package/dist/src/api/config/index.js +3 -1
- package/dist/src/api/doctor/alova/createApis.js +1 -7
- package/dist/src/api/doctor/alova/globals.d.ts +510 -419
- package/dist/src/api/doctor/alova/implement/index.js +4 -0
- package/dist/src/api/doctor/alova/index.d.ts +1 -1
- package/dist/src/api/doctor/alova/index.js +4 -4
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +30 -0
- package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
- package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
- package/dist/src/api/manager/alova/createApis.d.ts +10 -0
- package/dist/src/api/manager/alova/createApis.js +49 -0
- package/dist/src/api/manager/alova/globals.d.ts +4890 -0
- package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
- package/dist/src/api/manager/alova/implement/department.js +44 -0
- package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
- package/dist/src/api/manager/alova/implement/division.js +44 -0
- package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
- package/dist/src/api/manager/alova/implement/hospital.js +44 -0
- package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
- package/dist/src/api/manager/alova/implement/index.js +8 -0
- package/dist/src/api/manager/alova/index.d.ts +6 -0
- package/dist/src/api/manager/alova/index.js +19 -0
- package/dist/src/api/manager/department.d.ts +30 -0
- package/dist/src/api/manager/department.js +35 -0
- package/dist/src/api/manager/division.d.ts +30 -0
- package/dist/src/api/manager/division.js +34 -0
- package/dist/src/api/manager/hospital.d.ts +32 -0
- package/dist/src/api/manager/hospital.js +36 -0
- package/dist/src/api/manager/index.d.ts +4 -0
- package/dist/src/api/manager/index.js +17 -0
- package/dist/src/api/metric/alova/implement/index.js +4 -0
- package/dist/src/api/metric/alova/index.js +1 -0
- package/dist/src/api/metric/index.js +5 -4
- package/dist/src/api/oauth/alova/createApis.js +1 -7
- package/dist/src/api/oauth/alova/globals.d.ts +403 -312
- package/dist/src/api/oauth/alova/implement/index.js +4 -0
- package/dist/src/api/oauth/alova/index.d.ts +1 -1
- package/dist/src/api/oauth/alova/index.js +12 -11
- package/dist/src/api/outpatient/alova/createApis.js +1 -7
- package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
- package/dist/src/api/outpatient/alova/implement/index.js +4 -0
- package/dist/src/api/outpatient/alova/index.d.ts +1 -1
- package/dist/src/api/outpatient/alova/index.js +8 -9
- package/dist/src/api/patient/alova/createApis.js +1 -7
- package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
- package/dist/src/api/patient/alova/implement/index.js +16 -0
- package/dist/src/api/patient/alova/implement/meta.js +44 -44
- package/dist/src/api/patient/alova/index.d.ts +1 -1
- package/dist/src/api/patient/alova/index.js +10 -14
- package/dist/src/api/patient/index.js +23 -22
- package/dist/src/api/patient/meta.d.ts +12 -0
- package/dist/src/api/patient/meta.js +100 -98
- package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
- package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
- package/dist/src/api/prescription/alova/createApis.js +1 -7
- package/dist/src/api/prescription/alova/globals.d.ts +959 -812
- package/dist/src/api/prescription/alova/implement/index.js +6 -0
- package/dist/src/api/prescription/alova/index.d.ts +1 -1
- package/dist/src/api/prescription/alova/index.js +4 -4
- package/dist/src/api/scientist/alova/createApis.js +1 -7
- package/dist/src/api/scientist/alova/globals.d.ts +406 -315
- package/dist/src/api/scientist/alova/implement/index.js +4 -0
- package/dist/src/api/scientist/alova/index.d.ts +1 -1
- package/dist/src/api/scientist/alova/index.js +7 -8
- package/dist/src/components/core/TakeImageCollected.vue.js +2 -2
- package/dist/src/components/core/TakeImageCollected.vue2.js +82 -74
- package/dist/src/components/tcm/index.d.ts +1 -0
- package/dist/src/components/tcm/index.js +28 -0
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +1 -1
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +42 -46
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +1 -1
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +19 -23
- package/dist/src/components/tcm/inquirise/symptoms.js +33 -9
- package/dist/src/components/tcm/inspections/AppendixMetaCollected.vue.d.ts +7 -0
- package/dist/src/components/tcm/inspections/AppendixMetaCollected.vue.js +7 -0
- package/dist/src/components/tcm/inspections/AppendixMetaCollected.vue2.js +26 -0
- package/dist/src/components/tcm/inspections/CheckSceneMetaCollected.vue.js +2 -2
- package/dist/src/components/tcm/inspections/CheckSceneMetaCollected.vue2.js +13 -11
- package/dist/src/components/tcm/inspections/FaceMetaCollected.vue.js +2 -2
- package/dist/src/components/tcm/inspections/FaceMetaCollected.vue2.js +14 -16
- package/dist/src/components/tcm/inspections/InspectionDeviceTakeImageCollected.vue.js +1 -1
- package/dist/src/components/tcm/inspections/InspectionDeviceTakeImageCollected.vue2.js +141 -95
- package/dist/src/components/tcm/inspections/SceneMetaCollected.vue.js +4 -4
- package/dist/src/components/tcm/inspections/SceneMetaCollected.vue2.js +19 -19
- package/dist/src/components/tcm/inspections/TongueMetaCollected.vue.d.ts +3 -3
- package/dist/src/components/tcm/inspections/TongueMetaCollected.vue.js +2 -2
- package/dist/src/components/tcm/inspections/TongueMetaCollected.vue2.js +30 -13
- package/dist/src/components/tcm/inspections/index.d.ts +1 -0
- package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
- package/dist/src/components/tcm/lisems/EPPCollected.vue2.js +3 -2
- package/dist/src/components/tcm/lisems/EcgAndPcgCollect.vue.d.ts +1 -1
- package/dist/src/components/tcm/lisems/EcgAndPcgCollect.vue.js +5 -833
- package/dist/src/components/tcm/lisems/EcgAndPcgCollect.vue2.js +816 -2
- package/dist/src/components/tcm/palpations/OnePulsationCollect.vue.d.ts +1 -1
- package/dist/src/components/tcm/palpations/OnePulsationCollect.vue.js +5 -148
- package/dist/src/components/tcm/palpations/OnePulsationCollect.vue2.js +147 -2
- package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
- package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +30 -32
- package/dist/src/index.js +65 -58
- package/dist/src/proto/index.js +10 -0
- package/dist/src/proto/types/Images_pb.js +7 -6
- package/dist/src/proto/types/WaveMap_pb.js +4 -3
- package/dist/src/util/helper.js +38 -2
- package/dist/src/util/number.js +64 -25
- package/dist/src/util/string.js +51 -5
- package/dist/web-core-tcm.css +1 -1
- package/package.json +5 -3
- package/dist/node_modules/vue-router/dist/devtools-EWN81iOl.js +0 -19
|
@@ -1,88 +1,92 @@
|
|
|
1
|
-
import { findExistImage as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { findExistImage as P, isImageReady as j } from "./image.js";
|
|
2
|
+
import { extend as S, retrieve2 as H, retrieve3 as y, reduce as k } from "../../core/util.js";
|
|
3
|
+
import { getWidth as x, getLineHeight as N, parsePercent as rr } from "../../contain/text.js";
|
|
4
4
|
var D = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
|
|
5
|
-
function
|
|
5
|
+
function cr(i, r, a, t, u) {
|
|
6
|
+
var n = {};
|
|
7
|
+
return Q(n, i, r, a, t, u), n.text;
|
|
8
|
+
}
|
|
9
|
+
function Q(i, r, a, t, u, n) {
|
|
6
10
|
if (!a) {
|
|
7
11
|
i.text = "", i.isTruncated = !1;
|
|
8
12
|
return;
|
|
9
13
|
}
|
|
10
|
-
var
|
|
14
|
+
var h = (r + "").split(`
|
|
11
15
|
`);
|
|
12
|
-
|
|
13
|
-
for (var e = !1,
|
|
14
|
-
|
|
15
|
-
i.text =
|
|
16
|
+
n = U(a, t, u, n);
|
|
17
|
+
for (var e = !1, l = {}, f = 0, c = h.length; f < c; f++)
|
|
18
|
+
V(l, h[f], n), h[f] = l.textLine, e = e || l.isTruncated;
|
|
19
|
+
i.text = h.join(`
|
|
16
20
|
`), i.isTruncated = e;
|
|
17
21
|
}
|
|
18
|
-
function
|
|
22
|
+
function U(i, r, a, t) {
|
|
19
23
|
t = t || {};
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (var e = i = Math.max(0, i - 1),
|
|
27
|
-
e -=
|
|
28
|
-
var f =
|
|
29
|
-
return f > e && (a = "", f = 0), e = i - f,
|
|
24
|
+
var u = S({}, t);
|
|
25
|
+
u.font = r, a = H(a, "..."), u.maxIterations = H(t.maxIterations, 2);
|
|
26
|
+
var n = u.minChar = H(t.minChar, 0);
|
|
27
|
+
u.cnCharWidth = x("国", r);
|
|
28
|
+
var h = u.ascCharWidth = x("a", r);
|
|
29
|
+
u.placeholder = H(t.placeholder, "");
|
|
30
|
+
for (var e = i = Math.max(0, i - 1), l = 0; l < n && e >= h; l++)
|
|
31
|
+
e -= h;
|
|
32
|
+
var f = x(a, r);
|
|
33
|
+
return f > e && (a = "", f = 0), e = i - f, u.ellipsis = a, u.ellipsisWidth = f, u.contentWidth = e, u.containerWidth = i, u;
|
|
30
34
|
}
|
|
31
|
-
function
|
|
32
|
-
var t = a.containerWidth,
|
|
35
|
+
function V(i, r, a) {
|
|
36
|
+
var t = a.containerWidth, u = a.font, n = a.contentWidth;
|
|
33
37
|
if (!t) {
|
|
34
38
|
i.textLine = "", i.isTruncated = !1;
|
|
35
39
|
return;
|
|
36
40
|
}
|
|
37
|
-
var
|
|
38
|
-
if (
|
|
41
|
+
var h = x(r, u);
|
|
42
|
+
if (h <= t) {
|
|
39
43
|
i.textLine = r, i.isTruncated = !1;
|
|
40
44
|
return;
|
|
41
45
|
}
|
|
42
46
|
for (var e = 0; ; e++) {
|
|
43
|
-
if (
|
|
47
|
+
if (h <= n || e >= a.maxIterations) {
|
|
44
48
|
r += a.ellipsis;
|
|
45
49
|
break;
|
|
46
50
|
}
|
|
47
|
-
var
|
|
48
|
-
r = r.substr(0,
|
|
51
|
+
var l = e === 0 ? ar(r, n, a.ascCharWidth, a.cnCharWidth) : h > 0 ? Math.floor(r.length * n / h) : 0;
|
|
52
|
+
r = r.substr(0, l), h = x(r, u);
|
|
49
53
|
}
|
|
50
54
|
r === "" && (r = a.placeholder), i.textLine = r, i.isTruncated = !0;
|
|
51
55
|
}
|
|
52
56
|
function ar(i, r, a, t) {
|
|
53
|
-
for (var
|
|
54
|
-
var e = i.charCodeAt(
|
|
55
|
-
|
|
57
|
+
for (var u = 0, n = 0, h = i.length; n < h && u < r; n++) {
|
|
58
|
+
var e = i.charCodeAt(n);
|
|
59
|
+
u += 0 <= e && e <= 127 ? a : t;
|
|
56
60
|
}
|
|
57
|
-
return
|
|
61
|
+
return n;
|
|
58
62
|
}
|
|
59
|
-
function
|
|
63
|
+
function fr(i, r) {
|
|
60
64
|
i != null && (i += "");
|
|
61
|
-
var a = r.overflow, t = r.padding,
|
|
62
|
-
g != null && (a === "break" || a === "breakAll") ? s = i ?
|
|
65
|
+
var a = r.overflow, t = r.padding, u = r.font, n = a === "truncate", h = N(u), e = H(r.lineHeight, h), l = !!r.backgroundColor, f = r.lineOverflow === "truncate", c = !1, g = r.width, s;
|
|
66
|
+
g != null && (a === "break" || a === "breakAll") ? s = i ? X(i, r.font, g, a === "breakAll", 0).lines : [] : s = i ? i.split(`
|
|
63
67
|
`) : [];
|
|
64
|
-
var w = s.length * e, m =
|
|
68
|
+
var w = s.length * e, m = H(r.height, w);
|
|
65
69
|
if (w > m && f) {
|
|
66
70
|
var b = Math.floor(m / e);
|
|
67
71
|
c = c || s.length > b, s = s.slice(0, b);
|
|
68
72
|
}
|
|
69
|
-
if (i &&
|
|
70
|
-
for (var W =
|
|
73
|
+
if (i && n && g != null)
|
|
74
|
+
for (var W = U(g, u, r.ellipsis, {
|
|
71
75
|
minChar: r.truncateMinChar,
|
|
72
76
|
placeholder: r.placeholder
|
|
73
|
-
}),
|
|
74
|
-
|
|
77
|
+
}), o = {}, d = 0; d < s.length; d++)
|
|
78
|
+
V(o, s[d], W), s[d] = o.textLine, c = c || o.isTruncated;
|
|
75
79
|
for (var p = m, T = 0, d = 0; d < s.length; d++)
|
|
76
|
-
T = Math.max(
|
|
80
|
+
T = Math.max(x(s[d], u), T);
|
|
77
81
|
g == null && (g = T);
|
|
78
82
|
var A = T;
|
|
79
|
-
return t && (p += t[0] + t[2], A += t[1] + t[3], g += t[1] + t[3]),
|
|
83
|
+
return t && (p += t[0] + t[2], A += t[1] + t[3], g += t[1] + t[3]), l && (A = g), {
|
|
80
84
|
lines: s,
|
|
81
85
|
height: m,
|
|
82
86
|
outerWidth: A,
|
|
83
87
|
outerHeight: p,
|
|
84
88
|
lineHeight: e,
|
|
85
|
-
calculatedLineHeight:
|
|
89
|
+
calculatedLineHeight: h,
|
|
86
90
|
contentWidth: T,
|
|
87
91
|
contentHeight: w,
|
|
88
92
|
width: g,
|
|
@@ -104,71 +108,71 @@ var ir = /* @__PURE__ */ (function() {
|
|
|
104
108
|
}
|
|
105
109
|
return i;
|
|
106
110
|
})();
|
|
107
|
-
function
|
|
111
|
+
function sr(i, r) {
|
|
108
112
|
var a = new er();
|
|
109
113
|
if (i != null && (i += ""), !i)
|
|
110
114
|
return a;
|
|
111
|
-
for (var t = r.width,
|
|
112
|
-
var f =
|
|
113
|
-
f > e && G(a, i.substring(e, f), r,
|
|
115
|
+
for (var t = r.width, u = r.height, n = r.overflow, h = (n === "break" || n === "breakAll") && t != null ? { width: t, accumWidth: 0, breakAll: n === "breakAll" } : null, e = D.lastIndex = 0, l; (l = D.exec(i)) != null; ) {
|
|
116
|
+
var f = l.index;
|
|
117
|
+
f > e && G(a, i.substring(e, f), r, h), G(a, l[2], r, h, l[1]), e = D.lastIndex;
|
|
114
118
|
}
|
|
115
|
-
e < i.length && G(a, i.substring(e, i.length), r,
|
|
116
|
-
var c = [], g = 0, s = 0, w = r.padding, m =
|
|
117
|
-
function
|
|
119
|
+
e < i.length && G(a, i.substring(e, i.length), r, h);
|
|
120
|
+
var c = [], g = 0, s = 0, w = r.padding, m = n === "truncate", b = r.lineOverflow === "truncate", W = {};
|
|
121
|
+
function o(_, q, J) {
|
|
118
122
|
_.width = q, _.lineHeight = J, g += J, s = Math.max(s, q);
|
|
119
123
|
}
|
|
120
124
|
r: for (var d = 0; d < a.lines.length; d++) {
|
|
121
125
|
for (var p = a.lines[d], T = 0, A = 0, F = 0; F < p.tokens.length; F++) {
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
var O =
|
|
125
|
-
if (
|
|
126
|
-
var
|
|
127
|
-
F > 0 ? (p.tokens = p.tokens.slice(0, F),
|
|
126
|
+
var v = p.tokens[F], C = v.styleName && r.rich[v.styleName] || {}, L = v.textPadding = C.padding, z = L ? L[1] + L[3] : 0, E = v.font = C.font || r.font;
|
|
127
|
+
v.contentHeight = N(E);
|
|
128
|
+
var O = H(C.height, v.contentHeight);
|
|
129
|
+
if (v.innerHeight = O, L && (O += L[0] + L[2]), v.height = O, v.lineHeight = y(C.lineHeight, r.lineHeight, O), v.align = C && C.align || r.align, v.verticalAlign = C && C.verticalAlign || "middle", b && u != null && g + v.lineHeight > u) {
|
|
130
|
+
var $ = a.lines.length;
|
|
131
|
+
F > 0 ? (p.tokens = p.tokens.slice(0, F), o(p, A, T), a.lines = a.lines.slice(0, d + 1)) : a.lines = a.lines.slice(0, d), a.isTruncated = a.isTruncated || a.lines.length < $;
|
|
128
132
|
break r;
|
|
129
133
|
}
|
|
130
|
-
var M =
|
|
134
|
+
var M = C.width, Y = M == null || M === "auto";
|
|
131
135
|
if (typeof M == "string" && M.charAt(M.length - 1) === "%")
|
|
132
|
-
|
|
136
|
+
v.percentWidth = M, c.push(v), v.contentWidth = x(v.text, E);
|
|
133
137
|
else {
|
|
134
138
|
if (Y) {
|
|
135
|
-
var Z =
|
|
136
|
-
R && (R =
|
|
139
|
+
var Z = C.backgroundColor, R = Z && Z.image;
|
|
140
|
+
R && (R = P(R), j(R) && (v.width = Math.max(v.width, R.width * O / R.height)));
|
|
137
141
|
}
|
|
138
142
|
var B = m && t != null ? t - A : null;
|
|
139
|
-
B != null && B <
|
|
143
|
+
B != null && B < v.width ? !Y || B < z ? (v.text = "", v.width = v.contentWidth = 0) : (Q(W, v.text, B - z, E, r.ellipsis, { minChar: r.truncateMinChar }), v.text = W.text, a.isTruncated = a.isTruncated || W.isTruncated, v.width = v.contentWidth = x(v.text, E)) : v.contentWidth = x(v.text, E);
|
|
140
144
|
}
|
|
141
|
-
|
|
145
|
+
v.width += z, A += v.width, C && (T = Math.max(T, v.lineHeight));
|
|
142
146
|
}
|
|
143
|
-
|
|
147
|
+
o(p, A, T);
|
|
144
148
|
}
|
|
145
|
-
a.outerWidth = a.width =
|
|
149
|
+
a.outerWidth = a.width = H(t, s), a.outerHeight = a.height = H(u, g), a.contentHeight = g, a.contentWidth = s, w && (a.outerWidth += w[1] + w[3], a.outerHeight += w[0] + w[2]);
|
|
146
150
|
for (var d = 0; d < c.length; d++) {
|
|
147
|
-
var
|
|
148
|
-
|
|
151
|
+
var v = c[d], I = v.percentWidth;
|
|
152
|
+
v.width = parseInt(I, 10) / 100 * a.width;
|
|
149
153
|
}
|
|
150
154
|
return a;
|
|
151
155
|
}
|
|
152
|
-
function G(i, r, a, t,
|
|
153
|
-
var
|
|
156
|
+
function G(i, r, a, t, u) {
|
|
157
|
+
var n = r === "", h = u && a.rich[u] || {}, e = i.lines, l = h.font || a.font, f = !1, c, g;
|
|
154
158
|
if (t) {
|
|
155
|
-
var s =
|
|
156
|
-
if (
|
|
157
|
-
var m =
|
|
159
|
+
var s = h.padding, w = s ? s[1] + s[3] : 0;
|
|
160
|
+
if (h.width != null && h.width !== "auto") {
|
|
161
|
+
var m = rr(h.width, t.width) + w;
|
|
158
162
|
e.length > 0 && m + t.accumWidth > t.width && (c = r.split(`
|
|
159
163
|
`), f = !0), t.accumWidth = m;
|
|
160
164
|
} else {
|
|
161
|
-
var b =
|
|
165
|
+
var b = X(r, l, t.width, t.breakAll, t.accumWidth);
|
|
162
166
|
t.accumWidth = b.accumWidth + w, g = b.linesWidths, c = b.lines;
|
|
163
167
|
}
|
|
164
168
|
} else
|
|
165
169
|
c = r.split(`
|
|
166
170
|
`);
|
|
167
171
|
for (var W = 0; W < c.length; W++) {
|
|
168
|
-
var
|
|
169
|
-
if (d.styleName =
|
|
172
|
+
var o = c[W], d = new ir();
|
|
173
|
+
if (d.styleName = u, d.text = o, d.isLineHolder = !o && !n, typeof h.width == "number" ? d.width = h.width : d.width = g ? g[W] : x(o, l), !W && !f) {
|
|
170
174
|
var p = (e[e.length - 1] || (e[0] = new K())).tokens, T = p.length;
|
|
171
|
-
T === 1 && p[0].isLineHolder ? p[0] = d : (
|
|
175
|
+
T === 1 && p[0].isLineHolder ? p[0] = d : (o || !T || n) && p.push(d);
|
|
172
176
|
} else
|
|
173
177
|
e.push(new K([d]));
|
|
174
178
|
}
|
|
@@ -177,35 +181,36 @@ function tr(i) {
|
|
|
177
181
|
var r = i.charCodeAt(0);
|
|
178
182
|
return r >= 32 && r <= 591 || r >= 880 && r <= 4351 || r >= 4608 && r <= 5119 || r >= 7680 && r <= 8303;
|
|
179
183
|
}
|
|
180
|
-
var nr =
|
|
184
|
+
var nr = k(",&?/;] ".split(""), function(i, r) {
|
|
181
185
|
return i[r] = !0, i;
|
|
182
186
|
}, {});
|
|
183
187
|
function hr(i) {
|
|
184
188
|
return tr(i) ? !!nr[i] : !0;
|
|
185
189
|
}
|
|
186
|
-
function
|
|
187
|
-
for (var
|
|
190
|
+
function X(i, r, a, t, u) {
|
|
191
|
+
for (var n = [], h = [], e = "", l = "", f = 0, c = 0, g = 0; g < i.length; g++) {
|
|
188
192
|
var s = i.charAt(g);
|
|
189
193
|
if (s === `
|
|
190
194
|
`) {
|
|
191
|
-
|
|
195
|
+
l && (e += l, c += f), n.push(e), h.push(c), e = "", l = "", f = 0, c = 0;
|
|
192
196
|
continue;
|
|
193
197
|
}
|
|
194
|
-
var w =
|
|
195
|
-
if (
|
|
196
|
-
c ? (e ||
|
|
198
|
+
var w = x(s, r), m = t ? !1 : !hr(s);
|
|
199
|
+
if (n.length ? c + w > a : u + c + w > a) {
|
|
200
|
+
c ? (e || l) && (m ? (e || (e = l, l = "", f = 0, c = f), n.push(e), h.push(c - f), l += s, f += w, e = "", c = f) : (l && (e += l, l = "", f = 0), n.push(e), h.push(c), e = s, c = w)) : m ? (n.push(l), h.push(f), l = s, f = w) : (n.push(s), h.push(w));
|
|
197
201
|
continue;
|
|
198
202
|
}
|
|
199
|
-
c += w, m ? (
|
|
203
|
+
c += w, m ? (l += s, f += w) : (l && (e += l, l = "", f = 0), e += s);
|
|
200
204
|
}
|
|
201
|
-
return !
|
|
205
|
+
return !n.length && !e && (e = i, l = "", f = 0), l && (e += l), e && (n.push(e), h.push(c)), n.length === 1 && (c += u), {
|
|
202
206
|
accumWidth: c,
|
|
203
|
-
lines:
|
|
204
|
-
linesWidths:
|
|
207
|
+
lines: n,
|
|
208
|
+
linesWidths: h
|
|
205
209
|
};
|
|
206
210
|
}
|
|
207
211
|
export {
|
|
208
212
|
er as RichTextContentBlock,
|
|
209
|
-
|
|
210
|
-
|
|
213
|
+
fr as parsePlainText,
|
|
214
|
+
sr as parseRichText,
|
|
215
|
+
cr as truncateText
|
|
211
216
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends as S } from "../../../../tslib/tslib.es6.js";
|
|
2
2
|
import q from "../Path.js";
|
|
3
3
|
import { normalize as B } from "../../core/vector.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cubicDerivativeAt as a, cubicAt as d, quadraticDerivativeAt as m, quadraticAt as b, quadraticSubdivide as z, cubicSubdivide as A } from "../../core/curve.js";
|
|
5
5
|
var e = [], D = /* @__PURE__ */ (function() {
|
|
6
6
|
function r() {
|
|
7
7
|
this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.percent = 1;
|
|
@@ -11,11 +11,11 @@ var e = [], D = /* @__PURE__ */ (function() {
|
|
|
11
11
|
function C(r, u, t) {
|
|
12
12
|
var i = r.cpx2, f = r.cpy2;
|
|
13
13
|
return i != null || f != null ? [
|
|
14
|
-
(t ?
|
|
15
|
-
(t ?
|
|
14
|
+
(t ? a : d)(r.x1, r.cpx1, r.cpx2, r.x2, u),
|
|
15
|
+
(t ? a : d)(r.y1, r.cpy1, r.cpy2, r.y2, u)
|
|
16
16
|
] : [
|
|
17
|
-
(t ?
|
|
18
|
-
(t ?
|
|
17
|
+
(t ? m : b)(r.x1, r.cpx1, r.x2, u),
|
|
18
|
+
(t ? m : b)(r.y1, r.cpy1, r.y2, u)
|
|
19
19
|
];
|
|
20
20
|
}
|
|
21
21
|
var P = (function(r) {
|
|
@@ -32,7 +32,7 @@ var P = (function(r) {
|
|
|
32
32
|
return new D();
|
|
33
33
|
}, u.prototype.buildPath = function(t, i) {
|
|
34
34
|
var f = i.x1, x = i.y1, o = i.x2, n = i.y2, v = i.cpx1, y = i.cpy1, p = i.cpx2, l = i.cpy2, c = i.percent;
|
|
35
|
-
c !== 0 && (t.moveTo(f, x), p == null || l == null ? (c < 1 && (
|
|
35
|
+
c !== 0 && (t.moveTo(f, x), p == null || l == null ? (c < 1 && (z(f, v, o, c, e), v = e[1], o = e[2], z(x, y, n, c, e), y = e[1], n = e[2]), t.quadraticCurveTo(v, y, o, n)) : (c < 1 && (A(f, v, p, o, c, e), v = e[1], p = e[2], o = e[3], A(x, y, l, n, c, e), y = e[1], l = e[2], n = e[3]), t.bezierCurveTo(v, y, p, l, o, n)));
|
|
36
36
|
}, u.prototype.pointAt = function(t) {
|
|
37
37
|
return C(this.shape, t, !1);
|
|
38
38
|
}, u.prototype.tangentAt = function(t) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { brush as T, setClipPath as B, setGradient as D, setPattern as R } from "./graphic.js";
|
|
2
|
-
import {
|
|
3
|
-
import { isPattern as
|
|
4
|
-
import { map as M, keys as k, retrieve2 as g,
|
|
5
|
-
import
|
|
6
|
-
import { getSize as
|
|
7
|
-
var W = 0,
|
|
8
|
-
function o(t, e,
|
|
9
|
-
if (this.type = "svg", this.refreshHover =
|
|
2
|
+
import { createSVGVNode as x, createElement as U, createBrushScope as S, createVNode as l, getCssString as A, vNodeToString as z } from "./core.js";
|
|
3
|
+
import { isPattern as b, encodeBase64 as C, isGradient as H, normalizeColor as P } from "./helper.js";
|
|
4
|
+
import { extend as I, map as M, keys as k, retrieve2 as g, noop as E } from "../core/util.js";
|
|
5
|
+
import O, { updateAttrs as F } from "./patch.js";
|
|
6
|
+
import { getSize as G } from "../canvas/helper.js";
|
|
7
|
+
var W = 0, $ = (function() {
|
|
8
|
+
function o(t, e, i) {
|
|
9
|
+
if (this.type = "svg", this.refreshHover = L("refreshHover"), this.configLayer = L("configLayer"), this.storage = e, this._opts = i = I({}, i), this.root = t, this._id = "zr" + W++, this._oldVNode = x(i.width, i.height), t && !i.ssr) {
|
|
10
10
|
var s = this._viewport = document.createElement("div");
|
|
11
11
|
s.style.cssText = "position:relative;overflow:hidden";
|
|
12
|
-
var
|
|
13
|
-
F(null, this._oldVNode), s.appendChild(
|
|
12
|
+
var r = this._svgDom = this._oldVNode.elm = U("svg");
|
|
13
|
+
F(null, this._oldVNode), s.appendChild(r), t.appendChild(s);
|
|
14
14
|
}
|
|
15
|
-
this.resize(
|
|
15
|
+
this.resize(i.width, i.height);
|
|
16
16
|
}
|
|
17
17
|
return o.prototype.getType = function() {
|
|
18
18
|
return this.type;
|
|
@@ -32,31 +32,31 @@ var W = 0, Z = (function() {
|
|
|
32
32
|
var t = this.renderToVNode({
|
|
33
33
|
willUpdate: !0
|
|
34
34
|
});
|
|
35
|
-
t.attrs.style = "position:absolute;left:0;top:0;user-select:none",
|
|
35
|
+
t.attrs.style = "position:absolute;left:0;top:0;user-select:none", O(this._oldVNode, t), this._oldVNode = t;
|
|
36
36
|
}
|
|
37
37
|
}, o.prototype.renderOneToVNode = function(t) {
|
|
38
|
-
return T(t,
|
|
38
|
+
return T(t, S(this._id));
|
|
39
39
|
}, o.prototype.renderToVNode = function(t) {
|
|
40
40
|
t = t || {};
|
|
41
|
-
var e = this.storage.getDisplayList(!0),
|
|
42
|
-
|
|
43
|
-
var a = [], n = this._bgVNode = j(
|
|
41
|
+
var e = this.storage.getDisplayList(!0), i = this._width, s = this._height, r = S(this._id);
|
|
42
|
+
r.animation = t.animation, r.willUpdate = t.willUpdate, r.compress = t.compress, r.emphasis = t.emphasis, r.ssr = this._opts.ssr;
|
|
43
|
+
var a = [], n = this._bgVNode = j(i, s, this._backgroundColor, r);
|
|
44
44
|
n && a.push(n);
|
|
45
45
|
var h = t.compress ? null : this._mainVNode = l("g", "main", {}, []);
|
|
46
|
-
this._paintList(e,
|
|
47
|
-
var v = M(k(
|
|
48
|
-
return
|
|
46
|
+
this._paintList(e, r, h ? h.children : a), h && a.push(h);
|
|
47
|
+
var v = M(k(r.defs), function(f) {
|
|
48
|
+
return r.defs[f];
|
|
49
49
|
});
|
|
50
50
|
if (v.length && a.push(l("defs", "defs", {}, v)), t.animation) {
|
|
51
|
-
var d =
|
|
51
|
+
var d = A(r.cssNodes, r.cssAnims, { newline: !0 });
|
|
52
52
|
if (d) {
|
|
53
53
|
var u = l("style", "stl", {}, [], d);
|
|
54
54
|
a.push(u);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return x(i, s, a, t.useViewBox);
|
|
58
58
|
}, o.prototype.renderToString = function(t) {
|
|
59
|
-
return t = t || {},
|
|
59
|
+
return t = t || {}, z(this.renderToVNode({
|
|
60
60
|
animation: g(t.cssAnimation, !0),
|
|
61
61
|
emphasis: g(t.cssEmphasis, !0),
|
|
62
62
|
willUpdate: !1,
|
|
@@ -67,34 +67,34 @@ var W = 0, Z = (function() {
|
|
|
67
67
|
this._backgroundColor = t;
|
|
68
68
|
}, o.prototype.getSvgRoot = function() {
|
|
69
69
|
return this._mainVNode && this._mainVNode.elm;
|
|
70
|
-
}, o.prototype._paintList = function(t, e,
|
|
71
|
-
for (var s = t.length,
|
|
70
|
+
}, o.prototype._paintList = function(t, e, i) {
|
|
71
|
+
for (var s = t.length, r = [], a = 0, n, h, v = 0, d = 0; d < s; d++) {
|
|
72
72
|
var u = t[d];
|
|
73
73
|
if (!u.invisible) {
|
|
74
74
|
var f = u.__clipPaths, _ = f && f.length || 0, V = h && h.length || 0, p = void 0;
|
|
75
75
|
for (p = Math.max(_ - 1, V - 1); p >= 0 && !(f && h && f[p] === h[p]); p--)
|
|
76
76
|
;
|
|
77
77
|
for (var y = V - 1; y > p; y--)
|
|
78
|
-
a--, n =
|
|
78
|
+
a--, n = r[a - 1];
|
|
79
79
|
for (var c = p + 1; c < _; c++) {
|
|
80
80
|
var N = {};
|
|
81
81
|
B(f[c], N, e);
|
|
82
82
|
var m = l("g", "clip-g-" + v++, N, []);
|
|
83
|
-
(n ? n.children :
|
|
83
|
+
(n ? n.children : i).push(m), r[a++] = m, n = m;
|
|
84
84
|
}
|
|
85
85
|
h = f;
|
|
86
86
|
var w = T(u, e);
|
|
87
|
-
w && (n ? n.children :
|
|
87
|
+
w && (n ? n.children : i).push(w);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}, o.prototype.resize = function(t, e) {
|
|
91
|
-
var
|
|
92
|
-
if (t != null && (
|
|
93
|
-
if (this._width = t, this._height = e,
|
|
94
|
-
var a =
|
|
91
|
+
var i = this._opts, s = this.root, r = this._viewport;
|
|
92
|
+
if (t != null && (i.width = t), e != null && (i.height = e), s && r && (r.style.display = "none", t = G(s, 0, i), e = G(s, 1, i), r.style.display = ""), this._width !== t || this._height !== e) {
|
|
93
|
+
if (this._width = t, this._height = e, r) {
|
|
94
|
+
var a = r.style;
|
|
95
95
|
a.width = t + "px", a.height = e + "px";
|
|
96
96
|
}
|
|
97
|
-
if (
|
|
97
|
+
if (b(this._backgroundColor))
|
|
98
98
|
this.refresh();
|
|
99
99
|
else {
|
|
100
100
|
var n = this._svgDom;
|
|
@@ -112,15 +112,15 @@ var W = 0, Z = (function() {
|
|
|
112
112
|
}, o.prototype.clear = function() {
|
|
113
113
|
this._svgDom && (this._svgDom.innerHTML = null), this._oldVNode = null;
|
|
114
114
|
}, o.prototype.toDataURL = function(t) {
|
|
115
|
-
var e = this.renderToString(),
|
|
116
|
-
return t ? (e = C(e), e &&
|
|
115
|
+
var e = this.renderToString(), i = "data:image/svg+xml;";
|
|
116
|
+
return t ? (e = C(e), e && i + "base64," + e) : i + "charset=UTF-8," + encodeURIComponent(e);
|
|
117
117
|
}, o;
|
|
118
118
|
})();
|
|
119
|
-
function
|
|
119
|
+
function L(o) {
|
|
120
120
|
return function() {
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function j(o, t, e,
|
|
123
|
+
function j(o, t, e, i) {
|
|
124
124
|
var s;
|
|
125
125
|
if (e && e !== "none")
|
|
126
126
|
if (s = l("rect", "bg", {
|
|
@@ -128,24 +128,24 @@ function j(o, t, e, r) {
|
|
|
128
128
|
height: t,
|
|
129
129
|
x: "0",
|
|
130
130
|
y: "0"
|
|
131
|
-
}),
|
|
132
|
-
D({ fill: e }, s.attrs, "fill",
|
|
133
|
-
else if (
|
|
131
|
+
}), H(e))
|
|
132
|
+
D({ fill: e }, s.attrs, "fill", i);
|
|
133
|
+
else if (b(e))
|
|
134
134
|
R({
|
|
135
135
|
style: {
|
|
136
136
|
fill: e
|
|
137
137
|
},
|
|
138
|
-
dirty:
|
|
138
|
+
dirty: E,
|
|
139
139
|
getBoundingRect: function() {
|
|
140
140
|
return { width: o, height: t };
|
|
141
141
|
}
|
|
142
|
-
}, s.attrs, "fill",
|
|
142
|
+
}, s.attrs, "fill", i);
|
|
143
143
|
else {
|
|
144
|
-
var
|
|
144
|
+
var r = P(e), a = r.color, n = r.opacity;
|
|
145
145
|
s.attrs.fill = a, n < 1 && (s.attrs["fill-opacity"] = n);
|
|
146
146
|
}
|
|
147
147
|
return s;
|
|
148
148
|
}
|
|
149
149
|
export {
|
|
150
|
-
|
|
150
|
+
$ as default
|
|
151
151
|
};
|
|
@@ -2,8 +2,8 @@ import { copyTransform as mr } from "../core/Transformable.js";
|
|
|
2
2
|
import { createBrushScope as lr } from "./core.js";
|
|
3
3
|
import cr from "./SVGPathRebuilder.js";
|
|
4
4
|
import hr from "../core/PathProxy.js";
|
|
5
|
-
import {
|
|
6
|
-
import { each as pr, keys as
|
|
5
|
+
import { getPathPrecision as dr, getSRTTransformString as gr } from "./helper.js";
|
|
6
|
+
import { extend as V, each as pr, keys as X, isString as tr, isNumber as Ir, filter as Or } from "../core/util.js";
|
|
7
7
|
import Sr from "../graphic/CompoundPath.js";
|
|
8
8
|
import { createCubicEasingFunc as Ar } from "../animation/cubicEasing.js";
|
|
9
9
|
import { getClassId as br } from "./cssClassId.js";
|
|
@@ -31,10 +31,10 @@ var ar = {
|
|
|
31
31
|
circularInOut: "0.85,0,0.15,1"
|
|
32
32
|
}, g = "transform-origin";
|
|
33
33
|
function Tr(r, t, n) {
|
|
34
|
-
var u =
|
|
35
|
-
|
|
34
|
+
var u = V({}, r.shape);
|
|
35
|
+
V(u, t), r.buildPath(n, u);
|
|
36
36
|
var e = new cr();
|
|
37
|
-
return e.reset(
|
|
37
|
+
return e.reset(dr(r)), n.rebuildPath(e, 1), e.generateStr(), e.getStr();
|
|
38
38
|
}
|
|
39
39
|
function xr(r, t) {
|
|
40
40
|
var n = t.originX, u = t.originY;
|
|
@@ -55,7 +55,7 @@ function qr(r, t, n) {
|
|
|
55
55
|
if (pr(u, function(h) {
|
|
56
56
|
var s = lr(n.zrId);
|
|
57
57
|
s.animation = !0, Cr(h, {}, s, !0);
|
|
58
|
-
var f = s.cssAnims, m = s.cssNodes, S =
|
|
58
|
+
var f = s.cssAnims, m = s.cssNodes, S = X(f), A = S.length;
|
|
59
59
|
if (A) {
|
|
60
60
|
v = S[A - 1];
|
|
61
61
|
var d = f[v];
|
|
@@ -103,7 +103,7 @@ function Cr(r, t, n, u) {
|
|
|
103
103
|
if (Z && (Y = Z(Y)), Y)
|
|
104
104
|
for (var R = 0; R < $.length; R++) {
|
|
105
105
|
var _ = $[R], j = Math.round(_.time / fr * 100) + "%", rr = nr(_.easing), ir = _.rawValue;
|
|
106
|
-
(tr(ir) ||
|
|
106
|
+
(tr(ir) || Ir(ir)) && (z[j] = z[j] || {}, z[j][Y] = _.rawValue, rr && (z[j][T] = rr));
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -114,8 +114,8 @@ function Cr(r, t, n, u) {
|
|
|
114
114
|
}
|
|
115
115
|
for (var a in q) {
|
|
116
116
|
var y = {};
|
|
117
|
-
mr(y, r),
|
|
118
|
-
var k =
|
|
117
|
+
mr(y, r), V(y, q[a]);
|
|
118
|
+
var k = gr(y), x = q[a][T];
|
|
119
119
|
i[a] = k ? {
|
|
120
120
|
transform: k
|
|
121
121
|
} : {}, xr(i[a], y), x && (i[a][T] = x);
|
|
@@ -144,7 +144,7 @@ function Cr(r, t, n, u) {
|
|
|
144
144
|
return Pr[E];
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
for (var M =
|
|
147
|
+
for (var M = X(i), Q = !0, G, o = 1; o < M.length; o++) {
|
|
148
148
|
var U = M[o - 1], vr = M[o];
|
|
149
149
|
if (i[U][g] !== i[vr][g]) {
|
|
150
150
|
Q = !1;
|
|
@@ -157,8 +157,8 @@ function Cr(r, t, n, u) {
|
|
|
157
157
|
i[a][g] && delete i[a][g];
|
|
158
158
|
t[g] = G;
|
|
159
159
|
}
|
|
160
|
-
if (
|
|
161
|
-
return
|
|
160
|
+
if (Or(M, function(w) {
|
|
161
|
+
return X(i[w]).length > 0;
|
|
162
162
|
}).length) {
|
|
163
163
|
var sr = er(i, n);
|
|
164
164
|
return sr + " " + b[0] + " both";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { liftColor as
|
|
2
|
-
import { getClassId as
|
|
3
|
-
function N(s,
|
|
1
|
+
import { liftColor as y } from "../tool/color.js";
|
|
2
|
+
import { getClassId as C } from "./cssClassId.js";
|
|
3
|
+
function N(s, f, a) {
|
|
4
4
|
if (!s.ignore)
|
|
5
5
|
if (s.isSilent()) {
|
|
6
|
-
var
|
|
6
|
+
var r = {
|
|
7
7
|
"pointer-events": "none"
|
|
8
8
|
};
|
|
9
|
-
v(
|
|
9
|
+
v(r, f, a, !0);
|
|
10
10
|
} else {
|
|
11
|
-
var
|
|
11
|
+
var e = s.states.emphasis && s.states.emphasis.style ? s.states.emphasis.style : {}, t = e.fill;
|
|
12
12
|
if (!t) {
|
|
13
13
|
var i = s.style && s.style.fill, n = s.states.select && s.states.select.style && s.states.select.style.fill, c = s.currentStates.indexOf("select") >= 0 && n || i;
|
|
14
|
-
c && (t =
|
|
14
|
+
c && (t = y(c));
|
|
15
15
|
}
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
18
|
-
var
|
|
19
|
-
|
|
16
|
+
var o = e.lineWidth;
|
|
17
|
+
if (o) {
|
|
18
|
+
var u = !e.strokeNoScale && s.transform ? s.transform[0] : 1;
|
|
19
|
+
o = o / u;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
21
|
+
var r = {
|
|
22
22
|
cursor: "pointer"
|
|
23
23
|
};
|
|
24
|
-
t && (
|
|
24
|
+
t && (r.fill = t), e.stroke && (r.stroke = e.stroke), o && (r["stroke-width"] = o), v(r, f, a, !0);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function v(s,
|
|
28
|
-
var
|
|
29
|
-
t || (t =
|
|
27
|
+
function v(s, f, a, r) {
|
|
28
|
+
var e = JSON.stringify(s), t = a.cssStyleCache[e];
|
|
29
|
+
t || (t = a.zrId + "-cls-" + C(), a.cssStyleCache[e] = t, a.cssNodes["." + t + (r ? ":hover" : "")] = s), f.class = f.class ? f.class + " " + t : t;
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
32
32
|
N as createCSSEmphasis
|