@wcardinal/wcardinal-ui 0.151.0 → 0.155.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/dist/types/wcardinal/ui/d-application-layer-options.d.ts +3 -4
- package/dist/types/wcardinal/ui/d-base-background.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-base-border.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-base-corner.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-base-outline.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-base-padding.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +4 -0
- package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +7 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-container-sub-impl.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-direction.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear-tick.d.ts +13 -8
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear.d.ts +18 -14
- package/dist/types/wcardinal/ui/d-chart-coordinate-log-tick.d.ts +14 -7
- package/dist/types/wcardinal/ui/d-chart-coordinate-log.d.ts +18 -14
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick-major-step-function.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick.d.ts +13 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-transform-impl.d.ts +8 -3
- package/dist/types/wcardinal/ui/d-chart-coordinate-transform.d.ts +6 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate.d.ts +18 -7
- package/dist/types/wcardinal/ui/d-chart-series-base-coordinate-container.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-color-gradient-point-observable.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-map.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-diagram-canvas-id-map.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-diagram-data-remote.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-data.d.ts +8 -8
- package/dist/types/wcardinal/ui/d-dynamic-text-geometry.d.ts +2 -3
- package/dist/types/wcardinal/ui/d-dynamic-text-measure.d.ts +2 -3
- package/dist/types/wcardinal/ui/d-dynamic-text.d.ts +8 -8
- package/dist/types/wcardinal/ui/d-input-and-label.d.ts +4 -5
- package/dist/types/wcardinal/ui/d-on-options.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-pagination-button-last.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination-button-next.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination-button-page.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination-button-previous.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination-button-top.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination-dots.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination-page.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-pagination.d.ts +137 -44
- package/dist/types/wcardinal/ui/d-picker-color-gradient-view.d.ts +4 -5
- package/dist/types/wcardinal/ui/d-scalar-expression.d.ts +68 -66
- package/dist/types/wcardinal/ui/d-table-data-list-filter.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-table-data-list-selection.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-table-data-selection.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-table-data-tree-filter.d.ts +1 -2
- package/dist/types/wcardinal/ui/d-table-data-tree-selection-impl.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-view-constraint.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-view-impl.d.ts +3 -0
- package/dist/types/wcardinal/ui/d-view-transform-impl.d.ts +4 -2
- package/dist/types/wcardinal/ui/d-view.d.ts +3 -0
- package/dist/types/wcardinal/ui/index.d.ts +16 -3
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +7 -8
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color.d.ts +5 -6
- package/dist/types/wcardinal/ui/shape/e-shape-capabilities.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-acceptor-impl.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/e-shape-deserializers.d.ts +2 -6
- package/dist/types/wcardinal/ui/shape/e-shape-runtimes.d.ts +2 -3
- package/dist/types/wcardinal/ui/shape/e-shape-text.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/e-shape-uploadeds.d.ts +1 -3
- package/dist/types/wcardinal/ui/shape/variant/create-line-of-any-uploaded.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-circles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-triangles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/to-resized.d.ts +1 -1
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-plot-area.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.d.ts +9 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.d.ts +10 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.d.ts +13 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination.d.ts +2 -1
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark.d.ts +2 -9
- package/dist/types/wcardinal/ui/theme/dark/index.d.ts +10 -5
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-plot-area.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.d.ts +9 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.d.ts +8 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots.d.ts +10 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-page.d.ts +13 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination.d.ts +2 -1
- package/dist/types/wcardinal/ui/theme/white/d-theme-white.d.ts +2 -9
- package/dist/types/wcardinal/ui/theme/white/index.d.ts +10 -5
- package/dist/types/wcardinal/ui/util/dynamic-atlas.d.ts +2 -6
- package/dist/types/wcardinal/ui/util/dynamic-font-atlas-characters.d.ts +1 -3
- package/dist/types/wcardinal/ui/util/dynamic-sdf-font-atlases.d.ts +1 -3
- package/dist/types/wcardinal/ui/util/format-node/{format-noder-d.d.ts → format-node-rd.d.ts} +0 -0
- package/dist/types/wcardinal/ui/util/format-node/index.d.ts +31 -0
- package/dist/types/wcardinal/ui/util/index.d.ts +5 -0
- package/dist/types/wcardinal/ui/util/util-name.d.ts +1 -3
- package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +4 -12
- package/dist/wcardinal/ui/d-application-layer-options.js.map +1 -1
- package/dist/wcardinal/ui/d-base-background.js.map +1 -1
- package/dist/wcardinal/ui/d-base-border.js.map +1 -1
- package/dist/wcardinal/ui/d-base-corner.js.map +1 -1
- package/dist/wcardinal/ui/d-base-outline.js.map +1 -1
- package/dist/wcardinal/ui/d-base-padding.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +7 -5
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +16 -8
- package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-container-impl.js +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-container-sub-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-direction.js +9 -0
- package/dist/wcardinal/ui/d-chart-coordinate-direction.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +64 -29
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js +41 -8
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +53 -28
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log.js +41 -8
- package/dist/wcardinal/ui/d-chart-coordinate-log.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-tick-major-step-function.js +6 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick-major-step-function.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.js +6 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick.js +6 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-transform-impl.js +23 -5
- package/dist/wcardinal/ui/d-chart-coordinate-transform-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-transform.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate.js +1 -4
- package/dist/wcardinal/ui/d-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-base-coordinate-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js +43 -34
- package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-color-gradient-point-observable.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-data-map.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-id-map.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data-remote.js +2 -0
- package/dist/wcardinal/ui/d-diagram-data-remote.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data.js +16 -0
- package/dist/wcardinal/ui/d-diagram-data.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram.js.map +1 -1
- package/dist/wcardinal/ui/d-dynamic-text-geometry.js.map +1 -1
- package/dist/wcardinal/ui/d-dynamic-text-measure.js.map +1 -1
- package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
- package/dist/wcardinal/ui/d-input-and-label.js.map +1 -1
- package/dist/wcardinal/ui/d-on-options.js.map +1 -1
- package/dist/wcardinal/ui/d-pagination-button-last.js +18 -0
- package/dist/wcardinal/ui/d-pagination-button-last.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination-button-next.js +18 -0
- package/dist/wcardinal/ui/d-pagination-button-next.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination-button-page.js +18 -0
- package/dist/wcardinal/ui/d-pagination-button-page.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination-button-previous.js +18 -0
- package/dist/wcardinal/ui/d-pagination-button-previous.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination-button-top.js +18 -0
- package/dist/wcardinal/ui/d-pagination-button-top.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination-dots.js +18 -0
- package/dist/wcardinal/ui/d-pagination-dots.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination-page.js +18 -0
- package/dist/wcardinal/ui/d-pagination-page.js.map +1 -0
- package/dist/wcardinal/ui/d-pagination.js +455 -212
- package/dist/wcardinal/ui/d-pagination.js.map +1 -1
- package/dist/wcardinal/ui/d-picker-color-gradient-view.js.map +1 -1
- package/dist/wcardinal/ui/d-scalar-expression.js +107 -79
- package/dist/wcardinal/ui/d-scalar-expression.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-list-filter.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-list-selection.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-selection.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree-filter.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-constraint.js +6 -0
- package/dist/wcardinal/ui/d-view-constraint.js.map +1 -0
- package/dist/wcardinal/ui/d-view-gesture-impl.js +3 -3
- package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-impl.js +16 -5
- package/dist/wcardinal/ui/d-view-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-transform-impl.js +6 -7
- package/dist/wcardinal/ui/d-view-transform-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view.js.map +1 -1
- package/dist/wcardinal/ui/index.js +16 -3
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +7 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-value-change-color.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capabilities.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-acceptor-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-deserializers.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-uploadeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/create-line-of-any-uploaded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-circle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image-sdf.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-label.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-label.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-circles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-circles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-null.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-null.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-image-element.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-resized.js +1 -1
- package/dist/wcardinal/ui/shape/variant/to-resized.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js +7 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.js +23 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js +14 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js +14 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-plot-area.js +4 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-plot-area.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.js +28 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.js +27 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.js +24 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.js +27 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.js +28 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js +36 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js +35 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination.js +5 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/index.js +10 -5
- package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-chart.js +6 -4
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-pagination.js +14 -6
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-pagination.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js +8 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.js +23 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js +14 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js +14 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-plot-area.js +4 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-plot-area.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.js +28 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.js +27 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.js +24 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.js +27 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.js +28 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js +36 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js +35 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination.js +5 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/index.js +10 -5
- package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-chart.js +6 -4
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-pagination.js +14 -6
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-pagination.js.map +1 -1
- package/dist/wcardinal/ui/util/dynamic-atlas.js.map +1 -1
- package/dist/wcardinal/ui/util/dynamic-font-atlas-characters.js.map +1 -1
- package/dist/wcardinal/ui/util/dynamic-sdf-font-atlases.js.map +1 -1
- package/dist/wcardinal/ui/util/format-node/{format-noder-d.js → format-node-rd.js} +1 -1
- package/dist/wcardinal/ui/util/format-node/{format-noder-d.js.map → format-node-rd.js.map} +1 -1
- package/dist/wcardinal/ui/util/format-node/index.js +36 -0
- package/dist/wcardinal/ui/util/format-node/index.js.map +1 -0
- package/dist/wcardinal/ui/util/index.js +5 -0
- package/dist/wcardinal/ui/util/index.js.map +1 -1
- package/dist/wcardinal/ui/util/number-formatter-impl.js +1 -1
- package/dist/wcardinal/ui/util/number-formatter-impl.js.map +1 -1
- package/dist/wcardinal/ui/util/util-name.js.map +1 -1
- package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +199 -66
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +200 -67
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +1436 -670
- package/dist/wcardinal-ui.js +1040 -540
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +3 -3
- package/dist/types/wcardinal/ui/d-pagination-dots-button.d.ts +0 -8
- package/dist/types/wcardinal/ui/d-pagination-dynamic-buttons.d.ts +0 -21
- package/dist/types/wcardinal/ui/d-pagination-navigation-button.d.ts +0 -8
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-linear.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-log.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.d.ts +0 -9
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.d.ts +0 -6
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.d.ts +0 -4
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-linear.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-log.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.d.ts +0 -9
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.d.ts +0 -6
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.d.ts +0 -4
- package/dist/wcardinal/ui/d-pagination-dots-button.js +0 -18
- package/dist/wcardinal/ui/d-pagination-dots-button.js.map +0 -1
- package/dist/wcardinal/ui/d-pagination-dynamic-buttons.js +0 -81
- package/dist/wcardinal/ui/d-pagination-dynamic-buttons.js.map +0 -1
- package/dist/wcardinal/ui/d-pagination-navigation-button.js +0 -18
- package/dist/wcardinal/ui/d-pagination-navigation-button.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-linear.js +0 -26
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-linear.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-log.js +0 -26
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-log.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.js +0 -24
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.js +0 -18
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.js +0 -32
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-linear.js +0 -26
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-linear.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-log.js +0 -26
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-log.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.js +0 -24
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.js +0 -18
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.js +0 -32
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.js.map +0 -1
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.155.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -6626,7 +6626,7 @@
|
|
|
6626
6626
|
configurable: true
|
|
6627
6627
|
});
|
|
6628
6628
|
EShapeBar.prototype.clone = function () {
|
|
6629
|
-
return new EShapeBar().copy(this);
|
|
6629
|
+
return new EShapeBar(this.type).copy(this);
|
|
6630
6630
|
};
|
|
6631
6631
|
EShapeBar.prototype.containsAbsBBox = function (x, y, ax, ay) {
|
|
6632
6632
|
var size = Math.max(0, this._points.size);
|
|
@@ -11259,48 +11259,30 @@
|
|
|
11259
11259
|
* Copyright (C) 2019 Toshiba Corporation
|
|
11260
11260
|
* SPDX-License-Identifier: Apache-2.0
|
|
11261
11261
|
*/
|
|
11262
|
-
var
|
|
11263
|
-
(function (NodeType) {
|
|
11262
|
+
var DScalarExpressionNodeType = {
|
|
11264
11263
|
// Parensesis
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11264
|
+
OPEN: 0,
|
|
11265
|
+
CLOSE: 1,
|
|
11266
|
+
PARENSESIS: 2,
|
|
11268
11267
|
// Operations
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11268
|
+
ADD_OR_PLUS: 3,
|
|
11269
|
+
SUB_OR_MINUS: 4,
|
|
11270
|
+
PLUS: 5,
|
|
11271
|
+
MINUS: 6,
|
|
11272
|
+
ADD: 7,
|
|
11273
|
+
SUB: 8,
|
|
11274
|
+
MUL: 9,
|
|
11275
|
+
DIV: 10,
|
|
11277
11276
|
// Functions
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11277
|
+
MIN: 11,
|
|
11278
|
+
MAX: 12,
|
|
11279
|
+
COMMA: 13,
|
|
11281
11280
|
// Literals
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
})(NodeType || (NodeType = {}));
|
|
11288
|
-
var TOKEN_MAPPING_OPERATOR = {
|
|
11289
|
-
"+": 3 /* ADD_OR_PLUS */,
|
|
11290
|
-
"-": 4 /* SUB_OR_MINUS */,
|
|
11291
|
-
"*": 9 /* MUL */,
|
|
11292
|
-
"/": 10 /* DIV */,
|
|
11293
|
-
"(": 0 /* OPEN */,
|
|
11294
|
-
")": 1 /* CLOSE */,
|
|
11295
|
-
",": 13 /* COMMA */,
|
|
11296
|
-
min: 11 /* MIN */,
|
|
11297
|
-
max: 12 /* MAX */
|
|
11298
|
-
};
|
|
11299
|
-
var TOKEN_MAPPING_LITERAL = {
|
|
11300
|
-
"%": 14 /* PARENT */,
|
|
11301
|
-
s: 15 /* SELF */,
|
|
11302
|
-
p: 16 /* PADDING */,
|
|
11303
|
-
c: 17 /* CURRENT */
|
|
11281
|
+
PARENT: 14,
|
|
11282
|
+
SELF: 15,
|
|
11283
|
+
PADDING: 16,
|
|
11284
|
+
CURRENT: 17,
|
|
11285
|
+
NUMBER: 18
|
|
11304
11286
|
};
|
|
11305
11287
|
/**
|
|
11306
11288
|
* Parser and evaluator of the scalar expressions like `100% - 50s`.
|
|
@@ -11340,8 +11322,8 @@
|
|
|
11340
11322
|
i = this.toParensesis(nodes, i);
|
|
11341
11323
|
} while (i < nodes.length);
|
|
11342
11324
|
this.toUnary(nodes);
|
|
11343
|
-
this.toArithmetic(nodes,
|
|
11344
|
-
this.toArithmetic(nodes,
|
|
11325
|
+
this.toArithmetic(nodes, DScalarExpressionNodeType.MUL, DScalarExpressionNodeType.DIV);
|
|
11326
|
+
this.toArithmetic(nodes, DScalarExpressionNodeType.ADD, DScalarExpressionNodeType.SUB);
|
|
11345
11327
|
if (nodes.length === 1) {
|
|
11346
11328
|
var node = nodes[0];
|
|
11347
11329
|
if (!isNumber(node)) {
|
|
@@ -11355,24 +11337,25 @@
|
|
|
11355
11337
|
var ito = nodes.length;
|
|
11356
11338
|
for (var i = ifrom; i < ito; ++i) {
|
|
11357
11339
|
var inode = nodes[i];
|
|
11358
|
-
if (inode ===
|
|
11340
|
+
if (inode === DScalarExpressionNodeType.OPEN) {
|
|
11359
11341
|
var istart = i;
|
|
11360
|
-
var nodeType =
|
|
11342
|
+
var nodeType = DScalarExpressionNodeType.PARENSESIS;
|
|
11361
11343
|
if (0 < i) {
|
|
11362
11344
|
var nodeTypePrev = nodes[i - 1];
|
|
11363
|
-
if (nodeTypePrev ===
|
|
11345
|
+
if (nodeTypePrev === DScalarExpressionNodeType.MIN ||
|
|
11346
|
+
nodeTypePrev === DScalarExpressionNodeType.MAX) {
|
|
11364
11347
|
istart -= 1;
|
|
11365
11348
|
nodeType = nodeTypePrev;
|
|
11366
11349
|
}
|
|
11367
11350
|
}
|
|
11368
11351
|
for (var j = i + 1; j < ito; ++j) {
|
|
11369
11352
|
var jnode = nodes[j];
|
|
11370
|
-
if (jnode ===
|
|
11353
|
+
if (jnode === DScalarExpressionNodeType.CLOSE) {
|
|
11371
11354
|
nodes[istart] = [nodeType, this.toComma(nodes, i + 1, j)];
|
|
11372
11355
|
nodes.splice(istart + 1, j - istart);
|
|
11373
11356
|
return istart + 1;
|
|
11374
11357
|
}
|
|
11375
|
-
else if (jnode ===
|
|
11358
|
+
else if (jnode === DScalarExpressionNodeType.OPEN) {
|
|
11376
11359
|
j = this.toParensesis(nodes, j) - 1;
|
|
11377
11360
|
ito = nodes.length;
|
|
11378
11361
|
}
|
|
@@ -11385,7 +11368,7 @@
|
|
|
11385
11368
|
DScalarExpression.prototype.toCommaOf = function (nodes, ifrom, ito) {
|
|
11386
11369
|
var l = ito - ifrom;
|
|
11387
11370
|
if (l <= 0) {
|
|
11388
|
-
return [
|
|
11371
|
+
return [DScalarExpressionNodeType.NUMBER, 0];
|
|
11389
11372
|
}
|
|
11390
11373
|
else if (l <= 1) {
|
|
11391
11374
|
return nodes[ifrom];
|
|
@@ -11395,7 +11378,7 @@
|
|
|
11395
11378
|
for (var j = ifrom; j < ito; ++j) {
|
|
11396
11379
|
operand.push(nodes[j]);
|
|
11397
11380
|
}
|
|
11398
|
-
return [
|
|
11381
|
+
return [DScalarExpressionNodeType.PARENSESIS, operand];
|
|
11399
11382
|
}
|
|
11400
11383
|
};
|
|
11401
11384
|
DScalarExpression.prototype.toComma = function (nodes, ifrom, ito) {
|
|
@@ -11403,7 +11386,7 @@
|
|
|
11403
11386
|
var iprev = ifrom;
|
|
11404
11387
|
for (var i = ifrom; i < ito; ++i) {
|
|
11405
11388
|
var node = nodes[i];
|
|
11406
|
-
if (node ===
|
|
11389
|
+
if (node === DScalarExpressionNodeType.COMMA) {
|
|
11407
11390
|
result = result || [];
|
|
11408
11391
|
result.push(this.toCommaOf(nodes, iprev, i));
|
|
11409
11392
|
iprev = i + 1;
|
|
@@ -11425,9 +11408,9 @@
|
|
|
11425
11408
|
};
|
|
11426
11409
|
DScalarExpression.prototype.toUnaryNode = function (node) {
|
|
11427
11410
|
if (!isNumber(node)) {
|
|
11428
|
-
if (node[0] ===
|
|
11429
|
-
node[0] ===
|
|
11430
|
-
node[0] ===
|
|
11411
|
+
if (node[0] === DScalarExpressionNodeType.PARENSESIS ||
|
|
11412
|
+
node[0] === DScalarExpressionNodeType.MIN ||
|
|
11413
|
+
node[0] === DScalarExpressionNodeType.MAX) {
|
|
11431
11414
|
this.toUnary(node[1]);
|
|
11432
11415
|
}
|
|
11433
11416
|
}
|
|
@@ -11435,11 +11418,14 @@
|
|
|
11435
11418
|
DScalarExpression.prototype.toUnary = function (nodes) {
|
|
11436
11419
|
for (var i = 0, imax = nodes.length; i < imax; ++i) {
|
|
11437
11420
|
var node = nodes[i];
|
|
11438
|
-
if (node ===
|
|
11421
|
+
if (node === DScalarExpressionNodeType.ADD_OR_PLUS ||
|
|
11422
|
+
node === DScalarExpressionNodeType.SUB_OR_MINUS) {
|
|
11439
11423
|
if (i <= 0 || isNumber(nodes[i - 1])) {
|
|
11440
11424
|
if (i + 1 < imax && !isNumber(nodes[i + 1])) {
|
|
11441
11425
|
var operand = nodes.splice(i + 1, 1)[0];
|
|
11442
|
-
var type = node ===
|
|
11426
|
+
var type = node === DScalarExpressionNodeType.ADD_OR_PLUS
|
|
11427
|
+
? DScalarExpressionNodeType.PLUS
|
|
11428
|
+
: DScalarExpressionNodeType.MINUS;
|
|
11443
11429
|
nodes[i] = [type, operand];
|
|
11444
11430
|
imax = nodes.length;
|
|
11445
11431
|
this.toUnaryNode(operand);
|
|
@@ -11449,7 +11435,9 @@
|
|
|
11449
11435
|
}
|
|
11450
11436
|
}
|
|
11451
11437
|
else {
|
|
11452
|
-
var type = node ===
|
|
11438
|
+
var type = node === DScalarExpressionNodeType.ADD_OR_PLUS
|
|
11439
|
+
? DScalarExpressionNodeType.ADD
|
|
11440
|
+
: DScalarExpressionNodeType.SUB;
|
|
11453
11441
|
nodes[i] = type;
|
|
11454
11442
|
}
|
|
11455
11443
|
}
|
|
@@ -11461,18 +11449,19 @@
|
|
|
11461
11449
|
};
|
|
11462
11450
|
DScalarExpression.prototype.toArithmeticNode = function (node, operatorA, operatorB) {
|
|
11463
11451
|
if (!isNumber(node)) {
|
|
11464
|
-
if (node[0] ===
|
|
11465
|
-
node[0] ===
|
|
11466
|
-
node[0] ===
|
|
11452
|
+
if (node[0] === DScalarExpressionNodeType.PARENSESIS ||
|
|
11453
|
+
node[0] === DScalarExpressionNodeType.MIN ||
|
|
11454
|
+
node[0] === DScalarExpressionNodeType.MAX) {
|
|
11467
11455
|
this.toArithmetic(node[1], operatorA, operatorB);
|
|
11468
11456
|
}
|
|
11469
|
-
else if (node[0] ===
|
|
11457
|
+
else if (node[0] === DScalarExpressionNodeType.PLUS ||
|
|
11458
|
+
node[0] === DScalarExpressionNodeType.MINUS) {
|
|
11470
11459
|
this.toArithmeticNode(node[1], operatorA, operatorB);
|
|
11471
11460
|
}
|
|
11472
|
-
else if (node[0] ===
|
|
11473
|
-
node[0] ===
|
|
11474
|
-
node[0] ===
|
|
11475
|
-
node[0] ===
|
|
11461
|
+
else if (node[0] === DScalarExpressionNodeType.ADD ||
|
|
11462
|
+
node[0] === DScalarExpressionNodeType.SUB ||
|
|
11463
|
+
node[0] === DScalarExpressionNodeType.MUL ||
|
|
11464
|
+
node[0] === DScalarExpressionNodeType.DIV) {
|
|
11476
11465
|
this.toArithmeticNode(node[1], operatorA, operatorB);
|
|
11477
11466
|
this.toArithmeticNode(node[2], operatorA, operatorB);
|
|
11478
11467
|
}
|
|
@@ -11509,7 +11498,7 @@
|
|
|
11509
11498
|
var matched = DScalarExpression.TOKEN_REGEX.exec(expression);
|
|
11510
11499
|
if (matched != null) {
|
|
11511
11500
|
var token = matched[0];
|
|
11512
|
-
var tokenTypeOperator =
|
|
11501
|
+
var tokenTypeOperator = this.toTokenOperator(token);
|
|
11513
11502
|
if (tokenTypeOperator != null) {
|
|
11514
11503
|
tokens.push(tokenTypeOperator);
|
|
11515
11504
|
}
|
|
@@ -11518,12 +11507,12 @@
|
|
|
11518
11507
|
if (parsedToken !== parsedToken) {
|
|
11519
11508
|
throw new Error("Unexpected token '" + token + "' at " + matched.index + " in '" + expression + "'");
|
|
11520
11509
|
}
|
|
11521
|
-
var tokenTypeLiteral =
|
|
11510
|
+
var tokenTypeLiteral = this.toTokenLiteral(token);
|
|
11522
11511
|
if (tokenTypeLiteral != null) {
|
|
11523
11512
|
tokens.push([tokenTypeLiteral, parsedToken * 0.01]);
|
|
11524
11513
|
}
|
|
11525
11514
|
else {
|
|
11526
|
-
tokens.push([
|
|
11515
|
+
tokens.push([DScalarExpressionNodeType.NUMBER, parsedToken]);
|
|
11527
11516
|
}
|
|
11528
11517
|
}
|
|
11529
11518
|
}
|
|
@@ -11533,31 +11522,70 @@
|
|
|
11533
11522
|
}
|
|
11534
11523
|
return tokens;
|
|
11535
11524
|
};
|
|
11525
|
+
DScalarExpression.prototype.toTokenOperator = function (token) {
|
|
11526
|
+
switch (token) {
|
|
11527
|
+
case "+":
|
|
11528
|
+
return DScalarExpressionNodeType.ADD_OR_PLUS;
|
|
11529
|
+
case "-":
|
|
11530
|
+
return DScalarExpressionNodeType.SUB_OR_MINUS;
|
|
11531
|
+
case "*":
|
|
11532
|
+
return DScalarExpressionNodeType.MUL;
|
|
11533
|
+
case "/":
|
|
11534
|
+
return DScalarExpressionNodeType.DIV;
|
|
11535
|
+
case "(":
|
|
11536
|
+
return DScalarExpressionNodeType.OPEN;
|
|
11537
|
+
case ")":
|
|
11538
|
+
return DScalarExpressionNodeType.CLOSE;
|
|
11539
|
+
case ",":
|
|
11540
|
+
return DScalarExpressionNodeType.COMMA;
|
|
11541
|
+
case "min":
|
|
11542
|
+
return DScalarExpressionNodeType.MIN;
|
|
11543
|
+
case "max":
|
|
11544
|
+
return DScalarExpressionNodeType.MAX;
|
|
11545
|
+
}
|
|
11546
|
+
return null;
|
|
11547
|
+
};
|
|
11548
|
+
DScalarExpression.prototype.toTokenLiteral = function (token) {
|
|
11549
|
+
var tokenLength = token.length;
|
|
11550
|
+
if (0 < tokenLength) {
|
|
11551
|
+
switch (token[tokenLength - 1]) {
|
|
11552
|
+
case "%":
|
|
11553
|
+
return DScalarExpressionNodeType.PARENT;
|
|
11554
|
+
case "s":
|
|
11555
|
+
return DScalarExpressionNodeType.SELF;
|
|
11556
|
+
case "p":
|
|
11557
|
+
return DScalarExpressionNodeType.PADDING;
|
|
11558
|
+
case "c":
|
|
11559
|
+
return DScalarExpressionNodeType.CURRENT;
|
|
11560
|
+
}
|
|
11561
|
+
}
|
|
11562
|
+
return null;
|
|
11563
|
+
};
|
|
11536
11564
|
DScalarExpression.prototype.evaluate = function (node, parent, self, padding, current) {
|
|
11537
11565
|
switch (node[0]) {
|
|
11538
|
-
case
|
|
11566
|
+
case DScalarExpressionNodeType.PARENSESIS:
|
|
11539
11567
|
var nodes = node[1];
|
|
11540
11568
|
return this.evaluate(nodes[nodes.length - 1], parent, self, padding, current);
|
|
11541
11569
|
// Unary operators
|
|
11542
|
-
case
|
|
11570
|
+
case DScalarExpressionNodeType.PLUS:
|
|
11543
11571
|
return +this.evaluate(node[1], parent, self, padding, current);
|
|
11544
|
-
case
|
|
11572
|
+
case DScalarExpressionNodeType.MINUS:
|
|
11545
11573
|
return -this.evaluate(node[1], parent, self, padding, current);
|
|
11546
11574
|
// Four arithmetic operators
|
|
11547
|
-
case
|
|
11575
|
+
case DScalarExpressionNodeType.ADD:
|
|
11548
11576
|
return (this.evaluate(node[1], parent, self, padding, current) +
|
|
11549
11577
|
this.evaluate(node[2], parent, self, padding, current));
|
|
11550
|
-
case
|
|
11578
|
+
case DScalarExpressionNodeType.SUB:
|
|
11551
11579
|
return (this.evaluate(node[1], parent, self, padding, current) -
|
|
11552
11580
|
this.evaluate(node[2], parent, self, padding, current));
|
|
11553
|
-
case
|
|
11581
|
+
case DScalarExpressionNodeType.MUL:
|
|
11554
11582
|
return (this.evaluate(node[1], parent, self, padding, current) *
|
|
11555
11583
|
this.evaluate(node[2], parent, self, padding, current));
|
|
11556
|
-
case
|
|
11584
|
+
case DScalarExpressionNodeType.DIV:
|
|
11557
11585
|
return (this.evaluate(node[1], parent, self, padding, current) /
|
|
11558
11586
|
this.evaluate(node[2], parent, self, padding, current));
|
|
11559
11587
|
// Functions
|
|
11560
|
-
case
|
|
11588
|
+
case DScalarExpressionNodeType.MIN:
|
|
11561
11589
|
if (0 < node[1].length) {
|
|
11562
11590
|
var args = node[1];
|
|
11563
11591
|
var result = this.evaluate(args[0], parent, self, padding, current);
|
|
@@ -11567,7 +11595,7 @@
|
|
|
11567
11595
|
return result;
|
|
11568
11596
|
}
|
|
11569
11597
|
return 0;
|
|
11570
|
-
case
|
|
11598
|
+
case DScalarExpressionNodeType.MAX:
|
|
11571
11599
|
if (0 < node[1].length) {
|
|
11572
11600
|
var args = node[1];
|
|
11573
11601
|
var result = this.evaluate(args[0], parent, self, padding, current);
|
|
@@ -11578,15 +11606,15 @@
|
|
|
11578
11606
|
}
|
|
11579
11607
|
return 0;
|
|
11580
11608
|
// Literals
|
|
11581
|
-
case
|
|
11609
|
+
case DScalarExpressionNodeType.PARENT:
|
|
11582
11610
|
return node[1] * parent;
|
|
11583
|
-
case
|
|
11611
|
+
case DScalarExpressionNodeType.SELF:
|
|
11584
11612
|
return node[1] * self;
|
|
11585
|
-
case
|
|
11613
|
+
case DScalarExpressionNodeType.PADDING:
|
|
11586
11614
|
return node[1] * padding;
|
|
11587
|
-
case
|
|
11615
|
+
case DScalarExpressionNodeType.CURRENT:
|
|
11588
11616
|
return node[1] * current;
|
|
11589
|
-
case
|
|
11617
|
+
case DScalarExpressionNodeType.NUMBER:
|
|
11590
11618
|
return node[1];
|
|
11591
11619
|
}
|
|
11592
11620
|
return 0;
|
|
@@ -14108,11 +14136,12 @@
|
|
|
14108
14136
|
* SPDX-License-Identifier: Apache-2.0
|
|
14109
14137
|
*/
|
|
14110
14138
|
var DViewGestureImpl = /** @class */ (function () {
|
|
14111
|
-
function DViewGestureImpl(parent, toTarget, stopper, theme, options) {
|
|
14139
|
+
function DViewGestureImpl(parent, toTarget, stopper, constraint, theme, options) {
|
|
14112
14140
|
var _this = this;
|
|
14113
14141
|
var _a, _b;
|
|
14114
14142
|
this._parent = parent;
|
|
14115
14143
|
this._stopper = stopper;
|
|
14144
|
+
this._constraint = constraint;
|
|
14116
14145
|
var mode = toEnum((_a = options === null || options === void 0 ? void 0 : options.mode) !== null && _a !== void 0 ? _a : theme.getGestureMode(), UtilGestureMode);
|
|
14117
14146
|
var modifier = toEnum((_b = options === null || options === void 0 ? void 0 : options.modifier) !== null && _b !== void 0 ? _b : theme.getGestureModifier(), UtilGestureModifier);
|
|
14118
14147
|
if (mode === UtilGestureMode.ON || mode === UtilGestureMode.TOUCH) {
|
|
@@ -14155,8 +14184,7 @@
|
|
|
14155
14184
|
var newX = (position.x - cx) * scaleRatio + x;
|
|
14156
14185
|
var newY = (position.y - cy) * scaleRatio + y;
|
|
14157
14186
|
// Update
|
|
14158
|
-
|
|
14159
|
-
target.position.set(newX, newY);
|
|
14187
|
+
this._constraint(target, newX, newY, newScaleX, newScaleY);
|
|
14160
14188
|
}
|
|
14161
14189
|
};
|
|
14162
14190
|
DViewGestureImpl.prototype.stop = function () {
|
|
@@ -14175,10 +14203,11 @@
|
|
|
14175
14203
|
* SPDX-License-Identifier: Apache-2.0
|
|
14176
14204
|
*/
|
|
14177
14205
|
var DViewTransformImpl = /** @class */ (function () {
|
|
14178
|
-
function DViewTransformImpl(parent, toTarget, stopper, duration) {
|
|
14206
|
+
function DViewTransformImpl(parent, toTarget, stopper, constraint, duration) {
|
|
14179
14207
|
var _this = this;
|
|
14180
14208
|
this._parent = parent;
|
|
14181
14209
|
this._toTarget = toTarget;
|
|
14210
|
+
this._constraint = constraint;
|
|
14182
14211
|
this._newScaleX = 1;
|
|
14183
14212
|
this._newScaleY = 1;
|
|
14184
14213
|
this._newX = 0;
|
|
@@ -14205,11 +14234,10 @@
|
|
|
14205
14234
|
var y = this._oldY * w0 + this._newY * w1;
|
|
14206
14235
|
var target = this._toTarget(this._parent);
|
|
14207
14236
|
if (target != null) {
|
|
14208
|
-
|
|
14209
|
-
target.position.set(x, y);
|
|
14237
|
+
this._constraint(target, x, y, scaleX, scaleY);
|
|
14210
14238
|
}
|
|
14211
14239
|
};
|
|
14212
|
-
DViewTransformImpl.prototype.start = function (target, x,
|
|
14240
|
+
DViewTransformImpl.prototype.start = function (target, x, y, scaleX, scaleY, duration, stop) {
|
|
14213
14241
|
if (stop !== false) {
|
|
14214
14242
|
this._stopper.stop();
|
|
14215
14243
|
}
|
|
@@ -14217,8 +14245,7 @@
|
|
|
14217
14245
|
duration = this._duration;
|
|
14218
14246
|
}
|
|
14219
14247
|
if (duration <= 0) {
|
|
14220
|
-
|
|
14221
|
-
target.position.set(x, Y);
|
|
14248
|
+
this._constraint(target, x, y, scaleX, scaleY);
|
|
14222
14249
|
}
|
|
14223
14250
|
else {
|
|
14224
14251
|
var position = target.position;
|
|
@@ -14228,7 +14255,7 @@
|
|
|
14228
14255
|
this._oldScaleX = scale.x;
|
|
14229
14256
|
this._oldScaleY = scale.y;
|
|
14230
14257
|
this._newX = x;
|
|
14231
|
-
this._newY =
|
|
14258
|
+
this._newY = y;
|
|
14232
14259
|
this._newScaleX = scaleX;
|
|
14233
14260
|
this._newScaleY = scaleY;
|
|
14234
14261
|
this._animation.duration = duration;
|
|
@@ -14250,6 +14277,7 @@
|
|
|
14250
14277
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
14251
14278
|
this._parent = parent;
|
|
14252
14279
|
this._toTarget = toTarget;
|
|
14280
|
+
this._constraint = (options && options.constraint) || DViewImpl.CONSTRAINT;
|
|
14253
14281
|
this._workRect = new pixi_js.Rectangle();
|
|
14254
14282
|
// Theme
|
|
14255
14283
|
var theme = this.toTheme(options) || this.getThemeDefault();
|
|
@@ -14280,9 +14308,9 @@
|
|
|
14280
14308
|
this._wheelTranslationModifier = toEnum((_r = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.modifier) !== null && _r !== void 0 ? _r : theme.getWheelTranslationModifier(), UtilGestureModifier);
|
|
14281
14309
|
this._wheelTranslationChecker = (_s = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.checker) !== null && _s !== void 0 ? _s : UtilGestureModifiers.match;
|
|
14282
14310
|
// Gesture
|
|
14283
|
-
this._gesture = new DViewGestureImpl(parent, toTarget, this, theme, options === null || options === void 0 ? void 0 : options.gesture);
|
|
14311
|
+
this._gesture = new DViewGestureImpl(parent, toTarget, this, this._constraint, theme, options === null || options === void 0 ? void 0 : options.gesture);
|
|
14284
14312
|
// Transform
|
|
14285
|
-
this._transform = new DViewTransformImpl(parent, toTarget, this, this._dblclickZoomDuration);
|
|
14313
|
+
this._transform = new DViewTransformImpl(parent, toTarget, this, this._constraint, this._dblclickZoomDuration);
|
|
14286
14314
|
}
|
|
14287
14315
|
Object.defineProperty(DViewImpl.prototype, "gesture", {
|
|
14288
14316
|
get: function () {
|
|
@@ -14391,7 +14419,8 @@
|
|
|
14391
14419
|
if (target) {
|
|
14392
14420
|
var newScaleX = this.toNormalizedScale(scale.x);
|
|
14393
14421
|
var newScaleY = this.toNormalizedScale(scale.y);
|
|
14394
|
-
target.
|
|
14422
|
+
var targetPosition = target.position;
|
|
14423
|
+
this._constraint(target, targetPosition.x, targetPosition.y, newScaleX, newScaleY);
|
|
14395
14424
|
}
|
|
14396
14425
|
},
|
|
14397
14426
|
enumerable: false,
|
|
@@ -14415,7 +14444,8 @@
|
|
|
14415
14444
|
set: function (position) {
|
|
14416
14445
|
var target = this._toTarget(this._parent);
|
|
14417
14446
|
if (target) {
|
|
14418
|
-
target.
|
|
14447
|
+
var targetScale = target.scale;
|
|
14448
|
+
this._constraint(target, position.x, position.y, targetScale.x, targetScale.y);
|
|
14419
14449
|
}
|
|
14420
14450
|
},
|
|
14421
14451
|
enumerable: false,
|
|
@@ -14456,7 +14486,11 @@
|
|
|
14456
14486
|
if (target) {
|
|
14457
14487
|
this.stop();
|
|
14458
14488
|
var speed = deltas.lowest * this._wheelTranslationSpeed;
|
|
14459
|
-
|
|
14489
|
+
var targetPosition = target.position;
|
|
14490
|
+
var newX = targetPosition.x - deltas.deltaX * speed;
|
|
14491
|
+
var newY = targetPosition.y + deltas.deltaY * speed;
|
|
14492
|
+
var targetScale = target.scale;
|
|
14493
|
+
this._constraint(target, newX, newY, targetScale.x, targetScale.y);
|
|
14460
14494
|
return true;
|
|
14461
14495
|
}
|
|
14462
14496
|
}
|
|
@@ -14498,6 +14532,10 @@
|
|
|
14498
14532
|
DViewImpl.prototype.getType = function () {
|
|
14499
14533
|
return "DView";
|
|
14500
14534
|
};
|
|
14535
|
+
DViewImpl.CONSTRAINT = function (target, x, y, scaleX, scaleY) {
|
|
14536
|
+
target.scale.set(scaleX, scaleY);
|
|
14537
|
+
target.position.set(x, y);
|
|
14538
|
+
};
|
|
14501
14539
|
return DViewImpl;
|
|
14502
14540
|
}());
|
|
14503
14541
|
|
|
@@ -14647,12 +14685,16 @@
|
|
|
14647
14685
|
var container = this.toContainer(shape);
|
|
14648
14686
|
if (container) {
|
|
14649
14687
|
if (remote) {
|
|
14650
|
-
container.data.remote.set(id, value, time);
|
|
14688
|
+
return container.data.remote.set(id, value, time);
|
|
14651
14689
|
}
|
|
14652
14690
|
else {
|
|
14653
|
-
container.data.set(id, value, time)
|
|
14691
|
+
if (container.data.set(id, value, time)) {
|
|
14692
|
+
DApplications.update(container);
|
|
14693
|
+
return true;
|
|
14694
|
+
}
|
|
14654
14695
|
}
|
|
14655
14696
|
}
|
|
14697
|
+
return false;
|
|
14656
14698
|
};
|
|
14657
14699
|
EShapeActionRuntimes.emit = function (shape, name, value, time) {
|
|
14658
14700
|
var container = EShapeActionRuntimes.toContainer(shape);
|
|
@@ -27088,7 +27130,7 @@
|
|
|
27088
27130
|
return _super.call(this, type) || this;
|
|
27089
27131
|
}
|
|
27090
27132
|
EShapeRectangleRounded.prototype.clone = function () {
|
|
27091
|
-
return new EShapeRectangleRounded().copy(this);
|
|
27133
|
+
return new EShapeRectangleRounded(this.type).copy(this);
|
|
27092
27134
|
};
|
|
27093
27135
|
EShapeRectangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
27094
27136
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -27136,7 +27178,7 @@
|
|
|
27136
27178
|
configurable: true
|
|
27137
27179
|
});
|
|
27138
27180
|
EShapeButton.prototype.clone = function () {
|
|
27139
|
-
return new EShapeButton().copy(this);
|
|
27181
|
+
return new EShapeButton(this.type).copy(this);
|
|
27140
27182
|
};
|
|
27141
27183
|
EShapeButton.prototype.serialize = function (manager) {
|
|
27142
27184
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -27894,7 +27936,7 @@
|
|
|
27894
27936
|
return _super.call(this, type) || this;
|
|
27895
27937
|
}
|
|
27896
27938
|
EShapeCircle.prototype.clone = function () {
|
|
27897
|
-
return new EShapeCircle().copy(this);
|
|
27939
|
+
return new EShapeCircle(this.type).copy(this);
|
|
27898
27940
|
};
|
|
27899
27941
|
EShapeCircle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
27900
27942
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -31549,7 +31591,7 @@
|
|
|
31549
31591
|
return this;
|
|
31550
31592
|
};
|
|
31551
31593
|
EShapeConnectorLine.prototype.clone = function () {
|
|
31552
|
-
return new EShapeConnectorLine().copy(this);
|
|
31594
|
+
return new EShapeConnectorLine(this.type).copy(this);
|
|
31553
31595
|
};
|
|
31554
31596
|
EShapeConnectorLine.prototype.serialize = function (manager) {
|
|
31555
31597
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -34558,7 +34600,7 @@
|
|
|
34558
34600
|
return _super.call(this, type) || this;
|
|
34559
34601
|
}
|
|
34560
34602
|
EShapeRectangle.prototype.clone = function () {
|
|
34561
|
-
return new EShapeRectangle().copy(this);
|
|
34603
|
+
return new EShapeRectangle(this.type).copy(this);
|
|
34562
34604
|
};
|
|
34563
34605
|
EShapeRectangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
34564
34606
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -34586,7 +34628,7 @@
|
|
|
34586
34628
|
return _this;
|
|
34587
34629
|
}
|
|
34588
34630
|
EShapeImage.prototype.clone = function () {
|
|
34589
|
-
return new EShapeImage(this.image).copy(this);
|
|
34631
|
+
return new EShapeImage(this.image, this.type).copy(this);
|
|
34590
34632
|
};
|
|
34591
34633
|
return EShapeImage;
|
|
34592
34634
|
}(EShapeRectangle));
|
|
@@ -34895,7 +34937,7 @@
|
|
|
34895
34937
|
return _super.call(this, image, type) || this;
|
|
34896
34938
|
}
|
|
34897
34939
|
EShapeImageSdf.prototype.clone = function () {
|
|
34898
|
-
return new EShapeImageSdf(this.image).copy(this);
|
|
34940
|
+
return new EShapeImageSdf(this.image, this.type).copy(this);
|
|
34899
34941
|
};
|
|
34900
34942
|
return EShapeImageSdf;
|
|
34901
34943
|
}(EShapeImage));
|
|
@@ -34980,7 +35022,7 @@
|
|
|
34980
35022
|
return _super.call(this, type) || this;
|
|
34981
35023
|
}
|
|
34982
35024
|
EShapeLabel.prototype.clone = function () {
|
|
34983
|
-
return new EShapeLabel().copy(this);
|
|
35025
|
+
return new EShapeLabel(this.type).copy(this);
|
|
34984
35026
|
};
|
|
34985
35027
|
return EShapeLabel;
|
|
34986
35028
|
}(EShapePrimitive));
|
|
@@ -35022,7 +35064,7 @@
|
|
|
35022
35064
|
configurable: true
|
|
35023
35065
|
});
|
|
35024
35066
|
EShapeLine.prototype.clone = function () {
|
|
35025
|
-
return new EShapeLine().copy(this);
|
|
35067
|
+
return new EShapeLine(this.type).copy(this);
|
|
35026
35068
|
};
|
|
35027
35069
|
EShapeLine.prototype.serialize = function (manager) {
|
|
35028
35070
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -36039,8 +36081,9 @@
|
|
|
36039
36081
|
*/
|
|
36040
36082
|
var EShapeLineOfCircles = /** @class */ (function (_super) {
|
|
36041
36083
|
__extends(EShapeLineOfCircles, _super);
|
|
36042
|
-
function EShapeLineOfCircles() {
|
|
36043
|
-
|
|
36084
|
+
function EShapeLineOfCircles(type) {
|
|
36085
|
+
if (type === void 0) { type = EShapeType.LINE_OF_CIRCLES; }
|
|
36086
|
+
var _this = _super.call(this, type) || this;
|
|
36044
36087
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36045
36088
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36046
36089
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36055,7 +36098,7 @@
|
|
|
36055
36098
|
configurable: true
|
|
36056
36099
|
});
|
|
36057
36100
|
EShapeLineOfCircles.prototype.clone = function () {
|
|
36058
|
-
return new EShapeLineOfCircles().copy(this);
|
|
36101
|
+
return new EShapeLineOfCircles(this.type).copy(this);
|
|
36059
36102
|
};
|
|
36060
36103
|
EShapeLineOfCircles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36061
36104
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -36266,8 +36309,9 @@
|
|
|
36266
36309
|
*/
|
|
36267
36310
|
var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
36268
36311
|
__extends(EShapeLineOfRectangleRoundeds, _super);
|
|
36269
|
-
function EShapeLineOfRectangleRoundeds() {
|
|
36270
|
-
|
|
36312
|
+
function EShapeLineOfRectangleRoundeds(type) {
|
|
36313
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLE_ROUNDEDS; }
|
|
36314
|
+
var _this = _super.call(this, type) || this;
|
|
36271
36315
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36272
36316
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36273
36317
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36282,7 +36326,7 @@
|
|
|
36282
36326
|
configurable: true
|
|
36283
36327
|
});
|
|
36284
36328
|
EShapeLineOfRectangleRoundeds.prototype.clone = function () {
|
|
36285
|
-
return new EShapeLineOfRectangleRoundeds().copy(this);
|
|
36329
|
+
return new EShapeLineOfRectangleRoundeds(this.type).copy(this);
|
|
36286
36330
|
};
|
|
36287
36331
|
EShapeLineOfRectangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36288
36332
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -36484,8 +36528,9 @@
|
|
|
36484
36528
|
*/
|
|
36485
36529
|
var EShapeLineOfRectangles = /** @class */ (function (_super) {
|
|
36486
36530
|
__extends(EShapeLineOfRectangles, _super);
|
|
36487
|
-
function EShapeLineOfRectangles() {
|
|
36488
|
-
|
|
36531
|
+
function EShapeLineOfRectangles(type) {
|
|
36532
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLES; }
|
|
36533
|
+
var _this = _super.call(this, type) || this;
|
|
36489
36534
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36490
36535
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36491
36536
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36500,7 +36545,7 @@
|
|
|
36500
36545
|
configurable: true
|
|
36501
36546
|
});
|
|
36502
36547
|
EShapeLineOfRectangles.prototype.clone = function () {
|
|
36503
|
-
return new EShapeLineOfRectangles().copy(this);
|
|
36548
|
+
return new EShapeLineOfRectangles(this.type).copy(this);
|
|
36504
36549
|
};
|
|
36505
36550
|
EShapeLineOfRectangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36506
36551
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37244,7 +37289,7 @@
|
|
|
37244
37289
|
return _super.call(this, type) || this;
|
|
37245
37290
|
}
|
|
37246
37291
|
EShapeTriangleRounded.prototype.clone = function () {
|
|
37247
|
-
return new EShapeTriangleRounded().copy(this);
|
|
37292
|
+
return new EShapeTriangleRounded(this.type).copy(this);
|
|
37248
37293
|
};
|
|
37249
37294
|
EShapeTriangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37250
37295
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -37261,8 +37306,9 @@
|
|
|
37261
37306
|
*/
|
|
37262
37307
|
var EShapeLineOfTriangleRoundeds = /** @class */ (function (_super) {
|
|
37263
37308
|
__extends(EShapeLineOfTriangleRoundeds, _super);
|
|
37264
|
-
function EShapeLineOfTriangleRoundeds() {
|
|
37265
|
-
|
|
37309
|
+
function EShapeLineOfTriangleRoundeds(type) {
|
|
37310
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLE_ROUNDEDS; }
|
|
37311
|
+
var _this = _super.call(this, type) || this;
|
|
37266
37312
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
37267
37313
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
37268
37314
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -37277,7 +37323,7 @@
|
|
|
37277
37323
|
configurable: true
|
|
37278
37324
|
});
|
|
37279
37325
|
EShapeLineOfTriangleRoundeds.prototype.clone = function () {
|
|
37280
|
-
return new EShapeLineOfTriangleRoundeds().copy(this);
|
|
37326
|
+
return new EShapeLineOfTriangleRoundeds(this.type).copy(this);
|
|
37281
37327
|
};
|
|
37282
37328
|
EShapeLineOfTriangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37283
37329
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37466,7 +37512,7 @@
|
|
|
37466
37512
|
return _super.call(this, type) || this;
|
|
37467
37513
|
}
|
|
37468
37514
|
EShapeTriangle.prototype.clone = function () {
|
|
37469
|
-
return new EShapeTriangle().copy(this);
|
|
37515
|
+
return new EShapeTriangle(this.type).copy(this);
|
|
37470
37516
|
};
|
|
37471
37517
|
EShapeTriangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37472
37518
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -37483,8 +37529,9 @@
|
|
|
37483
37529
|
*/
|
|
37484
37530
|
var EShapeLineOfTriangles = /** @class */ (function (_super) {
|
|
37485
37531
|
__extends(EShapeLineOfTriangles, _super);
|
|
37486
|
-
function EShapeLineOfTriangles() {
|
|
37487
|
-
|
|
37532
|
+
function EShapeLineOfTriangles(type) {
|
|
37533
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLES; }
|
|
37534
|
+
var _this = _super.call(this, type) || this;
|
|
37488
37535
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
37489
37536
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
37490
37537
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -37499,7 +37546,7 @@
|
|
|
37499
37546
|
configurable: true
|
|
37500
37547
|
});
|
|
37501
37548
|
EShapeLineOfTriangles.prototype.clone = function () {
|
|
37502
|
-
return new EShapeLineOfTriangles().copy(this);
|
|
37549
|
+
return new EShapeLineOfTriangles(this.type).copy(this);
|
|
37503
37550
|
};
|
|
37504
37551
|
EShapeLineOfTriangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37505
37552
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37560,7 +37607,7 @@
|
|
|
37560
37607
|
return _super.call(this, type) || this;
|
|
37561
37608
|
}
|
|
37562
37609
|
EShapeNull.prototype.clone = function () {
|
|
37563
|
-
return new EShapeNull().copy(this);
|
|
37610
|
+
return new EShapeNull(this.type).copy(this);
|
|
37564
37611
|
};
|
|
37565
37612
|
return EShapeNull;
|
|
37566
37613
|
}(EShapePrimitive));
|
|
@@ -38521,7 +38568,7 @@
|
|
|
38521
38568
|
* Copyright (C) 2019 Toshiba Corporation
|
|
38522
38569
|
* SPDX-License-Identifier: Apache-2.0
|
|
38523
38570
|
*/
|
|
38524
|
-
var
|
|
38571
|
+
var toResized = function (shape, from, to, centerMode, isPerfect) {
|
|
38525
38572
|
shape.disallowUploadedUpdate();
|
|
38526
38573
|
var position = shape.transform.position;
|
|
38527
38574
|
if (centerMode) {
|
|
@@ -50027,7 +50074,7 @@
|
|
|
50027
50074
|
};
|
|
50028
50075
|
};
|
|
50029
50076
|
DChartAxisBaseOptionParser.prototype.toTickMajor = function (theme, options) {
|
|
50030
|
-
var _a, _b, _c, _d, _e, _f;
|
|
50077
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
50031
50078
|
var major = options === null || options === void 0 ? void 0 : options.major;
|
|
50032
50079
|
var position = (_b = (_a = major === null || major === void 0 ? void 0 : major.position) !== null && _a !== void 0 ? _a : options === null || options === void 0 ? void 0 : options.position) !== null && _b !== void 0 ? _b : theme.getMajorTickPosition();
|
|
50033
50080
|
var optionsStyle = options === null || options === void 0 ? void 0 : options.style;
|
|
@@ -50036,7 +50083,8 @@
|
|
|
50036
50083
|
var stroke = this.toTickMajorStroke(theme, major === null || major === void 0 ? void 0 : major.stroke, optionsStroke);
|
|
50037
50084
|
return {
|
|
50038
50085
|
count: (_e = major === null || major === void 0 ? void 0 : major.count) !== null && _e !== void 0 ? _e : theme.getMajorTickCount(),
|
|
50039
|
-
|
|
50086
|
+
step: (_f = major === null || major === void 0 ? void 0 : major.step) !== null && _f !== void 0 ? _f : theme.getMajorTickStep(),
|
|
50087
|
+
size: (_g = major === null || major === void 0 ? void 0 : major.size) !== null && _g !== void 0 ? _g : theme.getMajorTickSize(),
|
|
50040
50088
|
position: this.toTickPosition(position),
|
|
50041
50089
|
style: style,
|
|
50042
50090
|
stroke: stroke,
|
|
@@ -50088,13 +50136,14 @@
|
|
|
50088
50136
|
}
|
|
50089
50137
|
};
|
|
50090
50138
|
DChartAxisBaseOptionParser.prototype.toMinorTick = function (theme, options) {
|
|
50091
|
-
var _a, _b, _c, _d, _e, _f;
|
|
50092
|
-
var minor = options === null || options === void 0 ? void 0 : options.
|
|
50139
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
50140
|
+
var minor = options === null || options === void 0 ? void 0 : options.minor;
|
|
50093
50141
|
var position = (_b = (_a = minor === null || minor === void 0 ? void 0 : minor.position) !== null && _a !== void 0 ? _a : options === null || options === void 0 ? void 0 : options.position) !== null && _b !== void 0 ? _b : theme.getMinorTickPosition();
|
|
50094
50142
|
var style = EShapePointsStyles.from((_d = (_c = minor === null || minor === void 0 ? void 0 : minor.style) !== null && _c !== void 0 ? _c : options === null || options === void 0 ? void 0 : options.style) !== null && _d !== void 0 ? _d : theme.getMinorTickStyle());
|
|
50095
50143
|
return {
|
|
50096
50144
|
count: (_e = minor === null || minor === void 0 ? void 0 : minor.count) !== null && _e !== void 0 ? _e : theme.getMinorTickCount(),
|
|
50097
|
-
|
|
50145
|
+
step: (_f = minor === null || minor === void 0 ? void 0 : minor.step) !== null && _f !== void 0 ? _f : theme.getMinorTickStep(),
|
|
50146
|
+
size: (_g = minor === null || minor === void 0 ? void 0 : minor.size) !== null && _g !== void 0 ? _g : theme.getMinorTickSize(),
|
|
50098
50147
|
position: this.toTickPosition(position),
|
|
50099
50148
|
style: style,
|
|
50100
50149
|
stroke: this.toTickMinorStroke(theme, minor === null || minor === void 0 ? void 0 : minor.stroke, options === null || options === void 0 ? void 0 : options.stroke),
|
|
@@ -50380,13 +50429,17 @@
|
|
|
50380
50429
|
};
|
|
50381
50430
|
DChartAxisBase.prototype.updateTicksX = function (domainMin, domainMax, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionY, transform, plotAreaHeight) {
|
|
50382
50431
|
var tick = this._tick;
|
|
50383
|
-
var
|
|
50384
|
-
var
|
|
50385
|
-
var
|
|
50432
|
+
var majorTick = tick.major;
|
|
50433
|
+
var majorCount = majorTick.count;
|
|
50434
|
+
var majorStep = majorTick.step;
|
|
50435
|
+
var majorFormatter = majorTick.formatter;
|
|
50436
|
+
var minorTick = tick.minor;
|
|
50437
|
+
var minorCountPerMajor = minorTick.count;
|
|
50386
50438
|
var minorCount = (majorCount + 1) * minorCountPerMajor;
|
|
50439
|
+
var minorStep = minorTick.step;
|
|
50387
50440
|
var majorTicks = this._majorTicks;
|
|
50388
50441
|
var minorTicks = this._minorTicks;
|
|
50389
|
-
coordinate.ticks(domainMin, domainMax, majorCount, minorCountPerMajor, minorCount, majorTicks, minorTicks);
|
|
50442
|
+
coordinate.ticks(domainMin, domainMax, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
50390
50443
|
var a = transform.a;
|
|
50391
50444
|
var tx = transform.tx;
|
|
50392
50445
|
for (var i = 0; i < majorCount; ++i) {
|
|
@@ -50436,13 +50489,17 @@
|
|
|
50436
50489
|
};
|
|
50437
50490
|
DChartAxisBase.prototype.updateTicksY = function (domainMin, domainMax, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionX, transform, plotAreaWidth) {
|
|
50438
50491
|
var tick = this._tick;
|
|
50439
|
-
var
|
|
50440
|
-
var
|
|
50441
|
-
var
|
|
50492
|
+
var majorTick = tick.major;
|
|
50493
|
+
var majorCount = majorTick.count;
|
|
50494
|
+
var majorStep = majorTick.step;
|
|
50495
|
+
var majorFormatter = majorTick.formatter;
|
|
50496
|
+
var minorTick = tick.minor;
|
|
50497
|
+
var minorCountPerMajor = minorTick.count;
|
|
50442
50498
|
var minorCount = (majorCount + 1) * minorCountPerMajor;
|
|
50499
|
+
var minorStep = minorTick.step;
|
|
50443
50500
|
var majorTicks = this._majorTicks;
|
|
50444
50501
|
var minorTicks = this._minorTicks;
|
|
50445
|
-
coordinate.ticks(domainMin, domainMax, majorCount, minorCountPerMajor, minorCount, majorTicks, minorTicks);
|
|
50502
|
+
coordinate.ticks(domainMin, domainMax, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
50446
50503
|
var d = transform.d;
|
|
50447
50504
|
var ty = transform.ty;
|
|
50448
50505
|
for (var i = 0; i < majorCount; ++i) {
|
|
@@ -51082,25 +51139,45 @@
|
|
|
51082
51139
|
* SPDX-License-Identifier: Apache-2.0
|
|
51083
51140
|
*/
|
|
51084
51141
|
var DChartCoordinateLinearTick = /** @class */ (function () {
|
|
51085
|
-
function DChartCoordinateLinearTick(
|
|
51086
|
-
this._theme =
|
|
51142
|
+
function DChartCoordinateLinearTick(options) {
|
|
51143
|
+
this._theme = this.toTheme(options);
|
|
51087
51144
|
}
|
|
51088
|
-
DChartCoordinateLinearTick.prototype.
|
|
51089
|
-
if (
|
|
51090
|
-
|
|
51091
|
-
|
|
51092
|
-
|
|
51093
|
-
return
|
|
51145
|
+
DChartCoordinateLinearTick.prototype.toMajorStep = function (domainMin, domainMax, majorCount, majorStep) {
|
|
51146
|
+
if (majorStep == null) {
|
|
51147
|
+
if (0 < majorCount) {
|
|
51148
|
+
return this.calcStepMajor(domainMin, domainMax, majorCount);
|
|
51149
|
+
}
|
|
51150
|
+
return -1;
|
|
51094
51151
|
}
|
|
51095
|
-
|
|
51096
|
-
|
|
51097
|
-
DChartCoordinateLinearTick.prototype.calcStepMinor = function (step, minorCount) {
|
|
51098
|
-
if (0 <= step) {
|
|
51099
|
-
return step / (minorCount + 1);
|
|
51152
|
+
else if (isNumber(majorStep)) {
|
|
51153
|
+
return majorStep;
|
|
51100
51154
|
}
|
|
51101
51155
|
else {
|
|
51156
|
+
return majorStep(domainMin, domainMax, majorCount);
|
|
51157
|
+
}
|
|
51158
|
+
};
|
|
51159
|
+
DChartCoordinateLinearTick.prototype.calcStepMajor = function (domainMin, domainMax, majorCount) {
|
|
51160
|
+
var span = Math.abs(domainMax - domainMin) / majorCount;
|
|
51161
|
+
var power = Math.floor(Math.log(span) / Math.LN10);
|
|
51162
|
+
var base = Math.pow(10, power);
|
|
51163
|
+
return this._theme.toStepScale(span / base) * base;
|
|
51164
|
+
};
|
|
51165
|
+
DChartCoordinateLinearTick.prototype.toMinorStep = function (majorStep, minorCount, minorStep) {
|
|
51166
|
+
if (minorStep == null) {
|
|
51167
|
+
if (0 <= majorStep) {
|
|
51168
|
+
return this.calcStepMinor(majorStep, minorCount);
|
|
51169
|
+
}
|
|
51102
51170
|
return -1;
|
|
51103
51171
|
}
|
|
51172
|
+
else if (isNumber(minorStep)) {
|
|
51173
|
+
return minorStep;
|
|
51174
|
+
}
|
|
51175
|
+
else {
|
|
51176
|
+
return minorStep(majorStep, minorCount);
|
|
51177
|
+
}
|
|
51178
|
+
};
|
|
51179
|
+
DChartCoordinateLinearTick.prototype.calcStepMinor = function (majorStep, minorCount) {
|
|
51180
|
+
return majorStep / (minorCount + 1);
|
|
51104
51181
|
};
|
|
51105
51182
|
DChartCoordinateLinearTick.prototype.calcTickMinorPositions = function (step, count, majorPosition, rangeMin, rangeMax, iresult, result) {
|
|
51106
51183
|
for (var i = 0; i < count; i += 1) {
|
|
@@ -51110,15 +51187,15 @@
|
|
|
51110
51187
|
}
|
|
51111
51188
|
}
|
|
51112
51189
|
};
|
|
51113
|
-
DChartCoordinateLinearTick.prototype.calculate = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, coordinate) {
|
|
51190
|
+
DChartCoordinateLinearTick.prototype.calculate = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
51114
51191
|
if (majorCount <= 0) {
|
|
51115
51192
|
return;
|
|
51116
51193
|
}
|
|
51117
51194
|
var transform = coordinate.transform;
|
|
51118
51195
|
var domainMin = Math.min(domainFrom, domainTo);
|
|
51119
51196
|
var domainMax = Math.max(domainFrom, domainTo);
|
|
51120
|
-
var
|
|
51121
|
-
if (
|
|
51197
|
+
var majorStepMapped = this.toMajorStep(domainMin, domainMax, majorCount, majorStep);
|
|
51198
|
+
if (majorStepMapped <= 0) {
|
|
51122
51199
|
majorResult[0] = domainMin;
|
|
51123
51200
|
majorResult[1] = transform.map(coordinate.map(domainMin));
|
|
51124
51201
|
majorResult[2] = 0;
|
|
@@ -51137,33 +51214,37 @@
|
|
|
51137
51214
|
return;
|
|
51138
51215
|
}
|
|
51139
51216
|
// Major tick start position
|
|
51140
|
-
var idomainStart = Math.floor(domainMin /
|
|
51141
|
-
var idomainEnd = Math.ceil(domainMax /
|
|
51217
|
+
var idomainStart = Math.floor(domainMin / majorStepMapped) - 1;
|
|
51218
|
+
var idomainEnd = Math.ceil(domainMax / majorStepMapped) + 1;
|
|
51219
|
+
var domainMinMapped = transform.map(coordinate.map(domainMin));
|
|
51220
|
+
var domainMaxMapped = transform.map(coordinate.map(domainMax));
|
|
51221
|
+
var from = Math.min(domainMinMapped, domainMaxMapped) - 0.5;
|
|
51222
|
+
var to = Math.max(domainMinMapped, domainMaxMapped) + 0.5;
|
|
51142
51223
|
// Major / minor tick positions
|
|
51143
|
-
var
|
|
51224
|
+
var minorStepMapped = this.toMinorStep(majorStepMapped, minorCountPerMajor, minorStep);
|
|
51144
51225
|
var imajor = 0;
|
|
51145
51226
|
var iminor = 0;
|
|
51146
51227
|
for (var i = idomainStart; i <= idomainEnd; ++i) {
|
|
51147
|
-
var majorPosition = i *
|
|
51228
|
+
var majorPosition = i * majorStepMapped;
|
|
51148
51229
|
if (imajor < majorCount) {
|
|
51149
|
-
|
|
51150
|
-
|
|
51230
|
+
var majorPositionMapped = transform.map(coordinate.map(majorPosition));
|
|
51231
|
+
if (from <= majorPositionMapped && majorPositionMapped <= to) {
|
|
51151
51232
|
var imajorResult = imajor * 3;
|
|
51152
51233
|
majorResult[imajorResult + 0] = majorPosition;
|
|
51153
|
-
majorResult[imajorResult + 1] =
|
|
51154
|
-
majorResult[imajorResult + 2] =
|
|
51234
|
+
majorResult[imajorResult + 1] = majorPositionMapped;
|
|
51235
|
+
majorResult[imajorResult + 2] = majorStepMapped;
|
|
51155
51236
|
imajor += 1;
|
|
51156
51237
|
}
|
|
51157
51238
|
}
|
|
51158
51239
|
for (var j = 0; j < minorCountPerMajor; j += 1) {
|
|
51159
51240
|
if (iminor < minorCount) {
|
|
51160
|
-
var minorPosition = majorPosition + (j + 1) *
|
|
51161
|
-
|
|
51162
|
-
|
|
51241
|
+
var minorPosition = majorPosition + (j + 1) * minorStepMapped;
|
|
51242
|
+
var minorPositionMapped = transform.map(coordinate.map(minorPosition));
|
|
51243
|
+
if (from <= minorPositionMapped && minorPositionMapped <= to) {
|
|
51163
51244
|
var iminorResult = iminor * 3;
|
|
51164
51245
|
minorResult[iminorResult + 0] = minorPosition;
|
|
51165
|
-
minorResult[iminorResult + 1] =
|
|
51166
|
-
minorResult[iminorResult + 2] =
|
|
51246
|
+
minorResult[iminorResult + 1] = minorPositionMapped;
|
|
51247
|
+
minorResult[iminorResult + 2] = minorStepMapped;
|
|
51167
51248
|
iminor += 1;
|
|
51168
51249
|
}
|
|
51169
51250
|
}
|
|
@@ -51182,14 +51263,29 @@
|
|
|
51182
51263
|
minorResult[iminorResult + 2] = NaN;
|
|
51183
51264
|
}
|
|
51184
51265
|
};
|
|
51266
|
+
DChartCoordinateLinearTick.prototype.toTheme = function (options) {
|
|
51267
|
+
return (options && options.theme) || this.getThemeDefault();
|
|
51268
|
+
};
|
|
51269
|
+
DChartCoordinateLinearTick.prototype.getThemeDefault = function () {
|
|
51270
|
+
return DThemes.getInstance().get(this.getType());
|
|
51271
|
+
};
|
|
51272
|
+
DChartCoordinateLinearTick.prototype.getType = function () {
|
|
51273
|
+
return "DChartCoordinateTick";
|
|
51274
|
+
};
|
|
51185
51275
|
return DChartCoordinateLinearTick;
|
|
51186
51276
|
}());
|
|
51187
51277
|
|
|
51278
|
+
/*
|
|
51279
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
51280
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
51281
|
+
*/
|
|
51188
51282
|
var DChartCoordinateTransformImpl = /** @class */ (function () {
|
|
51189
|
-
function DChartCoordinateTransformImpl(
|
|
51190
|
-
this._theme =
|
|
51283
|
+
function DChartCoordinateTransformImpl(options) {
|
|
51284
|
+
this._theme = this.toTheme(options);
|
|
51191
51285
|
this._id = 0;
|
|
51286
|
+
this._isTranslationEnabled = options === null || options === void 0 ? void 0 : options.translation;
|
|
51192
51287
|
this._translate = 0;
|
|
51288
|
+
this._isScalingEnabled = options === null || options === void 0 ? void 0 : options.scaling;
|
|
51193
51289
|
this._scale = 1;
|
|
51194
51290
|
this._itranslate = 0;
|
|
51195
51291
|
this._iscale = 1;
|
|
@@ -51229,11 +51325,13 @@
|
|
|
51229
51325
|
};
|
|
51230
51326
|
DChartCoordinateTransformImpl.prototype.set = function (translate, scale) {
|
|
51231
51327
|
var isChanged = false;
|
|
51232
|
-
if (translate != null &&
|
|
51328
|
+
if (translate != null &&
|
|
51329
|
+
this._isTranslationEnabled !== false &&
|
|
51330
|
+
this._translate !== translate) {
|
|
51233
51331
|
isChanged = true;
|
|
51234
51332
|
this._translate = translate;
|
|
51235
51333
|
}
|
|
51236
|
-
if (scale != null && this._scale !== scale) {
|
|
51334
|
+
if (scale != null && this._isScalingEnabled !== false && this._scale !== scale) {
|
|
51237
51335
|
isChanged = true;
|
|
51238
51336
|
this._scale = scale;
|
|
51239
51337
|
}
|
|
@@ -51269,6 +51367,15 @@
|
|
|
51269
51367
|
values[i] = itranslate + iscale * values[i];
|
|
51270
51368
|
}
|
|
51271
51369
|
};
|
|
51370
|
+
DChartCoordinateTransformImpl.prototype.toTheme = function (options) {
|
|
51371
|
+
return (options && options.theme) || this.getThemeDefault();
|
|
51372
|
+
};
|
|
51373
|
+
DChartCoordinateTransformImpl.prototype.getThemeDefault = function () {
|
|
51374
|
+
return DThemes.getInstance().get(this.getType());
|
|
51375
|
+
};
|
|
51376
|
+
DChartCoordinateTransformImpl.prototype.getType = function () {
|
|
51377
|
+
return "DChartCoordinateTransform";
|
|
51378
|
+
};
|
|
51272
51379
|
return DChartCoordinateTransformImpl;
|
|
51273
51380
|
}());
|
|
51274
51381
|
|
|
@@ -51333,13 +51440,34 @@
|
|
|
51333
51440
|
function DChartCoordinateLinear(options) {
|
|
51334
51441
|
this._id = 0;
|
|
51335
51442
|
this._direction = DChartCoordinateDirection.X;
|
|
51336
|
-
|
|
51337
|
-
this.
|
|
51338
|
-
this.
|
|
51339
|
-
this._tick = new DChartCoordinateLinearTick(theme);
|
|
51443
|
+
this._theme = this.toTheme(options);
|
|
51444
|
+
this._transform = new DChartCoordinateTransformImpl(options === null || options === void 0 ? void 0 : options.transform);
|
|
51445
|
+
this._tick = new DChartCoordinateLinearTick(options === null || options === void 0 ? void 0 : options.tick);
|
|
51340
51446
|
this._work = new DChartRegionImpl(NaN, NaN);
|
|
51341
51447
|
this._mark = new DChartCoordinateTransformMarkImpl();
|
|
51448
|
+
this._from = options === null || options === void 0 ? void 0 : options.from;
|
|
51449
|
+
this._to = options === null || options === void 0 ? void 0 : options.to;
|
|
51342
51450
|
}
|
|
51451
|
+
Object.defineProperty(DChartCoordinateLinear.prototype, "from", {
|
|
51452
|
+
get: function () {
|
|
51453
|
+
return this._from;
|
|
51454
|
+
},
|
|
51455
|
+
set: function (from) {
|
|
51456
|
+
this._from = from;
|
|
51457
|
+
},
|
|
51458
|
+
enumerable: false,
|
|
51459
|
+
configurable: true
|
|
51460
|
+
});
|
|
51461
|
+
Object.defineProperty(DChartCoordinateLinear.prototype, "to", {
|
|
51462
|
+
get: function () {
|
|
51463
|
+
return this._to;
|
|
51464
|
+
},
|
|
51465
|
+
set: function (to) {
|
|
51466
|
+
this._to = to;
|
|
51467
|
+
},
|
|
51468
|
+
enumerable: false,
|
|
51469
|
+
configurable: true
|
|
51470
|
+
});
|
|
51343
51471
|
DChartCoordinateLinear.prototype.bind = function (container, direction) {
|
|
51344
51472
|
this._container = container;
|
|
51345
51473
|
this._direction = direction;
|
|
@@ -51379,6 +51507,12 @@
|
|
|
51379
51507
|
}
|
|
51380
51508
|
};
|
|
51381
51509
|
DChartCoordinateLinear.prototype.toFitDomain = function (from, to, plotArea, result) {
|
|
51510
|
+
if (from == null) {
|
|
51511
|
+
from = this._from;
|
|
51512
|
+
}
|
|
51513
|
+
if (to == null) {
|
|
51514
|
+
to = this._to;
|
|
51515
|
+
}
|
|
51382
51516
|
if (from != null && to != null) {
|
|
51383
51517
|
result.set(from, to);
|
|
51384
51518
|
}
|
|
@@ -51389,6 +51523,12 @@
|
|
|
51389
51523
|
return result;
|
|
51390
51524
|
};
|
|
51391
51525
|
DChartCoordinateLinear.prototype.toFitRange = function (from, to, plotArea, result) {
|
|
51526
|
+
if (from == null) {
|
|
51527
|
+
from = this._from;
|
|
51528
|
+
}
|
|
51529
|
+
if (to == null) {
|
|
51530
|
+
to = this._to;
|
|
51531
|
+
}
|
|
51392
51532
|
if (from != null && to != null) {
|
|
51393
51533
|
result.set(from, to);
|
|
51394
51534
|
}
|
|
@@ -51444,8 +51584,8 @@
|
|
|
51444
51584
|
DChartCoordinateLinear.prototype.unmapAll = function (values, ifrom, iend, stride, offset) {
|
|
51445
51585
|
// DO NOTHING
|
|
51446
51586
|
};
|
|
51447
|
-
DChartCoordinateLinear.prototype.ticks = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult) {
|
|
51448
|
-
this._tick.calculate(domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, this);
|
|
51587
|
+
DChartCoordinateLinear.prototype.ticks = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
51588
|
+
this._tick.calculate(domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, this);
|
|
51449
51589
|
};
|
|
51450
51590
|
DChartCoordinateLinear.prototype.toTheme = function (options) {
|
|
51451
51591
|
return (options && options.theme) || this.getThemeDefault();
|
|
@@ -51454,7 +51594,7 @@
|
|
|
51454
51594
|
return DThemes.getInstance().get(this.getType());
|
|
51455
51595
|
};
|
|
51456
51596
|
DChartCoordinateLinear.prototype.getType = function () {
|
|
51457
|
-
return "
|
|
51597
|
+
return "DChartCoordinate";
|
|
51458
51598
|
};
|
|
51459
51599
|
return DChartCoordinateLinear;
|
|
51460
51600
|
}());
|
|
@@ -51464,25 +51604,45 @@
|
|
|
51464
51604
|
* SPDX-License-Identifier: Apache-2.0
|
|
51465
51605
|
*/
|
|
51466
51606
|
var DChartCoordinateLogTick = /** @class */ (function () {
|
|
51467
|
-
function DChartCoordinateLogTick(
|
|
51468
|
-
this._theme =
|
|
51607
|
+
function DChartCoordinateLogTick(options) {
|
|
51608
|
+
this._theme = this.toTheme(options);
|
|
51469
51609
|
}
|
|
51470
|
-
DChartCoordinateLogTick.prototype.
|
|
51471
|
-
if (
|
|
51472
|
-
|
|
51473
|
-
|
|
51474
|
-
|
|
51475
|
-
return
|
|
51610
|
+
DChartCoordinateLogTick.prototype.toMajorStep = function (domainMin, domainMax, majorCount, majorStep) {
|
|
51611
|
+
if (majorStep == null) {
|
|
51612
|
+
if (0 < majorCount) {
|
|
51613
|
+
return this.calcStepMajor(domainMin, domainMax, majorCount);
|
|
51614
|
+
}
|
|
51615
|
+
return -1;
|
|
51476
51616
|
}
|
|
51477
|
-
|
|
51478
|
-
|
|
51479
|
-
DChartCoordinateLogTick.prototype.calcStepMinor = function (step, minorCount) {
|
|
51480
|
-
if (0 <= step) {
|
|
51481
|
-
return step / (minorCount + 1);
|
|
51617
|
+
else if (isNumber(majorStep)) {
|
|
51618
|
+
return majorStep;
|
|
51482
51619
|
}
|
|
51483
51620
|
else {
|
|
51621
|
+
return majorStep(domainMin, domainMax, majorCount);
|
|
51622
|
+
}
|
|
51623
|
+
};
|
|
51624
|
+
DChartCoordinateLogTick.prototype.calcStepMajor = function (domainMin, domainMax, majorCount) {
|
|
51625
|
+
var span = Math.abs(domainMax - domainMin) / majorCount;
|
|
51626
|
+
var power = Math.floor(Math.log(span) / Math.LN10);
|
|
51627
|
+
var base = Math.pow(10, power);
|
|
51628
|
+
return this._theme.toStepScale(span / base) * base;
|
|
51629
|
+
};
|
|
51630
|
+
DChartCoordinateLogTick.prototype.toMinorStep = function (majorStep, minorCount, minorStep) {
|
|
51631
|
+
if (minorStep == null) {
|
|
51632
|
+
if (0 <= majorStep) {
|
|
51633
|
+
return this.calcStepMinor(majorStep, minorCount);
|
|
51634
|
+
}
|
|
51484
51635
|
return -1;
|
|
51485
51636
|
}
|
|
51637
|
+
else if (isNumber(minorStep)) {
|
|
51638
|
+
return minorStep;
|
|
51639
|
+
}
|
|
51640
|
+
else {
|
|
51641
|
+
return minorStep(majorStep, minorCount);
|
|
51642
|
+
}
|
|
51643
|
+
};
|
|
51644
|
+
DChartCoordinateLogTick.prototype.calcStepMinor = function (majorStep, minorCount) {
|
|
51645
|
+
return majorStep / (minorCount + 1);
|
|
51486
51646
|
};
|
|
51487
51647
|
DChartCoordinateLogTick.prototype.calcTickMinorPositions = function (step, count, majorPosition, rangeMin, rangeMax, iresult, result) {
|
|
51488
51648
|
for (var i = 0; i < count; i += 1) {
|
|
@@ -51492,7 +51652,7 @@
|
|
|
51492
51652
|
}
|
|
51493
51653
|
}
|
|
51494
51654
|
};
|
|
51495
|
-
DChartCoordinateLogTick.prototype.calculate = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, coordinate) {
|
|
51655
|
+
DChartCoordinateLogTick.prototype.calculate = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
51496
51656
|
if (majorCount <= 0) {
|
|
51497
51657
|
return;
|
|
51498
51658
|
}
|
|
@@ -51501,7 +51661,7 @@
|
|
|
51501
51661
|
var domainToMapped = coordinate.map(domainTo);
|
|
51502
51662
|
var domainMinMapped = Math.min(domainFromMapped, domainToMapped);
|
|
51503
51663
|
var domainMaxMapped = Math.max(domainFromMapped, domainToMapped);
|
|
51504
|
-
var majorStepMapped = this.
|
|
51664
|
+
var majorStepMapped = this.toMajorStep(domainMinMapped, domainMaxMapped, majorCount, majorStep);
|
|
51505
51665
|
if (majorStepMapped <= 0) {
|
|
51506
51666
|
var domainMin = Math.min(domainFrom, domainTo);
|
|
51507
51667
|
majorResult[0] = domainMin;
|
|
@@ -51525,7 +51685,7 @@
|
|
|
51525
51685
|
var idomainStartMapped = Math.floor(domainMinMapped / majorStepMapped) - 1;
|
|
51526
51686
|
var idomainEndMapped = Math.ceil(domainMaxMapped / majorStepMapped) + 1;
|
|
51527
51687
|
// Major / minor tick positions
|
|
51528
|
-
var minorStepMapped = this.
|
|
51688
|
+
var minorStepMapped = this.toMinorStep(majorStepMapped, minorCountPerMajor, minorStep);
|
|
51529
51689
|
var imajor = 0;
|
|
51530
51690
|
var iminor = 0;
|
|
51531
51691
|
for (var i = idomainStartMapped; i <= idomainEndMapped; ++i) {
|
|
@@ -51533,13 +51693,10 @@
|
|
|
51533
51693
|
if (imajor < majorCount) {
|
|
51534
51694
|
if (domainMinMapped <= majorPositionMapped &&
|
|
51535
51695
|
majorPositionMapped <= domainMaxMapped) {
|
|
51536
|
-
var majorPosition = coordinate.unmap(majorPositionMapped);
|
|
51537
|
-
var majorProjectedPosition = transform.map(majorPositionMapped);
|
|
51538
|
-
var majorStep = coordinate.unmap(majorPositionMapped - 1);
|
|
51539
51696
|
var imajorResult = imajor * 3;
|
|
51540
|
-
majorResult[imajorResult + 0] =
|
|
51541
|
-
majorResult[imajorResult + 1] =
|
|
51542
|
-
majorResult[imajorResult + 2] =
|
|
51697
|
+
majorResult[imajorResult + 0] = coordinate.unmap(majorPositionMapped);
|
|
51698
|
+
majorResult[imajorResult + 1] = transform.map(majorPositionMapped);
|
|
51699
|
+
majorResult[imajorResult + 2] = coordinate.unmap(majorPositionMapped - 1);
|
|
51543
51700
|
imajor += 1;
|
|
51544
51701
|
}
|
|
51545
51702
|
}
|
|
@@ -51548,13 +51705,10 @@
|
|
|
51548
51705
|
var minorPositionMapped = majorPositionMapped + (j + 1) * minorStepMapped;
|
|
51549
51706
|
if (domainMinMapped <= minorPositionMapped &&
|
|
51550
51707
|
minorPositionMapped <= domainMaxMapped) {
|
|
51551
|
-
var minorPosition = coordinate.unmap(minorPositionMapped);
|
|
51552
|
-
var minorProjectedPosition = transform.map(minorPositionMapped);
|
|
51553
|
-
var minorStep = coordinate.unmap(minorPositionMapped - 1);
|
|
51554
51708
|
var iminorResult = iminor * 3;
|
|
51555
|
-
minorResult[iminorResult + 0] =
|
|
51556
|
-
minorResult[iminorResult + 1] =
|
|
51557
|
-
minorResult[iminorResult + 2] =
|
|
51709
|
+
minorResult[iminorResult + 0] = coordinate.unmap(minorPositionMapped);
|
|
51710
|
+
minorResult[iminorResult + 1] = transform.map(minorPositionMapped);
|
|
51711
|
+
minorResult[iminorResult + 2] = coordinate.unmap(minorPositionMapped - 1);
|
|
51558
51712
|
iminor += 1;
|
|
51559
51713
|
}
|
|
51560
51714
|
}
|
|
@@ -51573,6 +51727,15 @@
|
|
|
51573
51727
|
minorResult[iminorResult + 2] = NaN;
|
|
51574
51728
|
}
|
|
51575
51729
|
};
|
|
51730
|
+
DChartCoordinateLogTick.prototype.toTheme = function (options) {
|
|
51731
|
+
return (options && options.theme) || this.getThemeDefault();
|
|
51732
|
+
};
|
|
51733
|
+
DChartCoordinateLogTick.prototype.getThemeDefault = function () {
|
|
51734
|
+
return DThemes.getInstance().get(this.getType());
|
|
51735
|
+
};
|
|
51736
|
+
DChartCoordinateLogTick.prototype.getType = function () {
|
|
51737
|
+
return "DChartCoordinateTick";
|
|
51738
|
+
};
|
|
51576
51739
|
return DChartCoordinateLogTick;
|
|
51577
51740
|
}());
|
|
51578
51741
|
|
|
@@ -51584,13 +51747,34 @@
|
|
|
51584
51747
|
function DChartCoordinateLog(options) {
|
|
51585
51748
|
this._id = 0;
|
|
51586
51749
|
this._direction = DChartCoordinateDirection.X;
|
|
51587
|
-
|
|
51588
|
-
this.
|
|
51589
|
-
this.
|
|
51590
|
-
this._tick = new DChartCoordinateLogTick(theme);
|
|
51750
|
+
this._theme = this.toTheme(options);
|
|
51751
|
+
this._transform = new DChartCoordinateTransformImpl(options === null || options === void 0 ? void 0 : options.transform);
|
|
51752
|
+
this._tick = new DChartCoordinateLogTick(options === null || options === void 0 ? void 0 : options.tick);
|
|
51591
51753
|
this._work = new DChartRegionImpl(NaN, NaN);
|
|
51592
51754
|
this._mark = new DChartCoordinateTransformMarkImpl();
|
|
51755
|
+
this._from = options === null || options === void 0 ? void 0 : options.from;
|
|
51756
|
+
this._to = options === null || options === void 0 ? void 0 : options.to;
|
|
51593
51757
|
}
|
|
51758
|
+
Object.defineProperty(DChartCoordinateLog.prototype, "from", {
|
|
51759
|
+
get: function () {
|
|
51760
|
+
return this._from;
|
|
51761
|
+
},
|
|
51762
|
+
set: function (from) {
|
|
51763
|
+
this._from = from;
|
|
51764
|
+
},
|
|
51765
|
+
enumerable: false,
|
|
51766
|
+
configurable: true
|
|
51767
|
+
});
|
|
51768
|
+
Object.defineProperty(DChartCoordinateLog.prototype, "to", {
|
|
51769
|
+
get: function () {
|
|
51770
|
+
return this._to;
|
|
51771
|
+
},
|
|
51772
|
+
set: function (to) {
|
|
51773
|
+
this._to = to;
|
|
51774
|
+
},
|
|
51775
|
+
enumerable: false,
|
|
51776
|
+
configurable: true
|
|
51777
|
+
});
|
|
51594
51778
|
DChartCoordinateLog.prototype.bind = function (container, direction) {
|
|
51595
51779
|
this._container = container;
|
|
51596
51780
|
this._direction = direction;
|
|
@@ -51628,6 +51812,12 @@
|
|
|
51628
51812
|
}
|
|
51629
51813
|
};
|
|
51630
51814
|
DChartCoordinateLog.prototype.toFitDomain = function (from, to, plotArea, result) {
|
|
51815
|
+
if (from == null) {
|
|
51816
|
+
from = this._from;
|
|
51817
|
+
}
|
|
51818
|
+
if (to == null) {
|
|
51819
|
+
to = this._to;
|
|
51820
|
+
}
|
|
51631
51821
|
if (from != null && to != null) {
|
|
51632
51822
|
result.set(from, to);
|
|
51633
51823
|
}
|
|
@@ -51638,6 +51828,12 @@
|
|
|
51638
51828
|
return result;
|
|
51639
51829
|
};
|
|
51640
51830
|
DChartCoordinateLog.prototype.toFitRange = function (from, to, plotArea, result) {
|
|
51831
|
+
if (from == null) {
|
|
51832
|
+
from = this._from;
|
|
51833
|
+
}
|
|
51834
|
+
if (to == null) {
|
|
51835
|
+
to = this._to;
|
|
51836
|
+
}
|
|
51641
51837
|
if (from != null && to != null) {
|
|
51642
51838
|
result.set(from, to);
|
|
51643
51839
|
}
|
|
@@ -51701,8 +51897,8 @@
|
|
|
51701
51897
|
values[i] = Math.pow(10, values[i]);
|
|
51702
51898
|
}
|
|
51703
51899
|
};
|
|
51704
|
-
DChartCoordinateLog.prototype.ticks = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult) {
|
|
51705
|
-
this._tick.calculate(domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, this);
|
|
51900
|
+
DChartCoordinateLog.prototype.ticks = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
51901
|
+
this._tick.calculate(domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, this);
|
|
51706
51902
|
};
|
|
51707
51903
|
DChartCoordinateLog.prototype.toTheme = function (options) {
|
|
51708
51904
|
return (options && options.theme) || this.getThemeDefault();
|
|
@@ -51711,7 +51907,7 @@
|
|
|
51711
51907
|
return DThemes.getInstance().get(this.getType());
|
|
51712
51908
|
};
|
|
51713
51909
|
DChartCoordinateLog.prototype.getType = function () {
|
|
51714
|
-
return "
|
|
51910
|
+
return "DChartCoordinate";
|
|
51715
51911
|
};
|
|
51716
51912
|
return DChartCoordinateLog;
|
|
51717
51913
|
}());
|
|
@@ -54165,48 +54361,56 @@
|
|
|
54165
54361
|
var p1y = NaN;
|
|
54166
54362
|
var threshold = 0.00001;
|
|
54167
54363
|
if (babs <= aabs) {
|
|
54168
|
-
var
|
|
54169
|
-
var
|
|
54170
|
-
p0x = Math.min(
|
|
54171
|
-
p1x = Math.max(
|
|
54172
|
-
|
|
54173
|
-
|
|
54174
|
-
|
|
54175
|
-
|
|
54176
|
-
|
|
54364
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(0));
|
|
54365
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(plotAreaSizeX));
|
|
54366
|
+
p0x = Math.min(xfrom, xto);
|
|
54367
|
+
p1x = Math.max(xfrom, xto);
|
|
54368
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(0));
|
|
54369
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(plotAreaSizeY));
|
|
54370
|
+
p0y = Math.min(yfrom, yto);
|
|
54371
|
+
p1y = Math.max(yfrom, yto);
|
|
54372
|
+
if (threshold < babs) {
|
|
54373
|
+
var f = b / a;
|
|
54374
|
+
var xfrom1 = f * (yfrom - y0) + x0;
|
|
54375
|
+
var xto1 = f * (yto - y0) + x0;
|
|
54177
54376
|
var p2x = Math.min(xfrom1, xto1);
|
|
54178
54377
|
var p3x = Math.max(xfrom1, xto1);
|
|
54179
|
-
|
|
54180
|
-
|
|
54181
|
-
|
|
54182
|
-
|
|
54183
|
-
|
|
54184
|
-
|
|
54378
|
+
p0x = Math.max(p0x, p2x);
|
|
54379
|
+
p1x = Math.min(p1x, p3x);
|
|
54380
|
+
var g = 1 / f;
|
|
54381
|
+
p0y = g * (p0x - x0) + b * y0;
|
|
54382
|
+
p1y = g * (p1x - x0) + b * y0;
|
|
54383
|
+
}
|
|
54384
|
+
else {
|
|
54385
|
+
p0x = x0;
|
|
54386
|
+
p1x = x0;
|
|
54185
54387
|
}
|
|
54186
|
-
p0y = a * (p0x - x0) + b * y0;
|
|
54187
|
-
p1y = a * (p1x - x0) + b * y0;
|
|
54188
54388
|
}
|
|
54189
54389
|
else {
|
|
54190
|
-
var
|
|
54191
|
-
var
|
|
54192
|
-
p0y = Math.min(
|
|
54193
|
-
p1y = Math.max(
|
|
54194
|
-
|
|
54195
|
-
|
|
54196
|
-
|
|
54197
|
-
|
|
54198
|
-
|
|
54390
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(0));
|
|
54391
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(plotAreaSizeY));
|
|
54392
|
+
p0y = Math.min(yfrom, yto);
|
|
54393
|
+
p1y = Math.max(yfrom, yto);
|
|
54394
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(0));
|
|
54395
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(plotAreaSizeX));
|
|
54396
|
+
p0x = Math.min(xfrom, xto);
|
|
54397
|
+
p1x = Math.max(xfrom, xto);
|
|
54398
|
+
if (threshold < aabs) {
|
|
54399
|
+
var f = a / b;
|
|
54400
|
+
var yfrom1 = f * (xfrom - x0) + y0;
|
|
54401
|
+
var yto1 = f * (xto - x0) + y0;
|
|
54199
54402
|
var p2y = Math.min(yfrom1, yto1);
|
|
54200
54403
|
var p3y = Math.max(yfrom1, yto1);
|
|
54201
|
-
|
|
54202
|
-
|
|
54203
|
-
|
|
54204
|
-
|
|
54205
|
-
|
|
54206
|
-
|
|
54404
|
+
p0y = Math.max(p0y, p2y);
|
|
54405
|
+
p1y = Math.min(p1y, p3y);
|
|
54406
|
+
var g = 1 / f;
|
|
54407
|
+
p0x = g * (p0y - y0) + a * x0;
|
|
54408
|
+
p1x = g * (p1y - y0) + a * x0;
|
|
54409
|
+
}
|
|
54410
|
+
else {
|
|
54411
|
+
p0y = y0;
|
|
54412
|
+
p1y = y0;
|
|
54207
54413
|
}
|
|
54208
|
-
p0x = b * (p0y - y0) + a * x0;
|
|
54209
|
-
p1x = b * (p1y - y0) + a * x0;
|
|
54210
54414
|
}
|
|
54211
54415
|
p0x = xcoordinate.transform.map(xcoordinate.map(p0x));
|
|
54212
54416
|
p0y = ycoordinate.transform.map(ycoordinate.map(p0y));
|
|
@@ -54236,6 +54440,7 @@
|
|
|
54236
54440
|
line.disallowUploadedUpdate();
|
|
54237
54441
|
line.points.set(values, segments);
|
|
54238
54442
|
line.size.set(sx, sy);
|
|
54443
|
+
line.points.toFitted();
|
|
54239
54444
|
line.transform.position.set(cx, cy);
|
|
54240
54445
|
line.allowUploadedUpdate();
|
|
54241
54446
|
DApplications.update(line);
|
|
@@ -56001,7 +56206,9 @@
|
|
|
56001
56206
|
var controller = this._controller;
|
|
56002
56207
|
if (controller) {
|
|
56003
56208
|
controller.write(id, value);
|
|
56209
|
+
return true;
|
|
56004
56210
|
}
|
|
56211
|
+
return false;
|
|
56005
56212
|
};
|
|
56006
56213
|
return DDiagramDataRemote;
|
|
56007
56214
|
}());
|
|
@@ -56075,8 +56282,10 @@
|
|
|
56075
56282
|
// Value
|
|
56076
56283
|
datumValue.value = value;
|
|
56077
56284
|
}
|
|
56285
|
+
return true;
|
|
56078
56286
|
}
|
|
56079
56287
|
}
|
|
56288
|
+
return false;
|
|
56080
56289
|
};
|
|
56081
56290
|
DDiagramData.prototype.clear = function (id) {
|
|
56082
56291
|
var canvas = this._diagram.canvas;
|
|
@@ -56086,8 +56295,10 @@
|
|
|
56086
56295
|
for (var i = 0, imax = datum.length; i < imax; ++i) {
|
|
56087
56296
|
datum[i].clear();
|
|
56088
56297
|
}
|
|
56298
|
+
return true;
|
|
56089
56299
|
}
|
|
56090
56300
|
}
|
|
56301
|
+
return false;
|
|
56091
56302
|
};
|
|
56092
56303
|
DDiagramData.prototype.setAll = function (id, values, times, from, to) {
|
|
56093
56304
|
var canvas = this._diagram.canvas;
|
|
@@ -56106,8 +56317,10 @@
|
|
|
56106
56317
|
// Value
|
|
56107
56318
|
datumValue.values = values;
|
|
56108
56319
|
}
|
|
56320
|
+
return true;
|
|
56109
56321
|
}
|
|
56110
56322
|
}
|
|
56323
|
+
return false;
|
|
56111
56324
|
};
|
|
56112
56325
|
DDiagramData.prototype.setValue = function (id, value, time) {
|
|
56113
56326
|
var canvas = this._diagram.canvas;
|
|
@@ -56121,8 +56334,10 @@
|
|
|
56121
56334
|
}
|
|
56122
56335
|
datumValue.value = value;
|
|
56123
56336
|
}
|
|
56337
|
+
return true;
|
|
56124
56338
|
}
|
|
56125
56339
|
}
|
|
56340
|
+
return false;
|
|
56126
56341
|
};
|
|
56127
56342
|
DDiagramData.prototype.setValues = function (id, values, times) {
|
|
56128
56343
|
var canvas = this._diagram.canvas;
|
|
@@ -56136,8 +56351,10 @@
|
|
|
56136
56351
|
}
|
|
56137
56352
|
datumValue.values = values;
|
|
56138
56353
|
}
|
|
56354
|
+
return true;
|
|
56139
56355
|
}
|
|
56140
56356
|
}
|
|
56357
|
+
return false;
|
|
56141
56358
|
};
|
|
56142
56359
|
DDiagramData.prototype.setTime = function (id, time) {
|
|
56143
56360
|
var canvas = this._diagram.canvas;
|
|
@@ -56147,8 +56364,10 @@
|
|
|
56147
56364
|
for (var i = 0, imax = datum.length; i < imax; ++i) {
|
|
56148
56365
|
datum[i].time = time;
|
|
56149
56366
|
}
|
|
56367
|
+
return true;
|
|
56150
56368
|
}
|
|
56151
56369
|
}
|
|
56370
|
+
return false;
|
|
56152
56371
|
};
|
|
56153
56372
|
DDiagramData.prototype.setTimes = function (id, times) {
|
|
56154
56373
|
var canvas = this._diagram.canvas;
|
|
@@ -56158,8 +56377,10 @@
|
|
|
56158
56377
|
for (var i = 0, imax = datum.length; i < imax; ++i) {
|
|
56159
56378
|
datum[i].times = times;
|
|
56160
56379
|
}
|
|
56380
|
+
return true;
|
|
56161
56381
|
}
|
|
56162
56382
|
}
|
|
56383
|
+
return false;
|
|
56163
56384
|
};
|
|
56164
56385
|
DDiagramData.prototype.setRange = function (id, from, to) {
|
|
56165
56386
|
var canvas = this._diagram.canvas;
|
|
@@ -56187,8 +56408,10 @@
|
|
|
56187
56408
|
}
|
|
56188
56409
|
}
|
|
56189
56410
|
}
|
|
56411
|
+
return true;
|
|
56190
56412
|
}
|
|
56191
56413
|
}
|
|
56414
|
+
return false;
|
|
56192
56415
|
};
|
|
56193
56416
|
return DDiagramData;
|
|
56194
56417
|
}());
|
|
@@ -58839,370 +59062,607 @@
|
|
|
58839
59062
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58840
59063
|
* SPDX-License-Identifier: Apache-2.0
|
|
58841
59064
|
*/
|
|
58842
|
-
var
|
|
58843
|
-
__extends(
|
|
58844
|
-
function
|
|
59065
|
+
var DPaginationButtonLast = /** @class */ (function (_super) {
|
|
59066
|
+
__extends(DPaginationButtonLast, _super);
|
|
59067
|
+
function DPaginationButtonLast() {
|
|
58845
59068
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
58846
59069
|
}
|
|
58847
|
-
|
|
58848
|
-
return "
|
|
59070
|
+
DPaginationButtonLast.prototype.getType = function () {
|
|
59071
|
+
return "DPaginationButtonLast";
|
|
58849
59072
|
};
|
|
58850
|
-
return
|
|
59073
|
+
return DPaginationButtonLast;
|
|
58851
59074
|
}(DButtonAmbient));
|
|
58852
59075
|
|
|
58853
59076
|
/*
|
|
58854
59077
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58855
59078
|
* SPDX-License-Identifier: Apache-2.0
|
|
58856
59079
|
*/
|
|
58857
|
-
var
|
|
58858
|
-
__extends(
|
|
58859
|
-
function
|
|
59080
|
+
var DPaginationButtonNext = /** @class */ (function (_super) {
|
|
59081
|
+
__extends(DPaginationButtonNext, _super);
|
|
59082
|
+
function DPaginationButtonNext() {
|
|
58860
59083
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
58861
59084
|
}
|
|
58862
|
-
|
|
58863
|
-
|
|
58864
|
-
this._dotsBtnLeft = new DPaginationDotsButton({
|
|
58865
|
-
width: options.button.width,
|
|
58866
|
-
visible: !!options.button.dotsLeft
|
|
58867
|
-
});
|
|
58868
|
-
this._dotsBtnRight = new DPaginationDotsButton({
|
|
58869
|
-
width: options.button.width,
|
|
58870
|
-
visible: !!options.button.dotsRight
|
|
58871
|
-
});
|
|
58872
|
-
this.addChild(this._dotsBtnLeft);
|
|
58873
|
-
this.addChild(this._dotsBtnRight);
|
|
59085
|
+
DPaginationButtonNext.prototype.getType = function () {
|
|
59086
|
+
return "DPaginationButtonNext";
|
|
58874
59087
|
};
|
|
58875
|
-
|
|
58876
|
-
|
|
58877
|
-
|
|
58878
|
-
|
|
58879
|
-
|
|
58880
|
-
|
|
58881
|
-
|
|
58882
|
-
|
|
58883
|
-
|
|
58884
|
-
|
|
58885
|
-
|
|
58886
|
-
|
|
58887
|
-
|
|
58888
|
-
|
|
58889
|
-
_this.emit("active", clickedBtn);
|
|
58890
|
-
});
|
|
58891
|
-
}
|
|
58892
|
-
// re-new "pageButtons" after add new buttons
|
|
58893
|
-
pageButtons = this.children.slice(1, this.children.length - 1);
|
|
58894
|
-
}
|
|
58895
|
-
else if (pageButtons.length > btnsCount) {
|
|
58896
|
-
for (var i = btnsCount; i < pageButtons.length; i++) {
|
|
58897
|
-
pageButtons[i].hide();
|
|
58898
|
-
}
|
|
58899
|
-
}
|
|
58900
|
-
// update button text and active state
|
|
58901
|
-
for (var i = 0; i < btnsCount; i++) {
|
|
58902
|
-
var btn = pageButtons[i];
|
|
58903
|
-
btn.text = options.start + i + 1;
|
|
58904
|
-
btn.state.isActive = options.start + i === options.selected;
|
|
58905
|
-
if (btn.isHidden()) {
|
|
58906
|
-
btn.show();
|
|
58907
|
-
}
|
|
58908
|
-
}
|
|
58909
|
-
// update visible state of dots buttons
|
|
58910
|
-
if (options.button.dotsLeft) {
|
|
58911
|
-
this._dotsBtnLeft.show();
|
|
58912
|
-
}
|
|
58913
|
-
else {
|
|
58914
|
-
this._dotsBtnLeft.hide();
|
|
58915
|
-
}
|
|
58916
|
-
if (options.button.dotsRight) {
|
|
58917
|
-
this._dotsBtnRight.show();
|
|
58918
|
-
}
|
|
58919
|
-
else {
|
|
58920
|
-
this._dotsBtnRight.hide();
|
|
58921
|
-
}
|
|
59088
|
+
return DPaginationButtonNext;
|
|
59089
|
+
}(DButtonAmbient));
|
|
59090
|
+
|
|
59091
|
+
/*
|
|
59092
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
59093
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
59094
|
+
*/
|
|
59095
|
+
var DPaginationButtonPage = /** @class */ (function (_super) {
|
|
59096
|
+
__extends(DPaginationButtonPage, _super);
|
|
59097
|
+
function DPaginationButtonPage() {
|
|
59098
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59099
|
+
}
|
|
59100
|
+
DPaginationButtonPage.prototype.getType = function () {
|
|
59101
|
+
return "DPaginationButtonPage";
|
|
58922
59102
|
};
|
|
58923
|
-
|
|
58924
|
-
|
|
59103
|
+
return DPaginationButtonPage;
|
|
59104
|
+
}(DButtonAmbient));
|
|
59105
|
+
|
|
59106
|
+
/*
|
|
59107
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
59108
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
59109
|
+
*/
|
|
59110
|
+
var DPaginationButtonPrevious = /** @class */ (function (_super) {
|
|
59111
|
+
__extends(DPaginationButtonPrevious, _super);
|
|
59112
|
+
function DPaginationButtonPrevious() {
|
|
59113
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59114
|
+
}
|
|
59115
|
+
DPaginationButtonPrevious.prototype.getType = function () {
|
|
59116
|
+
return "DPaginationButtonPrevious";
|
|
58925
59117
|
};
|
|
58926
|
-
return
|
|
58927
|
-
}(
|
|
59118
|
+
return DPaginationButtonPrevious;
|
|
59119
|
+
}(DButtonAmbient));
|
|
58928
59120
|
|
|
58929
59121
|
/*
|
|
58930
59122
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58931
59123
|
* SPDX-License-Identifier: Apache-2.0
|
|
58932
59124
|
*/
|
|
58933
|
-
var
|
|
58934
|
-
__extends(
|
|
58935
|
-
function
|
|
59125
|
+
var DPaginationButtonTop = /** @class */ (function (_super) {
|
|
59126
|
+
__extends(DPaginationButtonTop, _super);
|
|
59127
|
+
function DPaginationButtonTop() {
|
|
58936
59128
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
58937
59129
|
}
|
|
58938
|
-
|
|
58939
|
-
return "
|
|
59130
|
+
DPaginationButtonTop.prototype.getType = function () {
|
|
59131
|
+
return "DPaginationButtonTop";
|
|
58940
59132
|
};
|
|
58941
|
-
return
|
|
59133
|
+
return DPaginationButtonTop;
|
|
58942
59134
|
}(DButtonAmbient));
|
|
58943
59135
|
|
|
59136
|
+
/*
|
|
59137
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
59138
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
59139
|
+
*/
|
|
59140
|
+
var DPaginationDots = /** @class */ (function (_super) {
|
|
59141
|
+
__extends(DPaginationDots, _super);
|
|
59142
|
+
function DPaginationDots() {
|
|
59143
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59144
|
+
}
|
|
59145
|
+
DPaginationDots.prototype.getType = function () {
|
|
59146
|
+
return "DPaginationDots";
|
|
59147
|
+
};
|
|
59148
|
+
return DPaginationDots;
|
|
59149
|
+
}(DImageBase));
|
|
59150
|
+
|
|
59151
|
+
/*
|
|
59152
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
59153
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
59154
|
+
*/
|
|
59155
|
+
var DPaginationPage = /** @class */ (function (_super) {
|
|
59156
|
+
__extends(DPaginationPage, _super);
|
|
59157
|
+
function DPaginationPage() {
|
|
59158
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59159
|
+
}
|
|
59160
|
+
DPaginationPage.prototype.getType = function () {
|
|
59161
|
+
return "DPaginationPage";
|
|
59162
|
+
};
|
|
59163
|
+
return DPaginationPage;
|
|
59164
|
+
}(DImageBase));
|
|
59165
|
+
|
|
58944
59166
|
/*
|
|
58945
59167
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58946
59168
|
* SPDX-License-Identifier: Apache-2.0
|
|
58947
59169
|
*/
|
|
58948
59170
|
var DPagination = /** @class */ (function (_super) {
|
|
58949
59171
|
__extends(DPagination, _super);
|
|
58950
|
-
function DPagination() {
|
|
58951
|
-
|
|
59172
|
+
function DPagination(options) {
|
|
59173
|
+
var _a, _b, _c, _d;
|
|
59174
|
+
var _this = _super.call(this, options) || this;
|
|
59175
|
+
if (options != null) {
|
|
59176
|
+
_this._size = (_b = (_a = options.size) !== null && _a !== void 0 ? _a : options.total) !== null && _b !== void 0 ? _b : 10;
|
|
59177
|
+
_this._value = (_d = (_c = options.value) !== null && _c !== void 0 ? _c : options.selected) !== null && _d !== void 0 ? _d : 0;
|
|
59178
|
+
}
|
|
59179
|
+
else {
|
|
59180
|
+
_this._size = 10;
|
|
59181
|
+
_this._value = 0;
|
|
59182
|
+
}
|
|
59183
|
+
var buttonTop = _this.buttonTop;
|
|
59184
|
+
var buttonPrevious = _this.buttonPrevious;
|
|
59185
|
+
if (buttonTop != null) {
|
|
59186
|
+
_this.addChild(buttonTop);
|
|
59187
|
+
}
|
|
59188
|
+
if (buttonPrevious != null) {
|
|
59189
|
+
_this.addChild(buttonPrevious);
|
|
59190
|
+
}
|
|
59191
|
+
if (buttonTop != null || buttonPrevious != null) {
|
|
59192
|
+
_this.addChild(_this.newSpace());
|
|
59193
|
+
}
|
|
59194
|
+
var buttonPages0 = _this.buttonPages0;
|
|
59195
|
+
var buttonPages0Length = buttonPages0.length;
|
|
59196
|
+
_this.addChild(buttonPages0[buttonPages0Length - 1]);
|
|
59197
|
+
_this.addChild(_this.dots0);
|
|
59198
|
+
for (var i = buttonPages0Length - 2; 0 <= i; --i) {
|
|
59199
|
+
_this.addChild(buttonPages0[i]);
|
|
59200
|
+
}
|
|
59201
|
+
_this.addChild(_this.page);
|
|
59202
|
+
var buttonPages1 = _this.buttonPages1;
|
|
59203
|
+
var buttonPages1Length = buttonPages1.length;
|
|
59204
|
+
for (var i = 0, imax = buttonPages1Length - 1; i < imax; ++i) {
|
|
59205
|
+
_this.addChild(buttonPages1[i]);
|
|
59206
|
+
}
|
|
59207
|
+
_this.addChild(_this.dots1);
|
|
59208
|
+
_this.addChild(buttonPages1[buttonPages1Length - 1]);
|
|
59209
|
+
var buttonNext = _this.buttonNext;
|
|
59210
|
+
var buttonLast = _this.buttonLast;
|
|
59211
|
+
if (buttonNext != null || buttonLast != null) {
|
|
59212
|
+
_this.addChild(_this.newSpace());
|
|
59213
|
+
}
|
|
59214
|
+
if (buttonNext != null) {
|
|
59215
|
+
_this.addChild(buttonNext);
|
|
59216
|
+
}
|
|
59217
|
+
if (buttonLast != null) {
|
|
59218
|
+
_this.addChild(buttonLast);
|
|
59219
|
+
}
|
|
59220
|
+
_this.update();
|
|
59221
|
+
return _this;
|
|
58952
59222
|
}
|
|
58953
|
-
DPagination.prototype.
|
|
58954
|
-
var
|
|
58955
|
-
|
|
58956
|
-
|
|
58957
|
-
this.DEFAULT_SELECTED = 0; // set default selected index page is page 0
|
|
58958
|
-
// get total pages
|
|
58959
|
-
this._total = options.total;
|
|
58960
|
-
// get selected page
|
|
58961
|
-
this._selected = (_a = options.selected) !== null && _a !== void 0 ? _a : this.DEFAULT_SELECTED;
|
|
58962
|
-
// get button options
|
|
58963
|
-
var button = options.button;
|
|
58964
|
-
this._buttonOptions = {
|
|
58965
|
-
first: !!(button === null || button === void 0 ? void 0 : button.first),
|
|
58966
|
-
last: !!(button === null || button === void 0 ? void 0 : button.last),
|
|
58967
|
-
width: button === null || button === void 0 ? void 0 : button.width
|
|
58968
|
-
};
|
|
58969
|
-
this.initButtons(this.getButtonWidth());
|
|
58970
|
-
this.listenButtonClicked();
|
|
58971
|
-
this.on("resize", function () {
|
|
58972
|
-
_this._numberPageButtonVisible = _this.toNumberVisible();
|
|
58973
|
-
_this.update();
|
|
59223
|
+
DPagination.prototype.newSpace = function () {
|
|
59224
|
+
var _a, _b, _c;
|
|
59225
|
+
return new DLayoutSpace({
|
|
59226
|
+
width: (_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.space) !== null && _c !== void 0 ? _c : this.theme.getButtonSpace()
|
|
58974
59227
|
});
|
|
58975
59228
|
};
|
|
59229
|
+
Object.defineProperty(DPagination.prototype, "value", {
|
|
59230
|
+
/**
|
|
59231
|
+
* Returns a value that is an index of a current page.
|
|
59232
|
+
*
|
|
59233
|
+
* @returns a value that is an index of a selected page.
|
|
59234
|
+
*/
|
|
59235
|
+
get: function () {
|
|
59236
|
+
return this._value;
|
|
59237
|
+
},
|
|
59238
|
+
/**
|
|
59239
|
+
* Sets a value that is an index of a current page.
|
|
59240
|
+
*
|
|
59241
|
+
* @param value a value that is an index of a page
|
|
59242
|
+
*/
|
|
59243
|
+
set: function (value) {
|
|
59244
|
+
if (0 <= value && value < this._size && this._value !== value) {
|
|
59245
|
+
this._value = value;
|
|
59246
|
+
this.update();
|
|
59247
|
+
}
|
|
59248
|
+
},
|
|
59249
|
+
enumerable: false,
|
|
59250
|
+
configurable: true
|
|
59251
|
+
});
|
|
58976
59252
|
Object.defineProperty(DPagination.prototype, "selected", {
|
|
58977
59253
|
/**
|
|
58978
|
-
*
|
|
59254
|
+
* Returns an index of the selected page.
|
|
58979
59255
|
*
|
|
58980
|
-
* @returns index of selected page.
|
|
59256
|
+
* @returns an index of the selected page.
|
|
59257
|
+
* @deprecated in favor of {@link value}.
|
|
58981
59258
|
*/
|
|
58982
59259
|
get: function () {
|
|
58983
|
-
return this.
|
|
59260
|
+
return this.value;
|
|
58984
59261
|
},
|
|
58985
59262
|
/**
|
|
58986
|
-
*
|
|
59263
|
+
* Selects a page.
|
|
58987
59264
|
*
|
|
58988
|
-
* @param
|
|
59265
|
+
* @param index an index of a page
|
|
59266
|
+
* @deprecated in favor of {@link #value}.
|
|
58989
59267
|
*/
|
|
58990
|
-
set: function (
|
|
58991
|
-
|
|
58992
|
-
|
|
59268
|
+
set: function (index) {
|
|
59269
|
+
this.value = index;
|
|
59270
|
+
},
|
|
59271
|
+
enumerable: false,
|
|
59272
|
+
configurable: true
|
|
59273
|
+
});
|
|
59274
|
+
Object.defineProperty(DPagination.prototype, "size", {
|
|
59275
|
+
/**
|
|
59276
|
+
* Returns a number of total pages.
|
|
59277
|
+
*
|
|
59278
|
+
* @returns a number of total pages.
|
|
59279
|
+
*/
|
|
59280
|
+
get: function () {
|
|
59281
|
+
return this._size;
|
|
59282
|
+
},
|
|
59283
|
+
/**
|
|
59284
|
+
* Sets a number of total pages.
|
|
59285
|
+
*
|
|
59286
|
+
* @param size a number of pages
|
|
59287
|
+
*/
|
|
59288
|
+
set: function (size) {
|
|
59289
|
+
if (0 <= size && this._size !== size) {
|
|
59290
|
+
this._size = size;
|
|
59291
|
+
if (size === 0) {
|
|
59292
|
+
this._value = -1;
|
|
59293
|
+
}
|
|
59294
|
+
else {
|
|
59295
|
+
this._value = Math.max(0, Math.min(this._size - 1, this._value));
|
|
59296
|
+
}
|
|
59297
|
+
this.update();
|
|
58993
59298
|
}
|
|
58994
|
-
this._selected = selected;
|
|
58995
|
-
this.update();
|
|
58996
59299
|
},
|
|
58997
59300
|
enumerable: false,
|
|
58998
59301
|
configurable: true
|
|
58999
59302
|
});
|
|
59000
59303
|
Object.defineProperty(DPagination.prototype, "total", {
|
|
59001
59304
|
/**
|
|
59002
|
-
*
|
|
59305
|
+
* Returns a number of total pages.
|
|
59003
59306
|
*
|
|
59004
|
-
* @returns number of total pages.
|
|
59307
|
+
* @returns a number of total pages.
|
|
59308
|
+
* @deprecated in favor of {@link size}
|
|
59005
59309
|
*/
|
|
59006
59310
|
get: function () {
|
|
59007
|
-
return this.
|
|
59311
|
+
return this.size;
|
|
59008
59312
|
},
|
|
59009
59313
|
/**
|
|
59010
|
-
*
|
|
59314
|
+
* Sets a number of total pages.
|
|
59011
59315
|
*
|
|
59012
|
-
* @param total number of
|
|
59316
|
+
* @param total a number of pages
|
|
59317
|
+
* @deprecated in favor of {@link size}
|
|
59013
59318
|
*/
|
|
59014
59319
|
set: function (total) {
|
|
59015
|
-
|
|
59016
|
-
|
|
59017
|
-
|
|
59018
|
-
|
|
59019
|
-
|
|
59020
|
-
|
|
59320
|
+
this.size = total;
|
|
59321
|
+
},
|
|
59322
|
+
enumerable: false,
|
|
59323
|
+
configurable: true
|
|
59324
|
+
});
|
|
59325
|
+
Object.defineProperty(DPagination.prototype, "dots0", {
|
|
59326
|
+
get: function () {
|
|
59327
|
+
var result = this._dots0;
|
|
59328
|
+
if (result == null) {
|
|
59329
|
+
result = this.newDots();
|
|
59330
|
+
this._dots0 = result;
|
|
59021
59331
|
}
|
|
59332
|
+
return result;
|
|
59022
59333
|
},
|
|
59023
59334
|
enumerable: false,
|
|
59024
59335
|
configurable: true
|
|
59025
59336
|
});
|
|
59026
|
-
DPagination.prototype
|
|
59027
|
-
|
|
59028
|
-
|
|
59029
|
-
|
|
59030
|
-
|
|
59031
|
-
|
|
59337
|
+
Object.defineProperty(DPagination.prototype, "dots1", {
|
|
59338
|
+
get: function () {
|
|
59339
|
+
var result = this._dots1;
|
|
59340
|
+
if (result == null) {
|
|
59341
|
+
result = this.newDots();
|
|
59342
|
+
this._dots1 = result;
|
|
59032
59343
|
}
|
|
59033
|
-
|
|
59034
|
-
|
|
59035
|
-
|
|
59036
|
-
|
|
59037
|
-
|
|
59344
|
+
return result;
|
|
59345
|
+
},
|
|
59346
|
+
enumerable: false,
|
|
59347
|
+
configurable: true
|
|
59348
|
+
});
|
|
59349
|
+
DPagination.prototype.newDots = function () {
|
|
59350
|
+
return new DPaginationDots();
|
|
59351
|
+
};
|
|
59352
|
+
Object.defineProperty(DPagination.prototype, "buttonLast", {
|
|
59353
|
+
get: function () {
|
|
59354
|
+
var result = this._buttonLast;
|
|
59355
|
+
if (result === undefined) {
|
|
59356
|
+
result = this.newButtonLast();
|
|
59357
|
+
this._buttonLast = result;
|
|
59038
59358
|
}
|
|
59039
|
-
|
|
59040
|
-
|
|
59041
|
-
|
|
59042
|
-
|
|
59043
|
-
|
|
59044
|
-
|
|
59045
|
-
|
|
59046
|
-
|
|
59047
|
-
|
|
59048
|
-
|
|
59049
|
-
|
|
59050
|
-
|
|
59051
|
-
|
|
59052
|
-
|
|
59053
|
-
|
|
59054
|
-
|
|
59055
|
-
|
|
59056
|
-
|
|
59057
|
-
|
|
59058
|
-
|
|
59359
|
+
return result;
|
|
59360
|
+
},
|
|
59361
|
+
enumerable: false,
|
|
59362
|
+
configurable: true
|
|
59363
|
+
});
|
|
59364
|
+
DPagination.prototype.newButtonLast = function () {
|
|
59365
|
+
var _this = this;
|
|
59366
|
+
var _a, _b;
|
|
59367
|
+
var last = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.last;
|
|
59368
|
+
if (last !== null && last !== false && last !== undefined) {
|
|
59369
|
+
var result = new DPaginationButtonLast(last !== true ? last : undefined);
|
|
59370
|
+
result.on("active", function () {
|
|
59371
|
+
_this.onButtonLastActive();
|
|
59372
|
+
});
|
|
59373
|
+
return result;
|
|
59374
|
+
}
|
|
59375
|
+
return null;
|
|
59376
|
+
};
|
|
59377
|
+
DPagination.prototype.onButtonLastActive = function () {
|
|
59378
|
+
this.moveTo(this._size - 1);
|
|
59379
|
+
};
|
|
59380
|
+
DPagination.prototype.moveTo = function (index) {
|
|
59381
|
+
if (0 <= index && index < this._size && this._value !== index) {
|
|
59382
|
+
var oldIndex = this._value;
|
|
59383
|
+
this._value = index;
|
|
59384
|
+
this.emit("change", index, oldIndex, this);
|
|
59385
|
+
this.update();
|
|
59386
|
+
}
|
|
59387
|
+
};
|
|
59388
|
+
Object.defineProperty(DPagination.prototype, "buttonNext", {
|
|
59389
|
+
get: function () {
|
|
59390
|
+
var result = this._buttonNext;
|
|
59391
|
+
if (result === undefined) {
|
|
59392
|
+
result = this.newButtonNext();
|
|
59393
|
+
this._buttonNext = result;
|
|
59059
59394
|
}
|
|
59060
|
-
|
|
59061
|
-
|
|
59062
|
-
|
|
59063
|
-
|
|
59064
|
-
|
|
59395
|
+
return result;
|
|
59396
|
+
},
|
|
59397
|
+
enumerable: false,
|
|
59398
|
+
configurable: true
|
|
59399
|
+
});
|
|
59400
|
+
DPagination.prototype.newButtonNext = function () {
|
|
59401
|
+
var _this = this;
|
|
59402
|
+
var _a, _b;
|
|
59403
|
+
var next = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.next;
|
|
59404
|
+
if (next !== null && next !== false) {
|
|
59405
|
+
var result = new DPaginationButtonNext(next !== true ? next : undefined);
|
|
59406
|
+
result.on("active", function () {
|
|
59407
|
+
_this.onButtonNextActive();
|
|
59408
|
+
});
|
|
59409
|
+
return result;
|
|
59410
|
+
}
|
|
59411
|
+
return null;
|
|
59412
|
+
};
|
|
59413
|
+
DPagination.prototype.onButtonNextActive = function () {
|
|
59414
|
+
this.moveTo(this._value + 1);
|
|
59415
|
+
};
|
|
59416
|
+
Object.defineProperty(DPagination.prototype, "buttonPrevious", {
|
|
59417
|
+
get: function () {
|
|
59418
|
+
var result = this._buttonPrevious;
|
|
59419
|
+
if (result === undefined) {
|
|
59420
|
+
result = this.newButtonPrevious();
|
|
59421
|
+
this._buttonPrevious = result;
|
|
59065
59422
|
}
|
|
59066
|
-
|
|
59067
|
-
|
|
59068
|
-
|
|
59069
|
-
|
|
59070
|
-
|
|
59423
|
+
return result;
|
|
59424
|
+
},
|
|
59425
|
+
enumerable: false,
|
|
59426
|
+
configurable: true
|
|
59427
|
+
});
|
|
59428
|
+
DPagination.prototype.newButtonPrevious = function () {
|
|
59429
|
+
var _this = this;
|
|
59430
|
+
var _a, _b;
|
|
59431
|
+
var previous = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.previous;
|
|
59432
|
+
if (previous !== null && previous !== false) {
|
|
59433
|
+
var result = new DPaginationButtonPrevious(previous !== true ? previous : undefined);
|
|
59434
|
+
result.on("active", function () {
|
|
59435
|
+
_this.onButtonPreviousActive();
|
|
59436
|
+
});
|
|
59437
|
+
return result;
|
|
59438
|
+
}
|
|
59439
|
+
return null;
|
|
59440
|
+
};
|
|
59441
|
+
DPagination.prototype.onButtonPreviousActive = function () {
|
|
59442
|
+
this.moveTo(this._value - 1);
|
|
59443
|
+
};
|
|
59444
|
+
Object.defineProperty(DPagination.prototype, "buttonTop", {
|
|
59445
|
+
get: function () {
|
|
59446
|
+
var result = this._buttonTop;
|
|
59447
|
+
if (result === undefined) {
|
|
59448
|
+
result = this.newButtonTop();
|
|
59449
|
+
this._buttonTop = result;
|
|
59071
59450
|
}
|
|
59072
|
-
|
|
59073
|
-
|
|
59074
|
-
|
|
59075
|
-
|
|
59076
|
-
|
|
59077
|
-
|
|
59078
|
-
this.addChild(this._nextBtn);
|
|
59079
|
-
this.addChild(this._goLastBtn);
|
|
59080
|
-
};
|
|
59081
|
-
DPagination.prototype.listenButtonClicked = function () {
|
|
59451
|
+
return result;
|
|
59452
|
+
},
|
|
59453
|
+
enumerable: false,
|
|
59454
|
+
configurable: true
|
|
59455
|
+
});
|
|
59456
|
+
DPagination.prototype.newButtonTop = function () {
|
|
59082
59457
|
var _this = this;
|
|
59083
|
-
|
|
59084
|
-
|
|
59085
|
-
|
|
59086
|
-
|
|
59087
|
-
|
|
59088
|
-
|
|
59089
|
-
|
|
59090
|
-
|
|
59091
|
-
}
|
|
59092
|
-
|
|
59093
|
-
|
|
59094
|
-
|
|
59095
|
-
this.
|
|
59096
|
-
|
|
59458
|
+
var _a, _b;
|
|
59459
|
+
var top = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.top;
|
|
59460
|
+
if (top !== null && top !== false && top !== undefined) {
|
|
59461
|
+
var result = new DPaginationButtonTop(top !== true ? top : undefined);
|
|
59462
|
+
result.on("active", function () {
|
|
59463
|
+
_this.onButtonTopActive();
|
|
59464
|
+
});
|
|
59465
|
+
return result;
|
|
59466
|
+
}
|
|
59467
|
+
return null;
|
|
59468
|
+
};
|
|
59469
|
+
DPagination.prototype.onButtonTopActive = function () {
|
|
59470
|
+
this.moveTo(0);
|
|
59471
|
+
};
|
|
59472
|
+
DPagination.prototype.newButtonPage = function () {
|
|
59473
|
+
var _this = this;
|
|
59474
|
+
var _a, _b;
|
|
59475
|
+
var result = new DPaginationButtonPage((_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.page);
|
|
59476
|
+
result.on("active", function () {
|
|
59477
|
+
_this.onButtonPageActive(result);
|
|
59097
59478
|
});
|
|
59098
|
-
|
|
59099
|
-
|
|
59100
|
-
|
|
59479
|
+
return result;
|
|
59480
|
+
};
|
|
59481
|
+
Object.defineProperty(DPagination.prototype, "buttonPages0", {
|
|
59482
|
+
get: function () {
|
|
59483
|
+
var result = this._buttonPages0;
|
|
59484
|
+
if (result == null) {
|
|
59485
|
+
result = this.newButtonPages0();
|
|
59486
|
+
this._buttonPages0 = result;
|
|
59101
59487
|
}
|
|
59102
|
-
|
|
59103
|
-
|
|
59104
|
-
|
|
59105
|
-
|
|
59488
|
+
return result;
|
|
59489
|
+
},
|
|
59490
|
+
enumerable: false,
|
|
59491
|
+
configurable: true
|
|
59492
|
+
});
|
|
59493
|
+
DPagination.prototype.newButtonPages0 = function () {
|
|
59494
|
+
return [
|
|
59495
|
+
this.newButtonPage(),
|
|
59496
|
+
this.newButtonPage(),
|
|
59497
|
+
this.newButtonPage(),
|
|
59498
|
+
this.newButtonPage()
|
|
59499
|
+
];
|
|
59500
|
+
};
|
|
59501
|
+
Object.defineProperty(DPagination.prototype, "buttonPages1", {
|
|
59502
|
+
get: function () {
|
|
59503
|
+
var result = this._buttonPages1;
|
|
59504
|
+
if (result == null) {
|
|
59505
|
+
result = this.newButtonPages1();
|
|
59506
|
+
this._buttonPages1 = result;
|
|
59106
59507
|
}
|
|
59107
|
-
|
|
59508
|
+
return result;
|
|
59509
|
+
},
|
|
59510
|
+
enumerable: false,
|
|
59511
|
+
configurable: true
|
|
59512
|
+
});
|
|
59513
|
+
DPagination.prototype.newButtonPages1 = function () {
|
|
59514
|
+
return [
|
|
59515
|
+
this.newButtonPage(),
|
|
59516
|
+
this.newButtonPage(),
|
|
59517
|
+
this.newButtonPage(),
|
|
59518
|
+
this.newButtonPage()
|
|
59519
|
+
];
|
|
59108
59520
|
};
|
|
59109
|
-
DPagination.prototype
|
|
59110
|
-
|
|
59111
|
-
|
|
59112
|
-
|
|
59113
|
-
|
|
59114
|
-
|
|
59115
|
-
var numberButtonsInRight = 0;
|
|
59116
|
-
this.updateStaticButtons();
|
|
59117
|
-
// Number displayed buttons from first button to selected button when select center button of all buttons.
|
|
59118
|
-
// Not including selected button.
|
|
59119
|
-
var numberButtonsFirstToCenter = Math.ceil((this._numberPageButtonVisible - 1) * 0.5);
|
|
59120
|
-
var numberButtonsCenterToEnd = Math.floor((this._numberPageButtonVisible - 1) * 0.5);
|
|
59121
|
-
if (this._selected < numberButtonsFirstToCenter) {
|
|
59122
|
-
numberButtonsInLeft = this._selected;
|
|
59123
|
-
numberButtonsInRight = this._numberPageButtonVisible - numberButtonsInLeft - 1;
|
|
59124
|
-
}
|
|
59125
|
-
else if (this._selected + numberButtonsCenterToEnd > this._total - 1) {
|
|
59126
|
-
numberButtonsInRight = this._total - 1 - this.selected;
|
|
59127
|
-
numberButtonsInLeft = this._numberPageButtonVisible - numberButtonsInRight - 1;
|
|
59128
|
-
}
|
|
59129
|
-
else {
|
|
59130
|
-
numberButtonsInLeft = numberButtonsFirstToCenter;
|
|
59131
|
-
numberButtonsInRight = numberButtonsCenterToEnd;
|
|
59132
|
-
}
|
|
59133
|
-
if (this._selected <= numberButtonsInLeft) {
|
|
59134
|
-
startDynamic = 1;
|
|
59135
|
-
dotsLeft = false;
|
|
59136
|
-
}
|
|
59137
|
-
else {
|
|
59138
|
-
startDynamic = this._selected - numberButtonsInLeft + 2;
|
|
59139
|
-
dotsLeft = true;
|
|
59140
|
-
}
|
|
59141
|
-
if (this._selected + numberButtonsInRight >= this._total - 1) {
|
|
59142
|
-
endDynamic = this._total - 2;
|
|
59143
|
-
dotsRight = false;
|
|
59144
|
-
}
|
|
59145
|
-
else {
|
|
59146
|
-
endDynamic = this._selected + numberButtonsInRight - 2;
|
|
59147
|
-
dotsRight = true;
|
|
59148
|
-
}
|
|
59149
|
-
this._dynamicPageBtns.update({
|
|
59150
|
-
start: startDynamic,
|
|
59151
|
-
end: endDynamic,
|
|
59152
|
-
selected: this._selected,
|
|
59153
|
-
button: {
|
|
59154
|
-
width: this.getButtonWidth(),
|
|
59155
|
-
dotsLeft: dotsLeft,
|
|
59156
|
-
dotsRight: dotsRight
|
|
59521
|
+
Object.defineProperty(DPagination.prototype, "page", {
|
|
59522
|
+
get: function () {
|
|
59523
|
+
var result = this._page;
|
|
59524
|
+
if (result == null) {
|
|
59525
|
+
result = this.newPage();
|
|
59526
|
+
this._page = result;
|
|
59157
59527
|
}
|
|
59158
|
-
|
|
59528
|
+
return result;
|
|
59529
|
+
},
|
|
59530
|
+
enumerable: false,
|
|
59531
|
+
configurable: true
|
|
59532
|
+
});
|
|
59533
|
+
DPagination.prototype.newPage = function () {
|
|
59534
|
+
var _a;
|
|
59535
|
+
return new DPaginationPage((_a = this._options) === null || _a === void 0 ? void 0 : _a.page);
|
|
59159
59536
|
};
|
|
59160
|
-
DPagination.prototype.
|
|
59161
|
-
|
|
59162
|
-
|
|
59163
|
-
|
|
59164
|
-
|
|
59165
|
-
|
|
59537
|
+
DPagination.prototype.onButtonPageActive = function (button) {
|
|
59538
|
+
var text = button.text;
|
|
59539
|
+
if (isNumber(text)) {
|
|
59540
|
+
this.moveTo(text - 1);
|
|
59541
|
+
if (button.state.isFocused) {
|
|
59542
|
+
button.state.isHovered = false;
|
|
59543
|
+
this.page.focus();
|
|
59544
|
+
}
|
|
59166
59545
|
}
|
|
59167
|
-
|
|
59168
|
-
|
|
59546
|
+
};
|
|
59547
|
+
DPagination.prototype.update = function () {
|
|
59548
|
+
var size = this._size;
|
|
59549
|
+
var value = this._value;
|
|
59550
|
+
if (size <= 0) {
|
|
59551
|
+
var buttonTop = this.buttonTop;
|
|
59552
|
+
if (buttonTop != null) {
|
|
59553
|
+
buttonTop.state.isEnabled = false;
|
|
59554
|
+
}
|
|
59555
|
+
var buttonPrevious = this.buttonPrevious;
|
|
59556
|
+
if (buttonPrevious != null) {
|
|
59557
|
+
buttonPrevious.state.isEnabled = false;
|
|
59558
|
+
}
|
|
59559
|
+
this.dots0.hide();
|
|
59560
|
+
var buttonPages0 = this.buttonPages0;
|
|
59561
|
+
for (var i = 0, imax = buttonPages0.length; i < imax; ++i) {
|
|
59562
|
+
buttonPages0[i].hide();
|
|
59563
|
+
}
|
|
59564
|
+
this.page.hide();
|
|
59565
|
+
var buttonPages1 = this.buttonPages1;
|
|
59566
|
+
for (var i = 0, imax = buttonPages1.length; i < imax; ++i) {
|
|
59567
|
+
buttonPages1[i].hide();
|
|
59568
|
+
}
|
|
59569
|
+
this.dots1.hide();
|
|
59570
|
+
var buttonNext = this.buttonNext;
|
|
59571
|
+
if (buttonNext != null) {
|
|
59572
|
+
buttonNext.state.isEnabled = false;
|
|
59573
|
+
}
|
|
59574
|
+
var buttonLast = this.buttonLast;
|
|
59575
|
+
if (buttonLast) {
|
|
59576
|
+
buttonLast.state.isEnabled = false;
|
|
59577
|
+
}
|
|
59169
59578
|
}
|
|
59170
59579
|
else {
|
|
59171
|
-
|
|
59172
|
-
|
|
59173
|
-
|
|
59174
|
-
|
|
59175
|
-
|
|
59176
|
-
|
|
59177
|
-
|
|
59178
|
-
|
|
59179
|
-
|
|
59180
|
-
|
|
59181
|
-
|
|
59182
|
-
|
|
59183
|
-
|
|
59184
|
-
|
|
59185
|
-
|
|
59186
|
-
|
|
59187
|
-
|
|
59188
|
-
|
|
59189
|
-
|
|
59190
|
-
|
|
59191
|
-
|
|
59192
|
-
|
|
59193
|
-
|
|
59194
|
-
|
|
59195
|
-
|
|
59196
|
-
|
|
59197
|
-
|
|
59198
|
-
|
|
59199
|
-
|
|
59200
|
-
|
|
59201
|
-
|
|
59202
|
-
|
|
59203
|
-
|
|
59204
|
-
|
|
59205
|
-
|
|
59580
|
+
var from = value - 2;
|
|
59581
|
+
var to = value + 2;
|
|
59582
|
+
if (from < 0) {
|
|
59583
|
+
to = to - from;
|
|
59584
|
+
from = 0;
|
|
59585
|
+
}
|
|
59586
|
+
else if (size <= to) {
|
|
59587
|
+
var delta = to - size + 1;
|
|
59588
|
+
to -= delta;
|
|
59589
|
+
from -= delta;
|
|
59590
|
+
}
|
|
59591
|
+
var top_1 = false;
|
|
59592
|
+
if (0 < from) {
|
|
59593
|
+
top_1 = true;
|
|
59594
|
+
from = Math.min(from + 1, value);
|
|
59595
|
+
}
|
|
59596
|
+
var last = false;
|
|
59597
|
+
if (to < size - 1) {
|
|
59598
|
+
last = true;
|
|
59599
|
+
to = Math.max(to - 1, value);
|
|
59600
|
+
}
|
|
59601
|
+
var buttonTop = this.buttonTop;
|
|
59602
|
+
if (buttonTop != null) {
|
|
59603
|
+
buttonTop.state.isEnabled = 0 < value;
|
|
59604
|
+
}
|
|
59605
|
+
var buttonPrevious = this.buttonPrevious;
|
|
59606
|
+
if (buttonPrevious != null) {
|
|
59607
|
+
buttonPrevious.state.isEnabled = 0 < value;
|
|
59608
|
+
}
|
|
59609
|
+
if (top_1) {
|
|
59610
|
+
this.dots0.show();
|
|
59611
|
+
}
|
|
59612
|
+
else {
|
|
59613
|
+
this.dots0.hide();
|
|
59614
|
+
}
|
|
59615
|
+
var buttonPages0 = this.buttonPages0;
|
|
59616
|
+
for (var i = 0, imax = buttonPages0.length; i < imax; ++i) {
|
|
59617
|
+
var index = value - i - 1;
|
|
59618
|
+
var buttonPage = buttonPages0[i];
|
|
59619
|
+
if (from <= index && index <= to) {
|
|
59620
|
+
buttonPage.text = index + 1;
|
|
59621
|
+
buttonPage.show();
|
|
59622
|
+
}
|
|
59623
|
+
else {
|
|
59624
|
+
if (top_1 && i === imax - 1) {
|
|
59625
|
+
buttonPage.text = 1;
|
|
59626
|
+
buttonPage.show();
|
|
59627
|
+
}
|
|
59628
|
+
else {
|
|
59629
|
+
buttonPage.hide();
|
|
59630
|
+
}
|
|
59631
|
+
}
|
|
59632
|
+
}
|
|
59633
|
+
this.page.text = value + 1;
|
|
59634
|
+
var buttonPages1 = this.buttonPages1;
|
|
59635
|
+
for (var i = 0, imax = buttonPages1.length; i < imax; ++i) {
|
|
59636
|
+
var index = value + i + 1;
|
|
59637
|
+
var buttonPage = buttonPages1[i];
|
|
59638
|
+
if (from <= index && index <= to) {
|
|
59639
|
+
buttonPage.text = index + 1;
|
|
59640
|
+
buttonPage.show();
|
|
59641
|
+
}
|
|
59642
|
+
else {
|
|
59643
|
+
if (last && i === imax - 1) {
|
|
59644
|
+
buttonPage.text = size;
|
|
59645
|
+
buttonPage.show();
|
|
59646
|
+
}
|
|
59647
|
+
else {
|
|
59648
|
+
buttonPage.hide();
|
|
59649
|
+
}
|
|
59650
|
+
}
|
|
59651
|
+
}
|
|
59652
|
+
if (last) {
|
|
59653
|
+
this.dots1.show();
|
|
59654
|
+
}
|
|
59655
|
+
else {
|
|
59656
|
+
this.dots1.hide();
|
|
59657
|
+
}
|
|
59658
|
+
var buttonNext = this.buttonNext;
|
|
59659
|
+
if (buttonNext != null) {
|
|
59660
|
+
buttonNext.state.isEnabled = value < size - 1;
|
|
59661
|
+
}
|
|
59662
|
+
var buttonLast = this.buttonLast;
|
|
59663
|
+
if (buttonLast != null) {
|
|
59664
|
+
buttonLast.state.isEnabled = value < size - 1;
|
|
59665
|
+
}
|
|
59206
59666
|
}
|
|
59207
59667
|
};
|
|
59208
59668
|
DPagination.prototype.getType = function () {
|
|
@@ -67668,7 +68128,7 @@
|
|
|
67668
68128
|
toGradientSerialized: toGradientSerialized,
|
|
67669
68129
|
toImageElement: toImageElement,
|
|
67670
68130
|
toLength: toLength,
|
|
67671
|
-
|
|
68131
|
+
toResized: toResized,
|
|
67672
68132
|
toScaleInvariant: toScaleInvariant,
|
|
67673
68133
|
toSizeNormalized: toSizeNormalized,
|
|
67674
68134
|
toSizeRounded: toSizeRounded,
|
|
@@ -67743,6 +68203,36 @@
|
|
|
67743
68203
|
ESnapperModifierAnchor: ESnapperModifierAnchor,
|
|
67744
68204
|
ESnapper: ESnapper,
|
|
67745
68205
|
DThemes: DThemes,
|
|
68206
|
+
FormatNodeA: FormatNodeA,
|
|
68207
|
+
FormatNodea: FormatNodea,
|
|
68208
|
+
FormatNodeD: FormatNodeD,
|
|
68209
|
+
FormatNoded: FormatNoded,
|
|
68210
|
+
FormatNodee: FormatNodee,
|
|
68211
|
+
FormatNodef: FormatNodef,
|
|
68212
|
+
FormatNodefsi: FormatNodefsi,
|
|
68213
|
+
FormatNodeg: FormatNodeg,
|
|
68214
|
+
FormatNodeH: FormatNodeH,
|
|
68215
|
+
FormatNodeh: FormatNodeh,
|
|
68216
|
+
FormatNodeM: FormatNodeM,
|
|
68217
|
+
FormatNodem: FormatNodem,
|
|
68218
|
+
FormatNodemi: FormatNodemi,
|
|
68219
|
+
FormatNodeP: FormatNodeP,
|
|
68220
|
+
FormatNodep: FormatNodep,
|
|
68221
|
+
FormatNodePadding: FormatNodePadding,
|
|
68222
|
+
FormatNodeParenthesis: FormatNodeParenthesis,
|
|
68223
|
+
FormatNodePlus: FormatNodePlus,
|
|
68224
|
+
FormatNodePrecision: FormatNodePrecision,
|
|
68225
|
+
FormatNoderd: FormatNoderd,
|
|
68226
|
+
FormatNodeRP: FormatNodeRP,
|
|
68227
|
+
FormatNoderp: FormatNoderp,
|
|
68228
|
+
FormatNodesdt: FormatNodesdt,
|
|
68229
|
+
FormatNodeSpace: FormatNodeSpace,
|
|
68230
|
+
FormatNodessi: FormatNodessi,
|
|
68231
|
+
FormatNodeString: FormatNodeString,
|
|
68232
|
+
FormatNodeY: FormatNodeY,
|
|
68233
|
+
FormatNodey: FormatNodey,
|
|
68234
|
+
FormatNodez: FormatNodez,
|
|
68235
|
+
FormatNodes: FormatNodes,
|
|
67746
68236
|
DynamicAtlasItemEmpty: DynamicAtlasItemEmpty,
|
|
67747
68237
|
DynamicAtlasItemFontAtlas: DynamicAtlasItemFontAtlas,
|
|
67748
68238
|
DynamicAtlasItemImage: DynamicAtlasItemImage,
|
|
@@ -67751,6 +68241,7 @@
|
|
|
67751
68241
|
DynamicAtlasItem: DynamicAtlasItem,
|
|
67752
68242
|
DynamicAtlas: DynamicAtlas,
|
|
67753
68243
|
DynamicFontAtlasCharacterOrigin: DynamicFontAtlasCharacterOrigin,
|
|
68244
|
+
DynamicFontAtlasCharacterType: DynamicFontAtlasCharacterType,
|
|
67754
68245
|
DynamicFontAtlasCharacter: DynamicFontAtlasCharacter,
|
|
67755
68246
|
DynamicFontAtlasFont: DynamicFontAtlasFont,
|
|
67756
68247
|
DynamicFontAtlas: DynamicFontAtlas,
|
|
@@ -67778,6 +68269,7 @@
|
|
|
67778
68269
|
UtilSvgAtlasBuilder: UtilSvgAtlasBuilder,
|
|
67779
68270
|
UtilAttachAlign: UtilAttachAlign,
|
|
67780
68271
|
UtilAttach: UtilAttach,
|
|
68272
|
+
UtilCharacterIterator: UtilCharacterIterator,
|
|
67781
68273
|
UtilClickOutside: UtilClickOutside,
|
|
67782
68274
|
UtilClipboard: UtilClipboard,
|
|
67783
68275
|
UtilGestureData: UtilGestureData,
|
|
@@ -67887,13 +68379,13 @@
|
|
|
67887
68379
|
DChartColorSet2: DChartColorSet2,
|
|
67888
68380
|
DChartCoordinateContainerImpl: DChartCoordinateContainerImpl,
|
|
67889
68381
|
DChartCoordinateContainerSubImpl: DChartCoordinateContainerSubImpl,
|
|
68382
|
+
DChartCoordinateDirection: DChartCoordinateDirection,
|
|
67890
68383
|
DChartCoordinateLinearTick: DChartCoordinateLinearTick,
|
|
67891
68384
|
DChartCoordinateLinear: DChartCoordinateLinear,
|
|
67892
68385
|
DChartCoordinateLogTick: DChartCoordinateLogTick,
|
|
67893
68386
|
DChartCoordinateLog: DChartCoordinateLog,
|
|
67894
68387
|
DChartCoordinateTransformImpl: DChartCoordinateTransformImpl,
|
|
67895
68388
|
DChartCoordinateTransformMarkImpl: DChartCoordinateTransformMarkImpl,
|
|
67896
|
-
DChartCoordinateDirection: DChartCoordinateDirection,
|
|
67897
68389
|
DChartLegendItem: DChartLegendItem,
|
|
67898
68390
|
DChartLegend: DChartLegend,
|
|
67899
68391
|
DChartOverview: DChartOverview,
|
|
@@ -67993,6 +68485,7 @@
|
|
|
67993
68485
|
DDialogProcessingMessage: DDialogProcessingMessage,
|
|
67994
68486
|
DDialogProcessing: DDialogProcessing,
|
|
67995
68487
|
DDialogSaveAs: DDialogSaveAs,
|
|
68488
|
+
DDialogSelectListItemUpdater: DDialogSelectListItemUpdater,
|
|
67996
68489
|
DDialogSelectListItem: DDialogSelectListItem,
|
|
67997
68490
|
DDialogSelectList: DDialogSelectList,
|
|
67998
68491
|
DDialogSelectSearh: DDialogSelectSearh,
|
|
@@ -68127,10 +68620,15 @@
|
|
|
68127
68620
|
DNoteSmall: DNoteSmall,
|
|
68128
68621
|
DNote: DNote,
|
|
68129
68622
|
DNotification: DNotification,
|
|
68130
|
-
|
|
68131
|
-
|
|
68132
|
-
|
|
68623
|
+
DPaginationButtonLast: DPaginationButtonLast,
|
|
68624
|
+
DPaginationButtonNext: DPaginationButtonNext,
|
|
68625
|
+
DPaginationButtonPage: DPaginationButtonPage,
|
|
68626
|
+
DPaginationButtonPrevious: DPaginationButtonPrevious,
|
|
68627
|
+
DPaginationButtonTop: DPaginationButtonTop,
|
|
68628
|
+
DPaginationDots: DPaginationDots,
|
|
68629
|
+
DPaginationPage: DPaginationPage,
|
|
68133
68630
|
DPagination: DPagination,
|
|
68631
|
+
DPaneScrollBar: DPaneScrollBar,
|
|
68134
68632
|
DPane: DPane,
|
|
68135
68633
|
DPickerColorAndAlpha: DPickerColorAndAlpha,
|
|
68136
68634
|
DPickerColorGradientRecent: DPickerColorGradientRecent,
|
|
@@ -68159,6 +68657,7 @@
|
|
|
68159
68657
|
DPickerTimeRange: DPickerTimeRange,
|
|
68160
68658
|
DPickerTime: DPickerTime,
|
|
68161
68659
|
DPickerTimes: DPickerTimes,
|
|
68660
|
+
DScalarExpressionNodeType: DScalarExpressionNodeType,
|
|
68162
68661
|
DScalarExpression: DScalarExpression,
|
|
68163
68662
|
DScalarFunctions: DScalarFunctions,
|
|
68164
68663
|
DScrollBarHorizontal: DScrollBarHorizontal,
|
|
@@ -68229,6 +68728,7 @@
|
|
|
68229
68728
|
DTableHeaderCell: DTableHeaderCell,
|
|
68230
68729
|
DTableHeader: DTableHeader,
|
|
68231
68730
|
DTableRow: DTableRow,
|
|
68731
|
+
DTableScrollBar: DTableScrollBar,
|
|
68232
68732
|
DTableState: DTableState,
|
|
68233
68733
|
DTable: DTable,
|
|
68234
68734
|
DTextBase: DTextBase,
|