@visactor/vtable 0.17.10-alpha.3 → 0.17.10-alpha.5
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 +2 -2
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/style.js +2 -1
- package/cjs/core/tableHelper.d.ts +1 -1
- package/cjs/core/tableHelper.js +1 -2
- 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 +2 -1
- package/cjs/event/pivot-chart/axis-click.js.map +1 -1
- package/cjs/event/scroll.js +0 -1
- 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 +2 -2
- 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 +6 -3
- package/cjs/scenegraph/group-creater/cell-helper.js +22 -21
- 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 +3 -2
- package/cjs/scenegraph/group-creater/cell-type/text-cell.js +7 -3
- 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 +11 -7
- 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/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/ts-types/table-engine.d.ts +5 -1
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/dist/vtable.js +168 -153
- package/dist/vtable.min.js +2 -2
- package/es/components/axis/label-overlap.js.map +1 -1
- package/es/core/BaseTable.js +2 -2
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/style.js +2 -1
- package/es/core/tableHelper.d.ts +1 -1
- package/es/core/tableHelper.js +1 -2
- 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 +2 -1
- package/es/event/pivot-chart/axis-click.js.map +1 -1
- package/es/event/scroll.js +1 -2
- 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 +2 -2
- 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 +6 -3
- package/es/scenegraph/group-creater/cell-helper.js +21 -21
- 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 +3 -2
- package/es/scenegraph/group-creater/cell-type/text-cell.js +7 -3
- 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 +11 -6
- 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/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/ts-types/table-engine.d.ts +5 -1
- package/es/ts-types/table-engine.js.map +1 -1
- package/package.json +4 -5
- package/cjs/vrender.d.ts +0 -3
- package/cjs/vrender.js +0 -34
- package/cjs/vrender.js.map +0 -1
- package/es/vrender.d.ts +0 -3
- package/es/vrender.js +0 -18
- package/es/vrender.js.map +0 -1
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$2 = 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$2)), __metadata$S("design:paramtypes", [Object])], DefaultGraphicService);
|
|
12234
12234
|
|
|
12235
|
-
class GraphicCreator {
|
|
12235
|
+
let GraphicCreator$1 = 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 = new GraphicCreator();
|
|
12246
|
+
};
|
|
12247
|
+
const graphicCreator$1 = new GraphicCreator$1();
|
|
12248
12248
|
|
|
12249
|
-
let text;
|
|
12250
|
-
function getTextBounds(params) {
|
|
12251
|
-
return text || (text = graphicCreator.CreateGraphic("text", {})), text.setAttributes(params), text.AABBBounds;
|
|
12249
|
+
let text$1;
|
|
12250
|
+
function getTextBounds$1(params) {
|
|
12251
|
+
return text$1 || (text$1 = graphicCreator$1.CreateGraphic("text", {})), text$1.setAttributes(params), text$1.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$2).toConstantValue(graphicCreator$1);
|
|
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.CreateGraphic("group", {}), group.id = "_interactive_group", interactiveLayer.add(group)), null !== (_a = group.shadowRoot) && void 0 !== _a ? _a : group.attachShadow();
|
|
15261
|
+
return group || (group = graphicCreator$1.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.RegisterGraphicCreator("arc", createArc);
|
|
17802
|
+
graphicCreator$1.RegisterGraphicCreator("arc", createArc);
|
|
17803
17803
|
}
|
|
17804
17804
|
|
|
17805
17805
|
function registerArc3dGraphic() {
|
|
17806
|
-
graphicCreator.RegisterGraphicCreator("arc3d", createArc3d);
|
|
17806
|
+
graphicCreator$1.RegisterGraphicCreator("arc3d", createArc3d);
|
|
17807
17807
|
}
|
|
17808
17808
|
|
|
17809
17809
|
function registerAreaGraphic() {
|
|
17810
|
-
graphicCreator.RegisterGraphicCreator("area", createArea);
|
|
17810
|
+
graphicCreator$1.RegisterGraphicCreator("area", createArea);
|
|
17811
17811
|
}
|
|
17812
17812
|
|
|
17813
17813
|
function registerCircleGraphic() {
|
|
17814
|
-
graphicCreator.RegisterGraphicCreator("circle", createCircle);
|
|
17814
|
+
graphicCreator$1.RegisterGraphicCreator("circle", createCircle);
|
|
17815
17815
|
}
|
|
17816
17816
|
|
|
17817
17817
|
function registerGlyphGraphic() {
|
|
17818
|
-
graphicCreator.RegisterGraphicCreator("glyph", createGlyph);
|
|
17818
|
+
graphicCreator$1.RegisterGraphicCreator("glyph", createGlyph);
|
|
17819
17819
|
}
|
|
17820
17820
|
|
|
17821
17821
|
function registerGroupGraphic() {
|
|
17822
|
-
graphicCreator.RegisterGraphicCreator("group", createGroup);
|
|
17822
|
+
graphicCreator$1.RegisterGraphicCreator("group", createGroup);
|
|
17823
17823
|
}
|
|
17824
17824
|
|
|
17825
17825
|
function registerImageGraphic() {
|
|
17826
|
-
graphicCreator.RegisterGraphicCreator("image", createImage);
|
|
17826
|
+
graphicCreator$1.RegisterGraphicCreator("image", createImage);
|
|
17827
17827
|
}
|
|
17828
17828
|
|
|
17829
17829
|
function registerLineGraphic() {
|
|
17830
|
-
graphicCreator.RegisterGraphicCreator("line", createLine);
|
|
17830
|
+
graphicCreator$1.RegisterGraphicCreator("line", createLine);
|
|
17831
17831
|
}
|
|
17832
17832
|
|
|
17833
17833
|
function registerPathGraphic() {
|
|
17834
|
-
graphicCreator.RegisterGraphicCreator("path", createPath);
|
|
17834
|
+
graphicCreator$1.RegisterGraphicCreator("path", createPath);
|
|
17835
17835
|
}
|
|
17836
17836
|
|
|
17837
17837
|
function registerPolygonGraphic() {
|
|
17838
|
-
graphicCreator.RegisterGraphicCreator("polygon", createPolygon);
|
|
17838
|
+
graphicCreator$1.RegisterGraphicCreator("polygon", createPolygon);
|
|
17839
17839
|
}
|
|
17840
17840
|
|
|
17841
17841
|
function registerPyramid3dGraphic() {
|
|
17842
|
-
graphicCreator.RegisterGraphicCreator("pyramid3d", createPyramid3d);
|
|
17842
|
+
graphicCreator$1.RegisterGraphicCreator("pyramid3d", createPyramid3d);
|
|
17843
17843
|
}
|
|
17844
17844
|
|
|
17845
17845
|
function registerRectGraphic() {
|
|
17846
|
-
graphicCreator.RegisterGraphicCreator("rect", createRect);
|
|
17846
|
+
graphicCreator$1.RegisterGraphicCreator("rect", createRect);
|
|
17847
17847
|
}
|
|
17848
17848
|
|
|
17849
17849
|
function registerRect3dGraphic() {
|
|
17850
|
-
graphicCreator.RegisterGraphicCreator("rect3d", createRect3d);
|
|
17850
|
+
graphicCreator$1.RegisterGraphicCreator("rect3d", createRect3d);
|
|
17851
17851
|
}
|
|
17852
17852
|
|
|
17853
17853
|
function registerRichtextGraphic() {
|
|
17854
|
-
graphicCreator.RegisterGraphicCreator("richtext", createRichText);
|
|
17854
|
+
graphicCreator$1.RegisterGraphicCreator("richtext", createRichText);
|
|
17855
17855
|
}
|
|
17856
17856
|
|
|
17857
17857
|
function registerSymbolGraphic() {
|
|
17858
|
-
graphicCreator.RegisterGraphicCreator("symbol", createSymbol);
|
|
17858
|
+
graphicCreator$1.RegisterGraphicCreator("symbol", createSymbol);
|
|
17859
17859
|
}
|
|
17860
17860
|
|
|
17861
17861
|
function registerTextGraphic() {
|
|
17862
|
-
graphicCreator.RegisterGraphicCreator("text", createText);
|
|
17862
|
+
graphicCreator$1.RegisterGraphicCreator("text", createText);
|
|
17863
17863
|
}
|
|
17864
17864
|
|
|
17865
17865
|
function registerShadowRootGraphic() {
|
|
17866
|
-
graphicCreator.RegisterGraphicCreator("shadowRoot", createShadowRoot);
|
|
17866
|
+
graphicCreator$1.RegisterGraphicCreator("shadowRoot", createShadowRoot);
|
|
17867
17867
|
}
|
|
17868
17868
|
|
|
17869
17869
|
function registerWrapTextGraphic() {
|
|
17870
|
-
graphicCreator.RegisterGraphicCreator("wrapText", createWrapText);
|
|
17870
|
+
graphicCreator$1.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.arc(params ? params.attribute : {});
|
|
17921
|
+
return graphicCreator$1.arc(params ? params.attribute : {});
|
|
17922
17922
|
}
|
|
17923
17923
|
function VArea(params) {
|
|
17924
|
-
return graphicCreator.area(params ? params.attribute : {});
|
|
17924
|
+
return graphicCreator$1.area(params ? params.attribute : {});
|
|
17925
17925
|
}
|
|
17926
17926
|
function VCircle(params) {
|
|
17927
|
-
return graphicCreator.circle(params ? params.attribute : {});
|
|
17927
|
+
return graphicCreator$1.circle(params ? params.attribute : {});
|
|
17928
17928
|
}
|
|
17929
17929
|
function VGroup(params) {
|
|
17930
|
-
return graphicCreator.group(params ? params.attribute : {});
|
|
17930
|
+
return graphicCreator$1.group(params ? params.attribute : {});
|
|
17931
17931
|
}
|
|
17932
17932
|
function VGlyph(params) {
|
|
17933
|
-
return graphicCreator.glyph(params ? params.attribute : {});
|
|
17933
|
+
return graphicCreator$1.glyph(params ? params.attribute : {});
|
|
17934
17934
|
}
|
|
17935
17935
|
function VImage(params) {
|
|
17936
|
-
return graphicCreator.image(params ? params.attribute : {});
|
|
17936
|
+
return graphicCreator$1.image(params ? params.attribute : {});
|
|
17937
17937
|
}
|
|
17938
17938
|
function VLine(params) {
|
|
17939
|
-
return graphicCreator.line(params ? params.attribute : {});
|
|
17939
|
+
return graphicCreator$1.line(params ? params.attribute : {});
|
|
17940
17940
|
}
|
|
17941
17941
|
function VPath(params) {
|
|
17942
|
-
return graphicCreator.path(params ? params.attribute : {});
|
|
17942
|
+
return graphicCreator$1.path(params ? params.attribute : {});
|
|
17943
17943
|
}
|
|
17944
17944
|
function VPolygon(params) {
|
|
17945
|
-
return graphicCreator.polygon(params ? params.attribute : {});
|
|
17945
|
+
return graphicCreator$1.polygon(params ? params.attribute : {});
|
|
17946
17946
|
}
|
|
17947
17947
|
function VRect(params) {
|
|
17948
|
-
return graphicCreator.rect(params ? params.attribute : {});
|
|
17948
|
+
return graphicCreator$1.rect(params ? params.attribute : {});
|
|
17949
17949
|
}
|
|
17950
17950
|
function VSymbol(params) {
|
|
17951
|
-
return graphicCreator.symbol(params ? params.attribute : {});
|
|
17951
|
+
return graphicCreator$1.symbol(params ? params.attribute : {});
|
|
17952
17952
|
}
|
|
17953
17953
|
function VText(params) {
|
|
17954
|
-
return graphicCreator.text(params ? params.attribute : {});
|
|
17954
|
+
return graphicCreator$1.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[type]);
|
|
17979
|
+
isString$2(type) && (c = graphicCreator$1[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,31 +20958,7 @@
|
|
|
20958
20958
|
loaded || (loaded = !0, registerWrapTextGraphic());
|
|
20959
20959
|
}
|
|
20960
20960
|
|
|
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();
|
|
20961
|
+
preLoadAllModule(), isBrowserEnv() ? loadBrowserEnv(container) : isNodeEnv() && loadNodeEnv(container), registerArc(), registerArc3d(), registerArea(), registerCircle(), registerGlyph(), registerGroup(), registerImage(), registerLine(), registerPath(), registerPolygon(), registerPyramid3d(), registerRect(), registerRect3d(), registerRichtext(), registerShadowRoot(), registerSymbol(), registerText(), registerWrapText();
|
|
20986
20962
|
|
|
20987
20963
|
var InteractionState;
|
|
20988
20964
|
(function (InteractionState) {
|
|
@@ -24302,7 +24278,7 @@
|
|
|
24302
24278
|
width: 0,
|
|
24303
24279
|
height: 0
|
|
24304
24280
|
};
|
|
24305
|
-
const bounds = getTextBounds({
|
|
24281
|
+
const bounds = getTextBounds$1({
|
|
24306
24282
|
text: text,
|
|
24307
24283
|
fontFamily: textSpec.fontFamily,
|
|
24308
24284
|
fontSize: textSpec.fontSize || 12,
|
|
@@ -24950,7 +24926,7 @@
|
|
|
24950
24926
|
}
|
|
24951
24927
|
points.forEach((point, index) => {
|
|
24952
24928
|
var _a, _b;
|
|
24953
|
-
const line = graphicCreator.line(Object.assign(Object.assign({
|
|
24929
|
+
const line = graphicCreator$1.line(Object.assign(Object.assign({
|
|
24954
24930
|
points: point
|
|
24955
24931
|
}, isArray$1(lineStyle) ? null !== (_a = lineStyle[index]) && void 0 !== _a ? _a : lineStyle[lineStyle.length - 1] : lineStyle), {
|
|
24956
24932
|
fill: !1
|
|
@@ -24958,7 +24934,7 @@
|
|
|
24958
24934
|
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);
|
|
24959
24935
|
});
|
|
24960
24936
|
} else {
|
|
24961
|
-
const line = graphicCreator.polygon(Object.assign(Object.assign({
|
|
24937
|
+
const line = graphicCreator$1.polygon(Object.assign(Object.assign({
|
|
24962
24938
|
points: this._clipPoints(this.attribute.points)
|
|
24963
24939
|
}, array$1(lineStyle)[0]), {
|
|
24964
24940
|
fill: !1,
|
|
@@ -24997,7 +24973,7 @@
|
|
|
24997
24973
|
}, rotate = startAngle + Math.PI / 2) : (position = {
|
|
24998
24974
|
x: end.x + (isValidNumber$1(endAngle) ? refX * Math.cos(endAngle) + refY * Math.cos(endAngle - Math.PI / 2) : 0),
|
|
24999
24975
|
y: end.y + (isValidNumber$1(endAngle) ? refX * Math.sin(endAngle) + refY * Math.sin(endAngle - Math.PI / 2) : 0)
|
|
25000
|
-
}, rotate = endAngle + Math.PI / 2), symbol = graphicCreator.symbol(Object.assign(Object.assign(Object.assign({}, position), {
|
|
24976
|
+
}, rotate = endAngle + Math.PI / 2), symbol = graphicCreator$1.symbol(Object.assign(Object.assign(Object.assign({}, position), {
|
|
25001
24977
|
symbolType: symbolType,
|
|
25002
24978
|
size: size,
|
|
25003
24979
|
angle: autoRotate ? rotate + refAngle : 0,
|
|
@@ -25190,14 +25166,14 @@
|
|
|
25190
25166
|
getBoundsWithoutRender(attributes) {
|
|
25191
25167
|
const currentAttribute = cloneDeep(this.attribute);
|
|
25192
25168
|
merge(this.attribute, attributes);
|
|
25193
|
-
const offscreenGroup = graphicCreator.group({
|
|
25169
|
+
const offscreenGroup = graphicCreator$1.group({
|
|
25194
25170
|
x: this.attribute.x,
|
|
25195
25171
|
y: this.attribute.y
|
|
25196
25172
|
});
|
|
25197
25173
|
return this.add(offscreenGroup), this._renderInner(offscreenGroup), this.removeChild(offscreenGroup), this.attribute = currentAttribute, offscreenGroup.AABBBounds;
|
|
25198
25174
|
}
|
|
25199
25175
|
render() {
|
|
25200
|
-
this.removeAllChild(), this._prevInnerView = this._innerView, this._innerView = graphicCreator.group({
|
|
25176
|
+
this.removeAllChild(), this._prevInnerView = this._innerView, this._innerView = graphicCreator$1.group({
|
|
25201
25177
|
x: 0,
|
|
25202
25178
|
y: 0,
|
|
25203
25179
|
pickable: !1
|
|
@@ -25219,13 +25195,13 @@
|
|
|
25219
25195
|
line: line,
|
|
25220
25196
|
items: items
|
|
25221
25197
|
} = this.attribute,
|
|
25222
|
-
axisContainer = graphicCreator.group({
|
|
25198
|
+
axisContainer = graphicCreator$1.group({
|
|
25223
25199
|
x: 0,
|
|
25224
25200
|
y: 0,
|
|
25225
25201
|
zIndex: 1
|
|
25226
25202
|
});
|
|
25227
25203
|
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)) {
|
|
25228
|
-
const labelGroup = graphicCreator.group({
|
|
25204
|
+
const labelGroup = graphicCreator$1.group({
|
|
25229
25205
|
x: 0,
|
|
25230
25206
|
y: 0,
|
|
25231
25207
|
pickable: !1
|
|
@@ -25258,14 +25234,14 @@
|
|
|
25258
25234
|
}
|
|
25259
25235
|
renderTicks(container) {
|
|
25260
25236
|
const tickLineItems = this.getTickLineItems(),
|
|
25261
|
-
tickLineGroup = graphicCreator.group({
|
|
25237
|
+
tickLineGroup = graphicCreator$1.group({
|
|
25262
25238
|
x: 0,
|
|
25263
25239
|
y: 0,
|
|
25264
25240
|
pickable: !1
|
|
25265
25241
|
});
|
|
25266
25242
|
tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup), tickLineItems.forEach((item, index) => {
|
|
25267
25243
|
var _a;
|
|
25268
|
-
const line = graphicCreator.line(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
|
|
25244
|
+
const line = graphicCreator$1.line(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
|
|
25269
25245
|
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 {
|
|
25270
25246
|
const data = this.data[index],
|
|
25271
25247
|
tickLineState = merge({}, DEFAULT_STATES$2, this.attribute.tick.state);
|
|
@@ -25281,7 +25257,7 @@
|
|
|
25281
25257
|
if (subTick && subTick.visible) {
|
|
25282
25258
|
const subTickLineItems = this.getSubTickLineItems();
|
|
25283
25259
|
subTickLineItems.length && subTickLineItems.forEach((item, index) => {
|
|
25284
|
-
const line = graphicCreator.line(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
|
|
25260
|
+
const line = graphicCreator$1.line(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
|
|
25285
25261
|
if (line.name = AXIS_ELEMENT_NAME.subTick, line.id = this._getNodeId(`${index}`), isEmpty(subTick.state)) line.states = DEFAULT_STATES$2;else {
|
|
25286
25262
|
const subTickLineState = merge({}, DEFAULT_STATES$2, subTick.state);
|
|
25287
25263
|
Object.keys(subTickLineState).forEach(key => {
|
|
@@ -25298,7 +25274,7 @@
|
|
|
25298
25274
|
} = this.attribute.label;
|
|
25299
25275
|
dataFilter && isFunction$1(dataFilter) && (items = dataFilter(items, layer));
|
|
25300
25276
|
const data = this._transformItems(items),
|
|
25301
|
-
labelGroup = graphicCreator.group({
|
|
25277
|
+
labelGroup = graphicCreator$1.group({
|
|
25302
25278
|
x: 0,
|
|
25303
25279
|
y: 0,
|
|
25304
25280
|
pickable: !1
|
|
@@ -25307,9 +25283,9 @@
|
|
|
25307
25283
|
var _a, _b, _c;
|
|
25308
25284
|
const labelStyle = this._getLabelAttribute(item, index, data, layer);
|
|
25309
25285
|
let text;
|
|
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({
|
|
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$1.richtext(labelStyle)) : "html" === labelStyle.type ? (labelStyle.textConfig = [], labelStyle.html = Object.assign(Object.assign({
|
|
25311
25287
|
dom: labelStyle.text
|
|
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 {
|
|
25288
|
+
}, DEFAULT_HTML_TEXT_SPEC), labelStyle), text = graphicCreator$1.richtext(labelStyle)) : text = graphicCreator$1.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 {
|
|
25313
25289
|
const labelState = merge({}, DEFAULT_STATES$2, this.attribute.label.state);
|
|
25314
25290
|
Object.keys(labelState).forEach(key => {
|
|
25315
25291
|
isFunction$1(labelState[key]) && (labelState[key] = labelState[key](item, index, data, layer));
|
|
@@ -25765,7 +25741,7 @@
|
|
|
25765
25741
|
if (panel && panel.visible) {
|
|
25766
25742
|
const axisContainer = this.axisContainer,
|
|
25767
25743
|
axisContainerBounds = axisContainer.AABBBounds,
|
|
25768
|
-
bgRect = graphicCreator.rect(Object.assign({
|
|
25744
|
+
bgRect = graphicCreator$1.rect(Object.assign({
|
|
25769
25745
|
x: axisContainerBounds.x1,
|
|
25770
25746
|
y: axisContainerBounds.y1,
|
|
25771
25747
|
width: axisContainerBounds.width(),
|
|
@@ -26025,7 +26001,7 @@
|
|
|
26025
26001
|
const minSize = this._getAxisLabelLimitLength(verticalMinSize, layerCount);
|
|
26026
26002
|
let x, y;
|
|
26027
26003
|
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);
|
|
26028
|
-
const bgRect = graphicCreator.rect({
|
|
26004
|
+
const bgRect = graphicCreator$1.rect({
|
|
26029
26005
|
x: x,
|
|
26030
26006
|
y: y,
|
|
26031
26007
|
width: isHorizontal ? axisLabelContainerBounds.width() : axisLabelContainerSize,
|
|
@@ -26130,7 +26106,7 @@
|
|
|
26130
26106
|
this._current = defaultCurrent;
|
|
26131
26107
|
const parsedPadding = normalizePadding(padding),
|
|
26132
26108
|
isHorizontal = "horizontal" === layout,
|
|
26133
|
-
container = graphicCreator.group({
|
|
26109
|
+
container = graphicCreator$1.group({
|
|
26134
26110
|
x: 0,
|
|
26135
26111
|
y: 0
|
|
26136
26112
|
}),
|
|
@@ -26143,7 +26119,7 @@
|
|
|
26143
26119
|
nextShape: nextShape
|
|
26144
26120
|
} = handler;
|
|
26145
26121
|
preShape || (preShape = isHorizontal ? "triangleLeft" : "triangleUp"), nextShape || (nextShape = isHorizontal ? "triangleRight" : "triangleDown");
|
|
26146
|
-
const preHandler = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26122
|
+
const preHandler = graphicCreator$1.symbol(Object.assign(Object.assign({
|
|
26147
26123
|
strokeBoundsBuffer: 0,
|
|
26148
26124
|
pickMode: "imprecise"
|
|
26149
26125
|
}, handlerStyle), {
|
|
@@ -26162,7 +26138,7 @@
|
|
|
26162
26138
|
}, textStyle)),
|
|
26163
26139
|
handlerSizeX = isNumber$3(handlerSize) ? handlerSize : handlerSize[0],
|
|
26164
26140
|
handlerSizeY = isNumber$3(handlerSize) ? handlerSize : handlerSize[1],
|
|
26165
|
-
text = graphicCreator.text(Object.assign({
|
|
26141
|
+
text = graphicCreator$1.text(Object.assign({
|
|
26166
26142
|
x: isHorizontal ? handlerSizeX / 2 + handlerSpace + maxTextWidth / 2 : 0,
|
|
26167
26143
|
y: isHorizontal ? 0 : handlerSizeY / 2 + handlerSpace + maxTextHeight / 2,
|
|
26168
26144
|
text: `${defaultCurrent}/${total}`,
|
|
@@ -26171,7 +26147,7 @@
|
|
|
26171
26147
|
lineHeight: null == textStyle ? void 0 : textStyle.fontSize
|
|
26172
26148
|
}, textStyle));
|
|
26173
26149
|
this.text = text, container.add(text);
|
|
26174
|
-
const nextHandler = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26150
|
+
const nextHandler = graphicCreator$1.symbol(Object.assign(Object.assign({
|
|
26175
26151
|
strokeBoundsBuffer: 0,
|
|
26176
26152
|
pickMode: "imprecise"
|
|
26177
26153
|
}, handlerStyle), {
|
|
@@ -26234,7 +26210,7 @@
|
|
|
26234
26210
|
padding = 0
|
|
26235
26211
|
} = this.attribute,
|
|
26236
26212
|
parsedPadding = normalizePadding(padding),
|
|
26237
|
-
innerView = graphicCreator.group({
|
|
26213
|
+
innerView = graphicCreator$1.group({
|
|
26238
26214
|
x: parsedPadding[3],
|
|
26239
26215
|
y: parsedPadding[0],
|
|
26240
26216
|
pickable: interactive,
|
|
@@ -26381,7 +26357,7 @@
|
|
|
26381
26357
|
if (!1 === item.visible || isEmpty(items)) return;
|
|
26382
26358
|
let legendItems = items;
|
|
26383
26359
|
reversed && (legendItems = null == items ? void 0 : items.reverse());
|
|
26384
|
-
const itemsContainer = graphicCreator.group({
|
|
26360
|
+
const itemsContainer = graphicCreator$1.group({
|
|
26385
26361
|
x: 0,
|
|
26386
26362
|
y: 0
|
|
26387
26363
|
});
|
|
@@ -26458,15 +26434,15 @@
|
|
|
26458
26434
|
backgroundStyle = this._handleStyle(background, item, isSelected, index, items),
|
|
26459
26435
|
parsedPadding = normalizePadding(padding);
|
|
26460
26436
|
let itemGroup;
|
|
26461
|
-
!1 === background.visible ? (itemGroup = graphicCreator.group({
|
|
26437
|
+
!1 === background.visible ? (itemGroup = graphicCreator$1.group({
|
|
26462
26438
|
x: 0,
|
|
26463
26439
|
y: 0,
|
|
26464
26440
|
cursor: null === (_a = backgroundStyle.style) || void 0 === _a ? void 0 : _a.cursor
|
|
26465
|
-
}), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator.group(Object.assign({
|
|
26441
|
+
}), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator$1.group(Object.assign({
|
|
26466
26442
|
x: 0,
|
|
26467
26443
|
y: 0
|
|
26468
26444
|
}, 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);
|
|
26469
|
-
const innerGroup = graphicCreator.group({
|
|
26445
|
+
const innerGroup = graphicCreator$1.group({
|
|
26470
26446
|
x: 0,
|
|
26471
26447
|
y: 0,
|
|
26472
26448
|
pickable: !1
|
|
@@ -26479,7 +26455,7 @@
|
|
|
26479
26455
|
if (shapeAttr && !1 !== shapeAttr.visible) {
|
|
26480
26456
|
const s = get$5(shapeStyle, "style.size", DEFAULT_SHAPE_SIZE);
|
|
26481
26457
|
shapeSize = isArray$1(s) ? s[0] || 0 : s, shapeSpace = get$5(shapeAttr, "space", DEFAULT_SHAPE_SPACE);
|
|
26482
|
-
const itemShape = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26458
|
+
const itemShape = graphicCreator$1.symbol(Object.assign(Object.assign({
|
|
26483
26459
|
x: 0,
|
|
26484
26460
|
y: 0,
|
|
26485
26461
|
symbolType: "circle",
|
|
@@ -26493,7 +26469,7 @@
|
|
|
26493
26469
|
let focusSpace = 0;
|
|
26494
26470
|
if (focus) {
|
|
26495
26471
|
const focusSize = get$5(focusIconStyle, "size", DEFAULT_SHAPE_SIZE);
|
|
26496
|
-
focusShape = graphicCreator.symbol(Object.assign(Object.assign({
|
|
26472
|
+
focusShape = graphicCreator$1.symbol(Object.assign(Object.assign({
|
|
26497
26473
|
x: 0,
|
|
26498
26474
|
y: -focusSize / 2 - 1,
|
|
26499
26475
|
strokeBoundsBuffer: 0
|
|
@@ -26503,7 +26479,7 @@
|
|
|
26503
26479
|
boundsPadding: parsedPadding
|
|
26504
26480
|
})), this._appendDataToShape(focusShape, LEGEND_ELEMENT_NAME.focus, item, itemGroup), focusSpace = focusSize;
|
|
26505
26481
|
}
|
|
26506
|
-
const labelShape = graphicCreator.text(Object.assign(Object.assign({
|
|
26482
|
+
const labelShape = graphicCreator$1.text(Object.assign(Object.assign({
|
|
26507
26483
|
x: shapeSize / 2 + shapeSpace,
|
|
26508
26484
|
y: 0,
|
|
26509
26485
|
textAlign: "start",
|
|
@@ -26516,7 +26492,7 @@
|
|
|
26516
26492
|
const labelSpace = get$5(labelAttr, "space", DEFAULT_LABEL_SPACE);
|
|
26517
26493
|
if (isValid$1(value)) {
|
|
26518
26494
|
const valueSpace = get$5(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
|
|
26519
|
-
valueShape = graphicCreator.text(Object.assign(Object.assign({
|
|
26495
|
+
valueShape = graphicCreator$1.text(Object.assign(Object.assign({
|
|
26520
26496
|
x: 0,
|
|
26521
26497
|
y: 0,
|
|
26522
26498
|
textAlign: "start",
|
|
@@ -26623,7 +26599,7 @@
|
|
|
26623
26599
|
});
|
|
26624
26600
|
}
|
|
26625
26601
|
pager.defaultCurrent > 1 && (isHorizontal ? itemsContainer.setAttribute("y", -(pager.defaultCurrent - 1) * (pageHeight + spaceRow)) : itemsContainer.setAttribute("x", -(pager.defaultCurrent - 1) * (pageWidth + spaceCol)));
|
|
26626
|
-
const clipGroup = graphicCreator.group({
|
|
26602
|
+
const clipGroup = graphicCreator$1.group({
|
|
26627
26603
|
x: 0,
|
|
26628
26604
|
y: renderStartY,
|
|
26629
26605
|
width: pageWidth,
|
|
@@ -27928,7 +27904,7 @@
|
|
|
27928
27904
|
};
|
|
27929
27905
|
const isHorizontal = "horizontal" === layout;
|
|
27930
27906
|
this._isHorizontal = isHorizontal;
|
|
27931
|
-
const innerView = graphicCreator.group({
|
|
27907
|
+
const innerView = graphicCreator$1.group({
|
|
27932
27908
|
x: 0,
|
|
27933
27909
|
y: 0
|
|
27934
27910
|
});
|
|
@@ -27936,7 +27912,7 @@
|
|
|
27936
27912
|
let startTextShape,
|
|
27937
27913
|
startLen = 0;
|
|
27938
27914
|
if (startText && startText.visible) {
|
|
27939
|
-
startTextShape = graphicCreator.text(Object.assign({
|
|
27915
|
+
startTextShape = graphicCreator$1.text(Object.assign({
|
|
27940
27916
|
x: isHorizontal ? 0 : railWidth / 2,
|
|
27941
27917
|
y: isHorizontal ? railHeight / 2 : 0,
|
|
27942
27918
|
textAlign: isHorizontal ? "start" : "center",
|
|
@@ -27947,19 +27923,19 @@
|
|
|
27947
27923
|
const space = isValid$1(startText.space) ? startText.space : 0;
|
|
27948
27924
|
startLen += (isHorizontal ? startTextShape.AABBBounds.width() : startTextShape.AABBBounds.height()) + space;
|
|
27949
27925
|
}
|
|
27950
|
-
const mainContainer = graphicCreator.group({
|
|
27926
|
+
const mainContainer = graphicCreator$1.group({
|
|
27951
27927
|
x: isHorizontal ? startLen : 0,
|
|
27952
27928
|
y: isHorizontal ? 0 : startLen
|
|
27953
27929
|
});
|
|
27954
27930
|
innerView.add(mainContainer);
|
|
27955
|
-
const railContainer = graphicCreator.group({
|
|
27931
|
+
const railContainer = graphicCreator$1.group({
|
|
27956
27932
|
x: 0,
|
|
27957
27933
|
y: 0
|
|
27958
27934
|
});
|
|
27959
27935
|
let endTextShape;
|
|
27960
27936
|
if (railContainer.name = SLIDER_ELEMENT_NAME.railContainer, this._railContainer = railContainer, mainContainer.add(railContainer), this._renderRail(railContainer), startLen += isHorizontal ? railWidth : railHeight, endText && endText.visible) {
|
|
27961
27937
|
const space = isValid$1(endText.space) ? endText.space : 0;
|
|
27962
|
-
endTextShape = graphicCreator.text(Object.assign({
|
|
27938
|
+
endTextShape = graphicCreator$1.text(Object.assign({
|
|
27963
27939
|
x: isHorizontal ? startLen + space : railWidth / 2,
|
|
27964
27940
|
y: isHorizontal ? railHeight / 2 : startLen + space,
|
|
27965
27941
|
textAlign: isHorizontal ? "start" : "center",
|
|
@@ -27979,7 +27955,7 @@
|
|
|
27979
27955
|
} = this.attribute;
|
|
27980
27956
|
let cursor = "default";
|
|
27981
27957
|
!1 !== slidable && (cursor = "pointer");
|
|
27982
|
-
const railShape = graphicCreator.rect(Object.assign({
|
|
27958
|
+
const railShape = graphicCreator$1.rect(Object.assign({
|
|
27983
27959
|
x: 0,
|
|
27984
27960
|
y: 0,
|
|
27985
27961
|
width: railWidth,
|
|
@@ -28055,7 +28031,7 @@
|
|
|
28055
28031
|
const isHorizontal = this._isHorizontal,
|
|
28056
28032
|
railLen = isHorizontal ? railWidth : railHeight;
|
|
28057
28033
|
range || (startValue = min);
|
|
28058
|
-
const trackContainer = graphicCreator.group({
|
|
28034
|
+
const trackContainer = graphicCreator$1.group({
|
|
28059
28035
|
x: 0,
|
|
28060
28036
|
y: 0,
|
|
28061
28037
|
width: railWidth,
|
|
@@ -28070,7 +28046,7 @@
|
|
|
28070
28046
|
cursor = !1 === slidable ? "default" : !1 === range || !1 === draggableTrack ? "pointer" : getDefaultCursor(isHorizontal);
|
|
28071
28047
|
const trackWidth = max === min ? railLen : (endValue - startValue) / (max - min) * railLen,
|
|
28072
28048
|
startPos = max === min ? 0 : (startValue - min) / (max - min) * railLen,
|
|
28073
|
-
track = graphicCreator.rect(Object.assign({
|
|
28049
|
+
track = graphicCreator$1.rect(Object.assign({
|
|
28074
28050
|
x: isHorizontal ? startPos : 0,
|
|
28075
28051
|
y: isHorizontal ? 0 : startPos,
|
|
28076
28052
|
width: isHorizontal ? trackWidth : railWidth,
|
|
@@ -28080,7 +28056,7 @@
|
|
|
28080
28056
|
track.name = SLIDER_ELEMENT_NAME.track, this._track = track, trackContainer.add(track), container.add(trackContainer);
|
|
28081
28057
|
}
|
|
28082
28058
|
_renderHandler(style) {
|
|
28083
|
-
return graphicCreator.symbol(style);
|
|
28059
|
+
return graphicCreator$1.symbol(style);
|
|
28084
28060
|
}
|
|
28085
28061
|
_renderHandlerText(value, position) {
|
|
28086
28062
|
var _a, _b, _c;
|
|
@@ -28104,7 +28080,7 @@
|
|
|
28104
28080
|
cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
|
|
28105
28081
|
};
|
|
28106
28082
|
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);
|
|
28107
|
-
return graphicCreator.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
|
|
28083
|
+
return graphicCreator$1.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
|
|
28108
28084
|
}
|
|
28109
28085
|
_bindEvents() {
|
|
28110
28086
|
if (this.attribute.disableTriggerEvent) return;
|
|
@@ -28447,7 +28423,7 @@
|
|
|
28447
28423
|
sizeBackground: sizeBackground,
|
|
28448
28424
|
disableTriggerEvent: disableTriggerEvent
|
|
28449
28425
|
} = this.attribute,
|
|
28450
|
-
mainContainer = graphicCreator.group({
|
|
28426
|
+
mainContainer = graphicCreator$1.group({
|
|
28451
28427
|
x: 0,
|
|
28452
28428
|
y: 0
|
|
28453
28429
|
});
|
|
@@ -28485,7 +28461,7 @@
|
|
|
28485
28461
|
let path,
|
|
28486
28462
|
start = 0;
|
|
28487
28463
|
"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));
|
|
28488
|
-
const background = graphicCreator.path(Object.assign(Object.assign({
|
|
28464
|
+
const background = graphicCreator$1.path(Object.assign(Object.assign({
|
|
28489
28465
|
x: 0,
|
|
28490
28466
|
y: start,
|
|
28491
28467
|
path: path
|
|
@@ -29415,6 +29391,25 @@
|
|
|
29415
29391
|
|
|
29416
29392
|
const DEFAULT_CONTINUOUS_TICK_COUNT$1 = 5;
|
|
29417
29393
|
|
|
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
|
+
|
|
29418
29413
|
const initTextMeasure$1 = (textSpec, option, useNaiveCanvas, defaultFontParams) => new TextMeasure(Object.assign({
|
|
29419
29414
|
defaultFontParams: Object.assign({
|
|
29420
29415
|
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",
|
|
@@ -32135,7 +32130,7 @@
|
|
|
32135
32130
|
if (isArray$1(children)) {
|
|
32136
32131
|
children.forEach((item) => {
|
|
32137
32132
|
const c = decodeReactDom(item);
|
|
32138
|
-
|
|
32133
|
+
g.add(c);
|
|
32139
32134
|
});
|
|
32140
32135
|
}
|
|
32141
32136
|
else if (children) {
|
|
@@ -34407,7 +34402,7 @@
|
|
|
34407
34402
|
return false;
|
|
34408
34403
|
}
|
|
34409
34404
|
|
|
34410
|
-
function createCellGroup(table, value, columnGroup, xOrigin, yOrigin, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme) {
|
|
34405
|
+
function createCellGroup(table, value, columnGroup, xOrigin, yOrigin, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range) {
|
|
34411
34406
|
const headerStyle = table._getCellStyle(col, row);
|
|
34412
34407
|
const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
|
|
34413
34408
|
if (isValid$1(functionalPadding)) {
|
|
@@ -34449,7 +34444,13 @@
|
|
|
34449
34444
|
const textStr = value;
|
|
34450
34445
|
let icons;
|
|
34451
34446
|
if (mayHaveIcon) {
|
|
34452
|
-
|
|
34447
|
+
let iconCol = col;
|
|
34448
|
+
let iconRow = row;
|
|
34449
|
+
if (range) {
|
|
34450
|
+
iconCol = range.start.col;
|
|
34451
|
+
iconRow = range.start.row;
|
|
34452
|
+
}
|
|
34453
|
+
icons = table.getCellIcons(iconCol, iconRow);
|
|
34453
34454
|
}
|
|
34454
34455
|
createCellContent(cellGroup, icons, textStr, padding, autoColWidth, autoRowHeight, autoWrapText, typeof lineClamp === 'number' ? lineClamp : undefined, cellWidth, cellHeight, textAlign, textBaseline, table, cellTheme);
|
|
34455
34456
|
if (cellTheme?._vtable?.marked) {
|
|
@@ -34730,7 +34731,7 @@
|
|
|
34730
34731
|
return checkbox;
|
|
34731
34732
|
}
|
|
34732
34733
|
|
|
34733
|
-
function createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme) {
|
|
34734
|
+
function createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult) {
|
|
34734
34735
|
if (isPromise(value)) {
|
|
34735
34736
|
value = table.getCellValue(col, row);
|
|
34736
34737
|
}
|
|
@@ -34787,23 +34788,29 @@
|
|
|
34787
34788
|
}
|
|
34788
34789
|
let customElementsGroup;
|
|
34789
34790
|
let renderDefault = true;
|
|
34790
|
-
|
|
34791
|
-
let customLayout;
|
|
34792
|
-
const cellLocation = table.getCellLocation(col, row);
|
|
34793
|
-
if (cellLocation !== 'body') {
|
|
34794
|
-
customRender = define?.headerCustomRender;
|
|
34795
|
-
customLayout = define?.headerCustomLayout;
|
|
34796
|
-
}
|
|
34797
|
-
else {
|
|
34798
|
-
customRender = define?.customRender || table.customRender;
|
|
34799
|
-
customLayout = define?.customLayout;
|
|
34800
|
-
}
|
|
34801
|
-
if (customLayout || customRender) {
|
|
34802
|
-
const customResult = dealWithCustom(customLayout, customRender, col, row, cellWidth, cellHeight, false, table.heightMode === 'autoHeight', padding, table);
|
|
34791
|
+
if (customResult) {
|
|
34803
34792
|
customElementsGroup = customResult.elementsGroup;
|
|
34804
34793
|
renderDefault = customResult.renderDefault;
|
|
34805
34794
|
}
|
|
34806
|
-
|
|
34795
|
+
else {
|
|
34796
|
+
let customRender;
|
|
34797
|
+
let customLayout;
|
|
34798
|
+
const cellLocation = table.getCellLocation(col, row);
|
|
34799
|
+
if (cellLocation !== 'body') {
|
|
34800
|
+
customRender = define?.headerCustomRender;
|
|
34801
|
+
customLayout = define?.headerCustomLayout;
|
|
34802
|
+
}
|
|
34803
|
+
else {
|
|
34804
|
+
customRender = define?.customRender || table.customRender;
|
|
34805
|
+
customLayout = define?.customLayout;
|
|
34806
|
+
}
|
|
34807
|
+
if (customLayout || customRender) {
|
|
34808
|
+
const customResult = dealWithCustom(customLayout, customRender, col, row, cellWidth, cellHeight, false, table.heightMode === 'autoHeight', padding, table);
|
|
34809
|
+
customElementsGroup = customResult.elementsGroup;
|
|
34810
|
+
renderDefault = customResult.renderDefault;
|
|
34811
|
+
}
|
|
34812
|
+
}
|
|
34813
|
+
cellGroup = createCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range);
|
|
34807
34814
|
const axisConfig = table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row);
|
|
34808
34815
|
if (axisConfig) {
|
|
34809
34816
|
const axis = new CartesianAxis(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, padding, table);
|
|
@@ -34837,7 +34844,7 @@
|
|
|
34837
34844
|
else if (type === 'progressbar') {
|
|
34838
34845
|
const style = table._getCellStyle(col, row);
|
|
34839
34846
|
const dataValue = table.getCellOriginValue(col, row);
|
|
34840
|
-
cellGroup = createCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, false, null, true, cellTheme);
|
|
34847
|
+
cellGroup = createCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, false, null, true, cellTheme, range);
|
|
34841
34848
|
const progressBarGroup = createProgressBarCell(define, style, colWidth, value, dataValue, col, row, padding, table);
|
|
34842
34849
|
if (cellGroup.firstChild) {
|
|
34843
34850
|
cellGroup.insertBefore(progressBarGroup, cellGroup.firstChild);
|
|
@@ -34942,11 +34949,16 @@
|
|
|
34942
34949
|
? table._getHeaderLayoutMap(col, row).headerType
|
|
34943
34950
|
: table.getBodyColumnType(col, row);
|
|
34944
34951
|
let value = table.getCellValue(col, row);
|
|
34952
|
+
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
34953
|
+
const padding = cellTheme._vtable.padding;
|
|
34954
|
+
const textAlign = cellTheme._vtable.textAlign;
|
|
34955
|
+
const textBaseline = cellTheme._vtable.textBaseline;
|
|
34945
34956
|
let customStyle;
|
|
34957
|
+
let customResult;
|
|
34946
34958
|
if (table.internalProps.customMergeCell) {
|
|
34947
34959
|
const customMerge = table.getCustomMerge(col, row);
|
|
34948
34960
|
if (customMerge) {
|
|
34949
|
-
const { range: customMergeRange, text: customMergeText, style: customMergeStyle } = customMerge;
|
|
34961
|
+
const { range: customMergeRange, text: customMergeText, style: customMergeStyle, customLayout, customRender } = customMerge;
|
|
34950
34962
|
range = customMergeRange;
|
|
34951
34963
|
isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
|
|
34952
34964
|
value = customMergeText;
|
|
@@ -34955,13 +34967,12 @@
|
|
|
34955
34967
|
cellTheme = getStyleTheme(customStyle, table, range.start.col, range.start.row, getProp).theme;
|
|
34956
34968
|
cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table);
|
|
34957
34969
|
}
|
|
34970
|
+
if (customLayout || customRender) {
|
|
34971
|
+
customResult = dealWithCustom(customLayout, customRender, customMergeRange.start.col, customMergeRange.start.row, table.getColsWidth(customMergeRange.start.col, customMergeRange.end.col), table.getRowsHeight(customMergeRange.start.row, customMergeRange.end.row), false, table.heightMode === 'autoHeight', padding, table);
|
|
34972
|
+
}
|
|
34958
34973
|
}
|
|
34959
34974
|
}
|
|
34960
34975
|
let newCellGroup;
|
|
34961
|
-
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
34962
|
-
const padding = cellTheme._vtable.padding;
|
|
34963
|
-
const textAlign = cellTheme._vtable.textAlign;
|
|
34964
|
-
const textBaseline = cellTheme._vtable.textBaseline;
|
|
34965
34976
|
let bgColorFunc;
|
|
34966
34977
|
if (table.internalProps?.dataConfig?.mappingRules && !table.isHeader(col, row)) {
|
|
34967
34978
|
table.internalProps?.dataConfig?.mappingRules?.forEach((mappingRule, i) => {
|
|
@@ -34972,14 +34983,6 @@
|
|
|
34972
34983
|
}
|
|
34973
34984
|
});
|
|
34974
34985
|
}
|
|
34975
|
-
if (cellLocation !== 'body') {
|
|
34976
|
-
define?.headerCustomRender;
|
|
34977
|
-
define?.headerCustomLayout;
|
|
34978
|
-
}
|
|
34979
|
-
else {
|
|
34980
|
-
define?.customRender || table.customRender;
|
|
34981
|
-
define?.customLayout;
|
|
34982
|
-
}
|
|
34983
34986
|
let cellWidth;
|
|
34984
34987
|
let cellHeight;
|
|
34985
34988
|
if (range) {
|
|
@@ -34992,10 +34995,10 @@
|
|
|
34992
34995
|
}
|
|
34993
34996
|
if (isPromise(value)) {
|
|
34994
34997
|
oldCellGroup.removeAllChild();
|
|
34995
|
-
dealPromiseData(value, table, updateCellContent.bind(null, type, value, define, table, col, row, bgColorFunc, cellWidth, cellHeight, oldCellGroup, padding, textAlign, textBaseline, mayHaveIcon, addNew, cellTheme));
|
|
34998
|
+
dealPromiseData(value, table, updateCellContent.bind(null, type, value, define, table, col, row, bgColorFunc, cellWidth, cellHeight, oldCellGroup, padding, textAlign, textBaseline, mayHaveIcon, addNew, cellTheme, range, customResult));
|
|
34996
34999
|
}
|
|
34997
35000
|
else {
|
|
34998
|
-
newCellGroup = updateCellContent(type, value, define, table, col, row, bgColorFunc, cellWidth, cellHeight, oldCellGroup, padding, textAlign, textBaseline, mayHaveIcon, addNew, cellTheme);
|
|
35001
|
+
newCellGroup = updateCellContent(type, value, define, table, col, row, bgColorFunc, cellWidth, cellHeight, oldCellGroup, padding, textAlign, textBaseline, mayHaveIcon, addNew, cellTheme, range, customResult);
|
|
34999
35002
|
}
|
|
35000
35003
|
if (isMerge) {
|
|
35001
35004
|
const rangeHeight = table.getRowHeight(row);
|
|
@@ -35008,14 +35011,14 @@
|
|
|
35008
35011
|
}
|
|
35009
35012
|
return newCellGroup;
|
|
35010
35013
|
}
|
|
35011
|
-
function updateCellContent(type, value, define, table, col, row, bgColorFunc, cellWidth, cellHeight, oldCellGroup, padding, textAlign, textBaseline, mayHaveIcon, addNew, cellTheme) {
|
|
35014
|
+
function updateCellContent(type, value, define, table, col, row, bgColorFunc, cellWidth, cellHeight, oldCellGroup, padding, textAlign, textBaseline, mayHaveIcon, addNew, cellTheme, range, customResult) {
|
|
35012
35015
|
if (isPromise(value)) {
|
|
35013
35016
|
value = table.getCellValue(col, row);
|
|
35014
35017
|
}
|
|
35015
35018
|
if (!addNew && (oldCellGroup.row !== row || oldCellGroup.col !== col)) {
|
|
35016
35019
|
return null;
|
|
35017
35020
|
}
|
|
35018
|
-
const newCellGroup = createCell(type, value, define, table, col, row, table.getColWidth(col), cellWidth, cellHeight, addNew ? table.scenegraph.getColGroup(col) : oldCellGroup.parent, addNew ? 0 : table.scenegraph.getCellGroupY(row), padding, textAlign, textBaseline, mayHaveIcon, cellTheme);
|
|
35021
|
+
const newCellGroup = createCell(type, value, define, table, col, row, table.getColWidth(col), cellWidth, cellHeight, addNew ? table.scenegraph.getColGroup(col) : oldCellGroup.parent, addNew ? 0 : table.scenegraph.getCellGroupY(row), padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult);
|
|
35019
35022
|
if (!addNew && oldCellGroup.parent) {
|
|
35020
35023
|
oldCellGroup.parent.insertAfter(newCellGroup, oldCellGroup);
|
|
35021
35024
|
oldCellGroup.parent.removeChild(oldCellGroup);
|
|
@@ -35057,18 +35060,17 @@
|
|
|
35057
35060
|
}
|
|
35058
35061
|
for (let j = rowStart; j <= rowEnd; j++) {
|
|
35059
35062
|
const row = j;
|
|
35060
|
-
const define = cellLocation !== 'body' ? table.getHeaderDefine(col, row) : table.getBodyColumnDefine(col, row);
|
|
35061
|
-
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
35062
35063
|
let value = table.getCellValue(col, row);
|
|
35063
35064
|
let cellWidth = colWidth;
|
|
35064
35065
|
let cellHeight = table.getRowHeight(row);
|
|
35065
35066
|
let range;
|
|
35066
35067
|
let isMerge;
|
|
35067
35068
|
let customStyle;
|
|
35069
|
+
let customResult;
|
|
35068
35070
|
if (table.internalProps.customMergeCell) {
|
|
35069
35071
|
const customMerge = table.getCustomMerge(col, row);
|
|
35070
35072
|
if (customMerge) {
|
|
35071
|
-
const { range: customMergeRange, text: customMergeText, style: customMergeStyle } = customMerge;
|
|
35073
|
+
const { range: customMergeRange, text: customMergeText, style: customMergeStyle, customLayout, customRender } = customMerge;
|
|
35072
35074
|
range = customMergeRange;
|
|
35073
35075
|
isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
|
|
35074
35076
|
if (isMerge) {
|
|
@@ -35078,8 +35080,21 @@
|
|
|
35078
35080
|
}
|
|
35079
35081
|
value = customMergeText;
|
|
35080
35082
|
customStyle = customMergeStyle;
|
|
35083
|
+
if (customLayout || customRender) {
|
|
35084
|
+
customResult = dealWithCustom(customLayout, customRender, customMergeRange.start.col, customMergeRange.start.row, table.getColsWidth(customMergeRange.start.col, customMergeRange.end.col), table.getRowsHeight(customMergeRange.start.row, customMergeRange.end.row), false, table.heightMode === 'autoHeight', padding, table);
|
|
35085
|
+
}
|
|
35081
35086
|
}
|
|
35082
35087
|
}
|
|
35088
|
+
let colForDefine = col;
|
|
35089
|
+
let rowForDefine = row;
|
|
35090
|
+
if (range) {
|
|
35091
|
+
colForDefine = range.start.col;
|
|
35092
|
+
rowForDefine = range.start.row;
|
|
35093
|
+
}
|
|
35094
|
+
const define = cellLocation !== 'body'
|
|
35095
|
+
? table.getHeaderDefine(colForDefine, rowForDefine)
|
|
35096
|
+
: table.getBodyColumnDefine(colForDefine, rowForDefine);
|
|
35097
|
+
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
35083
35098
|
if (!range && (cellLocation !== 'body' || define?.mergeCell)) {
|
|
35084
35099
|
range = table.getCellRange(col, row);
|
|
35085
35100
|
isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row;
|
|
@@ -35109,14 +35124,14 @@
|
|
|
35109
35124
|
const type = (table.isHeader(col, row) ? table._getHeaderLayoutMap(col, row).headerType : table.getBodyColumnType(col, row)) ||
|
|
35110
35125
|
'text';
|
|
35111
35126
|
if (isPromise(value)) {
|
|
35112
|
-
dealPromiseData(value, table, createCell.bind(null, type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme));
|
|
35127
|
+
dealPromiseData(value, table, createCell.bind(null, type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult));
|
|
35113
35128
|
columnGroup.updateColumnRowNumber(row);
|
|
35114
35129
|
const height = table.getRowHeight(row);
|
|
35115
35130
|
columnGroup.updateColumnHeight(height);
|
|
35116
35131
|
y += height;
|
|
35117
35132
|
}
|
|
35118
35133
|
else {
|
|
35119
|
-
const cellGroup = createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme);
|
|
35134
|
+
const cellGroup = createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult);
|
|
35120
35135
|
columnGroup.updateColumnRowNumber(row);
|
|
35121
35136
|
if (isMerge) {
|
|
35122
35137
|
const rangeHeight = table.getRowHeight(row);
|
|
@@ -42274,7 +42289,7 @@
|
|
|
42274
42289
|
fontFamily: DefaultTextStyle.fontFamily,
|
|
42275
42290
|
fontSize: DefaultTextStyle.fontSize
|
|
42276
42291
|
},
|
|
42277
|
-
getTextBounds: useNaiveCanvas ? undefined : getTextBounds,
|
|
42292
|
+
getTextBounds: useNaiveCanvas ? undefined : getTextBounds$1,
|
|
42278
42293
|
specialCharSet: `{}()//&-/: .,@%'"~…${TextMeasure.ALPHABET_CHAR_SET}${TextMeasure.ALPHABET_CHAR_SET.toUpperCase()}0123456789`,
|
|
42279
42294
|
...(option ?? {})
|
|
42280
42295
|
}, textSpec);
|
|
@@ -50305,7 +50320,7 @@
|
|
|
50305
50320
|
return TABLE_EVENT_TYPE;
|
|
50306
50321
|
}
|
|
50307
50322
|
options;
|
|
50308
|
-
version = "0.17.10-alpha.
|
|
50323
|
+
version = "0.17.10-alpha.5";
|
|
50309
50324
|
pagination;
|
|
50310
50325
|
id = `VTable${Date.now()}`;
|
|
50311
50326
|
headerStyleCache;
|
|
@@ -51827,7 +51842,7 @@
|
|
|
51827
51842
|
getCustomMerge(col, row) {
|
|
51828
51843
|
if (this.internalProps.customMergeCell) {
|
|
51829
51844
|
const customMerge = this.internalProps.customMergeCell(col, row, this);
|
|
51830
|
-
if (customMerge && customMerge.range && customMerge.text) {
|
|
51845
|
+
if (customMerge && customMerge.range && (customMerge.text || customMerge.customLayout || this.customRender)) {
|
|
51831
51846
|
if (customMerge.style) {
|
|
51832
51847
|
const styleClass = this.internalProps.bodyHelper.getStyleClass('text');
|
|
51833
51848
|
const style = customMerge.style;
|
|
@@ -61278,7 +61293,7 @@
|
|
|
61278
61293
|
return new Tag$1(params ? params.attribute : {});
|
|
61279
61294
|
}
|
|
61280
61295
|
|
|
61281
|
-
const version = "0.17.10-alpha.
|
|
61296
|
+
const version = "0.17.10-alpha.5";
|
|
61282
61297
|
function getIcons() {
|
|
61283
61298
|
return get$2();
|
|
61284
61299
|
}
|