@visactor/vtable 0.17.9 → 0.17.10-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/axis/label-overlap.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/style.js +1 -2
- package/cjs/core/tableHelper.d.ts +1 -1
- package/cjs/core/tableHelper.js +2 -1
- package/cjs/core/tableHelper.js.map +1 -1
- package/cjs/event/event.d.ts +1 -1
- package/cjs/event/event.js +1 -1
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/scroll-bar.js.map +1 -1
- package/cjs/event/listener/table-group.js +1 -1
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/listener/touch.js.map +1 -1
- package/cjs/event/media-click.js +1 -2
- package/cjs/event/pivot-chart/axis-click.js.map +1 -1
- package/cjs/event/scroll.js +1 -0
- package/cjs/event/util.d.ts +1 -1
- package/cjs/event/util.js.map +1 -1
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +2 -2
- package/cjs/index.js.map +1 -1
- package/cjs/render/jsx/index.d.ts +1 -1
- package/cjs/render/jsx/index.js +1 -1
- package/cjs/render/jsx/index.js.map +1 -1
- package/cjs/render/layout/arc.d.ts +2 -2
- package/cjs/render/layout/arc.js +1 -1
- package/cjs/render/layout/arc.js.map +1 -1
- package/cjs/render/layout/circle.d.ts +2 -2
- package/cjs/render/layout/circle.js +1 -1
- package/cjs/render/layout/circle.js.map +1 -1
- package/cjs/render/layout/container.d.ts +2 -2
- package/cjs/render/layout/container.js +1 -1
- package/cjs/render/layout/container.js.map +1 -1
- package/cjs/render/layout/group.d.ts +2 -2
- package/cjs/render/layout/group.js +1 -1
- package/cjs/render/layout/group.js.map +1 -1
- package/cjs/render/layout/icon.d.ts +2 -2
- package/cjs/render/layout/icon.js +1 -1
- package/cjs/render/layout/icon.js.map +1 -1
- package/cjs/render/layout/image.d.ts +2 -2
- package/cjs/render/layout/image.js +1 -1
- package/cjs/render/layout/image.js.map +1 -1
- package/cjs/render/layout/rect.d.ts +2 -2
- package/cjs/render/layout/rect.js +1 -1
- package/cjs/render/layout/rect.js.map +1 -1
- package/cjs/render/layout/text.d.ts +1 -1
- package/cjs/render/layout/text.js +1 -1
- package/cjs/render/layout/text.js.map +1 -1
- package/cjs/scenegraph/component/cell-content.d.ts +2 -2
- package/cjs/scenegraph/component/cell-content.js +1 -1
- package/cjs/scenegraph/component/cell-content.js.map +1 -1
- package/cjs/scenegraph/component/cell-mover.d.ts +1 -1
- package/cjs/scenegraph/component/cell-mover.js +1 -1
- package/cjs/scenegraph/component/cell-mover.js.map +1 -1
- package/cjs/scenegraph/component/custom.d.ts +1 -1
- package/cjs/scenegraph/component/custom.js +1 -1
- package/cjs/scenegraph/component/custom.js.map +1 -1
- package/cjs/scenegraph/component/drill-icon.js.map +1 -1
- package/cjs/scenegraph/component/menu.d.ts +1 -1
- package/cjs/scenegraph/component/menu.js +1 -1
- package/cjs/scenegraph/component/menu.js.map +1 -1
- package/cjs/scenegraph/component/table-component.d.ts +1 -1
- package/cjs/scenegraph/component/table-component.js +1 -1
- package/cjs/scenegraph/component/table-component.js.map +1 -1
- package/cjs/scenegraph/debug-tool/debug-tool.d.ts +1 -1
- package/cjs/scenegraph/debug-tool/debug-tool.js +1 -1
- package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -1
- package/cjs/scenegraph/debug-tool/index.d.ts +1 -1
- package/cjs/scenegraph/debug-tool/index.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.d.ts +2 -2
- package/cjs/scenegraph/graphic/chart.js +1 -1
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +2 -2
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +2 -2
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +1 -1
- package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/index.d.ts +1 -1
- package/cjs/scenegraph/graphic/contributions/index.js +1 -1
- package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +2 -2
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +1 -1
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/group.d.ts +2 -2
- package/cjs/scenegraph/graphic/group.js +1 -1
- package/cjs/scenegraph/graphic/group.js.map +1 -1
- package/cjs/scenegraph/graphic/icon.d.ts +2 -2
- package/cjs/scenegraph/graphic/icon.js +1 -1
- package/cjs/scenegraph/graphic/icon.js.map +1 -1
- package/cjs/scenegraph/graphic/text.d.ts +2 -2
- package/cjs/scenegraph/graphic/text.js +1 -1
- package/cjs/scenegraph/graphic/text.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js +1 -1
- package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.d.ts +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/icon/icon-update.js +1 -1
- package/cjs/scenegraph/icon/icon-update.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/move-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-col.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +1 -1
- package/cjs/scenegraph/scenegraph.js +1 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.js +1 -1
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/scenegraph/stick-text/index.js.map +1 -1
- package/cjs/scenegraph/style/corner-cell.js.map +1 -1
- package/cjs/scenegraph/style/frame-border.js +1 -1
- package/cjs/scenegraph/style/frame-border.js.map +1 -1
- package/cjs/scenegraph/utils/padding.js +1 -1
- package/cjs/scenegraph/utils/padding.js.map +1 -1
- package/cjs/scenegraph/utils/render-service.d.ts +1 -1
- package/cjs/scenegraph/utils/render-service.js +1 -1
- package/cjs/scenegraph/utils/render-service.js.map +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.d.ts +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/scenegraph/utils/text-measure.d.ts +2 -2
- package/cjs/scenegraph/utils/text-measure.js +1 -1
- package/cjs/scenegraph/utils/text-measure.js.map +1 -1
- package/cjs/scenegraph/utils/text-pos.d.ts +1 -1
- package/cjs/scenegraph/utils/text-pos.js.map +1 -1
- package/cjs/state/spark-line/index.js +1 -1
- package/cjs/state/spark-line/index.js.map +1 -1
- package/cjs/state/state.d.ts +1 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/ARCO.js +1 -2
- package/cjs/themes/BRIGHT.js +2 -1
- package/cjs/tools/NumberMap.js +1 -1
- package/cjs/ts-types/component/title.d.ts +1 -1
- package/cjs/ts-types/component/title.js.map +1 -1
- package/cjs/ts-types/events.d.ts +1 -1
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/vrender.d.ts +3 -0
- package/cjs/vrender.js +34 -0
- package/cjs/vrender.js.map +1 -0
- package/dist/vtable.js +111 -106
- package/dist/vtable.min.js +2 -2
- package/es/components/axis/label-overlap.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/style.js +1 -2
- package/es/core/tableHelper.d.ts +1 -1
- package/es/core/tableHelper.js +2 -1
- package/es/core/tableHelper.js.map +1 -1
- package/es/event/event.d.ts +1 -1
- package/es/event/event.js +1 -1
- package/es/event/event.js.map +1 -1
- package/es/event/listener/scroll-bar.js.map +1 -1
- package/es/event/listener/table-group.js +1 -1
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/listener/touch.js.map +1 -1
- package/es/event/media-click.js +1 -2
- package/es/event/pivot-chart/axis-click.js.map +1 -1
- package/es/event/scroll.js +2 -1
- package/es/event/util.d.ts +1 -1
- package/es/event/util.js.map +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/index.js.map +1 -1
- package/es/render/jsx/index.d.ts +1 -1
- package/es/render/jsx/index.js +1 -1
- package/es/render/jsx/index.js.map +1 -1
- package/es/render/layout/arc.d.ts +2 -2
- package/es/render/layout/arc.js +1 -1
- package/es/render/layout/arc.js.map +1 -1
- package/es/render/layout/circle.d.ts +2 -2
- package/es/render/layout/circle.js +1 -1
- package/es/render/layout/circle.js.map +1 -1
- package/es/render/layout/container.d.ts +2 -2
- package/es/render/layout/container.js +1 -1
- package/es/render/layout/container.js.map +1 -1
- package/es/render/layout/group.d.ts +2 -2
- package/es/render/layout/group.js +1 -1
- package/es/render/layout/group.js.map +1 -1
- package/es/render/layout/icon.d.ts +2 -2
- package/es/render/layout/icon.js +1 -1
- package/es/render/layout/icon.js.map +1 -1
- package/es/render/layout/image.d.ts +2 -2
- package/es/render/layout/image.js +1 -1
- package/es/render/layout/image.js.map +1 -1
- package/es/render/layout/rect.d.ts +2 -2
- package/es/render/layout/rect.js +1 -1
- package/es/render/layout/rect.js.map +1 -1
- package/es/render/layout/text.d.ts +1 -1
- package/es/render/layout/text.js +1 -1
- package/es/render/layout/text.js.map +1 -1
- package/es/scenegraph/component/cell-content.d.ts +2 -2
- package/es/scenegraph/component/cell-content.js +1 -1
- package/es/scenegraph/component/cell-content.js.map +1 -1
- package/es/scenegraph/component/cell-mover.d.ts +1 -1
- package/es/scenegraph/component/cell-mover.js +1 -1
- package/es/scenegraph/component/cell-mover.js.map +1 -1
- package/es/scenegraph/component/custom.d.ts +1 -1
- package/es/scenegraph/component/custom.js +1 -1
- package/es/scenegraph/component/custom.js.map +1 -1
- package/es/scenegraph/component/drill-icon.js.map +1 -1
- package/es/scenegraph/component/menu.d.ts +1 -1
- package/es/scenegraph/component/menu.js +1 -1
- package/es/scenegraph/component/menu.js.map +1 -1
- package/es/scenegraph/component/table-component.d.ts +1 -1
- package/es/scenegraph/component/table-component.js +1 -1
- package/es/scenegraph/component/table-component.js.map +1 -1
- package/es/scenegraph/debug-tool/debug-tool.d.ts +1 -1
- package/es/scenegraph/debug-tool/debug-tool.js +1 -1
- package/es/scenegraph/debug-tool/debug-tool.js.map +1 -1
- package/es/scenegraph/debug-tool/index.d.ts +1 -1
- package/es/scenegraph/debug-tool/index.js.map +1 -1
- package/es/scenegraph/graphic/chart.d.ts +2 -2
- package/es/scenegraph/graphic/chart.js +1 -1
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.d.ts +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +2 -2
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +2 -2
- package/es/scenegraph/graphic/contributions/image-contribution-render.js +1 -1
- package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/index.d.ts +1 -1
- package/es/scenegraph/graphic/contributions/index.js +1 -1
- package/es/scenegraph/graphic/contributions/index.js.map +1 -1
- package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +2 -2
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +1 -1
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/group.d.ts +2 -2
- package/es/scenegraph/graphic/group.js +1 -1
- package/es/scenegraph/graphic/group.js.map +1 -1
- package/es/scenegraph/graphic/icon.d.ts +2 -2
- package/es/scenegraph/graphic/icon.js +1 -1
- package/es/scenegraph/graphic/icon.js.map +1 -1
- package/es/scenegraph/graphic/text.d.ts +2 -2
- package/es/scenegraph/graphic/text.js +1 -1
- package/es/scenegraph/graphic/text.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js +1 -1
- package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.d.ts +1 -1
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/icon/icon-update.js +1 -1
- package/es/scenegraph/icon/icon-update.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +1 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +1 -1
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/move-cell.js.map +1 -1
- package/es/scenegraph/layout/update-col.js.map +1 -1
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +1 -1
- package/es/scenegraph/scenegraph.js +1 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/create-select-border.js +1 -1
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/delete-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/scenegraph/stick-text/index.js.map +1 -1
- package/es/scenegraph/style/corner-cell.js.map +1 -1
- package/es/scenegraph/style/frame-border.js +1 -1
- package/es/scenegraph/style/frame-border.js.map +1 -1
- package/es/scenegraph/utils/padding.js +1 -1
- package/es/scenegraph/utils/padding.js.map +1 -1
- package/es/scenegraph/utils/render-service.d.ts +1 -1
- package/es/scenegraph/utils/render-service.js +1 -1
- package/es/scenegraph/utils/render-service.js.map +1 -1
- package/es/scenegraph/utils/text-icon-layout.d.ts +1 -1
- package/es/scenegraph/utils/text-icon-layout.js +1 -1
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/scenegraph/utils/text-measure.d.ts +2 -2
- package/es/scenegraph/utils/text-measure.js +1 -1
- package/es/scenegraph/utils/text-measure.js.map +1 -1
- package/es/scenegraph/utils/text-pos.d.ts +1 -1
- package/es/scenegraph/utils/text-pos.js.map +1 -1
- package/es/state/spark-line/index.js +1 -1
- package/es/state/spark-line/index.js.map +1 -1
- package/es/state/state.d.ts +1 -1
- package/es/state/state.js.map +1 -1
- package/es/themes/ARCO.js +1 -2
- package/es/themes/BRIGHT.js +2 -1
- package/es/tools/NumberMap.js +1 -1
- package/es/ts-types/component/title.d.ts +1 -1
- package/es/ts-types/component/title.js.map +1 -1
- package/es/ts-types/events.d.ts +1 -1
- package/es/ts-types/events.js.map +1 -1
- package/es/vrender.d.ts +3 -0
- package/es/vrender.js +18 -0
- package/es/vrender.js.map +1 -0
- package/package.json +7 -6
package/dist/vtable.js
CHANGED
|
@@ -8004,7 +8004,7 @@
|
|
|
8004
8004
|
const SYMBOL_NUMBER_TYPE = genNumberType();
|
|
8005
8005
|
const TEXT_NUMBER_TYPE = genNumberType();
|
|
8006
8006
|
const GraphicService = Symbol.for("GraphicService");
|
|
8007
|
-
const GraphicCreator$
|
|
8007
|
+
const GraphicCreator$1 = Symbol.for("GraphicCreator");
|
|
8008
8008
|
const SVG_PARSE_ATTRIBUTE_MAP = {
|
|
8009
8009
|
"stroke-linecap": "lineCap",
|
|
8010
8010
|
"stroke-linejoin": "lineJoin",
|
|
@@ -12230,9 +12230,9 @@
|
|
|
12230
12230
|
return !!visible || (aabbBounds.clear(), !1);
|
|
12231
12231
|
}
|
|
12232
12232
|
};
|
|
12233
|
-
DefaultGraphicService = __decorate$19([injectable(), __param$F(0, inject(GraphicCreator$
|
|
12233
|
+
DefaultGraphicService = __decorate$19([injectable(), __param$F(0, inject(GraphicCreator$1)), __metadata$S("design:paramtypes", [Object])], DefaultGraphicService);
|
|
12234
12234
|
|
|
12235
|
-
|
|
12235
|
+
class GraphicCreator {
|
|
12236
12236
|
constructor() {
|
|
12237
12237
|
this.store = new Map();
|
|
12238
12238
|
}
|
|
@@ -12243,12 +12243,12 @@
|
|
|
12243
12243
|
const cb = this.store.get(name);
|
|
12244
12244
|
return cb ? cb(params) : null;
|
|
12245
12245
|
}
|
|
12246
|
-
}
|
|
12247
|
-
const graphicCreator
|
|
12246
|
+
}
|
|
12247
|
+
const graphicCreator = new GraphicCreator();
|
|
12248
12248
|
|
|
12249
|
-
let text
|
|
12250
|
-
function getTextBounds
|
|
12251
|
-
return text
|
|
12249
|
+
let text;
|
|
12250
|
+
function getTextBounds(params) {
|
|
12251
|
+
return text || (text = graphicCreator.CreateGraphic("text", {})), text.setAttributes(params), text.AABBBounds;
|
|
12252
12252
|
}
|
|
12253
12253
|
|
|
12254
12254
|
const result = {
|
|
@@ -14767,7 +14767,7 @@
|
|
|
14767
14767
|
});
|
|
14768
14768
|
|
|
14769
14769
|
var graphicModule = new ContainerModule(bind => {
|
|
14770
|
-
bind(GraphicService).to(DefaultGraphicService).inSingletonScope(), bind(GraphicCreator$
|
|
14770
|
+
bind(GraphicService).to(DefaultGraphicService).inSingletonScope(), bind(GraphicCreator$1).toConstantValue(graphicCreator);
|
|
14771
14771
|
});
|
|
14772
14772
|
|
|
14773
14773
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
@@ -15258,7 +15258,7 @@
|
|
|
15258
15258
|
getShadowRoot(interactiveLayer) {
|
|
15259
15259
|
var _a;
|
|
15260
15260
|
let group = interactiveLayer.getElementById("_interactive_group");
|
|
15261
|
-
return group || (group = graphicCreator
|
|
15261
|
+
return group || (group = graphicCreator.CreateGraphic("group", {}), group.id = "_interactive_group", interactiveLayer.add(group)), null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
|
|
15262
15262
|
}
|
|
15263
15263
|
}
|
|
15264
15264
|
class Canvas3DDrawItemInterceptor {
|
|
@@ -17799,75 +17799,75 @@
|
|
|
17799
17799
|
});
|
|
17800
17800
|
|
|
17801
17801
|
function registerArcGraphic() {
|
|
17802
|
-
graphicCreator
|
|
17802
|
+
graphicCreator.RegisterGraphicCreator("arc", createArc);
|
|
17803
17803
|
}
|
|
17804
17804
|
|
|
17805
17805
|
function registerArc3dGraphic() {
|
|
17806
|
-
graphicCreator
|
|
17806
|
+
graphicCreator.RegisterGraphicCreator("arc3d", createArc3d);
|
|
17807
17807
|
}
|
|
17808
17808
|
|
|
17809
17809
|
function registerAreaGraphic() {
|
|
17810
|
-
graphicCreator
|
|
17810
|
+
graphicCreator.RegisterGraphicCreator("area", createArea);
|
|
17811
17811
|
}
|
|
17812
17812
|
|
|
17813
17813
|
function registerCircleGraphic() {
|
|
17814
|
-
graphicCreator
|
|
17814
|
+
graphicCreator.RegisterGraphicCreator("circle", createCircle);
|
|
17815
17815
|
}
|
|
17816
17816
|
|
|
17817
17817
|
function registerGlyphGraphic() {
|
|
17818
|
-
graphicCreator
|
|
17818
|
+
graphicCreator.RegisterGraphicCreator("glyph", createGlyph);
|
|
17819
17819
|
}
|
|
17820
17820
|
|
|
17821
17821
|
function registerGroupGraphic() {
|
|
17822
|
-
graphicCreator
|
|
17822
|
+
graphicCreator.RegisterGraphicCreator("group", createGroup);
|
|
17823
17823
|
}
|
|
17824
17824
|
|
|
17825
17825
|
function registerImageGraphic() {
|
|
17826
|
-
graphicCreator
|
|
17826
|
+
graphicCreator.RegisterGraphicCreator("image", createImage);
|
|
17827
17827
|
}
|
|
17828
17828
|
|
|
17829
17829
|
function registerLineGraphic() {
|
|
17830
|
-
graphicCreator
|
|
17830
|
+
graphicCreator.RegisterGraphicCreator("line", createLine);
|
|
17831
17831
|
}
|
|
17832
17832
|
|
|
17833
17833
|
function registerPathGraphic() {
|
|
17834
|
-
graphicCreator
|
|
17834
|
+
graphicCreator.RegisterGraphicCreator("path", createPath);
|
|
17835
17835
|
}
|
|
17836
17836
|
|
|
17837
17837
|
function registerPolygonGraphic() {
|
|
17838
|
-
graphicCreator
|
|
17838
|
+
graphicCreator.RegisterGraphicCreator("polygon", createPolygon);
|
|
17839
17839
|
}
|
|
17840
17840
|
|
|
17841
17841
|
function registerPyramid3dGraphic() {
|
|
17842
|
-
graphicCreator
|
|
17842
|
+
graphicCreator.RegisterGraphicCreator("pyramid3d", createPyramid3d);
|
|
17843
17843
|
}
|
|
17844
17844
|
|
|
17845
17845
|
function registerRectGraphic() {
|
|
17846
|
-
graphicCreator
|
|
17846
|
+
graphicCreator.RegisterGraphicCreator("rect", createRect);
|
|
17847
17847
|
}
|
|
17848
17848
|
|
|
17849
17849
|
function registerRect3dGraphic() {
|
|
17850
|
-
graphicCreator
|
|
17850
|
+
graphicCreator.RegisterGraphicCreator("rect3d", createRect3d);
|
|
17851
17851
|
}
|
|
17852
17852
|
|
|
17853
17853
|
function registerRichtextGraphic() {
|
|
17854
|
-
graphicCreator
|
|
17854
|
+
graphicCreator.RegisterGraphicCreator("richtext", createRichText);
|
|
17855
17855
|
}
|
|
17856
17856
|
|
|
17857
17857
|
function registerSymbolGraphic() {
|
|
17858
|
-
graphicCreator
|
|
17858
|
+
graphicCreator.RegisterGraphicCreator("symbol", createSymbol);
|
|
17859
17859
|
}
|
|
17860
17860
|
|
|
17861
17861
|
function registerTextGraphic() {
|
|
17862
|
-
graphicCreator
|
|
17862
|
+
graphicCreator.RegisterGraphicCreator("text", createText);
|
|
17863
17863
|
}
|
|
17864
17864
|
|
|
17865
17865
|
function registerShadowRootGraphic() {
|
|
17866
|
-
graphicCreator
|
|
17866
|
+
graphicCreator.RegisterGraphicCreator("shadowRoot", createShadowRoot);
|
|
17867
17867
|
}
|
|
17868
17868
|
|
|
17869
17869
|
function registerWrapTextGraphic() {
|
|
17870
|
-
graphicCreator
|
|
17870
|
+
graphicCreator.RegisterGraphicCreator("wrapText", createWrapText);
|
|
17871
17871
|
}
|
|
17872
17872
|
|
|
17873
17873
|
const REACT_TO_CANOPUS_EVENTS = {
|
|
@@ -17918,40 +17918,40 @@
|
|
|
17918
17918
|
onDblClick: "dblclick"
|
|
17919
17919
|
};
|
|
17920
17920
|
function VArc(params) {
|
|
17921
|
-
return graphicCreator
|
|
17921
|
+
return graphicCreator.arc(params ? params.attribute : {});
|
|
17922
17922
|
}
|
|
17923
17923
|
function VArea(params) {
|
|
17924
|
-
return graphicCreator
|
|
17924
|
+
return graphicCreator.area(params ? params.attribute : {});
|
|
17925
17925
|
}
|
|
17926
17926
|
function VCircle(params) {
|
|
17927
|
-
return graphicCreator
|
|
17927
|
+
return graphicCreator.circle(params ? params.attribute : {});
|
|
17928
17928
|
}
|
|
17929
17929
|
function VGroup(params) {
|
|
17930
|
-
return graphicCreator
|
|
17930
|
+
return graphicCreator.group(params ? params.attribute : {});
|
|
17931
17931
|
}
|
|
17932
17932
|
function VGlyph(params) {
|
|
17933
|
-
return graphicCreator
|
|
17933
|
+
return graphicCreator.glyph(params ? params.attribute : {});
|
|
17934
17934
|
}
|
|
17935
17935
|
function VImage(params) {
|
|
17936
|
-
return graphicCreator
|
|
17936
|
+
return graphicCreator.image(params ? params.attribute : {});
|
|
17937
17937
|
}
|
|
17938
17938
|
function VLine(params) {
|
|
17939
|
-
return graphicCreator
|
|
17939
|
+
return graphicCreator.line(params ? params.attribute : {});
|
|
17940
17940
|
}
|
|
17941
17941
|
function VPath(params) {
|
|
17942
|
-
return graphicCreator
|
|
17942
|
+
return graphicCreator.path(params ? params.attribute : {});
|
|
17943
17943
|
}
|
|
17944
17944
|
function VPolygon(params) {
|
|
17945
|
-
return graphicCreator
|
|
17945
|
+
return graphicCreator.polygon(params ? params.attribute : {});
|
|
17946
17946
|
}
|
|
17947
17947
|
function VRect(params) {
|
|
17948
|
-
return graphicCreator
|
|
17948
|
+
return graphicCreator.rect(params ? params.attribute : {});
|
|
17949
17949
|
}
|
|
17950
17950
|
function VSymbol(params) {
|
|
17951
|
-
return graphicCreator
|
|
17951
|
+
return graphicCreator.symbol(params ? params.attribute : {});
|
|
17952
17952
|
}
|
|
17953
17953
|
function VText(params) {
|
|
17954
|
-
return graphicCreator
|
|
17954
|
+
return graphicCreator.text(params ? params.attribute : {});
|
|
17955
17955
|
}
|
|
17956
17956
|
|
|
17957
17957
|
var __rest$4 = undefined && undefined.__rest || function (s, e) {
|
|
@@ -17976,7 +17976,7 @@
|
|
|
17976
17976
|
} = _a,
|
|
17977
17977
|
props = __rest$4(_a, ["key", "attribute", "stateProxy"]);
|
|
17978
17978
|
let c = type;
|
|
17979
|
-
isString$2(type) && (c = graphicCreator
|
|
17979
|
+
isString$2(type) && (c = graphicCreator[type]);
|
|
17980
17980
|
const childrenList = [];
|
|
17981
17981
|
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
17982
17982
|
children[_key - 2] = arguments[_key];
|
|
@@ -20958,7 +20958,31 @@
|
|
|
20958
20958
|
loaded || (loaded = !0, registerWrapTextGraphic());
|
|
20959
20959
|
}
|
|
20960
20960
|
|
|
20961
|
-
preLoadAllModule()
|
|
20961
|
+
preLoadAllModule();
|
|
20962
|
+
if (isBrowserEnv()) {
|
|
20963
|
+
loadBrowserEnv(container);
|
|
20964
|
+
}
|
|
20965
|
+
else if (isNodeEnv()) {
|
|
20966
|
+
loadNodeEnv(container);
|
|
20967
|
+
}
|
|
20968
|
+
registerArc();
|
|
20969
|
+
registerArc3d();
|
|
20970
|
+
registerArea();
|
|
20971
|
+
registerCircle();
|
|
20972
|
+
registerGlyph();
|
|
20973
|
+
registerGroup();
|
|
20974
|
+
registerImage();
|
|
20975
|
+
registerLine();
|
|
20976
|
+
registerPath();
|
|
20977
|
+
registerPolygon();
|
|
20978
|
+
registerPyramid3d();
|
|
20979
|
+
registerRect();
|
|
20980
|
+
registerRect3d();
|
|
20981
|
+
registerRichtext();
|
|
20982
|
+
registerShadowRoot();
|
|
20983
|
+
registerSymbol();
|
|
20984
|
+
registerText();
|
|
20985
|
+
registerWrapText();
|
|
20962
20986
|
|
|
20963
20987
|
var InteractionState;
|
|
20964
20988
|
(function (InteractionState) {
|
|
@@ -24278,7 +24302,7 @@
|
|
|
24278
24302
|
width: 0,
|
|
24279
24303
|
height: 0
|
|
24280
24304
|
};
|
|
24281
|
-
const bounds = getTextBounds
|
|
24305
|
+
const bounds = getTextBounds({
|
|
24282
24306
|
text: text,
|
|
24283
24307
|
fontFamily: textSpec.fontFamily,
|
|
24284
24308
|
fontSize: textSpec.fontSize || 12,
|
|
@@ -24926,7 +24950,7 @@
|
|
|
24926
24950
|
}
|
|
24927
24951
|
points.forEach((point, index) => {
|
|
24928
24952
|
var _a, _b;
|
|
24929
|
-
const line = graphicCreator
|
|
24953
|
+
const line = graphicCreator.line(Object.assign(Object.assign({
|
|
24930
24954
|
points: point
|
|
24931
24955
|
}, isArray$1(lineStyle) ? null !== (_a = lineStyle[index]) && void 0 !== _a ? _a : lineStyle[lineStyle.length - 1] : lineStyle), {
|
|
24932
24956
|
fill: !1
|
|
@@ -24934,7 +24958,7 @@
|
|
|
24934
24958
|
line.name = `${this.name}-line`, line.id = this._getNodeId("line" + index), isEmpty(null == state ? void 0 : state.line) || (line.states = isArray$1(state.line) ? null !== (_b = state.line[index]) && void 0 !== _b ? _b : state.line[state.line.length - 1] : state.line), this.add(line);
|
|
24935
24959
|
});
|
|
24936
24960
|
} else {
|
|
24937
|
-
const line = graphicCreator
|
|
24961
|
+
const line = graphicCreator.polygon(Object.assign(Object.assign({
|
|
24938
24962
|
points: this._clipPoints(this.attribute.points)
|
|
24939
24963
|
}, array$1(lineStyle)[0]), {
|
|
24940
24964
|
fill: !1,
|
|
@@ -24973,7 +24997,7 @@
|
|
|
24973
24997
|
}, rotate = startAngle + Math.PI / 2) : (position = {
|
|
24974
24998
|
x: end.x + (isValidNumber$1(endAngle) ? refX * Math.cos(endAngle) + refY * Math.cos(endAngle - Math.PI / 2) : 0),
|
|
24975
24999
|
y: end.y + (isValidNumber$1(endAngle) ? refX * Math.sin(endAngle) + refY * Math.sin(endAngle - Math.PI / 2) : 0)
|
|
24976
|
-
}, rotate = endAngle + Math.PI / 2), symbol = graphicCreator
|
|
25000
|
+
}, rotate = endAngle + Math.PI / 2), symbol = graphicCreator.symbol(Object.assign(Object.assign(Object.assign({}, position), {
|
|
24977
25001
|
symbolType: symbolType,
|
|
24978
25002
|
size: size,
|
|
24979
25003
|
angle: autoRotate ? rotate + refAngle : 0,
|
|
@@ -25166,14 +25190,14 @@
|
|
|
25166
25190
|
getBoundsWithoutRender(attributes) {
|
|
25167
25191
|
const currentAttribute = cloneDeep(this.attribute);
|
|
25168
25192
|
merge(this.attribute, attributes);
|
|
25169
|
-
const offscreenGroup = graphicCreator
|
|
25193
|
+
const offscreenGroup = graphicCreator.group({
|
|
25170
25194
|
x: this.attribute.x,
|
|
25171
25195
|
y: this.attribute.y
|
|
25172
25196
|
});
|
|
25173
25197
|
return this.add(offscreenGroup), this._renderInner(offscreenGroup), this.removeChild(offscreenGroup), this.attribute = currentAttribute, offscreenGroup.AABBBounds;
|
|
25174
25198
|
}
|
|
25175
25199
|
render() {
|
|
25176
|
-
this.removeAllChild(), this._prevInnerView = this._innerView, this._innerView = graphicCreator
|
|
25200
|
+
this.removeAllChild(), this._prevInnerView = this._innerView, this._innerView = graphicCreator.group({
|
|
25177
25201
|
x: 0,
|
|
25178
25202
|
y: 0,
|
|
25179
25203
|
pickable: !1
|
|
@@ -25195,13 +25219,13 @@
|
|
|
25195
25219
|
line: line,
|
|
25196
25220
|
items: items
|
|
25197
25221
|
} = this.attribute,
|
|
25198
|
-
axisContainer = graphicCreator
|
|
25222
|
+
axisContainer = graphicCreator.group({
|
|
25199
25223
|
x: 0,
|
|
25200
25224
|
y: 0,
|
|
25201
25225
|
zIndex: 1
|
|
25202
25226
|
});
|
|
25203
25227
|
if (axisContainer.name = AXIS_ELEMENT_NAME.axisContainer, axisContainer.id = this._getNodeId("container"), axisContainer.setMode(this.mode), this.axisContainer = axisContainer, container.add(axisContainer), line && line.visible && this.renderLine(axisContainer), items && items.length && (this.data = this._transformItems(items[0]), tick && tick.visible && this.renderTicks(axisContainer), label && label.visible)) {
|
|
25204
|
-
const labelGroup = graphicCreator
|
|
25228
|
+
const labelGroup = graphicCreator.group({
|
|
25205
25229
|
x: 0,
|
|
25206
25230
|
y: 0,
|
|
25207
25231
|
pickable: !1
|
|
@@ -25234,14 +25258,14 @@
|
|
|
25234
25258
|
}
|
|
25235
25259
|
renderTicks(container) {
|
|
25236
25260
|
const tickLineItems = this.getTickLineItems(),
|
|
25237
|
-
tickLineGroup = graphicCreator
|
|
25261
|
+
tickLineGroup = graphicCreator.group({
|
|
25238
25262
|
x: 0,
|
|
25239
25263
|
y: 0,
|
|
25240
25264
|
pickable: !1
|
|
25241
25265
|
});
|
|
25242
25266
|
tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup), tickLineItems.forEach((item, index) => {
|
|
25243
25267
|
var _a;
|
|
25244
|
-
const line = graphicCreator
|
|
25268
|
+
const line = graphicCreator.line(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
|
|
25245
25269
|
if (line.name = AXIS_ELEMENT_NAME.tick, line.id = this._getNodeId(item.id), isEmpty(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.state)) line.states = DEFAULT_STATES$2;else {
|
|
25246
25270
|
const data = this.data[index],
|
|
25247
25271
|
tickLineState = merge({}, DEFAULT_STATES$2, this.attribute.tick.state);
|
|
@@ -25257,7 +25281,7 @@
|
|
|
25257
25281
|
if (subTick && subTick.visible) {
|
|
25258
25282
|
const subTickLineItems = this.getSubTickLineItems();
|
|
25259
25283
|
subTickLineItems.length && subTickLineItems.forEach((item, index) => {
|
|
25260
|
-
const line = graphicCreator
|
|
25284
|
+
const line = graphicCreator.line(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
|
|
25261
25285
|
if (line.name = AXIS_ELEMENT_NAME.subTick, line.id = this._getNodeId(`${index}`), isEmpty(subTick.state)) line.states = DEFAULT_STATES$2;else {
|
|
25262
25286
|
const subTickLineState = merge({}, DEFAULT_STATES$2, subTick.state);
|
|
25263
25287
|
Object.keys(subTickLineState).forEach(key => {
|
|
@@ -25274,7 +25298,7 @@
|
|
|
25274
25298
|
} = this.attribute.label;
|
|
25275
25299
|
dataFilter && isFunction$1(dataFilter) && (items = dataFilter(items, layer));
|
|
25276
25300
|
const data = this._transformItems(items),
|
|
25277
|
-
labelGroup = graphicCreator
|
|
25301
|
+
labelGroup = graphicCreator.group({
|
|
25278
25302
|
x: 0,
|
|
25279
25303
|
y: 0,
|
|
25280
25304
|
pickable: !1
|
|
@@ -25283,9 +25307,9 @@
|
|
|
25283
25307
|
var _a, _b, _c;
|
|
25284
25308
|
const labelStyle = this._getLabelAttribute(item, index, data, layer);
|
|
25285
25309
|
let text;
|
|
25286
|
-
if ("rich" === labelStyle.type ? (labelStyle.textConfig = labelStyle.text, labelStyle.width = null !== (_a = labelStyle.width) && void 0 !== _a ? _a : 0, labelStyle.height = null !== (_b = labelStyle.height) && void 0 !== _b ? _b : 0, text = graphicCreator
|
|
25310
|
+
if ("rich" === labelStyle.type ? (labelStyle.textConfig = labelStyle.text, labelStyle.width = null !== (_a = labelStyle.width) && void 0 !== _a ? _a : 0, labelStyle.height = null !== (_b = labelStyle.height) && void 0 !== _b ? _b : 0, text = graphicCreator.richtext(labelStyle)) : "html" === labelStyle.type ? (labelStyle.textConfig = [], labelStyle.html = Object.assign(Object.assign({
|
|
25287
25311
|
dom: labelStyle.text
|
|
25288
|
-
}, DEFAULT_HTML_TEXT_SPEC), labelStyle), text = graphicCreator
|
|
25312
|
+
}, DEFAULT_HTML_TEXT_SPEC), labelStyle), text = graphicCreator.richtext(labelStyle)) : text = graphicCreator.text(labelStyle), text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), isEmpty(null === (_c = this.attribute.label) || void 0 === _c ? void 0 : _c.state)) text.states = DEFAULT_STATES$2;else {
|
|
25289
25313
|
const labelState = merge({}, DEFAULT_STATES$2, this.attribute.label.state);
|
|
25290
25314
|
Object.keys(labelState).forEach(key => {
|
|
25291
25315
|
isFunction$1(labelState[key]) && (labelState[key] = labelState[key](item, index, data, layer));
|
|
@@ -25741,7 +25765,7 @@
|
|
|
25741
25765
|
if (panel && panel.visible) {
|
|
25742
25766
|
const axisContainer = this.axisContainer,
|
|
25743
25767
|
axisContainerBounds = axisContainer.AABBBounds,
|
|
25744
|
-
bgRect = graphicCreator
|
|
25768
|
+
bgRect = graphicCreator.rect(Object.assign({
|
|
25745
25769
|
x: axisContainerBounds.x1,
|
|
25746
25770
|
y: axisContainerBounds.y1,
|
|
25747
25771
|
width: axisContainerBounds.width(),
|
|
@@ -26001,7 +26025,7 @@
|
|
|
26001
26025
|
const minSize = this._getAxisLabelLimitLength(verticalMinSize, layerCount);
|
|
26002
26026
|
let x, y;
|
|
26003
26027
|
axisLabelContainerSize = Math.max(axisLabelContainerSize, minSize), "left" === orient ? (x = axisLabelContainerBounds.x2 - axisLabelContainerSize, y = axisLabelContainerBounds.y1) : "right" === orient ? (x = axisLabelContainerBounds.x1, y = axisLabelContainerBounds.y1) : "top" === orient ? (x = axisLabelContainerBounds.x1, y = axisLabelContainerBounds.y2 - axisLabelContainerSize) : "bottom" === orient && (x = axisLabelContainerBounds.x1, y = axisLabelContainerBounds.y1);
|
|
26004
|
-
const bgRect = graphicCreator
|
|
26028
|
+
const bgRect = graphicCreator.rect({
|
|
26005
26029
|
x: x,
|
|
26006
26030
|
y: y,
|
|
26007
26031
|
width: isHorizontal ? axisLabelContainerBounds.width() : axisLabelContainerSize,
|
|
@@ -26106,7 +26130,7 @@
|
|
|
26106
26130
|
this._current = defaultCurrent;
|
|
26107
26131
|
const parsedPadding = normalizePadding(padding),
|
|
26108
26132
|
isHorizontal = "horizontal" === layout,
|
|
26109
|
-
container = graphicCreator
|
|
26133
|
+
container = graphicCreator.group({
|
|
26110
26134
|
x: 0,
|
|
26111
26135
|
y: 0
|
|
26112
26136
|
}),
|
|
@@ -26119,7 +26143,7 @@
|
|
|
26119
26143
|
nextShape: nextShape
|
|
26120
26144
|
} = handler;
|
|
26121
26145
|
preShape || (preShape = isHorizontal ? "triangleLeft" : "triangleUp"), nextShape || (nextShape = isHorizontal ? "triangleRight" : "triangleDown");
|
|
26122
|
-
const preHandler = graphicCreator
|
|
26146
|
+
const preHandler = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26123
26147
|
strokeBoundsBuffer: 0,
|
|
26124
26148
|
pickMode: "imprecise"
|
|
26125
26149
|
}, handlerStyle), {
|
|
@@ -26138,7 +26162,7 @@
|
|
|
26138
26162
|
}, textStyle)),
|
|
26139
26163
|
handlerSizeX = isNumber$3(handlerSize) ? handlerSize : handlerSize[0],
|
|
26140
26164
|
handlerSizeY = isNumber$3(handlerSize) ? handlerSize : handlerSize[1],
|
|
26141
|
-
text = graphicCreator
|
|
26165
|
+
text = graphicCreator.text(Object.assign({
|
|
26142
26166
|
x: isHorizontal ? handlerSizeX / 2 + handlerSpace + maxTextWidth / 2 : 0,
|
|
26143
26167
|
y: isHorizontal ? 0 : handlerSizeY / 2 + handlerSpace + maxTextHeight / 2,
|
|
26144
26168
|
text: `${defaultCurrent}/${total}`,
|
|
@@ -26147,7 +26171,7 @@
|
|
|
26147
26171
|
lineHeight: null == textStyle ? void 0 : textStyle.fontSize
|
|
26148
26172
|
}, textStyle));
|
|
26149
26173
|
this.text = text, container.add(text);
|
|
26150
|
-
const nextHandler = graphicCreator
|
|
26174
|
+
const nextHandler = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26151
26175
|
strokeBoundsBuffer: 0,
|
|
26152
26176
|
pickMode: "imprecise"
|
|
26153
26177
|
}, handlerStyle), {
|
|
@@ -26210,7 +26234,7 @@
|
|
|
26210
26234
|
padding = 0
|
|
26211
26235
|
} = this.attribute,
|
|
26212
26236
|
parsedPadding = normalizePadding(padding),
|
|
26213
|
-
innerView = graphicCreator
|
|
26237
|
+
innerView = graphicCreator.group({
|
|
26214
26238
|
x: parsedPadding[3],
|
|
26215
26239
|
y: parsedPadding[0],
|
|
26216
26240
|
pickable: interactive,
|
|
@@ -26357,7 +26381,7 @@
|
|
|
26357
26381
|
if (!1 === item.visible || isEmpty(items)) return;
|
|
26358
26382
|
let legendItems = items;
|
|
26359
26383
|
reversed && (legendItems = null == items ? void 0 : items.reverse());
|
|
26360
|
-
const itemsContainer = graphicCreator
|
|
26384
|
+
const itemsContainer = graphicCreator.group({
|
|
26361
26385
|
x: 0,
|
|
26362
26386
|
y: 0
|
|
26363
26387
|
});
|
|
@@ -26434,15 +26458,15 @@
|
|
|
26434
26458
|
backgroundStyle = this._handleStyle(background, item, isSelected, index, items),
|
|
26435
26459
|
parsedPadding = normalizePadding(padding);
|
|
26436
26460
|
let itemGroup;
|
|
26437
|
-
!1 === background.visible ? (itemGroup = graphicCreator
|
|
26461
|
+
!1 === background.visible ? (itemGroup = graphicCreator.group({
|
|
26438
26462
|
x: 0,
|
|
26439
26463
|
y: 0,
|
|
26440
26464
|
cursor: null === (_a = backgroundStyle.style) || void 0 === _a ? void 0 : _a.cursor
|
|
26441
|
-
}), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator
|
|
26465
|
+
}), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator.group(Object.assign({
|
|
26442
26466
|
x: 0,
|
|
26443
26467
|
y: 0
|
|
26444
26468
|
}, backgroundStyle.style)), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup, backgroundStyle.state)), itemGroup.id = `${null != id ? id : label}-${index}`, itemGroup.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected);
|
|
26445
|
-
const innerGroup = graphicCreator
|
|
26469
|
+
const innerGroup = graphicCreator.group({
|
|
26446
26470
|
x: 0,
|
|
26447
26471
|
y: 0,
|
|
26448
26472
|
pickable: !1
|
|
@@ -26455,7 +26479,7 @@
|
|
|
26455
26479
|
if (shapeAttr && !1 !== shapeAttr.visible) {
|
|
26456
26480
|
const s = get$5(shapeStyle, "style.size", DEFAULT_SHAPE_SIZE);
|
|
26457
26481
|
shapeSize = isArray$1(s) ? s[0] || 0 : s, shapeSpace = get$5(shapeAttr, "space", DEFAULT_SHAPE_SPACE);
|
|
26458
|
-
const itemShape = graphicCreator
|
|
26482
|
+
const itemShape = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26459
26483
|
x: 0,
|
|
26460
26484
|
y: 0,
|
|
26461
26485
|
symbolType: "circle",
|
|
@@ -26469,7 +26493,7 @@
|
|
|
26469
26493
|
let focusSpace = 0;
|
|
26470
26494
|
if (focus) {
|
|
26471
26495
|
const focusSize = get$5(focusIconStyle, "size", DEFAULT_SHAPE_SIZE);
|
|
26472
|
-
focusShape = graphicCreator
|
|
26496
|
+
focusShape = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26473
26497
|
x: 0,
|
|
26474
26498
|
y: -focusSize / 2 - 1,
|
|
26475
26499
|
strokeBoundsBuffer: 0
|
|
@@ -26479,7 +26503,7 @@
|
|
|
26479
26503
|
boundsPadding: parsedPadding
|
|
26480
26504
|
})), this._appendDataToShape(focusShape, LEGEND_ELEMENT_NAME.focus, item, itemGroup), focusSpace = focusSize;
|
|
26481
26505
|
}
|
|
26482
|
-
const labelShape = graphicCreator
|
|
26506
|
+
const labelShape = graphicCreator.text(Object.assign(Object.assign({
|
|
26483
26507
|
x: shapeSize / 2 + shapeSpace,
|
|
26484
26508
|
y: 0,
|
|
26485
26509
|
textAlign: "start",
|
|
@@ -26492,7 +26516,7 @@
|
|
|
26492
26516
|
const labelSpace = get$5(labelAttr, "space", DEFAULT_LABEL_SPACE);
|
|
26493
26517
|
if (isValid$1(value)) {
|
|
26494
26518
|
const valueSpace = get$5(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
|
|
26495
|
-
valueShape = graphicCreator
|
|
26519
|
+
valueShape = graphicCreator.text(Object.assign(Object.assign({
|
|
26496
26520
|
x: 0,
|
|
26497
26521
|
y: 0,
|
|
26498
26522
|
textAlign: "start",
|
|
@@ -26599,7 +26623,7 @@
|
|
|
26599
26623
|
});
|
|
26600
26624
|
}
|
|
26601
26625
|
pager.defaultCurrent > 1 && (isHorizontal ? itemsContainer.setAttribute("y", -(pager.defaultCurrent - 1) * (pageHeight + spaceRow)) : itemsContainer.setAttribute("x", -(pager.defaultCurrent - 1) * (pageWidth + spaceCol)));
|
|
26602
|
-
const clipGroup = graphicCreator
|
|
26626
|
+
const clipGroup = graphicCreator.group({
|
|
26603
26627
|
x: 0,
|
|
26604
26628
|
y: renderStartY,
|
|
26605
26629
|
width: pageWidth,
|
|
@@ -27904,7 +27928,7 @@
|
|
|
27904
27928
|
};
|
|
27905
27929
|
const isHorizontal = "horizontal" === layout;
|
|
27906
27930
|
this._isHorizontal = isHorizontal;
|
|
27907
|
-
const innerView = graphicCreator
|
|
27931
|
+
const innerView = graphicCreator.group({
|
|
27908
27932
|
x: 0,
|
|
27909
27933
|
y: 0
|
|
27910
27934
|
});
|
|
@@ -27912,7 +27936,7 @@
|
|
|
27912
27936
|
let startTextShape,
|
|
27913
27937
|
startLen = 0;
|
|
27914
27938
|
if (startText && startText.visible) {
|
|
27915
|
-
startTextShape = graphicCreator
|
|
27939
|
+
startTextShape = graphicCreator.text(Object.assign({
|
|
27916
27940
|
x: isHorizontal ? 0 : railWidth / 2,
|
|
27917
27941
|
y: isHorizontal ? railHeight / 2 : 0,
|
|
27918
27942
|
textAlign: isHorizontal ? "start" : "center",
|
|
@@ -27923,19 +27947,19 @@
|
|
|
27923
27947
|
const space = isValid$1(startText.space) ? startText.space : 0;
|
|
27924
27948
|
startLen += (isHorizontal ? startTextShape.AABBBounds.width() : startTextShape.AABBBounds.height()) + space;
|
|
27925
27949
|
}
|
|
27926
|
-
const mainContainer = graphicCreator
|
|
27950
|
+
const mainContainer = graphicCreator.group({
|
|
27927
27951
|
x: isHorizontal ? startLen : 0,
|
|
27928
27952
|
y: isHorizontal ? 0 : startLen
|
|
27929
27953
|
});
|
|
27930
27954
|
innerView.add(mainContainer);
|
|
27931
|
-
const railContainer = graphicCreator
|
|
27955
|
+
const railContainer = graphicCreator.group({
|
|
27932
27956
|
x: 0,
|
|
27933
27957
|
y: 0
|
|
27934
27958
|
});
|
|
27935
27959
|
let endTextShape;
|
|
27936
27960
|
if (railContainer.name = SLIDER_ELEMENT_NAME.railContainer, this._railContainer = railContainer, mainContainer.add(railContainer), this._renderRail(railContainer), startLen += isHorizontal ? railWidth : railHeight, endText && endText.visible) {
|
|
27937
27961
|
const space = isValid$1(endText.space) ? endText.space : 0;
|
|
27938
|
-
endTextShape = graphicCreator
|
|
27962
|
+
endTextShape = graphicCreator.text(Object.assign({
|
|
27939
27963
|
x: isHorizontal ? startLen + space : railWidth / 2,
|
|
27940
27964
|
y: isHorizontal ? railHeight / 2 : startLen + space,
|
|
27941
27965
|
textAlign: isHorizontal ? "start" : "center",
|
|
@@ -27955,7 +27979,7 @@
|
|
|
27955
27979
|
} = this.attribute;
|
|
27956
27980
|
let cursor = "default";
|
|
27957
27981
|
!1 !== slidable && (cursor = "pointer");
|
|
27958
|
-
const railShape = graphicCreator
|
|
27982
|
+
const railShape = graphicCreator.rect(Object.assign({
|
|
27959
27983
|
x: 0,
|
|
27960
27984
|
y: 0,
|
|
27961
27985
|
width: railWidth,
|
|
@@ -28031,7 +28055,7 @@
|
|
|
28031
28055
|
const isHorizontal = this._isHorizontal,
|
|
28032
28056
|
railLen = isHorizontal ? railWidth : railHeight;
|
|
28033
28057
|
range || (startValue = min);
|
|
28034
|
-
const trackContainer = graphicCreator
|
|
28058
|
+
const trackContainer = graphicCreator.group({
|
|
28035
28059
|
x: 0,
|
|
28036
28060
|
y: 0,
|
|
28037
28061
|
width: railWidth,
|
|
@@ -28046,7 +28070,7 @@
|
|
|
28046
28070
|
cursor = !1 === slidable ? "default" : !1 === range || !1 === draggableTrack ? "pointer" : getDefaultCursor(isHorizontal);
|
|
28047
28071
|
const trackWidth = max === min ? railLen : (endValue - startValue) / (max - min) * railLen,
|
|
28048
28072
|
startPos = max === min ? 0 : (startValue - min) / (max - min) * railLen,
|
|
28049
|
-
track = graphicCreator
|
|
28073
|
+
track = graphicCreator.rect(Object.assign({
|
|
28050
28074
|
x: isHorizontal ? startPos : 0,
|
|
28051
28075
|
y: isHorizontal ? 0 : startPos,
|
|
28052
28076
|
width: isHorizontal ? trackWidth : railWidth,
|
|
@@ -28056,7 +28080,7 @@
|
|
|
28056
28080
|
track.name = SLIDER_ELEMENT_NAME.track, this._track = track, trackContainer.add(track), container.add(trackContainer);
|
|
28057
28081
|
}
|
|
28058
28082
|
_renderHandler(style) {
|
|
28059
|
-
return graphicCreator
|
|
28083
|
+
return graphicCreator.symbol(style);
|
|
28060
28084
|
}
|
|
28061
28085
|
_renderHandlerText(value, position) {
|
|
28062
28086
|
var _a, _b, _c;
|
|
@@ -28080,7 +28104,7 @@
|
|
|
28080
28104
|
cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
|
|
28081
28105
|
};
|
|
28082
28106
|
isHorizontal ? "top" === align ? (textStyle.textBaseline = "bottom", textStyle.textAlign = "center", textStyle.x = handlerStart, textStyle.y = (railHeight - handlerSize) / 2 - textSpace) : (textStyle.textBaseline = "top", textStyle.textAlign = "center", textStyle.x = handlerStart, textStyle.y = (railHeight + handlerSize) / 2 + textSpace) : "left" === align ? (textStyle.textBaseline = "middle", textStyle.textAlign = "end", textStyle.x = (railWidth - handlerSize) / 2 - textSpace, textStyle.y = handlerStart) : (textStyle.textBaseline = "middle", textStyle.textAlign = "start", textStyle.x = (railWidth + handlerSize) / 2 + textSpace, textStyle.y = handlerStart);
|
|
28083
|
-
return graphicCreator
|
|
28107
|
+
return graphicCreator.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
|
|
28084
28108
|
}
|
|
28085
28109
|
_bindEvents() {
|
|
28086
28110
|
if (this.attribute.disableTriggerEvent) return;
|
|
@@ -28423,7 +28447,7 @@
|
|
|
28423
28447
|
sizeBackground: sizeBackground,
|
|
28424
28448
|
disableTriggerEvent: disableTriggerEvent
|
|
28425
28449
|
} = this.attribute,
|
|
28426
|
-
mainContainer = graphicCreator
|
|
28450
|
+
mainContainer = graphicCreator.group({
|
|
28427
28451
|
x: 0,
|
|
28428
28452
|
y: 0
|
|
28429
28453
|
});
|
|
@@ -28461,7 +28485,7 @@
|
|
|
28461
28485
|
let path,
|
|
28462
28486
|
start = 0;
|
|
28463
28487
|
"horizontal" === layout ? "top" === align ? (path = `M0,0L${railWidth},0L${railWidth},12Z`, start = railHeight) : (path = `M0,12L${railWidth},12L${railWidth},0Z`, slider.setAttribute("y", 12)) : "left" === align ? path = `M${railWidth},0L${railWidth},0L${railWidth + 12},${railHeight}L${railWidth},${railHeight}Z` : (path = `M0,${railHeight}L12,${railHeight}L12,0Z`, slider.setAttribute("x", 12));
|
|
28464
|
-
const background = graphicCreator
|
|
28488
|
+
const background = graphicCreator.path(Object.assign(Object.assign({
|
|
28465
28489
|
x: 0,
|
|
28466
28490
|
y: start,
|
|
28467
28491
|
path: path
|
|
@@ -29391,25 +29415,6 @@
|
|
|
29391
29415
|
|
|
29392
29416
|
const DEFAULT_CONTINUOUS_TICK_COUNT$1 = 5;
|
|
29393
29417
|
|
|
29394
|
-
class GraphicCreator {
|
|
29395
|
-
constructor() {
|
|
29396
|
-
this.store = new Map();
|
|
29397
|
-
}
|
|
29398
|
-
RegisterGraphicCreator(name, cb) {
|
|
29399
|
-
this.store.set(name, cb), this[name] = cb;
|
|
29400
|
-
}
|
|
29401
|
-
CreateGraphic(name, params) {
|
|
29402
|
-
const cb = this.store.get(name);
|
|
29403
|
-
return cb ? cb(params) : null;
|
|
29404
|
-
}
|
|
29405
|
-
}
|
|
29406
|
-
const graphicCreator = new GraphicCreator();
|
|
29407
|
-
|
|
29408
|
-
let text;
|
|
29409
|
-
function getTextBounds(params) {
|
|
29410
|
-
return text || (text = graphicCreator.CreateGraphic("text", {})), text.setAttributes(params), text.AABBBounds;
|
|
29411
|
-
}
|
|
29412
|
-
|
|
29413
29418
|
const initTextMeasure$1 = (textSpec, option, useNaiveCanvas, defaultFontParams) => new TextMeasure(Object.assign({
|
|
29414
29419
|
defaultFontParams: Object.assign({
|
|
29415
29420
|
fontFamily: "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",
|
|
@@ -42269,7 +42274,7 @@
|
|
|
42269
42274
|
fontFamily: DefaultTextStyle.fontFamily,
|
|
42270
42275
|
fontSize: DefaultTextStyle.fontSize
|
|
42271
42276
|
},
|
|
42272
|
-
getTextBounds: useNaiveCanvas ? undefined : getTextBounds
|
|
42277
|
+
getTextBounds: useNaiveCanvas ? undefined : getTextBounds,
|
|
42273
42278
|
specialCharSet: `{}()//&-/: .,@%'"~…${TextMeasure.ALPHABET_CHAR_SET}${TextMeasure.ALPHABET_CHAR_SET.toUpperCase()}0123456789`,
|
|
42274
42279
|
...(option ?? {})
|
|
42275
42280
|
}, textSpec);
|
|
@@ -50300,7 +50305,7 @@
|
|
|
50300
50305
|
return TABLE_EVENT_TYPE;
|
|
50301
50306
|
}
|
|
50302
50307
|
options;
|
|
50303
|
-
version = "0.17.
|
|
50308
|
+
version = "0.17.10-alpha.0";
|
|
50304
50309
|
pagination;
|
|
50305
50310
|
id = `VTable${Date.now()}`;
|
|
50306
50311
|
headerStyleCache;
|
|
@@ -61273,7 +61278,7 @@
|
|
|
61273
61278
|
return new Tag$1(params ? params.attribute : {});
|
|
61274
61279
|
}
|
|
61275
61280
|
|
|
61276
|
-
const version = "0.17.
|
|
61281
|
+
const version = "0.17.10-alpha.0";
|
|
61277
61282
|
function getIcons() {
|
|
61278
61283
|
return get$2();
|
|
61279
61284
|
}
|