@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.cjs.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
|
|
|
@@ -6629,7 +6629,7 @@ var EShapeBar = /** @class */ (function (_super) {
|
|
|
6629
6629
|
configurable: true
|
|
6630
6630
|
});
|
|
6631
6631
|
EShapeBar.prototype.clone = function () {
|
|
6632
|
-
return new EShapeBar().copy(this);
|
|
6632
|
+
return new EShapeBar(this.type).copy(this);
|
|
6633
6633
|
};
|
|
6634
6634
|
EShapeBar.prototype.containsAbsBBox = function (x, y, ax, ay) {
|
|
6635
6635
|
var size = Math.max(0, this._points.size);
|
|
@@ -11262,48 +11262,30 @@ var DLayoutClearType = {
|
|
|
11262
11262
|
* Copyright (C) 2019 Toshiba Corporation
|
|
11263
11263
|
* SPDX-License-Identifier: Apache-2.0
|
|
11264
11264
|
*/
|
|
11265
|
-
var
|
|
11266
|
-
(function (NodeType) {
|
|
11265
|
+
var DScalarExpressionNodeType = {
|
|
11267
11266
|
// Parensesis
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11267
|
+
OPEN: 0,
|
|
11268
|
+
CLOSE: 1,
|
|
11269
|
+
PARENSESIS: 2,
|
|
11271
11270
|
// Operations
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11271
|
+
ADD_OR_PLUS: 3,
|
|
11272
|
+
SUB_OR_MINUS: 4,
|
|
11273
|
+
PLUS: 5,
|
|
11274
|
+
MINUS: 6,
|
|
11275
|
+
ADD: 7,
|
|
11276
|
+
SUB: 8,
|
|
11277
|
+
MUL: 9,
|
|
11278
|
+
DIV: 10,
|
|
11280
11279
|
// Functions
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11280
|
+
MIN: 11,
|
|
11281
|
+
MAX: 12,
|
|
11282
|
+
COMMA: 13,
|
|
11284
11283
|
// Literals
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
})(NodeType || (NodeType = {}));
|
|
11291
|
-
var TOKEN_MAPPING_OPERATOR = {
|
|
11292
|
-
"+": 3 /* ADD_OR_PLUS */,
|
|
11293
|
-
"-": 4 /* SUB_OR_MINUS */,
|
|
11294
|
-
"*": 9 /* MUL */,
|
|
11295
|
-
"/": 10 /* DIV */,
|
|
11296
|
-
"(": 0 /* OPEN */,
|
|
11297
|
-
")": 1 /* CLOSE */,
|
|
11298
|
-
",": 13 /* COMMA */,
|
|
11299
|
-
min: 11 /* MIN */,
|
|
11300
|
-
max: 12 /* MAX */
|
|
11301
|
-
};
|
|
11302
|
-
var TOKEN_MAPPING_LITERAL = {
|
|
11303
|
-
"%": 14 /* PARENT */,
|
|
11304
|
-
s: 15 /* SELF */,
|
|
11305
|
-
p: 16 /* PADDING */,
|
|
11306
|
-
c: 17 /* CURRENT */
|
|
11284
|
+
PARENT: 14,
|
|
11285
|
+
SELF: 15,
|
|
11286
|
+
PADDING: 16,
|
|
11287
|
+
CURRENT: 17,
|
|
11288
|
+
NUMBER: 18
|
|
11307
11289
|
};
|
|
11308
11290
|
/**
|
|
11309
11291
|
* Parser and evaluator of the scalar expressions like `100% - 50s`.
|
|
@@ -11343,8 +11325,8 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11343
11325
|
i = this.toParensesis(nodes, i);
|
|
11344
11326
|
} while (i < nodes.length);
|
|
11345
11327
|
this.toUnary(nodes);
|
|
11346
|
-
this.toArithmetic(nodes,
|
|
11347
|
-
this.toArithmetic(nodes,
|
|
11328
|
+
this.toArithmetic(nodes, DScalarExpressionNodeType.MUL, DScalarExpressionNodeType.DIV);
|
|
11329
|
+
this.toArithmetic(nodes, DScalarExpressionNodeType.ADD, DScalarExpressionNodeType.SUB);
|
|
11348
11330
|
if (nodes.length === 1) {
|
|
11349
11331
|
var node = nodes[0];
|
|
11350
11332
|
if (!isNumber(node)) {
|
|
@@ -11358,24 +11340,25 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11358
11340
|
var ito = nodes.length;
|
|
11359
11341
|
for (var i = ifrom; i < ito; ++i) {
|
|
11360
11342
|
var inode = nodes[i];
|
|
11361
|
-
if (inode ===
|
|
11343
|
+
if (inode === DScalarExpressionNodeType.OPEN) {
|
|
11362
11344
|
var istart = i;
|
|
11363
|
-
var nodeType =
|
|
11345
|
+
var nodeType = DScalarExpressionNodeType.PARENSESIS;
|
|
11364
11346
|
if (0 < i) {
|
|
11365
11347
|
var nodeTypePrev = nodes[i - 1];
|
|
11366
|
-
if (nodeTypePrev ===
|
|
11348
|
+
if (nodeTypePrev === DScalarExpressionNodeType.MIN ||
|
|
11349
|
+
nodeTypePrev === DScalarExpressionNodeType.MAX) {
|
|
11367
11350
|
istart -= 1;
|
|
11368
11351
|
nodeType = nodeTypePrev;
|
|
11369
11352
|
}
|
|
11370
11353
|
}
|
|
11371
11354
|
for (var j = i + 1; j < ito; ++j) {
|
|
11372
11355
|
var jnode = nodes[j];
|
|
11373
|
-
if (jnode ===
|
|
11356
|
+
if (jnode === DScalarExpressionNodeType.CLOSE) {
|
|
11374
11357
|
nodes[istart] = [nodeType, this.toComma(nodes, i + 1, j)];
|
|
11375
11358
|
nodes.splice(istart + 1, j - istart);
|
|
11376
11359
|
return istart + 1;
|
|
11377
11360
|
}
|
|
11378
|
-
else if (jnode ===
|
|
11361
|
+
else if (jnode === DScalarExpressionNodeType.OPEN) {
|
|
11379
11362
|
j = this.toParensesis(nodes, j) - 1;
|
|
11380
11363
|
ito = nodes.length;
|
|
11381
11364
|
}
|
|
@@ -11388,7 +11371,7 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11388
11371
|
DScalarExpression.prototype.toCommaOf = function (nodes, ifrom, ito) {
|
|
11389
11372
|
var l = ito - ifrom;
|
|
11390
11373
|
if (l <= 0) {
|
|
11391
|
-
return [
|
|
11374
|
+
return [DScalarExpressionNodeType.NUMBER, 0];
|
|
11392
11375
|
}
|
|
11393
11376
|
else if (l <= 1) {
|
|
11394
11377
|
return nodes[ifrom];
|
|
@@ -11398,7 +11381,7 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11398
11381
|
for (var j = ifrom; j < ito; ++j) {
|
|
11399
11382
|
operand.push(nodes[j]);
|
|
11400
11383
|
}
|
|
11401
|
-
return [
|
|
11384
|
+
return [DScalarExpressionNodeType.PARENSESIS, operand];
|
|
11402
11385
|
}
|
|
11403
11386
|
};
|
|
11404
11387
|
DScalarExpression.prototype.toComma = function (nodes, ifrom, ito) {
|
|
@@ -11406,7 +11389,7 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11406
11389
|
var iprev = ifrom;
|
|
11407
11390
|
for (var i = ifrom; i < ito; ++i) {
|
|
11408
11391
|
var node = nodes[i];
|
|
11409
|
-
if (node ===
|
|
11392
|
+
if (node === DScalarExpressionNodeType.COMMA) {
|
|
11410
11393
|
result = result || [];
|
|
11411
11394
|
result.push(this.toCommaOf(nodes, iprev, i));
|
|
11412
11395
|
iprev = i + 1;
|
|
@@ -11428,9 +11411,9 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11428
11411
|
};
|
|
11429
11412
|
DScalarExpression.prototype.toUnaryNode = function (node) {
|
|
11430
11413
|
if (!isNumber(node)) {
|
|
11431
|
-
if (node[0] ===
|
|
11432
|
-
node[0] ===
|
|
11433
|
-
node[0] ===
|
|
11414
|
+
if (node[0] === DScalarExpressionNodeType.PARENSESIS ||
|
|
11415
|
+
node[0] === DScalarExpressionNodeType.MIN ||
|
|
11416
|
+
node[0] === DScalarExpressionNodeType.MAX) {
|
|
11434
11417
|
this.toUnary(node[1]);
|
|
11435
11418
|
}
|
|
11436
11419
|
}
|
|
@@ -11438,11 +11421,14 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11438
11421
|
DScalarExpression.prototype.toUnary = function (nodes) {
|
|
11439
11422
|
for (var i = 0, imax = nodes.length; i < imax; ++i) {
|
|
11440
11423
|
var node = nodes[i];
|
|
11441
|
-
if (node ===
|
|
11424
|
+
if (node === DScalarExpressionNodeType.ADD_OR_PLUS ||
|
|
11425
|
+
node === DScalarExpressionNodeType.SUB_OR_MINUS) {
|
|
11442
11426
|
if (i <= 0 || isNumber(nodes[i - 1])) {
|
|
11443
11427
|
if (i + 1 < imax && !isNumber(nodes[i + 1])) {
|
|
11444
11428
|
var operand = nodes.splice(i + 1, 1)[0];
|
|
11445
|
-
var type = node ===
|
|
11429
|
+
var type = node === DScalarExpressionNodeType.ADD_OR_PLUS
|
|
11430
|
+
? DScalarExpressionNodeType.PLUS
|
|
11431
|
+
: DScalarExpressionNodeType.MINUS;
|
|
11446
11432
|
nodes[i] = [type, operand];
|
|
11447
11433
|
imax = nodes.length;
|
|
11448
11434
|
this.toUnaryNode(operand);
|
|
@@ -11452,7 +11438,9 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11452
11438
|
}
|
|
11453
11439
|
}
|
|
11454
11440
|
else {
|
|
11455
|
-
var type = node ===
|
|
11441
|
+
var type = node === DScalarExpressionNodeType.ADD_OR_PLUS
|
|
11442
|
+
? DScalarExpressionNodeType.ADD
|
|
11443
|
+
: DScalarExpressionNodeType.SUB;
|
|
11456
11444
|
nodes[i] = type;
|
|
11457
11445
|
}
|
|
11458
11446
|
}
|
|
@@ -11464,18 +11452,19 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11464
11452
|
};
|
|
11465
11453
|
DScalarExpression.prototype.toArithmeticNode = function (node, operatorA, operatorB) {
|
|
11466
11454
|
if (!isNumber(node)) {
|
|
11467
|
-
if (node[0] ===
|
|
11468
|
-
node[0] ===
|
|
11469
|
-
node[0] ===
|
|
11455
|
+
if (node[0] === DScalarExpressionNodeType.PARENSESIS ||
|
|
11456
|
+
node[0] === DScalarExpressionNodeType.MIN ||
|
|
11457
|
+
node[0] === DScalarExpressionNodeType.MAX) {
|
|
11470
11458
|
this.toArithmetic(node[1], operatorA, operatorB);
|
|
11471
11459
|
}
|
|
11472
|
-
else if (node[0] ===
|
|
11460
|
+
else if (node[0] === DScalarExpressionNodeType.PLUS ||
|
|
11461
|
+
node[0] === DScalarExpressionNodeType.MINUS) {
|
|
11473
11462
|
this.toArithmeticNode(node[1], operatorA, operatorB);
|
|
11474
11463
|
}
|
|
11475
|
-
else if (node[0] ===
|
|
11476
|
-
node[0] ===
|
|
11477
|
-
node[0] ===
|
|
11478
|
-
node[0] ===
|
|
11464
|
+
else if (node[0] === DScalarExpressionNodeType.ADD ||
|
|
11465
|
+
node[0] === DScalarExpressionNodeType.SUB ||
|
|
11466
|
+
node[0] === DScalarExpressionNodeType.MUL ||
|
|
11467
|
+
node[0] === DScalarExpressionNodeType.DIV) {
|
|
11479
11468
|
this.toArithmeticNode(node[1], operatorA, operatorB);
|
|
11480
11469
|
this.toArithmeticNode(node[2], operatorA, operatorB);
|
|
11481
11470
|
}
|
|
@@ -11512,7 +11501,7 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11512
11501
|
var matched = DScalarExpression.TOKEN_REGEX.exec(expression);
|
|
11513
11502
|
if (matched != null) {
|
|
11514
11503
|
var token = matched[0];
|
|
11515
|
-
var tokenTypeOperator =
|
|
11504
|
+
var tokenTypeOperator = this.toTokenOperator(token);
|
|
11516
11505
|
if (tokenTypeOperator != null) {
|
|
11517
11506
|
tokens.push(tokenTypeOperator);
|
|
11518
11507
|
}
|
|
@@ -11521,12 +11510,12 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11521
11510
|
if (parsedToken !== parsedToken) {
|
|
11522
11511
|
throw new Error("Unexpected token '" + token + "' at " + matched.index + " in '" + expression + "'");
|
|
11523
11512
|
}
|
|
11524
|
-
var tokenTypeLiteral =
|
|
11513
|
+
var tokenTypeLiteral = this.toTokenLiteral(token);
|
|
11525
11514
|
if (tokenTypeLiteral != null) {
|
|
11526
11515
|
tokens.push([tokenTypeLiteral, parsedToken * 0.01]);
|
|
11527
11516
|
}
|
|
11528
11517
|
else {
|
|
11529
|
-
tokens.push([
|
|
11518
|
+
tokens.push([DScalarExpressionNodeType.NUMBER, parsedToken]);
|
|
11530
11519
|
}
|
|
11531
11520
|
}
|
|
11532
11521
|
}
|
|
@@ -11536,31 +11525,70 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11536
11525
|
}
|
|
11537
11526
|
return tokens;
|
|
11538
11527
|
};
|
|
11528
|
+
DScalarExpression.prototype.toTokenOperator = function (token) {
|
|
11529
|
+
switch (token) {
|
|
11530
|
+
case "+":
|
|
11531
|
+
return DScalarExpressionNodeType.ADD_OR_PLUS;
|
|
11532
|
+
case "-":
|
|
11533
|
+
return DScalarExpressionNodeType.SUB_OR_MINUS;
|
|
11534
|
+
case "*":
|
|
11535
|
+
return DScalarExpressionNodeType.MUL;
|
|
11536
|
+
case "/":
|
|
11537
|
+
return DScalarExpressionNodeType.DIV;
|
|
11538
|
+
case "(":
|
|
11539
|
+
return DScalarExpressionNodeType.OPEN;
|
|
11540
|
+
case ")":
|
|
11541
|
+
return DScalarExpressionNodeType.CLOSE;
|
|
11542
|
+
case ",":
|
|
11543
|
+
return DScalarExpressionNodeType.COMMA;
|
|
11544
|
+
case "min":
|
|
11545
|
+
return DScalarExpressionNodeType.MIN;
|
|
11546
|
+
case "max":
|
|
11547
|
+
return DScalarExpressionNodeType.MAX;
|
|
11548
|
+
}
|
|
11549
|
+
return null;
|
|
11550
|
+
};
|
|
11551
|
+
DScalarExpression.prototype.toTokenLiteral = function (token) {
|
|
11552
|
+
var tokenLength = token.length;
|
|
11553
|
+
if (0 < tokenLength) {
|
|
11554
|
+
switch (token[tokenLength - 1]) {
|
|
11555
|
+
case "%":
|
|
11556
|
+
return DScalarExpressionNodeType.PARENT;
|
|
11557
|
+
case "s":
|
|
11558
|
+
return DScalarExpressionNodeType.SELF;
|
|
11559
|
+
case "p":
|
|
11560
|
+
return DScalarExpressionNodeType.PADDING;
|
|
11561
|
+
case "c":
|
|
11562
|
+
return DScalarExpressionNodeType.CURRENT;
|
|
11563
|
+
}
|
|
11564
|
+
}
|
|
11565
|
+
return null;
|
|
11566
|
+
};
|
|
11539
11567
|
DScalarExpression.prototype.evaluate = function (node, parent, self, padding, current) {
|
|
11540
11568
|
switch (node[0]) {
|
|
11541
|
-
case
|
|
11569
|
+
case DScalarExpressionNodeType.PARENSESIS:
|
|
11542
11570
|
var nodes = node[1];
|
|
11543
11571
|
return this.evaluate(nodes[nodes.length - 1], parent, self, padding, current);
|
|
11544
11572
|
// Unary operators
|
|
11545
|
-
case
|
|
11573
|
+
case DScalarExpressionNodeType.PLUS:
|
|
11546
11574
|
return +this.evaluate(node[1], parent, self, padding, current);
|
|
11547
|
-
case
|
|
11575
|
+
case DScalarExpressionNodeType.MINUS:
|
|
11548
11576
|
return -this.evaluate(node[1], parent, self, padding, current);
|
|
11549
11577
|
// Four arithmetic operators
|
|
11550
|
-
case
|
|
11578
|
+
case DScalarExpressionNodeType.ADD:
|
|
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.SUB:
|
|
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.MUL:
|
|
11557
11585
|
return (this.evaluate(node[1], parent, self, padding, current) *
|
|
11558
11586
|
this.evaluate(node[2], parent, self, padding, current));
|
|
11559
|
-
case
|
|
11587
|
+
case DScalarExpressionNodeType.DIV:
|
|
11560
11588
|
return (this.evaluate(node[1], parent, self, padding, current) /
|
|
11561
11589
|
this.evaluate(node[2], parent, self, padding, current));
|
|
11562
11590
|
// Functions
|
|
11563
|
-
case
|
|
11591
|
+
case DScalarExpressionNodeType.MIN:
|
|
11564
11592
|
if (0 < node[1].length) {
|
|
11565
11593
|
var args = node[1];
|
|
11566
11594
|
var result = this.evaluate(args[0], parent, self, padding, current);
|
|
@@ -11570,7 +11598,7 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11570
11598
|
return result;
|
|
11571
11599
|
}
|
|
11572
11600
|
return 0;
|
|
11573
|
-
case
|
|
11601
|
+
case DScalarExpressionNodeType.MAX:
|
|
11574
11602
|
if (0 < node[1].length) {
|
|
11575
11603
|
var args = node[1];
|
|
11576
11604
|
var result = this.evaluate(args[0], parent, self, padding, current);
|
|
@@ -11581,15 +11609,15 @@ var DScalarExpression = /** @class */ (function () {
|
|
|
11581
11609
|
}
|
|
11582
11610
|
return 0;
|
|
11583
11611
|
// Literals
|
|
11584
|
-
case
|
|
11612
|
+
case DScalarExpressionNodeType.PARENT:
|
|
11585
11613
|
return node[1] * parent;
|
|
11586
|
-
case
|
|
11614
|
+
case DScalarExpressionNodeType.SELF:
|
|
11587
11615
|
return node[1] * self;
|
|
11588
|
-
case
|
|
11616
|
+
case DScalarExpressionNodeType.PADDING:
|
|
11589
11617
|
return node[1] * padding;
|
|
11590
|
-
case
|
|
11618
|
+
case DScalarExpressionNodeType.CURRENT:
|
|
11591
11619
|
return node[1] * current;
|
|
11592
|
-
case
|
|
11620
|
+
case DScalarExpressionNodeType.NUMBER:
|
|
11593
11621
|
return node[1];
|
|
11594
11622
|
}
|
|
11595
11623
|
return 0;
|
|
@@ -14111,11 +14139,12 @@ var UtilGesture = /** @class */ (function () {
|
|
|
14111
14139
|
* SPDX-License-Identifier: Apache-2.0
|
|
14112
14140
|
*/
|
|
14113
14141
|
var DViewGestureImpl = /** @class */ (function () {
|
|
14114
|
-
function DViewGestureImpl(parent, toTarget, stopper, theme, options) {
|
|
14142
|
+
function DViewGestureImpl(parent, toTarget, stopper, constraint, theme, options) {
|
|
14115
14143
|
var _this = this;
|
|
14116
14144
|
var _a, _b;
|
|
14117
14145
|
this._parent = parent;
|
|
14118
14146
|
this._stopper = stopper;
|
|
14147
|
+
this._constraint = constraint;
|
|
14119
14148
|
var mode = toEnum((_a = options === null || options === void 0 ? void 0 : options.mode) !== null && _a !== void 0 ? _a : theme.getGestureMode(), UtilGestureMode);
|
|
14120
14149
|
var modifier = toEnum((_b = options === null || options === void 0 ? void 0 : options.modifier) !== null && _b !== void 0 ? _b : theme.getGestureModifier(), UtilGestureModifier);
|
|
14121
14150
|
if (mode === UtilGestureMode.ON || mode === UtilGestureMode.TOUCH) {
|
|
@@ -14158,8 +14187,7 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
14158
14187
|
var newX = (position.x - cx) * scaleRatio + x;
|
|
14159
14188
|
var newY = (position.y - cy) * scaleRatio + y;
|
|
14160
14189
|
// Update
|
|
14161
|
-
|
|
14162
|
-
target.position.set(newX, newY);
|
|
14190
|
+
this._constraint(target, newX, newY, newScaleX, newScaleY);
|
|
14163
14191
|
}
|
|
14164
14192
|
};
|
|
14165
14193
|
DViewGestureImpl.prototype.stop = function () {
|
|
@@ -14178,10 +14206,11 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
14178
14206
|
* SPDX-License-Identifier: Apache-2.0
|
|
14179
14207
|
*/
|
|
14180
14208
|
var DViewTransformImpl = /** @class */ (function () {
|
|
14181
|
-
function DViewTransformImpl(parent, toTarget, stopper, duration) {
|
|
14209
|
+
function DViewTransformImpl(parent, toTarget, stopper, constraint, duration) {
|
|
14182
14210
|
var _this = this;
|
|
14183
14211
|
this._parent = parent;
|
|
14184
14212
|
this._toTarget = toTarget;
|
|
14213
|
+
this._constraint = constraint;
|
|
14185
14214
|
this._newScaleX = 1;
|
|
14186
14215
|
this._newScaleY = 1;
|
|
14187
14216
|
this._newX = 0;
|
|
@@ -14208,11 +14237,10 @@ var DViewTransformImpl = /** @class */ (function () {
|
|
|
14208
14237
|
var y = this._oldY * w0 + this._newY * w1;
|
|
14209
14238
|
var target = this._toTarget(this._parent);
|
|
14210
14239
|
if (target != null) {
|
|
14211
|
-
|
|
14212
|
-
target.position.set(x, y);
|
|
14240
|
+
this._constraint(target, x, y, scaleX, scaleY);
|
|
14213
14241
|
}
|
|
14214
14242
|
};
|
|
14215
|
-
DViewTransformImpl.prototype.start = function (target, x,
|
|
14243
|
+
DViewTransformImpl.prototype.start = function (target, x, y, scaleX, scaleY, duration, stop) {
|
|
14216
14244
|
if (stop !== false) {
|
|
14217
14245
|
this._stopper.stop();
|
|
14218
14246
|
}
|
|
@@ -14220,8 +14248,7 @@ var DViewTransformImpl = /** @class */ (function () {
|
|
|
14220
14248
|
duration = this._duration;
|
|
14221
14249
|
}
|
|
14222
14250
|
if (duration <= 0) {
|
|
14223
|
-
|
|
14224
|
-
target.position.set(x, Y);
|
|
14251
|
+
this._constraint(target, x, y, scaleX, scaleY);
|
|
14225
14252
|
}
|
|
14226
14253
|
else {
|
|
14227
14254
|
var position = target.position;
|
|
@@ -14231,7 +14258,7 @@ var DViewTransformImpl = /** @class */ (function () {
|
|
|
14231
14258
|
this._oldScaleX = scale.x;
|
|
14232
14259
|
this._oldScaleY = scale.y;
|
|
14233
14260
|
this._newX = x;
|
|
14234
|
-
this._newY =
|
|
14261
|
+
this._newY = y;
|
|
14235
14262
|
this._newScaleX = scaleX;
|
|
14236
14263
|
this._newScaleY = scaleY;
|
|
14237
14264
|
this._animation.duration = duration;
|
|
@@ -14253,6 +14280,7 @@ var DViewImpl = /** @class */ (function () {
|
|
|
14253
14280
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
14254
14281
|
this._parent = parent;
|
|
14255
14282
|
this._toTarget = toTarget;
|
|
14283
|
+
this._constraint = (options && options.constraint) || DViewImpl.CONSTRAINT;
|
|
14256
14284
|
this._workRect = new pixi_js.Rectangle();
|
|
14257
14285
|
// Theme
|
|
14258
14286
|
var theme = this.toTheme(options) || this.getThemeDefault();
|
|
@@ -14283,9 +14311,9 @@ var DViewImpl = /** @class */ (function () {
|
|
|
14283
14311
|
this._wheelTranslationModifier = toEnum((_r = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.modifier) !== null && _r !== void 0 ? _r : theme.getWheelTranslationModifier(), UtilGestureModifier);
|
|
14284
14312
|
this._wheelTranslationChecker = (_s = wheelTranslation === null || wheelTranslation === void 0 ? void 0 : wheelTranslation.checker) !== null && _s !== void 0 ? _s : UtilGestureModifiers.match;
|
|
14285
14313
|
// Gesture
|
|
14286
|
-
this._gesture = new DViewGestureImpl(parent, toTarget, this, theme, options === null || options === void 0 ? void 0 : options.gesture);
|
|
14314
|
+
this._gesture = new DViewGestureImpl(parent, toTarget, this, this._constraint, theme, options === null || options === void 0 ? void 0 : options.gesture);
|
|
14287
14315
|
// Transform
|
|
14288
|
-
this._transform = new DViewTransformImpl(parent, toTarget, this, this._dblclickZoomDuration);
|
|
14316
|
+
this._transform = new DViewTransformImpl(parent, toTarget, this, this._constraint, this._dblclickZoomDuration);
|
|
14289
14317
|
}
|
|
14290
14318
|
Object.defineProperty(DViewImpl.prototype, "gesture", {
|
|
14291
14319
|
get: function () {
|
|
@@ -14394,7 +14422,8 @@ var DViewImpl = /** @class */ (function () {
|
|
|
14394
14422
|
if (target) {
|
|
14395
14423
|
var newScaleX = this.toNormalizedScale(scale.x);
|
|
14396
14424
|
var newScaleY = this.toNormalizedScale(scale.y);
|
|
14397
|
-
target.
|
|
14425
|
+
var targetPosition = target.position;
|
|
14426
|
+
this._constraint(target, targetPosition.x, targetPosition.y, newScaleX, newScaleY);
|
|
14398
14427
|
}
|
|
14399
14428
|
},
|
|
14400
14429
|
enumerable: false,
|
|
@@ -14418,7 +14447,8 @@ var DViewImpl = /** @class */ (function () {
|
|
|
14418
14447
|
set: function (position) {
|
|
14419
14448
|
var target = this._toTarget(this._parent);
|
|
14420
14449
|
if (target) {
|
|
14421
|
-
target.
|
|
14450
|
+
var targetScale = target.scale;
|
|
14451
|
+
this._constraint(target, position.x, position.y, targetScale.x, targetScale.y);
|
|
14422
14452
|
}
|
|
14423
14453
|
},
|
|
14424
14454
|
enumerable: false,
|
|
@@ -14459,7 +14489,11 @@ var DViewImpl = /** @class */ (function () {
|
|
|
14459
14489
|
if (target) {
|
|
14460
14490
|
this.stop();
|
|
14461
14491
|
var speed = deltas.lowest * this._wheelTranslationSpeed;
|
|
14462
|
-
|
|
14492
|
+
var targetPosition = target.position;
|
|
14493
|
+
var newX = targetPosition.x - deltas.deltaX * speed;
|
|
14494
|
+
var newY = targetPosition.y + deltas.deltaY * speed;
|
|
14495
|
+
var targetScale = target.scale;
|
|
14496
|
+
this._constraint(target, newX, newY, targetScale.x, targetScale.y);
|
|
14463
14497
|
return true;
|
|
14464
14498
|
}
|
|
14465
14499
|
}
|
|
@@ -14501,6 +14535,10 @@ var DViewImpl = /** @class */ (function () {
|
|
|
14501
14535
|
DViewImpl.prototype.getType = function () {
|
|
14502
14536
|
return "DView";
|
|
14503
14537
|
};
|
|
14538
|
+
DViewImpl.CONSTRAINT = function (target, x, y, scaleX, scaleY) {
|
|
14539
|
+
target.scale.set(scaleX, scaleY);
|
|
14540
|
+
target.position.set(x, y);
|
|
14541
|
+
};
|
|
14504
14542
|
return DViewImpl;
|
|
14505
14543
|
}());
|
|
14506
14544
|
|
|
@@ -14650,12 +14688,16 @@ var EShapeActionRuntimes = /** @class */ (function () {
|
|
|
14650
14688
|
var container = this.toContainer(shape);
|
|
14651
14689
|
if (container) {
|
|
14652
14690
|
if (remote) {
|
|
14653
|
-
container.data.remote.set(id, value, time);
|
|
14691
|
+
return container.data.remote.set(id, value, time);
|
|
14654
14692
|
}
|
|
14655
14693
|
else {
|
|
14656
|
-
container.data.set(id, value, time)
|
|
14694
|
+
if (container.data.set(id, value, time)) {
|
|
14695
|
+
DApplications.update(container);
|
|
14696
|
+
return true;
|
|
14697
|
+
}
|
|
14657
14698
|
}
|
|
14658
14699
|
}
|
|
14700
|
+
return false;
|
|
14659
14701
|
};
|
|
14660
14702
|
EShapeActionRuntimes.emit = function (shape, name, value, time) {
|
|
14661
14703
|
var container = EShapeActionRuntimes.toContainer(shape);
|
|
@@ -27091,7 +27133,7 @@ var EShapeRectangleRounded = /** @class */ (function (_super) {
|
|
|
27091
27133
|
return _super.call(this, type) || this;
|
|
27092
27134
|
}
|
|
27093
27135
|
EShapeRectangleRounded.prototype.clone = function () {
|
|
27094
|
-
return new EShapeRectangleRounded().copy(this);
|
|
27136
|
+
return new EShapeRectangleRounded(this.type).copy(this);
|
|
27095
27137
|
};
|
|
27096
27138
|
EShapeRectangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
27097
27139
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -27139,7 +27181,7 @@ var EShapeButton = /** @class */ (function (_super) {
|
|
|
27139
27181
|
configurable: true
|
|
27140
27182
|
});
|
|
27141
27183
|
EShapeButton.prototype.clone = function () {
|
|
27142
|
-
return new EShapeButton().copy(this);
|
|
27184
|
+
return new EShapeButton(this.type).copy(this);
|
|
27143
27185
|
};
|
|
27144
27186
|
EShapeButton.prototype.serialize = function (manager) {
|
|
27145
27187
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -27897,7 +27939,7 @@ var EShapeCircle = /** @class */ (function (_super) {
|
|
|
27897
27939
|
return _super.call(this, type) || this;
|
|
27898
27940
|
}
|
|
27899
27941
|
EShapeCircle.prototype.clone = function () {
|
|
27900
|
-
return new EShapeCircle().copy(this);
|
|
27942
|
+
return new EShapeCircle(this.type).copy(this);
|
|
27901
27943
|
};
|
|
27902
27944
|
EShapeCircle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
27903
27945
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -31552,7 +31594,7 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31552
31594
|
return this;
|
|
31553
31595
|
};
|
|
31554
31596
|
EShapeConnectorLine.prototype.clone = function () {
|
|
31555
|
-
return new EShapeConnectorLine().copy(this);
|
|
31597
|
+
return new EShapeConnectorLine(this.type).copy(this);
|
|
31556
31598
|
};
|
|
31557
31599
|
EShapeConnectorLine.prototype.serialize = function (manager) {
|
|
31558
31600
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -34561,7 +34603,7 @@ var EShapeRectangle = /** @class */ (function (_super) {
|
|
|
34561
34603
|
return _super.call(this, type) || this;
|
|
34562
34604
|
}
|
|
34563
34605
|
EShapeRectangle.prototype.clone = function () {
|
|
34564
|
-
return new EShapeRectangle().copy(this);
|
|
34606
|
+
return new EShapeRectangle(this.type).copy(this);
|
|
34565
34607
|
};
|
|
34566
34608
|
EShapeRectangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
34567
34609
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -34589,7 +34631,7 @@ var EShapeImage = /** @class */ (function (_super) {
|
|
|
34589
34631
|
return _this;
|
|
34590
34632
|
}
|
|
34591
34633
|
EShapeImage.prototype.clone = function () {
|
|
34592
|
-
return new EShapeImage(this.image).copy(this);
|
|
34634
|
+
return new EShapeImage(this.image, this.type).copy(this);
|
|
34593
34635
|
};
|
|
34594
34636
|
return EShapeImage;
|
|
34595
34637
|
}(EShapeRectangle));
|
|
@@ -34898,7 +34940,7 @@ var EShapeImageSdf = /** @class */ (function (_super) {
|
|
|
34898
34940
|
return _super.call(this, image, type) || this;
|
|
34899
34941
|
}
|
|
34900
34942
|
EShapeImageSdf.prototype.clone = function () {
|
|
34901
|
-
return new EShapeImageSdf(this.image).copy(this);
|
|
34943
|
+
return new EShapeImageSdf(this.image, this.type).copy(this);
|
|
34902
34944
|
};
|
|
34903
34945
|
return EShapeImageSdf;
|
|
34904
34946
|
}(EShapeImage));
|
|
@@ -34983,7 +35025,7 @@ var EShapeLabel = /** @class */ (function (_super) {
|
|
|
34983
35025
|
return _super.call(this, type) || this;
|
|
34984
35026
|
}
|
|
34985
35027
|
EShapeLabel.prototype.clone = function () {
|
|
34986
|
-
return new EShapeLabel().copy(this);
|
|
35028
|
+
return new EShapeLabel(this.type).copy(this);
|
|
34987
35029
|
};
|
|
34988
35030
|
return EShapeLabel;
|
|
34989
35031
|
}(EShapePrimitive));
|
|
@@ -35025,7 +35067,7 @@ var EShapeLine = /** @class */ (function (_super) {
|
|
|
35025
35067
|
configurable: true
|
|
35026
35068
|
});
|
|
35027
35069
|
EShapeLine.prototype.clone = function () {
|
|
35028
|
-
return new EShapeLine().copy(this);
|
|
35070
|
+
return new EShapeLine(this.type).copy(this);
|
|
35029
35071
|
};
|
|
35030
35072
|
EShapeLine.prototype.serialize = function (manager) {
|
|
35031
35073
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -36042,8 +36084,9 @@ var createLineOfCirclesUploaded = function (buffer, shape, voffset, ioffset, ant
|
|
|
36042
36084
|
*/
|
|
36043
36085
|
var EShapeLineOfCircles = /** @class */ (function (_super) {
|
|
36044
36086
|
__extends(EShapeLineOfCircles, _super);
|
|
36045
|
-
function EShapeLineOfCircles() {
|
|
36046
|
-
|
|
36087
|
+
function EShapeLineOfCircles(type) {
|
|
36088
|
+
if (type === void 0) { type = EShapeType.LINE_OF_CIRCLES; }
|
|
36089
|
+
var _this = _super.call(this, type) || this;
|
|
36047
36090
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36048
36091
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36049
36092
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36058,7 +36101,7 @@ var EShapeLineOfCircles = /** @class */ (function (_super) {
|
|
|
36058
36101
|
configurable: true
|
|
36059
36102
|
});
|
|
36060
36103
|
EShapeLineOfCircles.prototype.clone = function () {
|
|
36061
|
-
return new EShapeLineOfCircles().copy(this);
|
|
36104
|
+
return new EShapeLineOfCircles(this.type).copy(this);
|
|
36062
36105
|
};
|
|
36063
36106
|
EShapeLineOfCircles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36064
36107
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -36269,8 +36312,9 @@ var createLineOfRectangleRoundedsUploaded = function (buffer, shape, voffset, io
|
|
|
36269
36312
|
*/
|
|
36270
36313
|
var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
36271
36314
|
__extends(EShapeLineOfRectangleRoundeds, _super);
|
|
36272
|
-
function EShapeLineOfRectangleRoundeds() {
|
|
36273
|
-
|
|
36315
|
+
function EShapeLineOfRectangleRoundeds(type) {
|
|
36316
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLE_ROUNDEDS; }
|
|
36317
|
+
var _this = _super.call(this, type) || this;
|
|
36274
36318
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36275
36319
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36276
36320
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36285,7 +36329,7 @@ var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
|
36285
36329
|
configurable: true
|
|
36286
36330
|
});
|
|
36287
36331
|
EShapeLineOfRectangleRoundeds.prototype.clone = function () {
|
|
36288
|
-
return new EShapeLineOfRectangleRoundeds().copy(this);
|
|
36332
|
+
return new EShapeLineOfRectangleRoundeds(this.type).copy(this);
|
|
36289
36333
|
};
|
|
36290
36334
|
EShapeLineOfRectangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36291
36335
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -36487,8 +36531,9 @@ var createLineOfRectanglesUploaded = function (buffer, shape, voffset, ioffset,
|
|
|
36487
36531
|
*/
|
|
36488
36532
|
var EShapeLineOfRectangles = /** @class */ (function (_super) {
|
|
36489
36533
|
__extends(EShapeLineOfRectangles, _super);
|
|
36490
|
-
function EShapeLineOfRectangles() {
|
|
36491
|
-
|
|
36534
|
+
function EShapeLineOfRectangles(type) {
|
|
36535
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLES; }
|
|
36536
|
+
var _this = _super.call(this, type) || this;
|
|
36492
36537
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36493
36538
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36494
36539
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36503,7 +36548,7 @@ var EShapeLineOfRectangles = /** @class */ (function (_super) {
|
|
|
36503
36548
|
configurable: true
|
|
36504
36549
|
});
|
|
36505
36550
|
EShapeLineOfRectangles.prototype.clone = function () {
|
|
36506
|
-
return new EShapeLineOfRectangles().copy(this);
|
|
36551
|
+
return new EShapeLineOfRectangles(this.type).copy(this);
|
|
36507
36552
|
};
|
|
36508
36553
|
EShapeLineOfRectangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36509
36554
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37247,7 +37292,7 @@ var EShapeTriangleRounded = /** @class */ (function (_super) {
|
|
|
37247
37292
|
return _super.call(this, type) || this;
|
|
37248
37293
|
}
|
|
37249
37294
|
EShapeTriangleRounded.prototype.clone = function () {
|
|
37250
|
-
return new EShapeTriangleRounded().copy(this);
|
|
37295
|
+
return new EShapeTriangleRounded(this.type).copy(this);
|
|
37251
37296
|
};
|
|
37252
37297
|
EShapeTriangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37253
37298
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -37264,8 +37309,9 @@ var EShapeTriangleRounded = /** @class */ (function (_super) {
|
|
|
37264
37309
|
*/
|
|
37265
37310
|
var EShapeLineOfTriangleRoundeds = /** @class */ (function (_super) {
|
|
37266
37311
|
__extends(EShapeLineOfTriangleRoundeds, _super);
|
|
37267
|
-
function EShapeLineOfTriangleRoundeds() {
|
|
37268
|
-
|
|
37312
|
+
function EShapeLineOfTriangleRoundeds(type) {
|
|
37313
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLE_ROUNDEDS; }
|
|
37314
|
+
var _this = _super.call(this, type) || this;
|
|
37269
37315
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
37270
37316
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
37271
37317
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -37280,7 +37326,7 @@ var EShapeLineOfTriangleRoundeds = /** @class */ (function (_super) {
|
|
|
37280
37326
|
configurable: true
|
|
37281
37327
|
});
|
|
37282
37328
|
EShapeLineOfTriangleRoundeds.prototype.clone = function () {
|
|
37283
|
-
return new EShapeLineOfTriangleRoundeds().copy(this);
|
|
37329
|
+
return new EShapeLineOfTriangleRoundeds(this.type).copy(this);
|
|
37284
37330
|
};
|
|
37285
37331
|
EShapeLineOfTriangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37286
37332
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37469,7 +37515,7 @@ var EShapeTriangle = /** @class */ (function (_super) {
|
|
|
37469
37515
|
return _super.call(this, type) || this;
|
|
37470
37516
|
}
|
|
37471
37517
|
EShapeTriangle.prototype.clone = function () {
|
|
37472
|
-
return new EShapeTriangle().copy(this);
|
|
37518
|
+
return new EShapeTriangle(this.type).copy(this);
|
|
37473
37519
|
};
|
|
37474
37520
|
EShapeTriangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37475
37521
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -37486,8 +37532,9 @@ var EShapeTriangle = /** @class */ (function (_super) {
|
|
|
37486
37532
|
*/
|
|
37487
37533
|
var EShapeLineOfTriangles = /** @class */ (function (_super) {
|
|
37488
37534
|
__extends(EShapeLineOfTriangles, _super);
|
|
37489
|
-
function EShapeLineOfTriangles() {
|
|
37490
|
-
|
|
37535
|
+
function EShapeLineOfTriangles(type) {
|
|
37536
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLES; }
|
|
37537
|
+
var _this = _super.call(this, type) || this;
|
|
37491
37538
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
37492
37539
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
37493
37540
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -37502,7 +37549,7 @@ var EShapeLineOfTriangles = /** @class */ (function (_super) {
|
|
|
37502
37549
|
configurable: true
|
|
37503
37550
|
});
|
|
37504
37551
|
EShapeLineOfTriangles.prototype.clone = function () {
|
|
37505
|
-
return new EShapeLineOfTriangles().copy(this);
|
|
37552
|
+
return new EShapeLineOfTriangles(this.type).copy(this);
|
|
37506
37553
|
};
|
|
37507
37554
|
EShapeLineOfTriangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37508
37555
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37563,7 +37610,7 @@ var EShapeNull = /** @class */ (function (_super) {
|
|
|
37563
37610
|
return _super.call(this, type) || this;
|
|
37564
37611
|
}
|
|
37565
37612
|
EShapeNull.prototype.clone = function () {
|
|
37566
|
-
return new EShapeNull().copy(this);
|
|
37613
|
+
return new EShapeNull(this.type).copy(this);
|
|
37567
37614
|
};
|
|
37568
37615
|
return EShapeNull;
|
|
37569
37616
|
}(EShapePrimitive));
|
|
@@ -38524,7 +38571,7 @@ var toSizeRounded = function (value) {
|
|
|
38524
38571
|
* Copyright (C) 2019 Toshiba Corporation
|
|
38525
38572
|
* SPDX-License-Identifier: Apache-2.0
|
|
38526
38573
|
*/
|
|
38527
|
-
var
|
|
38574
|
+
var toResized = function (shape, from, to, centerMode, isPerfect) {
|
|
38528
38575
|
shape.disallowUploadedUpdate();
|
|
38529
38576
|
var position = shape.transform.position;
|
|
38530
38577
|
if (centerMode) {
|
|
@@ -44672,7 +44719,7 @@ var DThemeWhiteChart = /** @class */ (function (_super) {
|
|
|
44672
44719
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
44673
44720
|
}
|
|
44674
44721
|
DThemeWhiteChart.prototype.getPaddingLeft = function () {
|
|
44675
|
-
return
|
|
44722
|
+
return 80;
|
|
44676
44723
|
};
|
|
44677
44724
|
DThemeWhiteChart.prototype.getPaddingRight = function () {
|
|
44678
44725
|
return 10;
|
|
@@ -44730,7 +44777,7 @@ var DThemeWhiteChartAxisBase = /** @class */ (function () {
|
|
|
44730
44777
|
return DChartAxisPosition.BOTTOM;
|
|
44731
44778
|
};
|
|
44732
44779
|
DThemeWhiteChartAxisBase.prototype.getPadding = function () {
|
|
44733
|
-
return
|
|
44780
|
+
return 90;
|
|
44734
44781
|
};
|
|
44735
44782
|
DThemeWhiteChartAxisBase.prototype.getLabelAlignHorizontal = function (position) {
|
|
44736
44783
|
switch (position) {
|
|
@@ -44757,7 +44804,7 @@ var DThemeWhiteChartAxisBase = /** @class */ (function () {
|
|
|
44757
44804
|
}
|
|
44758
44805
|
};
|
|
44759
44806
|
DThemeWhiteChartAxisBase.prototype.getLabelPaddingHorizontal = function () {
|
|
44760
|
-
return
|
|
44807
|
+
return 60;
|
|
44761
44808
|
};
|
|
44762
44809
|
DThemeWhiteChartAxisBase.prototype.getLabelPaddingVertical = function () {
|
|
44763
44810
|
return 50;
|
|
@@ -44798,6 +44845,9 @@ var DThemeWhiteChartAxisBase = /** @class */ (function () {
|
|
|
44798
44845
|
DThemeWhiteChartAxisBase.prototype.getMajorTickCount = function () {
|
|
44799
44846
|
return 3;
|
|
44800
44847
|
};
|
|
44848
|
+
DThemeWhiteChartAxisBase.prototype.getMajorTickStep = function () {
|
|
44849
|
+
return undefined;
|
|
44850
|
+
};
|
|
44801
44851
|
DThemeWhiteChartAxisBase.prototype.getMajorTickSize = function () {
|
|
44802
44852
|
return 10;
|
|
44803
44853
|
};
|
|
@@ -44897,6 +44947,9 @@ var DThemeWhiteChartAxisBase = /** @class */ (function () {
|
|
|
44897
44947
|
DThemeWhiteChartAxisBase.prototype.getMinorTickCount = function () {
|
|
44898
44948
|
return 3;
|
|
44899
44949
|
};
|
|
44950
|
+
DThemeWhiteChartAxisBase.prototype.getMinorTickStep = function () {
|
|
44951
|
+
return undefined;
|
|
44952
|
+
};
|
|
44900
44953
|
DThemeWhiteChartAxisBase.prototype.getMinorTickSize = function () {
|
|
44901
44954
|
return 5;
|
|
44902
44955
|
};
|
|
@@ -44979,13 +45032,23 @@ var DThemeWhiteChartAxisY = /** @class */ (function (_super) {
|
|
|
44979
45032
|
* Copyright (C) 2019 Toshiba Corporation
|
|
44980
45033
|
* SPDX-License-Identifier: Apache-2.0
|
|
44981
45034
|
*/
|
|
44982
|
-
var
|
|
44983
|
-
function
|
|
45035
|
+
var DThemeWhiteChartCoordinate = /** @class */ (function () {
|
|
45036
|
+
function DThemeWhiteChartCoordinate() {
|
|
44984
45037
|
}
|
|
44985
|
-
|
|
45038
|
+
DThemeWhiteChartCoordinate.prototype.isZero = function (value) {
|
|
44986
45039
|
return Math.abs(value) < 0.00001;
|
|
44987
45040
|
};
|
|
44988
|
-
|
|
45041
|
+
return DThemeWhiteChartCoordinate;
|
|
45042
|
+
}());
|
|
45043
|
+
|
|
45044
|
+
/*
|
|
45045
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
45046
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
45047
|
+
*/
|
|
45048
|
+
var DThemeWhiteChartCoordinateTick = /** @class */ (function () {
|
|
45049
|
+
function DThemeWhiteChartCoordinateTick() {
|
|
45050
|
+
}
|
|
45051
|
+
DThemeWhiteChartCoordinateTick.prototype.toStepScale = function (scale) {
|
|
44989
45052
|
if (5.5 <= scale) {
|
|
44990
45053
|
return 10;
|
|
44991
45054
|
}
|
|
@@ -44997,32 +45060,20 @@ var DThemeWhiteChartCoordinateLinear = /** @class */ (function () {
|
|
|
44997
45060
|
}
|
|
44998
45061
|
return 1;
|
|
44999
45062
|
};
|
|
45000
|
-
return
|
|
45063
|
+
return DThemeWhiteChartCoordinateTick;
|
|
45001
45064
|
}());
|
|
45002
45065
|
|
|
45003
45066
|
/*
|
|
45004
45067
|
* Copyright (C) 2019 Toshiba Corporation
|
|
45005
45068
|
* SPDX-License-Identifier: Apache-2.0
|
|
45006
45069
|
*/
|
|
45007
|
-
var
|
|
45008
|
-
function
|
|
45070
|
+
var DThemeWhiteChartCoordinateTransform = /** @class */ (function () {
|
|
45071
|
+
function DThemeWhiteChartCoordinateTransform() {
|
|
45009
45072
|
}
|
|
45010
|
-
|
|
45073
|
+
DThemeWhiteChartCoordinateTransform.prototype.isZero = function (value) {
|
|
45011
45074
|
return Math.abs(value) < 0.00001;
|
|
45012
45075
|
};
|
|
45013
|
-
|
|
45014
|
-
if (5.5 <= scale) {
|
|
45015
|
-
return 10;
|
|
45016
|
-
}
|
|
45017
|
-
else if (2.2 <= scale) {
|
|
45018
|
-
return 5;
|
|
45019
|
-
}
|
|
45020
|
-
else if (1.1 <= scale) {
|
|
45021
|
-
return 2;
|
|
45022
|
-
}
|
|
45023
|
-
return 1;
|
|
45024
|
-
};
|
|
45025
|
-
return DThemeWhiteChartCoordinateLog;
|
|
45076
|
+
return DThemeWhiteChartCoordinateTransform;
|
|
45026
45077
|
}());
|
|
45027
45078
|
|
|
45028
45079
|
/*
|
|
@@ -45097,6 +45148,9 @@ var DThemeWhiteChartPlotArea = /** @class */ (function (_super) {
|
|
|
45097
45148
|
DThemeWhiteChartPlotArea.prototype.getBorderColor = function (state) {
|
|
45098
45149
|
return null;
|
|
45099
45150
|
};
|
|
45151
|
+
DThemeWhiteChartPlotArea.prototype.getCornerMask = function () {
|
|
45152
|
+
return DCornerMask.ALL;
|
|
45153
|
+
};
|
|
45100
45154
|
DThemeWhiteChartPlotArea.prototype.isOverflowMaskEnabled = function () {
|
|
45101
45155
|
return true;
|
|
45102
45156
|
};
|
|
@@ -45184,8 +45238,9 @@ var loadThemeWhiteChart = function () {
|
|
|
45184
45238
|
DThemeWhite.set("DChartAxisX", DThemeWhiteChartAxisX);
|
|
45185
45239
|
DThemeWhite.set("DChartAxisXDatetime", DThemeWhiteChartAxisXDatetime);
|
|
45186
45240
|
DThemeWhite.set("DChartAxisY", DThemeWhiteChartAxisY);
|
|
45187
|
-
DThemeWhite.set("
|
|
45188
|
-
DThemeWhite.set("
|
|
45241
|
+
DThemeWhite.set("DChartCoordinate", DThemeWhiteChartCoordinate);
|
|
45242
|
+
DThemeWhite.set("DChartCoordinateTick", DThemeWhiteChartCoordinateTick);
|
|
45243
|
+
DThemeWhite.set("DChartCoordinateTransform", DThemeWhiteChartCoordinateTransform);
|
|
45189
45244
|
DThemeWhite.set("DChartLegend", DThemeWhiteChartLegend);
|
|
45190
45245
|
DThemeWhite.set("DChartLegendItem", DThemeWhiteChartLegendItem);
|
|
45191
45246
|
DThemeWhite.set("DChartOverview", DThemeWhiteChartOverview);
|
|
@@ -48204,8 +48259,11 @@ var DThemeWhitePagination = /** @class */ (function (_super) {
|
|
|
48204
48259
|
DThemeWhitePagination.prototype.getWidth = function () {
|
|
48205
48260
|
return "auto";
|
|
48206
48261
|
};
|
|
48207
|
-
DThemeWhitePagination.prototype.
|
|
48208
|
-
return
|
|
48262
|
+
DThemeWhitePagination.prototype.getMargin = function () {
|
|
48263
|
+
return 10;
|
|
48264
|
+
};
|
|
48265
|
+
DThemeWhitePagination.prototype.getButtonSpace = function () {
|
|
48266
|
+
return 10;
|
|
48209
48267
|
};
|
|
48210
48268
|
return DThemeWhitePagination;
|
|
48211
48269
|
}(DThemeWhiteLayoutHorizontal));
|
|
@@ -48214,75 +48272,192 @@ var DThemeWhitePagination = /** @class */ (function (_super) {
|
|
|
48214
48272
|
* Copyright (C) 2019 Toshiba Corporation
|
|
48215
48273
|
* SPDX-License-Identifier: Apache-2.0
|
|
48216
48274
|
*/
|
|
48217
|
-
|
|
48218
|
-
|
|
48219
|
-
|
|
48275
|
+
/* eslint-disable prettier/prettier */
|
|
48276
|
+
DThemeWhiteAtlas.add("pagination_dots", 21, 21, "<g>" +
|
|
48277
|
+
"<circle cx=\"2\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
|
|
48278
|
+
"<circle cx=\"10.5\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
|
|
48279
|
+
"<circle cx=\"19\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
|
|
48280
|
+
"</g>");
|
|
48281
|
+
/* eslint-enable prettier/prettier */
|
|
48282
|
+
var DThemeWhitePaginationDots = /** @class */ (function (_super) {
|
|
48283
|
+
__extends(DThemeWhitePaginationDots, _super);
|
|
48284
|
+
function DThemeWhitePaginationDots() {
|
|
48220
48285
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
48221
48286
|
}
|
|
48222
|
-
|
|
48223
|
-
return
|
|
48287
|
+
DThemeWhitePaginationDots.prototype.getWidth = function () {
|
|
48288
|
+
return 30;
|
|
48224
48289
|
};
|
|
48225
|
-
|
|
48226
|
-
return
|
|
48290
|
+
DThemeWhitePaginationDots.prototype.getHeight = function () {
|
|
48291
|
+
return 30;
|
|
48292
|
+
};
|
|
48293
|
+
DThemeWhitePaginationDots.prototype.newState = function (state) {
|
|
48294
|
+
_super.prototype.newState.call(this, state);
|
|
48295
|
+
state.isFocusable = false;
|
|
48296
|
+
};
|
|
48297
|
+
DThemeWhitePaginationDots.prototype.getImageSource = function (state) {
|
|
48298
|
+
return DThemeWhiteAtlas.mappings.pagination_dots;
|
|
48299
|
+
};
|
|
48300
|
+
return DThemeWhitePaginationDots;
|
|
48301
|
+
}(DThemeWhiteImageBase));
|
|
48302
|
+
|
|
48303
|
+
/*
|
|
48304
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48305
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48306
|
+
*/
|
|
48307
|
+
/* eslint-disable prettier/prettier */
|
|
48308
|
+
DThemeWhiteAtlas.add("pagination_button_last", 21, 21, "<g>" +
|
|
48309
|
+
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
|
|
48310
|
+
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
|
|
48311
|
+
"</g>");
|
|
48312
|
+
/* eslint-enable prettier/prettier */
|
|
48313
|
+
var DThemeWhitePaginationButtonLast = /** @class */ (function (_super) {
|
|
48314
|
+
__extends(DThemeWhitePaginationButtonLast, _super);
|
|
48315
|
+
function DThemeWhitePaginationButtonLast() {
|
|
48316
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48317
|
+
}
|
|
48318
|
+
DThemeWhitePaginationButtonLast.prototype.getWidth = function () {
|
|
48319
|
+
return 30;
|
|
48227
48320
|
};
|
|
48228
|
-
|
|
48229
|
-
return
|
|
48321
|
+
DThemeWhitePaginationButtonLast.prototype.getImageSource = function (state) {
|
|
48322
|
+
return DThemeWhiteAtlas.mappings.pagination_button_last;
|
|
48230
48323
|
};
|
|
48231
|
-
return
|
|
48324
|
+
return DThemeWhitePaginationButtonLast;
|
|
48232
48325
|
}(DThemeWhiteButtonAmbient));
|
|
48233
48326
|
|
|
48234
48327
|
/*
|
|
48235
48328
|
* Copyright (C) 2019 Toshiba Corporation
|
|
48236
48329
|
* SPDX-License-Identifier: Apache-2.0
|
|
48237
48330
|
*/
|
|
48238
|
-
|
|
48239
|
-
|
|
48240
|
-
|
|
48331
|
+
/* eslint-disable prettier/prettier */
|
|
48332
|
+
DThemeWhiteAtlas.add("pagination_button_next", 21, 21, "<g>" +
|
|
48333
|
+
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"7 15 13 10 7 5\"></polyline>" +
|
|
48334
|
+
"</g>");
|
|
48335
|
+
/* eslint-enable prettier/prettier */
|
|
48336
|
+
var DThemeWhitePaginationButtonNext = /** @class */ (function (_super) {
|
|
48337
|
+
__extends(DThemeWhitePaginationButtonNext, _super);
|
|
48338
|
+
function DThemeWhitePaginationButtonNext() {
|
|
48241
48339
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
48242
48340
|
}
|
|
48243
|
-
|
|
48244
|
-
return
|
|
48341
|
+
DThemeWhitePaginationButtonNext.prototype.getWidth = function () {
|
|
48342
|
+
return 30;
|
|
48245
48343
|
};
|
|
48246
|
-
|
|
48247
|
-
|
|
48344
|
+
DThemeWhitePaginationButtonNext.prototype.getImageSource = function (state) {
|
|
48345
|
+
return DThemeWhiteAtlas.mappings.pagination_button_next;
|
|
48346
|
+
};
|
|
48347
|
+
return DThemeWhitePaginationButtonNext;
|
|
48348
|
+
}(DThemeWhiteButtonAmbient));
|
|
48349
|
+
|
|
48350
|
+
/*
|
|
48351
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48352
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48353
|
+
*/
|
|
48354
|
+
var DThemeWhitePaginationButtonPage = /** @class */ (function (_super) {
|
|
48355
|
+
__extends(DThemeWhitePaginationButtonPage, _super);
|
|
48356
|
+
function DThemeWhitePaginationButtonPage() {
|
|
48357
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48358
|
+
}
|
|
48359
|
+
DThemeWhitePaginationButtonPage.prototype.getWidth = function () {
|
|
48360
|
+
return 30;
|
|
48361
|
+
};
|
|
48362
|
+
DThemeWhitePaginationButtonPage.prototype.newTextValue = function () {
|
|
48363
|
+
return 0;
|
|
48364
|
+
};
|
|
48365
|
+
DThemeWhitePaginationButtonPage.prototype.getTextStyleClipping = function () {
|
|
48366
|
+
return false;
|
|
48367
|
+
};
|
|
48368
|
+
return DThemeWhitePaginationButtonPage;
|
|
48369
|
+
}(DThemeWhiteButtonAmbient));
|
|
48248
48370
|
|
|
48249
48371
|
/*
|
|
48250
48372
|
* Copyright (C) 2019 Toshiba Corporation
|
|
48251
48373
|
* SPDX-License-Identifier: Apache-2.0
|
|
48252
48374
|
*/
|
|
48253
48375
|
/* eslint-disable prettier/prettier */
|
|
48254
|
-
DThemeWhiteAtlas.add("
|
|
48376
|
+
DThemeWhiteAtlas.add("pagination_button_previous", 21, 21, "<g>" +
|
|
48255
48377
|
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"13 15 7 10 13 5\"></polyline>" +
|
|
48256
48378
|
"</g>");
|
|
48257
|
-
|
|
48258
|
-
|
|
48259
|
-
|
|
48260
|
-
|
|
48379
|
+
/* eslint-enable prettier/prettier */
|
|
48380
|
+
var DThemeWhitePaginationButtonPrevious = /** @class */ (function (_super) {
|
|
48381
|
+
__extends(DThemeWhitePaginationButtonPrevious, _super);
|
|
48382
|
+
function DThemeWhitePaginationButtonPrevious() {
|
|
48383
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48384
|
+
}
|
|
48385
|
+
DThemeWhitePaginationButtonPrevious.prototype.getWidth = function () {
|
|
48386
|
+
return 30;
|
|
48387
|
+
};
|
|
48388
|
+
DThemeWhitePaginationButtonPrevious.prototype.getImageSource = function (state) {
|
|
48389
|
+
return DThemeWhiteAtlas.mappings.pagination_button_previous;
|
|
48390
|
+
};
|
|
48391
|
+
return DThemeWhitePaginationButtonPrevious;
|
|
48392
|
+
}(DThemeWhiteButtonAmbient));
|
|
48393
|
+
|
|
48394
|
+
/*
|
|
48395
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48396
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48397
|
+
*/
|
|
48398
|
+
/* eslint-disable prettier/prettier */
|
|
48399
|
+
DThemeWhiteAtlas.add("pagination_button_top", 21, 21, "<g>" +
|
|
48261
48400
|
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"11 15 5 10 11 5\"></polyline>" +
|
|
48262
48401
|
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"15 15 9 10 15 5\"></polyline>" +
|
|
48263
48402
|
"</g>");
|
|
48264
|
-
DThemeWhiteAtlas.add("pagination_navigation_button_go_last", 21, 21, "<g>" +
|
|
48265
|
-
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
|
|
48266
|
-
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
|
|
48267
|
-
"</g>");
|
|
48268
48403
|
/* eslint-enable prettier/prettier */
|
|
48269
|
-
var
|
|
48270
|
-
__extends(
|
|
48271
|
-
function
|
|
48404
|
+
var DThemeWhitePaginationButtonTop = /** @class */ (function (_super) {
|
|
48405
|
+
__extends(DThemeWhitePaginationButtonTop, _super);
|
|
48406
|
+
function DThemeWhitePaginationButtonTop() {
|
|
48272
48407
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
48273
48408
|
}
|
|
48274
|
-
|
|
48409
|
+
DThemeWhitePaginationButtonTop.prototype.getWidth = function () {
|
|
48410
|
+
return 30;
|
|
48411
|
+
};
|
|
48412
|
+
DThemeWhitePaginationButtonTop.prototype.getImageSource = function (state) {
|
|
48413
|
+
return DThemeWhiteAtlas.mappings.pagination_button_top;
|
|
48414
|
+
};
|
|
48415
|
+
return DThemeWhitePaginationButtonTop;
|
|
48275
48416
|
}(DThemeWhiteButtonAmbient));
|
|
48276
48417
|
|
|
48418
|
+
/*
|
|
48419
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48420
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48421
|
+
*/
|
|
48422
|
+
var DThemeWhitePaginationPage = /** @class */ (function (_super) {
|
|
48423
|
+
__extends(DThemeWhitePaginationPage, _super);
|
|
48424
|
+
function DThemeWhitePaginationPage() {
|
|
48425
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48426
|
+
}
|
|
48427
|
+
DThemeWhitePaginationPage.prototype.getBackgroundColor = function (state) {
|
|
48428
|
+
return DThemeWhiteConstants.HIGHLIGHT_COLOR;
|
|
48429
|
+
};
|
|
48430
|
+
DThemeWhitePaginationPage.prototype.getColor = function (state) {
|
|
48431
|
+
return DThemeWhiteConstants.ACTIVE_COLOR;
|
|
48432
|
+
};
|
|
48433
|
+
DThemeWhitePaginationPage.prototype.getWidth = function () {
|
|
48434
|
+
return 30;
|
|
48435
|
+
};
|
|
48436
|
+
DThemeWhitePaginationPage.prototype.getHeight = function () {
|
|
48437
|
+
return 30;
|
|
48438
|
+
};
|
|
48439
|
+
DThemeWhitePaginationPage.prototype.getTextStyleClipping = function () {
|
|
48440
|
+
return false;
|
|
48441
|
+
};
|
|
48442
|
+
DThemeWhitePaginationPage.prototype.getTextAlignHorizontal = function () {
|
|
48443
|
+
return DAlignHorizontal.CENTER;
|
|
48444
|
+
};
|
|
48445
|
+
return DThemeWhitePaginationPage;
|
|
48446
|
+
}(DThemeWhiteImageBase));
|
|
48447
|
+
|
|
48277
48448
|
/*
|
|
48278
48449
|
* Copyright (C) 2019 Toshiba Corporation
|
|
48279
48450
|
* SPDX-License-Identifier: Apache-2.0
|
|
48280
48451
|
*/
|
|
48281
48452
|
var loadThemeWhitePagination = function () {
|
|
48282
48453
|
DThemeWhite.set("DPagination", DThemeWhitePagination);
|
|
48283
|
-
DThemeWhite.set("
|
|
48284
|
-
DThemeWhite.set("
|
|
48285
|
-
DThemeWhite.set("
|
|
48454
|
+
DThemeWhite.set("DPaginationPage", DThemeWhitePaginationPage);
|
|
48455
|
+
DThemeWhite.set("DPaginationDots", DThemeWhitePaginationDots);
|
|
48456
|
+
DThemeWhite.set("DPaginationButtonLast", DThemeWhitePaginationButtonLast);
|
|
48457
|
+
DThemeWhite.set("DPaginationButtonNext", DThemeWhitePaginationButtonNext);
|
|
48458
|
+
DThemeWhite.set("DPaginationButtonPage", DThemeWhitePaginationButtonPage);
|
|
48459
|
+
DThemeWhite.set("DPaginationButtonPrevious", DThemeWhitePaginationButtonPrevious);
|
|
48460
|
+
DThemeWhite.set("DPaginationButtonTop", DThemeWhitePaginationButtonTop);
|
|
48286
48461
|
};
|
|
48287
48462
|
|
|
48288
48463
|
/*
|
|
@@ -53168,7 +53343,7 @@ var DThemeDarkChart = /** @class */ (function (_super) {
|
|
|
53168
53343
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
53169
53344
|
}
|
|
53170
53345
|
DThemeDarkChart.prototype.getPaddingLeft = function () {
|
|
53171
|
-
return
|
|
53346
|
+
return 80;
|
|
53172
53347
|
};
|
|
53173
53348
|
DThemeDarkChart.prototype.getPaddingRight = function () {
|
|
53174
53349
|
return 10;
|
|
@@ -53233,7 +53408,7 @@ var DThemeDarkChartAxisBase = /** @class */ (function () {
|
|
|
53233
53408
|
}
|
|
53234
53409
|
};
|
|
53235
53410
|
DThemeDarkChartAxisBase.prototype.getLabelPaddingHorizontal = function () {
|
|
53236
|
-
return
|
|
53411
|
+
return 60;
|
|
53237
53412
|
};
|
|
53238
53413
|
DThemeDarkChartAxisBase.prototype.getLabelPaddingVertical = function () {
|
|
53239
53414
|
return 50;
|
|
@@ -53274,6 +53449,9 @@ var DThemeDarkChartAxisBase = /** @class */ (function () {
|
|
|
53274
53449
|
DThemeDarkChartAxisBase.prototype.getMajorTickCount = function () {
|
|
53275
53450
|
return 3;
|
|
53276
53451
|
};
|
|
53452
|
+
DThemeDarkChartAxisBase.prototype.getMajorTickStep = function () {
|
|
53453
|
+
return undefined;
|
|
53454
|
+
};
|
|
53277
53455
|
DThemeDarkChartAxisBase.prototype.getMajorTickSize = function () {
|
|
53278
53456
|
return 10;
|
|
53279
53457
|
};
|
|
@@ -53373,6 +53551,9 @@ var DThemeDarkChartAxisBase = /** @class */ (function () {
|
|
|
53373
53551
|
DThemeDarkChartAxisBase.prototype.getMinorTickCount = function () {
|
|
53374
53552
|
return 3;
|
|
53375
53553
|
};
|
|
53554
|
+
DThemeDarkChartAxisBase.prototype.getMinorTickStep = function () {
|
|
53555
|
+
return undefined;
|
|
53556
|
+
};
|
|
53376
53557
|
DThemeDarkChartAxisBase.prototype.getMinorTickSize = function () {
|
|
53377
53558
|
return 5;
|
|
53378
53559
|
};
|
|
@@ -53455,13 +53636,23 @@ var DThemeDarkChartAxisY = /** @class */ (function (_super) {
|
|
|
53455
53636
|
* Copyright (C) 2019 Toshiba Corporation
|
|
53456
53637
|
* SPDX-License-Identifier: Apache-2.0
|
|
53457
53638
|
*/
|
|
53458
|
-
var
|
|
53459
|
-
function
|
|
53639
|
+
var DThemeDarkChartCoordinate = /** @class */ (function () {
|
|
53640
|
+
function DThemeDarkChartCoordinate() {
|
|
53460
53641
|
}
|
|
53461
|
-
|
|
53642
|
+
DThemeDarkChartCoordinate.prototype.isZero = function (value) {
|
|
53462
53643
|
return Math.abs(value) < 0.00001;
|
|
53463
53644
|
};
|
|
53464
|
-
|
|
53645
|
+
return DThemeDarkChartCoordinate;
|
|
53646
|
+
}());
|
|
53647
|
+
|
|
53648
|
+
/*
|
|
53649
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
53650
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53651
|
+
*/
|
|
53652
|
+
var DThemeDarkChartCoordinateTick = /** @class */ (function () {
|
|
53653
|
+
function DThemeDarkChartCoordinateTick() {
|
|
53654
|
+
}
|
|
53655
|
+
DThemeDarkChartCoordinateTick.prototype.toStepScale = function (scale) {
|
|
53465
53656
|
if (5.5 <= scale) {
|
|
53466
53657
|
return 10;
|
|
53467
53658
|
}
|
|
@@ -53473,32 +53664,20 @@ var DThemeDarkChartCoordinateLinear = /** @class */ (function () {
|
|
|
53473
53664
|
}
|
|
53474
53665
|
return 1;
|
|
53475
53666
|
};
|
|
53476
|
-
return
|
|
53667
|
+
return DThemeDarkChartCoordinateTick;
|
|
53477
53668
|
}());
|
|
53478
53669
|
|
|
53479
53670
|
/*
|
|
53480
53671
|
* Copyright (C) 2019 Toshiba Corporation
|
|
53481
53672
|
* SPDX-License-Identifier: Apache-2.0
|
|
53482
53673
|
*/
|
|
53483
|
-
var
|
|
53484
|
-
function
|
|
53674
|
+
var DThemeDarkChartCoordinateTransform = /** @class */ (function () {
|
|
53675
|
+
function DThemeDarkChartCoordinateTransform() {
|
|
53485
53676
|
}
|
|
53486
|
-
|
|
53677
|
+
DThemeDarkChartCoordinateTransform.prototype.isZero = function (value) {
|
|
53487
53678
|
return Math.abs(value) < 0.00001;
|
|
53488
53679
|
};
|
|
53489
|
-
|
|
53490
|
-
if (5.5 <= scale) {
|
|
53491
|
-
return 10;
|
|
53492
|
-
}
|
|
53493
|
-
else if (2.2 <= scale) {
|
|
53494
|
-
return 5;
|
|
53495
|
-
}
|
|
53496
|
-
else if (1.1 <= scale) {
|
|
53497
|
-
return 2;
|
|
53498
|
-
}
|
|
53499
|
-
return 1;
|
|
53500
|
-
};
|
|
53501
|
-
return DThemeDarkChartCoordinateLog;
|
|
53680
|
+
return DThemeDarkChartCoordinateTransform;
|
|
53502
53681
|
}());
|
|
53503
53682
|
|
|
53504
53683
|
/*
|
|
@@ -53573,6 +53752,9 @@ var DThemeDarkChartPlotArea = /** @class */ (function (_super) {
|
|
|
53573
53752
|
DThemeDarkChartPlotArea.prototype.getBorderColor = function (state) {
|
|
53574
53753
|
return null;
|
|
53575
53754
|
};
|
|
53755
|
+
DThemeDarkChartPlotArea.prototype.getCornerMask = function () {
|
|
53756
|
+
return DCornerMask.ALL;
|
|
53757
|
+
};
|
|
53576
53758
|
DThemeDarkChartPlotArea.prototype.isOverflowMaskEnabled = function () {
|
|
53577
53759
|
return true;
|
|
53578
53760
|
};
|
|
@@ -53660,8 +53842,9 @@ var loadThemeDarkChart = function () {
|
|
|
53660
53842
|
DThemeDark.set("DChartAxisX", DThemeDarkChartAxisX);
|
|
53661
53843
|
DThemeDark.set("DChartAxisXDatetime", DThemeDarkChartAxisXDatetime);
|
|
53662
53844
|
DThemeDark.set("DChartAxisY", DThemeDarkChartAxisY);
|
|
53663
|
-
DThemeDark.set("
|
|
53664
|
-
DThemeDark.set("
|
|
53845
|
+
DThemeDark.set("DChartCoordinate", DThemeDarkChartCoordinate);
|
|
53846
|
+
DThemeDark.set("DChartCoordinateTick", DThemeDarkChartCoordinateTick);
|
|
53847
|
+
DThemeDark.set("DChartCoordinateTransform", DThemeDarkChartCoordinateTransform);
|
|
53665
53848
|
DThemeDark.set("DChartLegend", DThemeDarkChartLegend);
|
|
53666
53849
|
DThemeDark.set("DChartLegendItem", DThemeDarkChartLegendItem);
|
|
53667
53850
|
DThemeDark.set("DChartOverview", DThemeDarkChartOverview);
|
|
@@ -56682,8 +56865,11 @@ var DThemeDarkPagination = /** @class */ (function (_super) {
|
|
|
56682
56865
|
DThemeDarkPagination.prototype.getWidth = function () {
|
|
56683
56866
|
return "auto";
|
|
56684
56867
|
};
|
|
56685
|
-
DThemeDarkPagination.prototype.
|
|
56686
|
-
return
|
|
56868
|
+
DThemeDarkPagination.prototype.getMargin = function () {
|
|
56869
|
+
return 10;
|
|
56870
|
+
};
|
|
56871
|
+
DThemeDarkPagination.prototype.getButtonSpace = function () {
|
|
56872
|
+
return 10;
|
|
56687
56873
|
};
|
|
56688
56874
|
return DThemeDarkPagination;
|
|
56689
56875
|
}(DThemeDarkLayoutHorizontal));
|
|
@@ -56692,75 +56878,192 @@ var DThemeDarkPagination = /** @class */ (function (_super) {
|
|
|
56692
56878
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56693
56879
|
* SPDX-License-Identifier: Apache-2.0
|
|
56694
56880
|
*/
|
|
56695
|
-
|
|
56696
|
-
|
|
56697
|
-
|
|
56881
|
+
/* eslint-disable prettier/prettier */
|
|
56882
|
+
DThemeDarkAtlas.add("pagination_dots", 21, 21, "<g>" +
|
|
56883
|
+
"<circle cx=\"2\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
|
|
56884
|
+
"<circle cx=\"10.5\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
|
|
56885
|
+
"<circle cx=\"19\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
|
|
56886
|
+
"</g>");
|
|
56887
|
+
/* eslint-enable prettier/prettier */
|
|
56888
|
+
var DThemeDarkPaginationDots = /** @class */ (function (_super) {
|
|
56889
|
+
__extends(DThemeDarkPaginationDots, _super);
|
|
56890
|
+
function DThemeDarkPaginationDots() {
|
|
56698
56891
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
56699
56892
|
}
|
|
56700
|
-
|
|
56701
|
-
return
|
|
56893
|
+
DThemeDarkPaginationDots.prototype.getWidth = function () {
|
|
56894
|
+
return 30;
|
|
56702
56895
|
};
|
|
56703
|
-
|
|
56704
|
-
return
|
|
56896
|
+
DThemeDarkPaginationDots.prototype.getHeight = function () {
|
|
56897
|
+
return 30;
|
|
56705
56898
|
};
|
|
56706
|
-
|
|
56707
|
-
|
|
56899
|
+
DThemeDarkPaginationDots.prototype.newState = function (state) {
|
|
56900
|
+
_super.prototype.newState.call(this, state);
|
|
56901
|
+
state.isFocusable = false;
|
|
56902
|
+
};
|
|
56903
|
+
DThemeDarkPaginationDots.prototype.getImageSource = function (state) {
|
|
56904
|
+
return DThemeDarkAtlas.mappings.pagination_dots;
|
|
56905
|
+
};
|
|
56906
|
+
return DThemeDarkPaginationDots;
|
|
56907
|
+
}(DThemeDarkImageBase));
|
|
56908
|
+
|
|
56909
|
+
/*
|
|
56910
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
56911
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56912
|
+
*/
|
|
56913
|
+
/* eslint-disable prettier/prettier */
|
|
56914
|
+
DThemeDarkAtlas.add("pagination_button_last", 21, 21, "<g>" +
|
|
56915
|
+
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
|
|
56916
|
+
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
|
|
56917
|
+
"</g>");
|
|
56918
|
+
/* eslint-enable prettier/prettier */
|
|
56919
|
+
var DThemeDarkPaginationButtonLast = /** @class */ (function (_super) {
|
|
56920
|
+
__extends(DThemeDarkPaginationButtonLast, _super);
|
|
56921
|
+
function DThemeDarkPaginationButtonLast() {
|
|
56922
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56923
|
+
}
|
|
56924
|
+
DThemeDarkPaginationButtonLast.prototype.getWidth = function () {
|
|
56925
|
+
return 30;
|
|
56708
56926
|
};
|
|
56709
|
-
|
|
56927
|
+
DThemeDarkPaginationButtonLast.prototype.getImageSource = function (state) {
|
|
56928
|
+
return DThemeDarkAtlas.mappings.pagination_button_last;
|
|
56929
|
+
};
|
|
56930
|
+
return DThemeDarkPaginationButtonLast;
|
|
56710
56931
|
}(DThemeDarkButtonAmbient));
|
|
56711
56932
|
|
|
56712
56933
|
/*
|
|
56713
56934
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56714
56935
|
* SPDX-License-Identifier: Apache-2.0
|
|
56715
56936
|
*/
|
|
56716
|
-
|
|
56717
|
-
|
|
56718
|
-
|
|
56937
|
+
/* eslint-disable prettier/prettier */
|
|
56938
|
+
DThemeDarkAtlas.add("pagination_button_next", 21, 21, "<g>" +
|
|
56939
|
+
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"7 15 13 10 7 5\"></polyline>" +
|
|
56940
|
+
"</g>");
|
|
56941
|
+
/* eslint-enable prettier/prettier */
|
|
56942
|
+
var DThemeDarkPaginationButtonNext = /** @class */ (function (_super) {
|
|
56943
|
+
__extends(DThemeDarkPaginationButtonNext, _super);
|
|
56944
|
+
function DThemeDarkPaginationButtonNext() {
|
|
56719
56945
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
56720
56946
|
}
|
|
56721
|
-
|
|
56722
|
-
return
|
|
56947
|
+
DThemeDarkPaginationButtonNext.prototype.getWidth = function () {
|
|
56948
|
+
return 30;
|
|
56723
56949
|
};
|
|
56724
|
-
|
|
56725
|
-
|
|
56950
|
+
DThemeDarkPaginationButtonNext.prototype.getImageSource = function (state) {
|
|
56951
|
+
return DThemeDarkAtlas.mappings.pagination_button_next;
|
|
56952
|
+
};
|
|
56953
|
+
return DThemeDarkPaginationButtonNext;
|
|
56954
|
+
}(DThemeDarkButtonAmbient));
|
|
56955
|
+
|
|
56956
|
+
/*
|
|
56957
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
56958
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56959
|
+
*/
|
|
56960
|
+
var DThemeDarkPaginationButtonPage = /** @class */ (function (_super) {
|
|
56961
|
+
__extends(DThemeDarkPaginationButtonPage, _super);
|
|
56962
|
+
function DThemeDarkPaginationButtonPage() {
|
|
56963
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56964
|
+
}
|
|
56965
|
+
DThemeDarkPaginationButtonPage.prototype.getWidth = function () {
|
|
56966
|
+
return 30;
|
|
56967
|
+
};
|
|
56968
|
+
DThemeDarkPaginationButtonPage.prototype.newTextValue = function () {
|
|
56969
|
+
return 0;
|
|
56970
|
+
};
|
|
56971
|
+
DThemeDarkPaginationButtonPage.prototype.getTextStyleClipping = function () {
|
|
56972
|
+
return false;
|
|
56973
|
+
};
|
|
56974
|
+
return DThemeDarkPaginationButtonPage;
|
|
56975
|
+
}(DThemeDarkButtonAmbient));
|
|
56726
56976
|
|
|
56727
56977
|
/*
|
|
56728
56978
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56729
56979
|
* SPDX-License-Identifier: Apache-2.0
|
|
56730
56980
|
*/
|
|
56731
56981
|
/* eslint-disable prettier/prettier */
|
|
56732
|
-
DThemeDarkAtlas.add("
|
|
56982
|
+
DThemeDarkAtlas.add("pagination_button_previous", 21, 21, "<g>" +
|
|
56733
56983
|
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"13 15 7 10 13 5\"></polyline>" +
|
|
56734
56984
|
"</g>");
|
|
56735
|
-
|
|
56736
|
-
|
|
56737
|
-
|
|
56738
|
-
|
|
56985
|
+
/* eslint-enable prettier/prettier */
|
|
56986
|
+
var DThemeDarkPaginationButtonPrevious = /** @class */ (function (_super) {
|
|
56987
|
+
__extends(DThemeDarkPaginationButtonPrevious, _super);
|
|
56988
|
+
function DThemeDarkPaginationButtonPrevious() {
|
|
56989
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56990
|
+
}
|
|
56991
|
+
DThemeDarkPaginationButtonPrevious.prototype.getWidth = function () {
|
|
56992
|
+
return 30;
|
|
56993
|
+
};
|
|
56994
|
+
DThemeDarkPaginationButtonPrevious.prototype.getImageSource = function (state) {
|
|
56995
|
+
return DThemeDarkAtlas.mappings.pagination_button_previous;
|
|
56996
|
+
};
|
|
56997
|
+
return DThemeDarkPaginationButtonPrevious;
|
|
56998
|
+
}(DThemeDarkButtonAmbient));
|
|
56999
|
+
|
|
57000
|
+
/*
|
|
57001
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
57002
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
57003
|
+
*/
|
|
57004
|
+
/* eslint-disable prettier/prettier */
|
|
57005
|
+
DThemeDarkAtlas.add("pagination_button_top", 21, 21, "<g>" +
|
|
56739
57006
|
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"11 15 5 10 11 5\"></polyline>" +
|
|
56740
57007
|
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"15 15 9 10 15 5\"></polyline>" +
|
|
56741
57008
|
"</g>");
|
|
56742
|
-
DThemeDarkAtlas.add("pagination_navigation_button_go_last", 21, 21, "<g>" +
|
|
56743
|
-
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
|
|
56744
|
-
"<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
|
|
56745
|
-
"</g>");
|
|
56746
57009
|
/* eslint-enable prettier/prettier */
|
|
56747
|
-
var
|
|
56748
|
-
__extends(
|
|
56749
|
-
function
|
|
57010
|
+
var DThemeDarkPaginationButtonTop = /** @class */ (function (_super) {
|
|
57011
|
+
__extends(DThemeDarkPaginationButtonTop, _super);
|
|
57012
|
+
function DThemeDarkPaginationButtonTop() {
|
|
56750
57013
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
56751
57014
|
}
|
|
56752
|
-
|
|
57015
|
+
DThemeDarkPaginationButtonTop.prototype.getWidth = function () {
|
|
57016
|
+
return 30;
|
|
57017
|
+
};
|
|
57018
|
+
DThemeDarkPaginationButtonTop.prototype.getImageSource = function (state) {
|
|
57019
|
+
return DThemeDarkAtlas.mappings.pagination_button_top;
|
|
57020
|
+
};
|
|
57021
|
+
return DThemeDarkPaginationButtonTop;
|
|
56753
57022
|
}(DThemeDarkButtonAmbient));
|
|
56754
57023
|
|
|
57024
|
+
/*
|
|
57025
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
57026
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
57027
|
+
*/
|
|
57028
|
+
var DThemeDarkPaginationPage = /** @class */ (function (_super) {
|
|
57029
|
+
__extends(DThemeDarkPaginationPage, _super);
|
|
57030
|
+
function DThemeDarkPaginationPage() {
|
|
57031
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
57032
|
+
}
|
|
57033
|
+
DThemeDarkPaginationPage.prototype.getBackgroundColor = function (state) {
|
|
57034
|
+
return DThemeDarkConstants.HIGHLIGHT_COLOR;
|
|
57035
|
+
};
|
|
57036
|
+
DThemeDarkPaginationPage.prototype.getColor = function (state) {
|
|
57037
|
+
return DThemeDarkConstants.ACTIVE_COLOR;
|
|
57038
|
+
};
|
|
57039
|
+
DThemeDarkPaginationPage.prototype.getWidth = function () {
|
|
57040
|
+
return 30;
|
|
57041
|
+
};
|
|
57042
|
+
DThemeDarkPaginationPage.prototype.getHeight = function () {
|
|
57043
|
+
return 30;
|
|
57044
|
+
};
|
|
57045
|
+
DThemeDarkPaginationPage.prototype.getTextStyleClipping = function () {
|
|
57046
|
+
return false;
|
|
57047
|
+
};
|
|
57048
|
+
DThemeDarkPaginationPage.prototype.getTextAlignHorizontal = function () {
|
|
57049
|
+
return DAlignHorizontal.CENTER;
|
|
57050
|
+
};
|
|
57051
|
+
return DThemeDarkPaginationPage;
|
|
57052
|
+
}(DThemeDarkImageBase));
|
|
57053
|
+
|
|
56755
57054
|
/*
|
|
56756
57055
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56757
57056
|
* SPDX-License-Identifier: Apache-2.0
|
|
56758
57057
|
*/
|
|
56759
57058
|
var loadThemeDarkPagination = function () {
|
|
56760
57059
|
DThemeDark.set("DPagination", DThemeDarkPagination);
|
|
56761
|
-
DThemeDark.set("
|
|
56762
|
-
DThemeDark.set("
|
|
56763
|
-
DThemeDark.set("
|
|
57060
|
+
DThemeDark.set("DPaginationPage", DThemeDarkPaginationPage);
|
|
57061
|
+
DThemeDark.set("DPaginationDots", DThemeDarkPaginationDots);
|
|
57062
|
+
DThemeDark.set("DPaginationButtonLast", DThemeDarkPaginationButtonLast);
|
|
57063
|
+
DThemeDark.set("DPaginationButtonNext", DThemeDarkPaginationButtonNext);
|
|
57064
|
+
DThemeDark.set("DPaginationButtonPage", DThemeDarkPaginationButtonPage);
|
|
57065
|
+
DThemeDark.set("DPaginationButtonPrevious", DThemeDarkPaginationButtonPrevious);
|
|
57066
|
+
DThemeDark.set("DPaginationButtonTop", DThemeDarkPaginationButtonTop);
|
|
56764
57067
|
};
|
|
56765
57068
|
|
|
56766
57069
|
/*
|
|
@@ -66967,7 +67270,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
|
|
|
66967
67270
|
};
|
|
66968
67271
|
};
|
|
66969
67272
|
DChartAxisBaseOptionParser.prototype.toTickMajor = function (theme, options) {
|
|
66970
|
-
var _a, _b, _c, _d, _e, _f;
|
|
67273
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
66971
67274
|
var major = options === null || options === void 0 ? void 0 : options.major;
|
|
66972
67275
|
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();
|
|
66973
67276
|
var optionsStyle = options === null || options === void 0 ? void 0 : options.style;
|
|
@@ -66976,7 +67279,8 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
|
|
|
66976
67279
|
var stroke = this.toTickMajorStroke(theme, major === null || major === void 0 ? void 0 : major.stroke, optionsStroke);
|
|
66977
67280
|
return {
|
|
66978
67281
|
count: (_e = major === null || major === void 0 ? void 0 : major.count) !== null && _e !== void 0 ? _e : theme.getMajorTickCount(),
|
|
66979
|
-
|
|
67282
|
+
step: (_f = major === null || major === void 0 ? void 0 : major.step) !== null && _f !== void 0 ? _f : theme.getMajorTickStep(),
|
|
67283
|
+
size: (_g = major === null || major === void 0 ? void 0 : major.size) !== null && _g !== void 0 ? _g : theme.getMajorTickSize(),
|
|
66980
67284
|
position: this.toTickPosition(position),
|
|
66981
67285
|
style: style,
|
|
66982
67286
|
stroke: stroke,
|
|
@@ -67028,13 +67332,14 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
|
|
|
67028
67332
|
}
|
|
67029
67333
|
};
|
|
67030
67334
|
DChartAxisBaseOptionParser.prototype.toMinorTick = function (theme, options) {
|
|
67031
|
-
var _a, _b, _c, _d, _e, _f;
|
|
67032
|
-
var minor = options === null || options === void 0 ? void 0 : options.
|
|
67335
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
67336
|
+
var minor = options === null || options === void 0 ? void 0 : options.minor;
|
|
67033
67337
|
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();
|
|
67034
67338
|
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());
|
|
67035
67339
|
return {
|
|
67036
67340
|
count: (_e = minor === null || minor === void 0 ? void 0 : minor.count) !== null && _e !== void 0 ? _e : theme.getMinorTickCount(),
|
|
67037
|
-
|
|
67341
|
+
step: (_f = minor === null || minor === void 0 ? void 0 : minor.step) !== null && _f !== void 0 ? _f : theme.getMinorTickStep(),
|
|
67342
|
+
size: (_g = minor === null || minor === void 0 ? void 0 : minor.size) !== null && _g !== void 0 ? _g : theme.getMinorTickSize(),
|
|
67038
67343
|
position: this.toTickPosition(position),
|
|
67039
67344
|
style: style,
|
|
67040
67345
|
stroke: this.toTickMinorStroke(theme, minor === null || minor === void 0 ? void 0 : minor.stroke, options === null || options === void 0 ? void 0 : options.stroke),
|
|
@@ -67320,13 +67625,17 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
67320
67625
|
};
|
|
67321
67626
|
DChartAxisBase.prototype.updateTicksX = function (domainMin, domainMax, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionY, transform, plotAreaHeight) {
|
|
67322
67627
|
var tick = this._tick;
|
|
67323
|
-
var
|
|
67324
|
-
var
|
|
67325
|
-
var
|
|
67628
|
+
var majorTick = tick.major;
|
|
67629
|
+
var majorCount = majorTick.count;
|
|
67630
|
+
var majorStep = majorTick.step;
|
|
67631
|
+
var majorFormatter = majorTick.formatter;
|
|
67632
|
+
var minorTick = tick.minor;
|
|
67633
|
+
var minorCountPerMajor = minorTick.count;
|
|
67326
67634
|
var minorCount = (majorCount + 1) * minorCountPerMajor;
|
|
67635
|
+
var minorStep = minorTick.step;
|
|
67327
67636
|
var majorTicks = this._majorTicks;
|
|
67328
67637
|
var minorTicks = this._minorTicks;
|
|
67329
|
-
coordinate.ticks(domainMin, domainMax, majorCount, minorCountPerMajor, minorCount, majorTicks, minorTicks);
|
|
67638
|
+
coordinate.ticks(domainMin, domainMax, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
67330
67639
|
var a = transform.a;
|
|
67331
67640
|
var tx = transform.tx;
|
|
67332
67641
|
for (var i = 0; i < majorCount; ++i) {
|
|
@@ -67376,13 +67685,17 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
67376
67685
|
};
|
|
67377
67686
|
DChartAxisBase.prototype.updateTicksY = function (domainMin, domainMax, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionX, transform, plotAreaWidth) {
|
|
67378
67687
|
var tick = this._tick;
|
|
67379
|
-
var
|
|
67380
|
-
var
|
|
67381
|
-
var
|
|
67688
|
+
var majorTick = tick.major;
|
|
67689
|
+
var majorCount = majorTick.count;
|
|
67690
|
+
var majorStep = majorTick.step;
|
|
67691
|
+
var majorFormatter = majorTick.formatter;
|
|
67692
|
+
var minorTick = tick.minor;
|
|
67693
|
+
var minorCountPerMajor = minorTick.count;
|
|
67382
67694
|
var minorCount = (majorCount + 1) * minorCountPerMajor;
|
|
67695
|
+
var minorStep = minorTick.step;
|
|
67383
67696
|
var majorTicks = this._majorTicks;
|
|
67384
67697
|
var minorTicks = this._minorTicks;
|
|
67385
|
-
coordinate.ticks(domainMin, domainMax, majorCount, minorCountPerMajor, minorCount, majorTicks, minorTicks);
|
|
67698
|
+
coordinate.ticks(domainMin, domainMax, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
67386
67699
|
var d = transform.d;
|
|
67387
67700
|
var ty = transform.ty;
|
|
67388
67701
|
for (var i = 0; i < majorCount; ++i) {
|
|
@@ -68022,25 +68335,45 @@ var DChartCoordinateContainerImpl = /** @class */ (function () {
|
|
|
68022
68335
|
* SPDX-License-Identifier: Apache-2.0
|
|
68023
68336
|
*/
|
|
68024
68337
|
var DChartCoordinateLinearTick = /** @class */ (function () {
|
|
68025
|
-
function DChartCoordinateLinearTick(
|
|
68026
|
-
this._theme =
|
|
68338
|
+
function DChartCoordinateLinearTick(options) {
|
|
68339
|
+
this._theme = this.toTheme(options);
|
|
68027
68340
|
}
|
|
68028
|
-
DChartCoordinateLinearTick.prototype.
|
|
68029
|
-
if (
|
|
68030
|
-
|
|
68031
|
-
|
|
68032
|
-
|
|
68033
|
-
return
|
|
68341
|
+
DChartCoordinateLinearTick.prototype.toMajorStep = function (domainMin, domainMax, majorCount, majorStep) {
|
|
68342
|
+
if (majorStep == null) {
|
|
68343
|
+
if (0 < majorCount) {
|
|
68344
|
+
return this.calcStepMajor(domainMin, domainMax, majorCount);
|
|
68345
|
+
}
|
|
68346
|
+
return -1;
|
|
68034
68347
|
}
|
|
68035
|
-
|
|
68036
|
-
|
|
68037
|
-
DChartCoordinateLinearTick.prototype.calcStepMinor = function (step, minorCount) {
|
|
68038
|
-
if (0 <= step) {
|
|
68039
|
-
return step / (minorCount + 1);
|
|
68348
|
+
else if (isNumber(majorStep)) {
|
|
68349
|
+
return majorStep;
|
|
68040
68350
|
}
|
|
68041
68351
|
else {
|
|
68352
|
+
return majorStep(domainMin, domainMax, majorCount);
|
|
68353
|
+
}
|
|
68354
|
+
};
|
|
68355
|
+
DChartCoordinateLinearTick.prototype.calcStepMajor = function (domainMin, domainMax, majorCount) {
|
|
68356
|
+
var span = Math.abs(domainMax - domainMin) / majorCount;
|
|
68357
|
+
var power = Math.floor(Math.log(span) / Math.LN10);
|
|
68358
|
+
var base = Math.pow(10, power);
|
|
68359
|
+
return this._theme.toStepScale(span / base) * base;
|
|
68360
|
+
};
|
|
68361
|
+
DChartCoordinateLinearTick.prototype.toMinorStep = function (majorStep, minorCount, minorStep) {
|
|
68362
|
+
if (minorStep == null) {
|
|
68363
|
+
if (0 <= majorStep) {
|
|
68364
|
+
return this.calcStepMinor(majorStep, minorCount);
|
|
68365
|
+
}
|
|
68042
68366
|
return -1;
|
|
68043
68367
|
}
|
|
68368
|
+
else if (isNumber(minorStep)) {
|
|
68369
|
+
return minorStep;
|
|
68370
|
+
}
|
|
68371
|
+
else {
|
|
68372
|
+
return minorStep(majorStep, minorCount);
|
|
68373
|
+
}
|
|
68374
|
+
};
|
|
68375
|
+
DChartCoordinateLinearTick.prototype.calcStepMinor = function (majorStep, minorCount) {
|
|
68376
|
+
return majorStep / (minorCount + 1);
|
|
68044
68377
|
};
|
|
68045
68378
|
DChartCoordinateLinearTick.prototype.calcTickMinorPositions = function (step, count, majorPosition, rangeMin, rangeMax, iresult, result) {
|
|
68046
68379
|
for (var i = 0; i < count; i += 1) {
|
|
@@ -68050,15 +68383,15 @@ var DChartCoordinateLinearTick = /** @class */ (function () {
|
|
|
68050
68383
|
}
|
|
68051
68384
|
}
|
|
68052
68385
|
};
|
|
68053
|
-
DChartCoordinateLinearTick.prototype.calculate = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, coordinate) {
|
|
68386
|
+
DChartCoordinateLinearTick.prototype.calculate = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
68054
68387
|
if (majorCount <= 0) {
|
|
68055
68388
|
return;
|
|
68056
68389
|
}
|
|
68057
68390
|
var transform = coordinate.transform;
|
|
68058
68391
|
var domainMin = Math.min(domainFrom, domainTo);
|
|
68059
68392
|
var domainMax = Math.max(domainFrom, domainTo);
|
|
68060
|
-
var
|
|
68061
|
-
if (
|
|
68393
|
+
var majorStepMapped = this.toMajorStep(domainMin, domainMax, majorCount, majorStep);
|
|
68394
|
+
if (majorStepMapped <= 0) {
|
|
68062
68395
|
majorResult[0] = domainMin;
|
|
68063
68396
|
majorResult[1] = transform.map(coordinate.map(domainMin));
|
|
68064
68397
|
majorResult[2] = 0;
|
|
@@ -68077,33 +68410,37 @@ var DChartCoordinateLinearTick = /** @class */ (function () {
|
|
|
68077
68410
|
return;
|
|
68078
68411
|
}
|
|
68079
68412
|
// Major tick start position
|
|
68080
|
-
var idomainStart = Math.floor(domainMin /
|
|
68081
|
-
var idomainEnd = Math.ceil(domainMax /
|
|
68413
|
+
var idomainStart = Math.floor(domainMin / majorStepMapped) - 1;
|
|
68414
|
+
var idomainEnd = Math.ceil(domainMax / majorStepMapped) + 1;
|
|
68415
|
+
var domainMinMapped = transform.map(coordinate.map(domainMin));
|
|
68416
|
+
var domainMaxMapped = transform.map(coordinate.map(domainMax));
|
|
68417
|
+
var from = Math.min(domainMinMapped, domainMaxMapped) - 0.5;
|
|
68418
|
+
var to = Math.max(domainMinMapped, domainMaxMapped) + 0.5;
|
|
68082
68419
|
// Major / minor tick positions
|
|
68083
|
-
var
|
|
68420
|
+
var minorStepMapped = this.toMinorStep(majorStepMapped, minorCountPerMajor, minorStep);
|
|
68084
68421
|
var imajor = 0;
|
|
68085
68422
|
var iminor = 0;
|
|
68086
68423
|
for (var i = idomainStart; i <= idomainEnd; ++i) {
|
|
68087
|
-
var majorPosition = i *
|
|
68424
|
+
var majorPosition = i * majorStepMapped;
|
|
68088
68425
|
if (imajor < majorCount) {
|
|
68089
|
-
|
|
68090
|
-
|
|
68426
|
+
var majorPositionMapped = transform.map(coordinate.map(majorPosition));
|
|
68427
|
+
if (from <= majorPositionMapped && majorPositionMapped <= to) {
|
|
68091
68428
|
var imajorResult = imajor * 3;
|
|
68092
68429
|
majorResult[imajorResult + 0] = majorPosition;
|
|
68093
|
-
majorResult[imajorResult + 1] =
|
|
68094
|
-
majorResult[imajorResult + 2] =
|
|
68430
|
+
majorResult[imajorResult + 1] = majorPositionMapped;
|
|
68431
|
+
majorResult[imajorResult + 2] = majorStepMapped;
|
|
68095
68432
|
imajor += 1;
|
|
68096
68433
|
}
|
|
68097
68434
|
}
|
|
68098
68435
|
for (var j = 0; j < minorCountPerMajor; j += 1) {
|
|
68099
68436
|
if (iminor < minorCount) {
|
|
68100
|
-
var minorPosition = majorPosition + (j + 1) *
|
|
68101
|
-
|
|
68102
|
-
|
|
68437
|
+
var minorPosition = majorPosition + (j + 1) * minorStepMapped;
|
|
68438
|
+
var minorPositionMapped = transform.map(coordinate.map(minorPosition));
|
|
68439
|
+
if (from <= minorPositionMapped && minorPositionMapped <= to) {
|
|
68103
68440
|
var iminorResult = iminor * 3;
|
|
68104
68441
|
minorResult[iminorResult + 0] = minorPosition;
|
|
68105
|
-
minorResult[iminorResult + 1] =
|
|
68106
|
-
minorResult[iminorResult + 2] =
|
|
68442
|
+
minorResult[iminorResult + 1] = minorPositionMapped;
|
|
68443
|
+
minorResult[iminorResult + 2] = minorStepMapped;
|
|
68107
68444
|
iminor += 1;
|
|
68108
68445
|
}
|
|
68109
68446
|
}
|
|
@@ -68122,14 +68459,29 @@ var DChartCoordinateLinearTick = /** @class */ (function () {
|
|
|
68122
68459
|
minorResult[iminorResult + 2] = NaN;
|
|
68123
68460
|
}
|
|
68124
68461
|
};
|
|
68462
|
+
DChartCoordinateLinearTick.prototype.toTheme = function (options) {
|
|
68463
|
+
return (options && options.theme) || this.getThemeDefault();
|
|
68464
|
+
};
|
|
68465
|
+
DChartCoordinateLinearTick.prototype.getThemeDefault = function () {
|
|
68466
|
+
return DThemes.getInstance().get(this.getType());
|
|
68467
|
+
};
|
|
68468
|
+
DChartCoordinateLinearTick.prototype.getType = function () {
|
|
68469
|
+
return "DChartCoordinateTick";
|
|
68470
|
+
};
|
|
68125
68471
|
return DChartCoordinateLinearTick;
|
|
68126
68472
|
}());
|
|
68127
68473
|
|
|
68474
|
+
/*
|
|
68475
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
68476
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
68477
|
+
*/
|
|
68128
68478
|
var DChartCoordinateTransformImpl = /** @class */ (function () {
|
|
68129
|
-
function DChartCoordinateTransformImpl(
|
|
68130
|
-
this._theme =
|
|
68479
|
+
function DChartCoordinateTransformImpl(options) {
|
|
68480
|
+
this._theme = this.toTheme(options);
|
|
68131
68481
|
this._id = 0;
|
|
68482
|
+
this._isTranslationEnabled = options === null || options === void 0 ? void 0 : options.translation;
|
|
68132
68483
|
this._translate = 0;
|
|
68484
|
+
this._isScalingEnabled = options === null || options === void 0 ? void 0 : options.scaling;
|
|
68133
68485
|
this._scale = 1;
|
|
68134
68486
|
this._itranslate = 0;
|
|
68135
68487
|
this._iscale = 1;
|
|
@@ -68169,11 +68521,13 @@ var DChartCoordinateTransformImpl = /** @class */ (function () {
|
|
|
68169
68521
|
};
|
|
68170
68522
|
DChartCoordinateTransformImpl.prototype.set = function (translate, scale) {
|
|
68171
68523
|
var isChanged = false;
|
|
68172
|
-
if (translate != null &&
|
|
68524
|
+
if (translate != null &&
|
|
68525
|
+
this._isTranslationEnabled !== false &&
|
|
68526
|
+
this._translate !== translate) {
|
|
68173
68527
|
isChanged = true;
|
|
68174
68528
|
this._translate = translate;
|
|
68175
68529
|
}
|
|
68176
|
-
if (scale != null && this._scale !== scale) {
|
|
68530
|
+
if (scale != null && this._isScalingEnabled !== false && this._scale !== scale) {
|
|
68177
68531
|
isChanged = true;
|
|
68178
68532
|
this._scale = scale;
|
|
68179
68533
|
}
|
|
@@ -68209,6 +68563,15 @@ var DChartCoordinateTransformImpl = /** @class */ (function () {
|
|
|
68209
68563
|
values[i] = itranslate + iscale * values[i];
|
|
68210
68564
|
}
|
|
68211
68565
|
};
|
|
68566
|
+
DChartCoordinateTransformImpl.prototype.toTheme = function (options) {
|
|
68567
|
+
return (options && options.theme) || this.getThemeDefault();
|
|
68568
|
+
};
|
|
68569
|
+
DChartCoordinateTransformImpl.prototype.getThemeDefault = function () {
|
|
68570
|
+
return DThemes.getInstance().get(this.getType());
|
|
68571
|
+
};
|
|
68572
|
+
DChartCoordinateTransformImpl.prototype.getType = function () {
|
|
68573
|
+
return "DChartCoordinateTransform";
|
|
68574
|
+
};
|
|
68212
68575
|
return DChartCoordinateTransformImpl;
|
|
68213
68576
|
}());
|
|
68214
68577
|
|
|
@@ -68273,13 +68636,34 @@ var DChartCoordinateLinear = /** @class */ (function () {
|
|
|
68273
68636
|
function DChartCoordinateLinear(options) {
|
|
68274
68637
|
this._id = 0;
|
|
68275
68638
|
this._direction = DChartCoordinateDirection.X;
|
|
68276
|
-
|
|
68277
|
-
this.
|
|
68278
|
-
this.
|
|
68279
|
-
this._tick = new DChartCoordinateLinearTick(theme);
|
|
68639
|
+
this._theme = this.toTheme(options);
|
|
68640
|
+
this._transform = new DChartCoordinateTransformImpl(options === null || options === void 0 ? void 0 : options.transform);
|
|
68641
|
+
this._tick = new DChartCoordinateLinearTick(options === null || options === void 0 ? void 0 : options.tick);
|
|
68280
68642
|
this._work = new DChartRegionImpl(NaN, NaN);
|
|
68281
68643
|
this._mark = new DChartCoordinateTransformMarkImpl();
|
|
68644
|
+
this._from = options === null || options === void 0 ? void 0 : options.from;
|
|
68645
|
+
this._to = options === null || options === void 0 ? void 0 : options.to;
|
|
68282
68646
|
}
|
|
68647
|
+
Object.defineProperty(DChartCoordinateLinear.prototype, "from", {
|
|
68648
|
+
get: function () {
|
|
68649
|
+
return this._from;
|
|
68650
|
+
},
|
|
68651
|
+
set: function (from) {
|
|
68652
|
+
this._from = from;
|
|
68653
|
+
},
|
|
68654
|
+
enumerable: false,
|
|
68655
|
+
configurable: true
|
|
68656
|
+
});
|
|
68657
|
+
Object.defineProperty(DChartCoordinateLinear.prototype, "to", {
|
|
68658
|
+
get: function () {
|
|
68659
|
+
return this._to;
|
|
68660
|
+
},
|
|
68661
|
+
set: function (to) {
|
|
68662
|
+
this._to = to;
|
|
68663
|
+
},
|
|
68664
|
+
enumerable: false,
|
|
68665
|
+
configurable: true
|
|
68666
|
+
});
|
|
68283
68667
|
DChartCoordinateLinear.prototype.bind = function (container, direction) {
|
|
68284
68668
|
this._container = container;
|
|
68285
68669
|
this._direction = direction;
|
|
@@ -68319,6 +68703,12 @@ var DChartCoordinateLinear = /** @class */ (function () {
|
|
|
68319
68703
|
}
|
|
68320
68704
|
};
|
|
68321
68705
|
DChartCoordinateLinear.prototype.toFitDomain = function (from, to, plotArea, result) {
|
|
68706
|
+
if (from == null) {
|
|
68707
|
+
from = this._from;
|
|
68708
|
+
}
|
|
68709
|
+
if (to == null) {
|
|
68710
|
+
to = this._to;
|
|
68711
|
+
}
|
|
68322
68712
|
if (from != null && to != null) {
|
|
68323
68713
|
result.set(from, to);
|
|
68324
68714
|
}
|
|
@@ -68329,6 +68719,12 @@ var DChartCoordinateLinear = /** @class */ (function () {
|
|
|
68329
68719
|
return result;
|
|
68330
68720
|
};
|
|
68331
68721
|
DChartCoordinateLinear.prototype.toFitRange = function (from, to, plotArea, result) {
|
|
68722
|
+
if (from == null) {
|
|
68723
|
+
from = this._from;
|
|
68724
|
+
}
|
|
68725
|
+
if (to == null) {
|
|
68726
|
+
to = this._to;
|
|
68727
|
+
}
|
|
68332
68728
|
if (from != null && to != null) {
|
|
68333
68729
|
result.set(from, to);
|
|
68334
68730
|
}
|
|
@@ -68384,8 +68780,8 @@ var DChartCoordinateLinear = /** @class */ (function () {
|
|
|
68384
68780
|
DChartCoordinateLinear.prototype.unmapAll = function (values, ifrom, iend, stride, offset) {
|
|
68385
68781
|
// DO NOTHING
|
|
68386
68782
|
};
|
|
68387
|
-
DChartCoordinateLinear.prototype.ticks = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult) {
|
|
68388
|
-
this._tick.calculate(domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, this);
|
|
68783
|
+
DChartCoordinateLinear.prototype.ticks = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
68784
|
+
this._tick.calculate(domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, this);
|
|
68389
68785
|
};
|
|
68390
68786
|
DChartCoordinateLinear.prototype.toTheme = function (options) {
|
|
68391
68787
|
return (options && options.theme) || this.getThemeDefault();
|
|
@@ -68394,7 +68790,7 @@ var DChartCoordinateLinear = /** @class */ (function () {
|
|
|
68394
68790
|
return DThemes.getInstance().get(this.getType());
|
|
68395
68791
|
};
|
|
68396
68792
|
DChartCoordinateLinear.prototype.getType = function () {
|
|
68397
|
-
return "
|
|
68793
|
+
return "DChartCoordinate";
|
|
68398
68794
|
};
|
|
68399
68795
|
return DChartCoordinateLinear;
|
|
68400
68796
|
}());
|
|
@@ -68404,25 +68800,45 @@ var DChartCoordinateLinear = /** @class */ (function () {
|
|
|
68404
68800
|
* SPDX-License-Identifier: Apache-2.0
|
|
68405
68801
|
*/
|
|
68406
68802
|
var DChartCoordinateLogTick = /** @class */ (function () {
|
|
68407
|
-
function DChartCoordinateLogTick(
|
|
68408
|
-
this._theme =
|
|
68803
|
+
function DChartCoordinateLogTick(options) {
|
|
68804
|
+
this._theme = this.toTheme(options);
|
|
68409
68805
|
}
|
|
68410
|
-
DChartCoordinateLogTick.prototype.
|
|
68411
|
-
if (
|
|
68412
|
-
|
|
68413
|
-
|
|
68414
|
-
|
|
68415
|
-
return
|
|
68806
|
+
DChartCoordinateLogTick.prototype.toMajorStep = function (domainMin, domainMax, majorCount, majorStep) {
|
|
68807
|
+
if (majorStep == null) {
|
|
68808
|
+
if (0 < majorCount) {
|
|
68809
|
+
return this.calcStepMajor(domainMin, domainMax, majorCount);
|
|
68810
|
+
}
|
|
68811
|
+
return -1;
|
|
68416
68812
|
}
|
|
68417
|
-
|
|
68418
|
-
|
|
68419
|
-
DChartCoordinateLogTick.prototype.calcStepMinor = function (step, minorCount) {
|
|
68420
|
-
if (0 <= step) {
|
|
68421
|
-
return step / (minorCount + 1);
|
|
68813
|
+
else if (isNumber(majorStep)) {
|
|
68814
|
+
return majorStep;
|
|
68422
68815
|
}
|
|
68423
68816
|
else {
|
|
68817
|
+
return majorStep(domainMin, domainMax, majorCount);
|
|
68818
|
+
}
|
|
68819
|
+
};
|
|
68820
|
+
DChartCoordinateLogTick.prototype.calcStepMajor = function (domainMin, domainMax, majorCount) {
|
|
68821
|
+
var span = Math.abs(domainMax - domainMin) / majorCount;
|
|
68822
|
+
var power = Math.floor(Math.log(span) / Math.LN10);
|
|
68823
|
+
var base = Math.pow(10, power);
|
|
68824
|
+
return this._theme.toStepScale(span / base) * base;
|
|
68825
|
+
};
|
|
68826
|
+
DChartCoordinateLogTick.prototype.toMinorStep = function (majorStep, minorCount, minorStep) {
|
|
68827
|
+
if (minorStep == null) {
|
|
68828
|
+
if (0 <= majorStep) {
|
|
68829
|
+
return this.calcStepMinor(majorStep, minorCount);
|
|
68830
|
+
}
|
|
68424
68831
|
return -1;
|
|
68425
68832
|
}
|
|
68833
|
+
else if (isNumber(minorStep)) {
|
|
68834
|
+
return minorStep;
|
|
68835
|
+
}
|
|
68836
|
+
else {
|
|
68837
|
+
return minorStep(majorStep, minorCount);
|
|
68838
|
+
}
|
|
68839
|
+
};
|
|
68840
|
+
DChartCoordinateLogTick.prototype.calcStepMinor = function (majorStep, minorCount) {
|
|
68841
|
+
return majorStep / (minorCount + 1);
|
|
68426
68842
|
};
|
|
68427
68843
|
DChartCoordinateLogTick.prototype.calcTickMinorPositions = function (step, count, majorPosition, rangeMin, rangeMax, iresult, result) {
|
|
68428
68844
|
for (var i = 0; i < count; i += 1) {
|
|
@@ -68432,7 +68848,7 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
68432
68848
|
}
|
|
68433
68849
|
}
|
|
68434
68850
|
};
|
|
68435
|
-
DChartCoordinateLogTick.prototype.calculate = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, coordinate) {
|
|
68851
|
+
DChartCoordinateLogTick.prototype.calculate = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, coordinate) {
|
|
68436
68852
|
if (majorCount <= 0) {
|
|
68437
68853
|
return;
|
|
68438
68854
|
}
|
|
@@ -68441,7 +68857,7 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
68441
68857
|
var domainToMapped = coordinate.map(domainTo);
|
|
68442
68858
|
var domainMinMapped = Math.min(domainFromMapped, domainToMapped);
|
|
68443
68859
|
var domainMaxMapped = Math.max(domainFromMapped, domainToMapped);
|
|
68444
|
-
var majorStepMapped = this.
|
|
68860
|
+
var majorStepMapped = this.toMajorStep(domainMinMapped, domainMaxMapped, majorCount, majorStep);
|
|
68445
68861
|
if (majorStepMapped <= 0) {
|
|
68446
68862
|
var domainMin = Math.min(domainFrom, domainTo);
|
|
68447
68863
|
majorResult[0] = domainMin;
|
|
@@ -68465,7 +68881,7 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
68465
68881
|
var idomainStartMapped = Math.floor(domainMinMapped / majorStepMapped) - 1;
|
|
68466
68882
|
var idomainEndMapped = Math.ceil(domainMaxMapped / majorStepMapped) + 1;
|
|
68467
68883
|
// Major / minor tick positions
|
|
68468
|
-
var minorStepMapped = this.
|
|
68884
|
+
var minorStepMapped = this.toMinorStep(majorStepMapped, minorCountPerMajor, minorStep);
|
|
68469
68885
|
var imajor = 0;
|
|
68470
68886
|
var iminor = 0;
|
|
68471
68887
|
for (var i = idomainStartMapped; i <= idomainEndMapped; ++i) {
|
|
@@ -68473,13 +68889,10 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
68473
68889
|
if (imajor < majorCount) {
|
|
68474
68890
|
if (domainMinMapped <= majorPositionMapped &&
|
|
68475
68891
|
majorPositionMapped <= domainMaxMapped) {
|
|
68476
|
-
var majorPosition = coordinate.unmap(majorPositionMapped);
|
|
68477
|
-
var majorProjectedPosition = transform.map(majorPositionMapped);
|
|
68478
|
-
var majorStep = coordinate.unmap(majorPositionMapped - 1);
|
|
68479
68892
|
var imajorResult = imajor * 3;
|
|
68480
|
-
majorResult[imajorResult + 0] =
|
|
68481
|
-
majorResult[imajorResult + 1] =
|
|
68482
|
-
majorResult[imajorResult + 2] =
|
|
68893
|
+
majorResult[imajorResult + 0] = coordinate.unmap(majorPositionMapped);
|
|
68894
|
+
majorResult[imajorResult + 1] = transform.map(majorPositionMapped);
|
|
68895
|
+
majorResult[imajorResult + 2] = coordinate.unmap(majorPositionMapped - 1);
|
|
68483
68896
|
imajor += 1;
|
|
68484
68897
|
}
|
|
68485
68898
|
}
|
|
@@ -68488,13 +68901,10 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
68488
68901
|
var minorPositionMapped = majorPositionMapped + (j + 1) * minorStepMapped;
|
|
68489
68902
|
if (domainMinMapped <= minorPositionMapped &&
|
|
68490
68903
|
minorPositionMapped <= domainMaxMapped) {
|
|
68491
|
-
var minorPosition = coordinate.unmap(minorPositionMapped);
|
|
68492
|
-
var minorProjectedPosition = transform.map(minorPositionMapped);
|
|
68493
|
-
var minorStep = coordinate.unmap(minorPositionMapped - 1);
|
|
68494
68904
|
var iminorResult = iminor * 3;
|
|
68495
|
-
minorResult[iminorResult + 0] =
|
|
68496
|
-
minorResult[iminorResult + 1] =
|
|
68497
|
-
minorResult[iminorResult + 2] =
|
|
68905
|
+
minorResult[iminorResult + 0] = coordinate.unmap(minorPositionMapped);
|
|
68906
|
+
minorResult[iminorResult + 1] = transform.map(minorPositionMapped);
|
|
68907
|
+
minorResult[iminorResult + 2] = coordinate.unmap(minorPositionMapped - 1);
|
|
68498
68908
|
iminor += 1;
|
|
68499
68909
|
}
|
|
68500
68910
|
}
|
|
@@ -68513,6 +68923,15 @@ var DChartCoordinateLogTick = /** @class */ (function () {
|
|
|
68513
68923
|
minorResult[iminorResult + 2] = NaN;
|
|
68514
68924
|
}
|
|
68515
68925
|
};
|
|
68926
|
+
DChartCoordinateLogTick.prototype.toTheme = function (options) {
|
|
68927
|
+
return (options && options.theme) || this.getThemeDefault();
|
|
68928
|
+
};
|
|
68929
|
+
DChartCoordinateLogTick.prototype.getThemeDefault = function () {
|
|
68930
|
+
return DThemes.getInstance().get(this.getType());
|
|
68931
|
+
};
|
|
68932
|
+
DChartCoordinateLogTick.prototype.getType = function () {
|
|
68933
|
+
return "DChartCoordinateTick";
|
|
68934
|
+
};
|
|
68516
68935
|
return DChartCoordinateLogTick;
|
|
68517
68936
|
}());
|
|
68518
68937
|
|
|
@@ -68524,13 +68943,34 @@ var DChartCoordinateLog = /** @class */ (function () {
|
|
|
68524
68943
|
function DChartCoordinateLog(options) {
|
|
68525
68944
|
this._id = 0;
|
|
68526
68945
|
this._direction = DChartCoordinateDirection.X;
|
|
68527
|
-
|
|
68528
|
-
this.
|
|
68529
|
-
this.
|
|
68530
|
-
this._tick = new DChartCoordinateLogTick(theme);
|
|
68946
|
+
this._theme = this.toTheme(options);
|
|
68947
|
+
this._transform = new DChartCoordinateTransformImpl(options === null || options === void 0 ? void 0 : options.transform);
|
|
68948
|
+
this._tick = new DChartCoordinateLogTick(options === null || options === void 0 ? void 0 : options.tick);
|
|
68531
68949
|
this._work = new DChartRegionImpl(NaN, NaN);
|
|
68532
68950
|
this._mark = new DChartCoordinateTransformMarkImpl();
|
|
68951
|
+
this._from = options === null || options === void 0 ? void 0 : options.from;
|
|
68952
|
+
this._to = options === null || options === void 0 ? void 0 : options.to;
|
|
68533
68953
|
}
|
|
68954
|
+
Object.defineProperty(DChartCoordinateLog.prototype, "from", {
|
|
68955
|
+
get: function () {
|
|
68956
|
+
return this._from;
|
|
68957
|
+
},
|
|
68958
|
+
set: function (from) {
|
|
68959
|
+
this._from = from;
|
|
68960
|
+
},
|
|
68961
|
+
enumerable: false,
|
|
68962
|
+
configurable: true
|
|
68963
|
+
});
|
|
68964
|
+
Object.defineProperty(DChartCoordinateLog.prototype, "to", {
|
|
68965
|
+
get: function () {
|
|
68966
|
+
return this._to;
|
|
68967
|
+
},
|
|
68968
|
+
set: function (to) {
|
|
68969
|
+
this._to = to;
|
|
68970
|
+
},
|
|
68971
|
+
enumerable: false,
|
|
68972
|
+
configurable: true
|
|
68973
|
+
});
|
|
68534
68974
|
DChartCoordinateLog.prototype.bind = function (container, direction) {
|
|
68535
68975
|
this._container = container;
|
|
68536
68976
|
this._direction = direction;
|
|
@@ -68568,6 +69008,12 @@ var DChartCoordinateLog = /** @class */ (function () {
|
|
|
68568
69008
|
}
|
|
68569
69009
|
};
|
|
68570
69010
|
DChartCoordinateLog.prototype.toFitDomain = function (from, to, plotArea, result) {
|
|
69011
|
+
if (from == null) {
|
|
69012
|
+
from = this._from;
|
|
69013
|
+
}
|
|
69014
|
+
if (to == null) {
|
|
69015
|
+
to = this._to;
|
|
69016
|
+
}
|
|
68571
69017
|
if (from != null && to != null) {
|
|
68572
69018
|
result.set(from, to);
|
|
68573
69019
|
}
|
|
@@ -68578,6 +69024,12 @@ var DChartCoordinateLog = /** @class */ (function () {
|
|
|
68578
69024
|
return result;
|
|
68579
69025
|
};
|
|
68580
69026
|
DChartCoordinateLog.prototype.toFitRange = function (from, to, plotArea, result) {
|
|
69027
|
+
if (from == null) {
|
|
69028
|
+
from = this._from;
|
|
69029
|
+
}
|
|
69030
|
+
if (to == null) {
|
|
69031
|
+
to = this._to;
|
|
69032
|
+
}
|
|
68581
69033
|
if (from != null && to != null) {
|
|
68582
69034
|
result.set(from, to);
|
|
68583
69035
|
}
|
|
@@ -68641,8 +69093,8 @@ var DChartCoordinateLog = /** @class */ (function () {
|
|
|
68641
69093
|
values[i] = Math.pow(10, values[i]);
|
|
68642
69094
|
}
|
|
68643
69095
|
};
|
|
68644
|
-
DChartCoordinateLog.prototype.ticks = function (domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult) {
|
|
68645
|
-
this._tick.calculate(domainFrom, domainTo, majorCount, minorCountPerMajor, minorCount, majorResult, minorResult, this);
|
|
69096
|
+
DChartCoordinateLog.prototype.ticks = function (domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
69097
|
+
this._tick.calculate(domainFrom, domainTo, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult, this);
|
|
68646
69098
|
};
|
|
68647
69099
|
DChartCoordinateLog.prototype.toTheme = function (options) {
|
|
68648
69100
|
return (options && options.theme) || this.getThemeDefault();
|
|
@@ -68651,7 +69103,7 @@ var DChartCoordinateLog = /** @class */ (function () {
|
|
|
68651
69103
|
return DThemes.getInstance().get(this.getType());
|
|
68652
69104
|
};
|
|
68653
69105
|
DChartCoordinateLog.prototype.getType = function () {
|
|
68654
|
-
return "
|
|
69106
|
+
return "DChartCoordinate";
|
|
68655
69107
|
};
|
|
68656
69108
|
return DChartCoordinateLog;
|
|
68657
69109
|
}());
|
|
@@ -71105,48 +71557,56 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
71105
71557
|
var p1y = NaN;
|
|
71106
71558
|
var threshold = 0.00001;
|
|
71107
71559
|
if (babs <= aabs) {
|
|
71108
|
-
var
|
|
71109
|
-
var
|
|
71110
|
-
p0x = Math.min(
|
|
71111
|
-
p1x = Math.max(
|
|
71112
|
-
|
|
71113
|
-
|
|
71114
|
-
|
|
71115
|
-
|
|
71116
|
-
|
|
71560
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(0));
|
|
71561
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(plotAreaSizeX));
|
|
71562
|
+
p0x = Math.min(xfrom, xto);
|
|
71563
|
+
p1x = Math.max(xfrom, xto);
|
|
71564
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(0));
|
|
71565
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(plotAreaSizeY));
|
|
71566
|
+
p0y = Math.min(yfrom, yto);
|
|
71567
|
+
p1y = Math.max(yfrom, yto);
|
|
71568
|
+
if (threshold < babs) {
|
|
71569
|
+
var f = b / a;
|
|
71570
|
+
var xfrom1 = f * (yfrom - y0) + x0;
|
|
71571
|
+
var xto1 = f * (yto - y0) + x0;
|
|
71117
71572
|
var p2x = Math.min(xfrom1, xto1);
|
|
71118
71573
|
var p3x = Math.max(xfrom1, xto1);
|
|
71119
|
-
|
|
71120
|
-
|
|
71121
|
-
|
|
71122
|
-
|
|
71123
|
-
|
|
71124
|
-
|
|
71574
|
+
p0x = Math.max(p0x, p2x);
|
|
71575
|
+
p1x = Math.min(p1x, p3x);
|
|
71576
|
+
var g = 1 / f;
|
|
71577
|
+
p0y = g * (p0x - x0) + b * y0;
|
|
71578
|
+
p1y = g * (p1x - x0) + b * y0;
|
|
71579
|
+
}
|
|
71580
|
+
else {
|
|
71581
|
+
p0x = x0;
|
|
71582
|
+
p1x = x0;
|
|
71125
71583
|
}
|
|
71126
|
-
p0y = a * (p0x - x0) + b * y0;
|
|
71127
|
-
p1y = a * (p1x - x0) + b * y0;
|
|
71128
71584
|
}
|
|
71129
71585
|
else {
|
|
71130
|
-
var
|
|
71131
|
-
var
|
|
71132
|
-
p0y = Math.min(
|
|
71133
|
-
p1y = Math.max(
|
|
71134
|
-
|
|
71135
|
-
|
|
71136
|
-
|
|
71137
|
-
|
|
71138
|
-
|
|
71586
|
+
var yfrom = ycoordinate.unmap(ycoordinate.transform.unmap(0));
|
|
71587
|
+
var yto = ycoordinate.unmap(ycoordinate.transform.unmap(plotAreaSizeY));
|
|
71588
|
+
p0y = Math.min(yfrom, yto);
|
|
71589
|
+
p1y = Math.max(yfrom, yto);
|
|
71590
|
+
var xfrom = xcoordinate.unmap(xcoordinate.transform.unmap(0));
|
|
71591
|
+
var xto = xcoordinate.unmap(xcoordinate.transform.unmap(plotAreaSizeX));
|
|
71592
|
+
p0x = Math.min(xfrom, xto);
|
|
71593
|
+
p1x = Math.max(xfrom, xto);
|
|
71594
|
+
if (threshold < aabs) {
|
|
71595
|
+
var f = a / b;
|
|
71596
|
+
var yfrom1 = f * (xfrom - x0) + y0;
|
|
71597
|
+
var yto1 = f * (xto - x0) + y0;
|
|
71139
71598
|
var p2y = Math.min(yfrom1, yto1);
|
|
71140
71599
|
var p3y = Math.max(yfrom1, yto1);
|
|
71141
|
-
|
|
71142
|
-
|
|
71143
|
-
|
|
71144
|
-
|
|
71145
|
-
|
|
71146
|
-
|
|
71600
|
+
p0y = Math.max(p0y, p2y);
|
|
71601
|
+
p1y = Math.min(p1y, p3y);
|
|
71602
|
+
var g = 1 / f;
|
|
71603
|
+
p0x = g * (p0y - y0) + a * x0;
|
|
71604
|
+
p1x = g * (p1y - y0) + a * x0;
|
|
71605
|
+
}
|
|
71606
|
+
else {
|
|
71607
|
+
p0y = y0;
|
|
71608
|
+
p1y = y0;
|
|
71147
71609
|
}
|
|
71148
|
-
p0x = b * (p0y - y0) + a * x0;
|
|
71149
|
-
p1x = b * (p1y - y0) + a * x0;
|
|
71150
71610
|
}
|
|
71151
71611
|
p0x = xcoordinate.transform.map(xcoordinate.map(p0x));
|
|
71152
71612
|
p0y = ycoordinate.transform.map(ycoordinate.map(p0y));
|
|
@@ -71176,6 +71636,7 @@ var DChartSeriesLinear = /** @class */ (function (_super) {
|
|
|
71176
71636
|
line.disallowUploadedUpdate();
|
|
71177
71637
|
line.points.set(values, segments);
|
|
71178
71638
|
line.size.set(sx, sy);
|
|
71639
|
+
line.points.toFitted();
|
|
71179
71640
|
line.transform.position.set(cx, cy);
|
|
71180
71641
|
line.allowUploadedUpdate();
|
|
71181
71642
|
DApplications.update(line);
|
|
@@ -72941,7 +73402,9 @@ var DDiagramDataRemote = /** @class */ (function () {
|
|
|
72941
73402
|
var controller = this._controller;
|
|
72942
73403
|
if (controller) {
|
|
72943
73404
|
controller.write(id, value);
|
|
73405
|
+
return true;
|
|
72944
73406
|
}
|
|
73407
|
+
return false;
|
|
72945
73408
|
};
|
|
72946
73409
|
return DDiagramDataRemote;
|
|
72947
73410
|
}());
|
|
@@ -73015,8 +73478,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73015
73478
|
// Value
|
|
73016
73479
|
datumValue.value = value;
|
|
73017
73480
|
}
|
|
73481
|
+
return true;
|
|
73018
73482
|
}
|
|
73019
73483
|
}
|
|
73484
|
+
return false;
|
|
73020
73485
|
};
|
|
73021
73486
|
DDiagramData.prototype.clear = function (id) {
|
|
73022
73487
|
var canvas = this._diagram.canvas;
|
|
@@ -73026,8 +73491,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73026
73491
|
for (var i = 0, imax = datum.length; i < imax; ++i) {
|
|
73027
73492
|
datum[i].clear();
|
|
73028
73493
|
}
|
|
73494
|
+
return true;
|
|
73029
73495
|
}
|
|
73030
73496
|
}
|
|
73497
|
+
return false;
|
|
73031
73498
|
};
|
|
73032
73499
|
DDiagramData.prototype.setAll = function (id, values, times, from, to) {
|
|
73033
73500
|
var canvas = this._diagram.canvas;
|
|
@@ -73046,8 +73513,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73046
73513
|
// Value
|
|
73047
73514
|
datumValue.values = values;
|
|
73048
73515
|
}
|
|
73516
|
+
return true;
|
|
73049
73517
|
}
|
|
73050
73518
|
}
|
|
73519
|
+
return false;
|
|
73051
73520
|
};
|
|
73052
73521
|
DDiagramData.prototype.setValue = function (id, value, time) {
|
|
73053
73522
|
var canvas = this._diagram.canvas;
|
|
@@ -73061,8 +73530,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73061
73530
|
}
|
|
73062
73531
|
datumValue.value = value;
|
|
73063
73532
|
}
|
|
73533
|
+
return true;
|
|
73064
73534
|
}
|
|
73065
73535
|
}
|
|
73536
|
+
return false;
|
|
73066
73537
|
};
|
|
73067
73538
|
DDiagramData.prototype.setValues = function (id, values, times) {
|
|
73068
73539
|
var canvas = this._diagram.canvas;
|
|
@@ -73076,8 +73547,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73076
73547
|
}
|
|
73077
73548
|
datumValue.values = values;
|
|
73078
73549
|
}
|
|
73550
|
+
return true;
|
|
73079
73551
|
}
|
|
73080
73552
|
}
|
|
73553
|
+
return false;
|
|
73081
73554
|
};
|
|
73082
73555
|
DDiagramData.prototype.setTime = function (id, time) {
|
|
73083
73556
|
var canvas = this._diagram.canvas;
|
|
@@ -73087,8 +73560,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73087
73560
|
for (var i = 0, imax = datum.length; i < imax; ++i) {
|
|
73088
73561
|
datum[i].time = time;
|
|
73089
73562
|
}
|
|
73563
|
+
return true;
|
|
73090
73564
|
}
|
|
73091
73565
|
}
|
|
73566
|
+
return false;
|
|
73092
73567
|
};
|
|
73093
73568
|
DDiagramData.prototype.setTimes = function (id, times) {
|
|
73094
73569
|
var canvas = this._diagram.canvas;
|
|
@@ -73098,8 +73573,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73098
73573
|
for (var i = 0, imax = datum.length; i < imax; ++i) {
|
|
73099
73574
|
datum[i].times = times;
|
|
73100
73575
|
}
|
|
73576
|
+
return true;
|
|
73101
73577
|
}
|
|
73102
73578
|
}
|
|
73579
|
+
return false;
|
|
73103
73580
|
};
|
|
73104
73581
|
DDiagramData.prototype.setRange = function (id, from, to) {
|
|
73105
73582
|
var canvas = this._diagram.canvas;
|
|
@@ -73127,8 +73604,10 @@ var DDiagramData = /** @class */ (function () {
|
|
|
73127
73604
|
}
|
|
73128
73605
|
}
|
|
73129
73606
|
}
|
|
73607
|
+
return true;
|
|
73130
73608
|
}
|
|
73131
73609
|
}
|
|
73610
|
+
return false;
|
|
73132
73611
|
};
|
|
73133
73612
|
return DDiagramData;
|
|
73134
73613
|
}());
|
|
@@ -75779,370 +76258,607 @@ var DNotification = /** @class */ (function (_super) {
|
|
|
75779
76258
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75780
76259
|
* SPDX-License-Identifier: Apache-2.0
|
|
75781
76260
|
*/
|
|
75782
|
-
var
|
|
75783
|
-
__extends(
|
|
75784
|
-
function
|
|
76261
|
+
var DPaginationButtonLast = /** @class */ (function (_super) {
|
|
76262
|
+
__extends(DPaginationButtonLast, _super);
|
|
76263
|
+
function DPaginationButtonLast() {
|
|
75785
76264
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75786
76265
|
}
|
|
75787
|
-
|
|
75788
|
-
return "
|
|
76266
|
+
DPaginationButtonLast.prototype.getType = function () {
|
|
76267
|
+
return "DPaginationButtonLast";
|
|
75789
76268
|
};
|
|
75790
|
-
return
|
|
76269
|
+
return DPaginationButtonLast;
|
|
75791
76270
|
}(DButtonAmbient));
|
|
75792
76271
|
|
|
75793
76272
|
/*
|
|
75794
76273
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75795
76274
|
* SPDX-License-Identifier: Apache-2.0
|
|
75796
76275
|
*/
|
|
75797
|
-
var
|
|
75798
|
-
__extends(
|
|
75799
|
-
function
|
|
76276
|
+
var DPaginationButtonNext = /** @class */ (function (_super) {
|
|
76277
|
+
__extends(DPaginationButtonNext, _super);
|
|
76278
|
+
function DPaginationButtonNext() {
|
|
75800
76279
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75801
76280
|
}
|
|
75802
|
-
|
|
75803
|
-
|
|
75804
|
-
this._dotsBtnLeft = new DPaginationDotsButton({
|
|
75805
|
-
width: options.button.width,
|
|
75806
|
-
visible: !!options.button.dotsLeft
|
|
75807
|
-
});
|
|
75808
|
-
this._dotsBtnRight = new DPaginationDotsButton({
|
|
75809
|
-
width: options.button.width,
|
|
75810
|
-
visible: !!options.button.dotsRight
|
|
75811
|
-
});
|
|
75812
|
-
this.addChild(this._dotsBtnLeft);
|
|
75813
|
-
this.addChild(this._dotsBtnRight);
|
|
76281
|
+
DPaginationButtonNext.prototype.getType = function () {
|
|
76282
|
+
return "DPaginationButtonNext";
|
|
75814
76283
|
};
|
|
75815
|
-
|
|
75816
|
-
|
|
75817
|
-
|
|
75818
|
-
|
|
75819
|
-
|
|
75820
|
-
|
|
75821
|
-
|
|
75822
|
-
|
|
75823
|
-
|
|
75824
|
-
|
|
75825
|
-
|
|
75826
|
-
|
|
75827
|
-
|
|
75828
|
-
|
|
75829
|
-
_this.emit("active", clickedBtn);
|
|
75830
|
-
});
|
|
75831
|
-
}
|
|
75832
|
-
// re-new "pageButtons" after add new buttons
|
|
75833
|
-
pageButtons = this.children.slice(1, this.children.length - 1);
|
|
75834
|
-
}
|
|
75835
|
-
else if (pageButtons.length > btnsCount) {
|
|
75836
|
-
for (var i = btnsCount; i < pageButtons.length; i++) {
|
|
75837
|
-
pageButtons[i].hide();
|
|
75838
|
-
}
|
|
75839
|
-
}
|
|
75840
|
-
// update button text and active state
|
|
75841
|
-
for (var i = 0; i < btnsCount; i++) {
|
|
75842
|
-
var btn = pageButtons[i];
|
|
75843
|
-
btn.text = options.start + i + 1;
|
|
75844
|
-
btn.state.isActive = options.start + i === options.selected;
|
|
75845
|
-
if (btn.isHidden()) {
|
|
75846
|
-
btn.show();
|
|
75847
|
-
}
|
|
75848
|
-
}
|
|
75849
|
-
// update visible state of dots buttons
|
|
75850
|
-
if (options.button.dotsLeft) {
|
|
75851
|
-
this._dotsBtnLeft.show();
|
|
75852
|
-
}
|
|
75853
|
-
else {
|
|
75854
|
-
this._dotsBtnLeft.hide();
|
|
75855
|
-
}
|
|
75856
|
-
if (options.button.dotsRight) {
|
|
75857
|
-
this._dotsBtnRight.show();
|
|
75858
|
-
}
|
|
75859
|
-
else {
|
|
75860
|
-
this._dotsBtnRight.hide();
|
|
75861
|
-
}
|
|
76284
|
+
return DPaginationButtonNext;
|
|
76285
|
+
}(DButtonAmbient));
|
|
76286
|
+
|
|
76287
|
+
/*
|
|
76288
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
76289
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
76290
|
+
*/
|
|
76291
|
+
var DPaginationButtonPage = /** @class */ (function (_super) {
|
|
76292
|
+
__extends(DPaginationButtonPage, _super);
|
|
76293
|
+
function DPaginationButtonPage() {
|
|
76294
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76295
|
+
}
|
|
76296
|
+
DPaginationButtonPage.prototype.getType = function () {
|
|
76297
|
+
return "DPaginationButtonPage";
|
|
75862
76298
|
};
|
|
75863
|
-
|
|
75864
|
-
|
|
76299
|
+
return DPaginationButtonPage;
|
|
76300
|
+
}(DButtonAmbient));
|
|
76301
|
+
|
|
76302
|
+
/*
|
|
76303
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
76304
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
76305
|
+
*/
|
|
76306
|
+
var DPaginationButtonPrevious = /** @class */ (function (_super) {
|
|
76307
|
+
__extends(DPaginationButtonPrevious, _super);
|
|
76308
|
+
function DPaginationButtonPrevious() {
|
|
76309
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76310
|
+
}
|
|
76311
|
+
DPaginationButtonPrevious.prototype.getType = function () {
|
|
76312
|
+
return "DPaginationButtonPrevious";
|
|
75865
76313
|
};
|
|
75866
|
-
return
|
|
75867
|
-
}(
|
|
76314
|
+
return DPaginationButtonPrevious;
|
|
76315
|
+
}(DButtonAmbient));
|
|
75868
76316
|
|
|
75869
76317
|
/*
|
|
75870
76318
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75871
76319
|
* SPDX-License-Identifier: Apache-2.0
|
|
75872
76320
|
*/
|
|
75873
|
-
var
|
|
75874
|
-
__extends(
|
|
75875
|
-
function
|
|
76321
|
+
var DPaginationButtonTop = /** @class */ (function (_super) {
|
|
76322
|
+
__extends(DPaginationButtonTop, _super);
|
|
76323
|
+
function DPaginationButtonTop() {
|
|
75876
76324
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75877
76325
|
}
|
|
75878
|
-
|
|
75879
|
-
return "
|
|
76326
|
+
DPaginationButtonTop.prototype.getType = function () {
|
|
76327
|
+
return "DPaginationButtonTop";
|
|
75880
76328
|
};
|
|
75881
|
-
return
|
|
76329
|
+
return DPaginationButtonTop;
|
|
75882
76330
|
}(DButtonAmbient));
|
|
75883
76331
|
|
|
76332
|
+
/*
|
|
76333
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
76334
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
76335
|
+
*/
|
|
76336
|
+
var DPaginationDots = /** @class */ (function (_super) {
|
|
76337
|
+
__extends(DPaginationDots, _super);
|
|
76338
|
+
function DPaginationDots() {
|
|
76339
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76340
|
+
}
|
|
76341
|
+
DPaginationDots.prototype.getType = function () {
|
|
76342
|
+
return "DPaginationDots";
|
|
76343
|
+
};
|
|
76344
|
+
return DPaginationDots;
|
|
76345
|
+
}(DImageBase));
|
|
76346
|
+
|
|
76347
|
+
/*
|
|
76348
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
76349
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
76350
|
+
*/
|
|
76351
|
+
var DPaginationPage = /** @class */ (function (_super) {
|
|
76352
|
+
__extends(DPaginationPage, _super);
|
|
76353
|
+
function DPaginationPage() {
|
|
76354
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76355
|
+
}
|
|
76356
|
+
DPaginationPage.prototype.getType = function () {
|
|
76357
|
+
return "DPaginationPage";
|
|
76358
|
+
};
|
|
76359
|
+
return DPaginationPage;
|
|
76360
|
+
}(DImageBase));
|
|
76361
|
+
|
|
75884
76362
|
/*
|
|
75885
76363
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75886
76364
|
* SPDX-License-Identifier: Apache-2.0
|
|
75887
76365
|
*/
|
|
75888
76366
|
var DPagination = /** @class */ (function (_super) {
|
|
75889
76367
|
__extends(DPagination, _super);
|
|
75890
|
-
function DPagination() {
|
|
75891
|
-
|
|
76368
|
+
function DPagination(options) {
|
|
76369
|
+
var _a, _b, _c, _d;
|
|
76370
|
+
var _this = _super.call(this, options) || this;
|
|
76371
|
+
if (options != null) {
|
|
76372
|
+
_this._size = (_b = (_a = options.size) !== null && _a !== void 0 ? _a : options.total) !== null && _b !== void 0 ? _b : 10;
|
|
76373
|
+
_this._value = (_d = (_c = options.value) !== null && _c !== void 0 ? _c : options.selected) !== null && _d !== void 0 ? _d : 0;
|
|
76374
|
+
}
|
|
76375
|
+
else {
|
|
76376
|
+
_this._size = 10;
|
|
76377
|
+
_this._value = 0;
|
|
76378
|
+
}
|
|
76379
|
+
var buttonTop = _this.buttonTop;
|
|
76380
|
+
var buttonPrevious = _this.buttonPrevious;
|
|
76381
|
+
if (buttonTop != null) {
|
|
76382
|
+
_this.addChild(buttonTop);
|
|
76383
|
+
}
|
|
76384
|
+
if (buttonPrevious != null) {
|
|
76385
|
+
_this.addChild(buttonPrevious);
|
|
76386
|
+
}
|
|
76387
|
+
if (buttonTop != null || buttonPrevious != null) {
|
|
76388
|
+
_this.addChild(_this.newSpace());
|
|
76389
|
+
}
|
|
76390
|
+
var buttonPages0 = _this.buttonPages0;
|
|
76391
|
+
var buttonPages0Length = buttonPages0.length;
|
|
76392
|
+
_this.addChild(buttonPages0[buttonPages0Length - 1]);
|
|
76393
|
+
_this.addChild(_this.dots0);
|
|
76394
|
+
for (var i = buttonPages0Length - 2; 0 <= i; --i) {
|
|
76395
|
+
_this.addChild(buttonPages0[i]);
|
|
76396
|
+
}
|
|
76397
|
+
_this.addChild(_this.page);
|
|
76398
|
+
var buttonPages1 = _this.buttonPages1;
|
|
76399
|
+
var buttonPages1Length = buttonPages1.length;
|
|
76400
|
+
for (var i = 0, imax = buttonPages1Length - 1; i < imax; ++i) {
|
|
76401
|
+
_this.addChild(buttonPages1[i]);
|
|
76402
|
+
}
|
|
76403
|
+
_this.addChild(_this.dots1);
|
|
76404
|
+
_this.addChild(buttonPages1[buttonPages1Length - 1]);
|
|
76405
|
+
var buttonNext = _this.buttonNext;
|
|
76406
|
+
var buttonLast = _this.buttonLast;
|
|
76407
|
+
if (buttonNext != null || buttonLast != null) {
|
|
76408
|
+
_this.addChild(_this.newSpace());
|
|
76409
|
+
}
|
|
76410
|
+
if (buttonNext != null) {
|
|
76411
|
+
_this.addChild(buttonNext);
|
|
76412
|
+
}
|
|
76413
|
+
if (buttonLast != null) {
|
|
76414
|
+
_this.addChild(buttonLast);
|
|
76415
|
+
}
|
|
76416
|
+
_this.update();
|
|
76417
|
+
return _this;
|
|
75892
76418
|
}
|
|
75893
|
-
DPagination.prototype.
|
|
75894
|
-
var
|
|
75895
|
-
|
|
75896
|
-
|
|
75897
|
-
this.DEFAULT_SELECTED = 0; // set default selected index page is page 0
|
|
75898
|
-
// get total pages
|
|
75899
|
-
this._total = options.total;
|
|
75900
|
-
// get selected page
|
|
75901
|
-
this._selected = (_a = options.selected) !== null && _a !== void 0 ? _a : this.DEFAULT_SELECTED;
|
|
75902
|
-
// get button options
|
|
75903
|
-
var button = options.button;
|
|
75904
|
-
this._buttonOptions = {
|
|
75905
|
-
first: !!(button === null || button === void 0 ? void 0 : button.first),
|
|
75906
|
-
last: !!(button === null || button === void 0 ? void 0 : button.last),
|
|
75907
|
-
width: button === null || button === void 0 ? void 0 : button.width
|
|
75908
|
-
};
|
|
75909
|
-
this.initButtons(this.getButtonWidth());
|
|
75910
|
-
this.listenButtonClicked();
|
|
75911
|
-
this.on("resize", function () {
|
|
75912
|
-
_this._numberPageButtonVisible = _this.toNumberVisible();
|
|
75913
|
-
_this.update();
|
|
76419
|
+
DPagination.prototype.newSpace = function () {
|
|
76420
|
+
var _a, _b, _c;
|
|
76421
|
+
return new DLayoutSpace({
|
|
76422
|
+
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()
|
|
75914
76423
|
});
|
|
75915
76424
|
};
|
|
76425
|
+
Object.defineProperty(DPagination.prototype, "value", {
|
|
76426
|
+
/**
|
|
76427
|
+
* Returns a value that is an index of a current page.
|
|
76428
|
+
*
|
|
76429
|
+
* @returns a value that is an index of a selected page.
|
|
76430
|
+
*/
|
|
76431
|
+
get: function () {
|
|
76432
|
+
return this._value;
|
|
76433
|
+
},
|
|
76434
|
+
/**
|
|
76435
|
+
* Sets a value that is an index of a current page.
|
|
76436
|
+
*
|
|
76437
|
+
* @param value a value that is an index of a page
|
|
76438
|
+
*/
|
|
76439
|
+
set: function (value) {
|
|
76440
|
+
if (0 <= value && value < this._size && this._value !== value) {
|
|
76441
|
+
this._value = value;
|
|
76442
|
+
this.update();
|
|
76443
|
+
}
|
|
76444
|
+
},
|
|
76445
|
+
enumerable: false,
|
|
76446
|
+
configurable: true
|
|
76447
|
+
});
|
|
75916
76448
|
Object.defineProperty(DPagination.prototype, "selected", {
|
|
75917
76449
|
/**
|
|
75918
|
-
*
|
|
76450
|
+
* Returns an index of the selected page.
|
|
75919
76451
|
*
|
|
75920
|
-
* @returns index of selected page.
|
|
76452
|
+
* @returns an index of the selected page.
|
|
76453
|
+
* @deprecated in favor of {@link value}.
|
|
75921
76454
|
*/
|
|
75922
76455
|
get: function () {
|
|
75923
|
-
return this.
|
|
76456
|
+
return this.value;
|
|
75924
76457
|
},
|
|
75925
76458
|
/**
|
|
75926
|
-
*
|
|
76459
|
+
* Selects a page.
|
|
75927
76460
|
*
|
|
75928
|
-
* @param
|
|
76461
|
+
* @param index an index of a page
|
|
76462
|
+
* @deprecated in favor of {@link #value}.
|
|
75929
76463
|
*/
|
|
75930
|
-
set: function (
|
|
75931
|
-
|
|
75932
|
-
|
|
76464
|
+
set: function (index) {
|
|
76465
|
+
this.value = index;
|
|
76466
|
+
},
|
|
76467
|
+
enumerable: false,
|
|
76468
|
+
configurable: true
|
|
76469
|
+
});
|
|
76470
|
+
Object.defineProperty(DPagination.prototype, "size", {
|
|
76471
|
+
/**
|
|
76472
|
+
* Returns a number of total pages.
|
|
76473
|
+
*
|
|
76474
|
+
* @returns a number of total pages.
|
|
76475
|
+
*/
|
|
76476
|
+
get: function () {
|
|
76477
|
+
return this._size;
|
|
76478
|
+
},
|
|
76479
|
+
/**
|
|
76480
|
+
* Sets a number of total pages.
|
|
76481
|
+
*
|
|
76482
|
+
* @param size a number of pages
|
|
76483
|
+
*/
|
|
76484
|
+
set: function (size) {
|
|
76485
|
+
if (0 <= size && this._size !== size) {
|
|
76486
|
+
this._size = size;
|
|
76487
|
+
if (size === 0) {
|
|
76488
|
+
this._value = -1;
|
|
76489
|
+
}
|
|
76490
|
+
else {
|
|
76491
|
+
this._value = Math.max(0, Math.min(this._size - 1, this._value));
|
|
76492
|
+
}
|
|
76493
|
+
this.update();
|
|
75933
76494
|
}
|
|
75934
|
-
this._selected = selected;
|
|
75935
|
-
this.update();
|
|
75936
76495
|
},
|
|
75937
76496
|
enumerable: false,
|
|
75938
76497
|
configurable: true
|
|
75939
76498
|
});
|
|
75940
76499
|
Object.defineProperty(DPagination.prototype, "total", {
|
|
75941
76500
|
/**
|
|
75942
|
-
*
|
|
76501
|
+
* Returns a number of total pages.
|
|
75943
76502
|
*
|
|
75944
|
-
* @returns number of total pages.
|
|
76503
|
+
* @returns a number of total pages.
|
|
76504
|
+
* @deprecated in favor of {@link size}
|
|
75945
76505
|
*/
|
|
75946
76506
|
get: function () {
|
|
75947
|
-
return this.
|
|
76507
|
+
return this.size;
|
|
75948
76508
|
},
|
|
75949
76509
|
/**
|
|
75950
|
-
*
|
|
76510
|
+
* Sets a number of total pages.
|
|
75951
76511
|
*
|
|
75952
|
-
* @param total number of
|
|
76512
|
+
* @param total a number of pages
|
|
76513
|
+
* @deprecated in favor of {@link size}
|
|
75953
76514
|
*/
|
|
75954
76515
|
set: function (total) {
|
|
75955
|
-
|
|
75956
|
-
|
|
75957
|
-
|
|
75958
|
-
|
|
75959
|
-
|
|
75960
|
-
|
|
76516
|
+
this.size = total;
|
|
76517
|
+
},
|
|
76518
|
+
enumerable: false,
|
|
76519
|
+
configurable: true
|
|
76520
|
+
});
|
|
76521
|
+
Object.defineProperty(DPagination.prototype, "dots0", {
|
|
76522
|
+
get: function () {
|
|
76523
|
+
var result = this._dots0;
|
|
76524
|
+
if (result == null) {
|
|
76525
|
+
result = this.newDots();
|
|
76526
|
+
this._dots0 = result;
|
|
75961
76527
|
}
|
|
76528
|
+
return result;
|
|
75962
76529
|
},
|
|
75963
76530
|
enumerable: false,
|
|
75964
76531
|
configurable: true
|
|
75965
76532
|
});
|
|
75966
|
-
DPagination.prototype
|
|
75967
|
-
|
|
75968
|
-
|
|
75969
|
-
|
|
75970
|
-
|
|
75971
|
-
|
|
76533
|
+
Object.defineProperty(DPagination.prototype, "dots1", {
|
|
76534
|
+
get: function () {
|
|
76535
|
+
var result = this._dots1;
|
|
76536
|
+
if (result == null) {
|
|
76537
|
+
result = this.newDots();
|
|
76538
|
+
this._dots1 = result;
|
|
75972
76539
|
}
|
|
75973
|
-
|
|
75974
|
-
|
|
75975
|
-
|
|
75976
|
-
|
|
75977
|
-
|
|
76540
|
+
return result;
|
|
76541
|
+
},
|
|
76542
|
+
enumerable: false,
|
|
76543
|
+
configurable: true
|
|
76544
|
+
});
|
|
76545
|
+
DPagination.prototype.newDots = function () {
|
|
76546
|
+
return new DPaginationDots();
|
|
76547
|
+
};
|
|
76548
|
+
Object.defineProperty(DPagination.prototype, "buttonLast", {
|
|
76549
|
+
get: function () {
|
|
76550
|
+
var result = this._buttonLast;
|
|
76551
|
+
if (result === undefined) {
|
|
76552
|
+
result = this.newButtonLast();
|
|
76553
|
+
this._buttonLast = result;
|
|
75978
76554
|
}
|
|
75979
|
-
|
|
75980
|
-
|
|
75981
|
-
|
|
75982
|
-
|
|
75983
|
-
|
|
75984
|
-
|
|
75985
|
-
|
|
75986
|
-
|
|
75987
|
-
|
|
75988
|
-
|
|
75989
|
-
|
|
75990
|
-
|
|
75991
|
-
|
|
75992
|
-
|
|
75993
|
-
|
|
75994
|
-
|
|
75995
|
-
|
|
75996
|
-
|
|
75997
|
-
|
|
75998
|
-
|
|
76555
|
+
return result;
|
|
76556
|
+
},
|
|
76557
|
+
enumerable: false,
|
|
76558
|
+
configurable: true
|
|
76559
|
+
});
|
|
76560
|
+
DPagination.prototype.newButtonLast = function () {
|
|
76561
|
+
var _this = this;
|
|
76562
|
+
var _a, _b;
|
|
76563
|
+
var last = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.last;
|
|
76564
|
+
if (last !== null && last !== false && last !== undefined) {
|
|
76565
|
+
var result = new DPaginationButtonLast(last !== true ? last : undefined);
|
|
76566
|
+
result.on("active", function () {
|
|
76567
|
+
_this.onButtonLastActive();
|
|
76568
|
+
});
|
|
76569
|
+
return result;
|
|
76570
|
+
}
|
|
76571
|
+
return null;
|
|
76572
|
+
};
|
|
76573
|
+
DPagination.prototype.onButtonLastActive = function () {
|
|
76574
|
+
this.moveTo(this._size - 1);
|
|
76575
|
+
};
|
|
76576
|
+
DPagination.prototype.moveTo = function (index) {
|
|
76577
|
+
if (0 <= index && index < this._size && this._value !== index) {
|
|
76578
|
+
var oldIndex = this._value;
|
|
76579
|
+
this._value = index;
|
|
76580
|
+
this.emit("change", index, oldIndex, this);
|
|
76581
|
+
this.update();
|
|
76582
|
+
}
|
|
76583
|
+
};
|
|
76584
|
+
Object.defineProperty(DPagination.prototype, "buttonNext", {
|
|
76585
|
+
get: function () {
|
|
76586
|
+
var result = this._buttonNext;
|
|
76587
|
+
if (result === undefined) {
|
|
76588
|
+
result = this.newButtonNext();
|
|
76589
|
+
this._buttonNext = result;
|
|
75999
76590
|
}
|
|
76000
|
-
|
|
76001
|
-
|
|
76002
|
-
|
|
76003
|
-
|
|
76004
|
-
|
|
76591
|
+
return result;
|
|
76592
|
+
},
|
|
76593
|
+
enumerable: false,
|
|
76594
|
+
configurable: true
|
|
76595
|
+
});
|
|
76596
|
+
DPagination.prototype.newButtonNext = function () {
|
|
76597
|
+
var _this = this;
|
|
76598
|
+
var _a, _b;
|
|
76599
|
+
var next = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.next;
|
|
76600
|
+
if (next !== null && next !== false) {
|
|
76601
|
+
var result = new DPaginationButtonNext(next !== true ? next : undefined);
|
|
76602
|
+
result.on("active", function () {
|
|
76603
|
+
_this.onButtonNextActive();
|
|
76604
|
+
});
|
|
76605
|
+
return result;
|
|
76606
|
+
}
|
|
76607
|
+
return null;
|
|
76608
|
+
};
|
|
76609
|
+
DPagination.prototype.onButtonNextActive = function () {
|
|
76610
|
+
this.moveTo(this._value + 1);
|
|
76611
|
+
};
|
|
76612
|
+
Object.defineProperty(DPagination.prototype, "buttonPrevious", {
|
|
76613
|
+
get: function () {
|
|
76614
|
+
var result = this._buttonPrevious;
|
|
76615
|
+
if (result === undefined) {
|
|
76616
|
+
result = this.newButtonPrevious();
|
|
76617
|
+
this._buttonPrevious = result;
|
|
76005
76618
|
}
|
|
76006
|
-
|
|
76007
|
-
|
|
76008
|
-
|
|
76009
|
-
|
|
76010
|
-
|
|
76619
|
+
return result;
|
|
76620
|
+
},
|
|
76621
|
+
enumerable: false,
|
|
76622
|
+
configurable: true
|
|
76623
|
+
});
|
|
76624
|
+
DPagination.prototype.newButtonPrevious = function () {
|
|
76625
|
+
var _this = this;
|
|
76626
|
+
var _a, _b;
|
|
76627
|
+
var previous = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.previous;
|
|
76628
|
+
if (previous !== null && previous !== false) {
|
|
76629
|
+
var result = new DPaginationButtonPrevious(previous !== true ? previous : undefined);
|
|
76630
|
+
result.on("active", function () {
|
|
76631
|
+
_this.onButtonPreviousActive();
|
|
76632
|
+
});
|
|
76633
|
+
return result;
|
|
76634
|
+
}
|
|
76635
|
+
return null;
|
|
76636
|
+
};
|
|
76637
|
+
DPagination.prototype.onButtonPreviousActive = function () {
|
|
76638
|
+
this.moveTo(this._value - 1);
|
|
76639
|
+
};
|
|
76640
|
+
Object.defineProperty(DPagination.prototype, "buttonTop", {
|
|
76641
|
+
get: function () {
|
|
76642
|
+
var result = this._buttonTop;
|
|
76643
|
+
if (result === undefined) {
|
|
76644
|
+
result = this.newButtonTop();
|
|
76645
|
+
this._buttonTop = result;
|
|
76011
76646
|
}
|
|
76012
|
-
|
|
76013
|
-
|
|
76014
|
-
|
|
76015
|
-
|
|
76016
|
-
|
|
76017
|
-
|
|
76018
|
-
this.addChild(this._nextBtn);
|
|
76019
|
-
this.addChild(this._goLastBtn);
|
|
76020
|
-
};
|
|
76021
|
-
DPagination.prototype.listenButtonClicked = function () {
|
|
76647
|
+
return result;
|
|
76648
|
+
},
|
|
76649
|
+
enumerable: false,
|
|
76650
|
+
configurable: true
|
|
76651
|
+
});
|
|
76652
|
+
DPagination.prototype.newButtonTop = function () {
|
|
76022
76653
|
var _this = this;
|
|
76023
|
-
|
|
76024
|
-
|
|
76025
|
-
|
|
76026
|
-
|
|
76027
|
-
|
|
76028
|
-
|
|
76029
|
-
|
|
76030
|
-
|
|
76031
|
-
}
|
|
76032
|
-
|
|
76033
|
-
|
|
76034
|
-
|
|
76035
|
-
this.
|
|
76036
|
-
|
|
76654
|
+
var _a, _b;
|
|
76655
|
+
var top = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.top;
|
|
76656
|
+
if (top !== null && top !== false && top !== undefined) {
|
|
76657
|
+
var result = new DPaginationButtonTop(top !== true ? top : undefined);
|
|
76658
|
+
result.on("active", function () {
|
|
76659
|
+
_this.onButtonTopActive();
|
|
76660
|
+
});
|
|
76661
|
+
return result;
|
|
76662
|
+
}
|
|
76663
|
+
return null;
|
|
76664
|
+
};
|
|
76665
|
+
DPagination.prototype.onButtonTopActive = function () {
|
|
76666
|
+
this.moveTo(0);
|
|
76667
|
+
};
|
|
76668
|
+
DPagination.prototype.newButtonPage = function () {
|
|
76669
|
+
var _this = this;
|
|
76670
|
+
var _a, _b;
|
|
76671
|
+
var result = new DPaginationButtonPage((_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.page);
|
|
76672
|
+
result.on("active", function () {
|
|
76673
|
+
_this.onButtonPageActive(result);
|
|
76037
76674
|
});
|
|
76038
|
-
|
|
76039
|
-
|
|
76040
|
-
|
|
76675
|
+
return result;
|
|
76676
|
+
};
|
|
76677
|
+
Object.defineProperty(DPagination.prototype, "buttonPages0", {
|
|
76678
|
+
get: function () {
|
|
76679
|
+
var result = this._buttonPages0;
|
|
76680
|
+
if (result == null) {
|
|
76681
|
+
result = this.newButtonPages0();
|
|
76682
|
+
this._buttonPages0 = result;
|
|
76041
76683
|
}
|
|
76042
|
-
|
|
76043
|
-
|
|
76044
|
-
|
|
76045
|
-
|
|
76684
|
+
return result;
|
|
76685
|
+
},
|
|
76686
|
+
enumerable: false,
|
|
76687
|
+
configurable: true
|
|
76688
|
+
});
|
|
76689
|
+
DPagination.prototype.newButtonPages0 = function () {
|
|
76690
|
+
return [
|
|
76691
|
+
this.newButtonPage(),
|
|
76692
|
+
this.newButtonPage(),
|
|
76693
|
+
this.newButtonPage(),
|
|
76694
|
+
this.newButtonPage()
|
|
76695
|
+
];
|
|
76696
|
+
};
|
|
76697
|
+
Object.defineProperty(DPagination.prototype, "buttonPages1", {
|
|
76698
|
+
get: function () {
|
|
76699
|
+
var result = this._buttonPages1;
|
|
76700
|
+
if (result == null) {
|
|
76701
|
+
result = this.newButtonPages1();
|
|
76702
|
+
this._buttonPages1 = result;
|
|
76046
76703
|
}
|
|
76047
|
-
|
|
76704
|
+
return result;
|
|
76705
|
+
},
|
|
76706
|
+
enumerable: false,
|
|
76707
|
+
configurable: true
|
|
76708
|
+
});
|
|
76709
|
+
DPagination.prototype.newButtonPages1 = function () {
|
|
76710
|
+
return [
|
|
76711
|
+
this.newButtonPage(),
|
|
76712
|
+
this.newButtonPage(),
|
|
76713
|
+
this.newButtonPage(),
|
|
76714
|
+
this.newButtonPage()
|
|
76715
|
+
];
|
|
76048
76716
|
};
|
|
76049
|
-
DPagination.prototype
|
|
76050
|
-
|
|
76051
|
-
|
|
76052
|
-
|
|
76053
|
-
|
|
76054
|
-
|
|
76055
|
-
var numberButtonsInRight = 0;
|
|
76056
|
-
this.updateStaticButtons();
|
|
76057
|
-
// Number displayed buttons from first button to selected button when select center button of all buttons.
|
|
76058
|
-
// Not including selected button.
|
|
76059
|
-
var numberButtonsFirstToCenter = Math.ceil((this._numberPageButtonVisible - 1) * 0.5);
|
|
76060
|
-
var numberButtonsCenterToEnd = Math.floor((this._numberPageButtonVisible - 1) * 0.5);
|
|
76061
|
-
if (this._selected < numberButtonsFirstToCenter) {
|
|
76062
|
-
numberButtonsInLeft = this._selected;
|
|
76063
|
-
numberButtonsInRight = this._numberPageButtonVisible - numberButtonsInLeft - 1;
|
|
76064
|
-
}
|
|
76065
|
-
else if (this._selected + numberButtonsCenterToEnd > this._total - 1) {
|
|
76066
|
-
numberButtonsInRight = this._total - 1 - this.selected;
|
|
76067
|
-
numberButtonsInLeft = this._numberPageButtonVisible - numberButtonsInRight - 1;
|
|
76068
|
-
}
|
|
76069
|
-
else {
|
|
76070
|
-
numberButtonsInLeft = numberButtonsFirstToCenter;
|
|
76071
|
-
numberButtonsInRight = numberButtonsCenterToEnd;
|
|
76072
|
-
}
|
|
76073
|
-
if (this._selected <= numberButtonsInLeft) {
|
|
76074
|
-
startDynamic = 1;
|
|
76075
|
-
dotsLeft = false;
|
|
76076
|
-
}
|
|
76077
|
-
else {
|
|
76078
|
-
startDynamic = this._selected - numberButtonsInLeft + 2;
|
|
76079
|
-
dotsLeft = true;
|
|
76080
|
-
}
|
|
76081
|
-
if (this._selected + numberButtonsInRight >= this._total - 1) {
|
|
76082
|
-
endDynamic = this._total - 2;
|
|
76083
|
-
dotsRight = false;
|
|
76084
|
-
}
|
|
76085
|
-
else {
|
|
76086
|
-
endDynamic = this._selected + numberButtonsInRight - 2;
|
|
76087
|
-
dotsRight = true;
|
|
76088
|
-
}
|
|
76089
|
-
this._dynamicPageBtns.update({
|
|
76090
|
-
start: startDynamic,
|
|
76091
|
-
end: endDynamic,
|
|
76092
|
-
selected: this._selected,
|
|
76093
|
-
button: {
|
|
76094
|
-
width: this.getButtonWidth(),
|
|
76095
|
-
dotsLeft: dotsLeft,
|
|
76096
|
-
dotsRight: dotsRight
|
|
76717
|
+
Object.defineProperty(DPagination.prototype, "page", {
|
|
76718
|
+
get: function () {
|
|
76719
|
+
var result = this._page;
|
|
76720
|
+
if (result == null) {
|
|
76721
|
+
result = this.newPage();
|
|
76722
|
+
this._page = result;
|
|
76097
76723
|
}
|
|
76098
|
-
|
|
76724
|
+
return result;
|
|
76725
|
+
},
|
|
76726
|
+
enumerable: false,
|
|
76727
|
+
configurable: true
|
|
76728
|
+
});
|
|
76729
|
+
DPagination.prototype.newPage = function () {
|
|
76730
|
+
var _a;
|
|
76731
|
+
return new DPaginationPage((_a = this._options) === null || _a === void 0 ? void 0 : _a.page);
|
|
76099
76732
|
};
|
|
76100
|
-
DPagination.prototype.
|
|
76101
|
-
|
|
76102
|
-
|
|
76103
|
-
|
|
76104
|
-
|
|
76105
|
-
|
|
76733
|
+
DPagination.prototype.onButtonPageActive = function (button) {
|
|
76734
|
+
var text = button.text;
|
|
76735
|
+
if (isNumber(text)) {
|
|
76736
|
+
this.moveTo(text - 1);
|
|
76737
|
+
if (button.state.isFocused) {
|
|
76738
|
+
button.state.isHovered = false;
|
|
76739
|
+
this.page.focus();
|
|
76740
|
+
}
|
|
76106
76741
|
}
|
|
76107
|
-
|
|
76108
|
-
|
|
76742
|
+
};
|
|
76743
|
+
DPagination.prototype.update = function () {
|
|
76744
|
+
var size = this._size;
|
|
76745
|
+
var value = this._value;
|
|
76746
|
+
if (size <= 0) {
|
|
76747
|
+
var buttonTop = this.buttonTop;
|
|
76748
|
+
if (buttonTop != null) {
|
|
76749
|
+
buttonTop.state.isEnabled = false;
|
|
76750
|
+
}
|
|
76751
|
+
var buttonPrevious = this.buttonPrevious;
|
|
76752
|
+
if (buttonPrevious != null) {
|
|
76753
|
+
buttonPrevious.state.isEnabled = false;
|
|
76754
|
+
}
|
|
76755
|
+
this.dots0.hide();
|
|
76756
|
+
var buttonPages0 = this.buttonPages0;
|
|
76757
|
+
for (var i = 0, imax = buttonPages0.length; i < imax; ++i) {
|
|
76758
|
+
buttonPages0[i].hide();
|
|
76759
|
+
}
|
|
76760
|
+
this.page.hide();
|
|
76761
|
+
var buttonPages1 = this.buttonPages1;
|
|
76762
|
+
for (var i = 0, imax = buttonPages1.length; i < imax; ++i) {
|
|
76763
|
+
buttonPages1[i].hide();
|
|
76764
|
+
}
|
|
76765
|
+
this.dots1.hide();
|
|
76766
|
+
var buttonNext = this.buttonNext;
|
|
76767
|
+
if (buttonNext != null) {
|
|
76768
|
+
buttonNext.state.isEnabled = false;
|
|
76769
|
+
}
|
|
76770
|
+
var buttonLast = this.buttonLast;
|
|
76771
|
+
if (buttonLast) {
|
|
76772
|
+
buttonLast.state.isEnabled = false;
|
|
76773
|
+
}
|
|
76109
76774
|
}
|
|
76110
76775
|
else {
|
|
76111
|
-
|
|
76112
|
-
|
|
76113
|
-
|
|
76114
|
-
|
|
76115
|
-
|
|
76116
|
-
|
|
76117
|
-
|
|
76118
|
-
|
|
76119
|
-
|
|
76120
|
-
|
|
76121
|
-
|
|
76122
|
-
|
|
76123
|
-
|
|
76124
|
-
|
|
76125
|
-
|
|
76126
|
-
|
|
76127
|
-
|
|
76128
|
-
|
|
76129
|
-
|
|
76130
|
-
|
|
76131
|
-
|
|
76132
|
-
|
|
76133
|
-
|
|
76134
|
-
|
|
76135
|
-
|
|
76136
|
-
|
|
76137
|
-
|
|
76138
|
-
|
|
76139
|
-
|
|
76140
|
-
|
|
76141
|
-
|
|
76142
|
-
|
|
76143
|
-
|
|
76144
|
-
|
|
76145
|
-
|
|
76776
|
+
var from = value - 2;
|
|
76777
|
+
var to = value + 2;
|
|
76778
|
+
if (from < 0) {
|
|
76779
|
+
to = to - from;
|
|
76780
|
+
from = 0;
|
|
76781
|
+
}
|
|
76782
|
+
else if (size <= to) {
|
|
76783
|
+
var delta = to - size + 1;
|
|
76784
|
+
to -= delta;
|
|
76785
|
+
from -= delta;
|
|
76786
|
+
}
|
|
76787
|
+
var top_1 = false;
|
|
76788
|
+
if (0 < from) {
|
|
76789
|
+
top_1 = true;
|
|
76790
|
+
from = Math.min(from + 1, value);
|
|
76791
|
+
}
|
|
76792
|
+
var last = false;
|
|
76793
|
+
if (to < size - 1) {
|
|
76794
|
+
last = true;
|
|
76795
|
+
to = Math.max(to - 1, value);
|
|
76796
|
+
}
|
|
76797
|
+
var buttonTop = this.buttonTop;
|
|
76798
|
+
if (buttonTop != null) {
|
|
76799
|
+
buttonTop.state.isEnabled = 0 < value;
|
|
76800
|
+
}
|
|
76801
|
+
var buttonPrevious = this.buttonPrevious;
|
|
76802
|
+
if (buttonPrevious != null) {
|
|
76803
|
+
buttonPrevious.state.isEnabled = 0 < value;
|
|
76804
|
+
}
|
|
76805
|
+
if (top_1) {
|
|
76806
|
+
this.dots0.show();
|
|
76807
|
+
}
|
|
76808
|
+
else {
|
|
76809
|
+
this.dots0.hide();
|
|
76810
|
+
}
|
|
76811
|
+
var buttonPages0 = this.buttonPages0;
|
|
76812
|
+
for (var i = 0, imax = buttonPages0.length; i < imax; ++i) {
|
|
76813
|
+
var index = value - i - 1;
|
|
76814
|
+
var buttonPage = buttonPages0[i];
|
|
76815
|
+
if (from <= index && index <= to) {
|
|
76816
|
+
buttonPage.text = index + 1;
|
|
76817
|
+
buttonPage.show();
|
|
76818
|
+
}
|
|
76819
|
+
else {
|
|
76820
|
+
if (top_1 && i === imax - 1) {
|
|
76821
|
+
buttonPage.text = 1;
|
|
76822
|
+
buttonPage.show();
|
|
76823
|
+
}
|
|
76824
|
+
else {
|
|
76825
|
+
buttonPage.hide();
|
|
76826
|
+
}
|
|
76827
|
+
}
|
|
76828
|
+
}
|
|
76829
|
+
this.page.text = value + 1;
|
|
76830
|
+
var buttonPages1 = this.buttonPages1;
|
|
76831
|
+
for (var i = 0, imax = buttonPages1.length; i < imax; ++i) {
|
|
76832
|
+
var index = value + i + 1;
|
|
76833
|
+
var buttonPage = buttonPages1[i];
|
|
76834
|
+
if (from <= index && index <= to) {
|
|
76835
|
+
buttonPage.text = index + 1;
|
|
76836
|
+
buttonPage.show();
|
|
76837
|
+
}
|
|
76838
|
+
else {
|
|
76839
|
+
if (last && i === imax - 1) {
|
|
76840
|
+
buttonPage.text = size;
|
|
76841
|
+
buttonPage.show();
|
|
76842
|
+
}
|
|
76843
|
+
else {
|
|
76844
|
+
buttonPage.hide();
|
|
76845
|
+
}
|
|
76846
|
+
}
|
|
76847
|
+
}
|
|
76848
|
+
if (last) {
|
|
76849
|
+
this.dots1.show();
|
|
76850
|
+
}
|
|
76851
|
+
else {
|
|
76852
|
+
this.dots1.hide();
|
|
76853
|
+
}
|
|
76854
|
+
var buttonNext = this.buttonNext;
|
|
76855
|
+
if (buttonNext != null) {
|
|
76856
|
+
buttonNext.state.isEnabled = value < size - 1;
|
|
76857
|
+
}
|
|
76858
|
+
var buttonLast = this.buttonLast;
|
|
76859
|
+
if (buttonLast != null) {
|
|
76860
|
+
buttonLast.state.isEnabled = value < size - 1;
|
|
76861
|
+
}
|
|
76146
76862
|
}
|
|
76147
76863
|
};
|
|
76148
76864
|
DPagination.prototype.getType = function () {
|
|
@@ -84356,6 +85072,7 @@ exports.DDialogSaveAs = DDialogSaveAs;
|
|
|
84356
85072
|
exports.DDialogSelect = DDialogSelect;
|
|
84357
85073
|
exports.DDialogSelectList = DDialogSelectList;
|
|
84358
85074
|
exports.DDialogSelectListItem = DDialogSelectListItem;
|
|
85075
|
+
exports.DDialogSelectListItemUpdater = DDialogSelectListItemUpdater;
|
|
84359
85076
|
exports.DDialogSelectSearh = DDialogSelectSearh;
|
|
84360
85077
|
exports.DDialogState = DDialogState;
|
|
84361
85078
|
exports.DDialogTime = DDialogTime;
|
|
@@ -84487,10 +85204,15 @@ exports.DNoteSmallNoItemsFound = DNoteSmallNoItemsFound;
|
|
|
84487
85204
|
exports.DNoteSmallSearching = DNoteSmallSearching;
|
|
84488
85205
|
exports.DNotification = DNotification;
|
|
84489
85206
|
exports.DPagination = DPagination;
|
|
84490
|
-
exports.
|
|
84491
|
-
exports.
|
|
84492
|
-
exports.
|
|
85207
|
+
exports.DPaginationButtonLast = DPaginationButtonLast;
|
|
85208
|
+
exports.DPaginationButtonNext = DPaginationButtonNext;
|
|
85209
|
+
exports.DPaginationButtonPage = DPaginationButtonPage;
|
|
85210
|
+
exports.DPaginationButtonPrevious = DPaginationButtonPrevious;
|
|
85211
|
+
exports.DPaginationButtonTop = DPaginationButtonTop;
|
|
85212
|
+
exports.DPaginationDots = DPaginationDots;
|
|
85213
|
+
exports.DPaginationPage = DPaginationPage;
|
|
84493
85214
|
exports.DPane = DPane;
|
|
85215
|
+
exports.DPaneScrollBar = DPaneScrollBar;
|
|
84494
85216
|
exports.DPickerColor = DPickerColor;
|
|
84495
85217
|
exports.DPickerColorAndAlpha = DPickerColorAndAlpha;
|
|
84496
85218
|
exports.DPickerColorGradient = DPickerColorGradient;
|
|
@@ -84519,6 +85241,7 @@ exports.DPickerTimeBounds = DPickerTimeBounds;
|
|
|
84519
85241
|
exports.DPickerTimeRange = DPickerTimeRange;
|
|
84520
85242
|
exports.DPickerTimes = DPickerTimes;
|
|
84521
85243
|
exports.DScalarExpression = DScalarExpression;
|
|
85244
|
+
exports.DScalarExpressionNodeType = DScalarExpressionNodeType;
|
|
84522
85245
|
exports.DScalarFunctions = DScalarFunctions;
|
|
84523
85246
|
exports.DScrollBar = DScrollBar;
|
|
84524
85247
|
exports.DScrollBarHorizontal = DScrollBarHorizontal;
|
|
@@ -84586,6 +85309,7 @@ exports.DTableHeader = DTableHeader;
|
|
|
84586
85309
|
exports.DTableHeaderCell = DTableHeaderCell;
|
|
84587
85310
|
exports.DTableHeaderCellCheck = DTableHeaderCellCheck;
|
|
84588
85311
|
exports.DTableRow = DTableRow;
|
|
85312
|
+
exports.DTableScrollBar = DTableScrollBar;
|
|
84589
85313
|
exports.DTableState = DTableState;
|
|
84590
85314
|
exports.DText = DText;
|
|
84591
85315
|
exports.DTextBase = DTextBase;
|
|
@@ -84618,8 +85342,9 @@ exports.DThemeDarkChartAxisBase = DThemeDarkChartAxisBase;
|
|
|
84618
85342
|
exports.DThemeDarkChartAxisX = DThemeDarkChartAxisX;
|
|
84619
85343
|
exports.DThemeDarkChartAxisXDatetime = DThemeDarkChartAxisXDatetime;
|
|
84620
85344
|
exports.DThemeDarkChartAxisY = DThemeDarkChartAxisY;
|
|
84621
|
-
exports.
|
|
84622
|
-
exports.
|
|
85345
|
+
exports.DThemeDarkChartCoordinate = DThemeDarkChartCoordinate;
|
|
85346
|
+
exports.DThemeDarkChartCoordinateTick = DThemeDarkChartCoordinateTick;
|
|
85347
|
+
exports.DThemeDarkChartCoordinateTransform = DThemeDarkChartCoordinateTransform;
|
|
84623
85348
|
exports.DThemeDarkChartLegend = DThemeDarkChartLegend;
|
|
84624
85349
|
exports.DThemeDarkChartLegendItem = DThemeDarkChartLegendItem;
|
|
84625
85350
|
exports.DThemeDarkChartOverview = DThemeDarkChartOverview;
|
|
@@ -84727,9 +85452,13 @@ exports.DThemeDarkNoteSmallError = DThemeDarkNoteSmallError;
|
|
|
84727
85452
|
exports.DThemeDarkNoteSmallNoItemsFound = DThemeDarkNoteSmallNoItemsFound;
|
|
84728
85453
|
exports.DThemeDarkNoteSmallSearching = DThemeDarkNoteSmallSearching;
|
|
84729
85454
|
exports.DThemeDarkPagination = DThemeDarkPagination;
|
|
84730
|
-
exports.
|
|
84731
|
-
exports.
|
|
84732
|
-
exports.
|
|
85455
|
+
exports.DThemeDarkPaginationButtonLast = DThemeDarkPaginationButtonLast;
|
|
85456
|
+
exports.DThemeDarkPaginationButtonNext = DThemeDarkPaginationButtonNext;
|
|
85457
|
+
exports.DThemeDarkPaginationButtonPage = DThemeDarkPaginationButtonPage;
|
|
85458
|
+
exports.DThemeDarkPaginationButtonPrevious = DThemeDarkPaginationButtonPrevious;
|
|
85459
|
+
exports.DThemeDarkPaginationButtonTop = DThemeDarkPaginationButtonTop;
|
|
85460
|
+
exports.DThemeDarkPaginationDots = DThemeDarkPaginationDots;
|
|
85461
|
+
exports.DThemeDarkPaginationPage = DThemeDarkPaginationPage;
|
|
84733
85462
|
exports.DThemeDarkPane = DThemeDarkPane;
|
|
84734
85463
|
exports.DThemeDarkPickerColor = DThemeDarkPickerColor;
|
|
84735
85464
|
exports.DThemeDarkPickerColorGradient = DThemeDarkPickerColorGradient;
|
|
@@ -84816,8 +85545,9 @@ exports.DThemeWhiteChartAxisBase = DThemeWhiteChartAxisBase;
|
|
|
84816
85545
|
exports.DThemeWhiteChartAxisX = DThemeWhiteChartAxisX;
|
|
84817
85546
|
exports.DThemeWhiteChartAxisXDatetime = DThemeWhiteChartAxisXDatetime;
|
|
84818
85547
|
exports.DThemeWhiteChartAxisY = DThemeWhiteChartAxisY;
|
|
84819
|
-
exports.
|
|
84820
|
-
exports.
|
|
85548
|
+
exports.DThemeWhiteChartCoordinate = DThemeWhiteChartCoordinate;
|
|
85549
|
+
exports.DThemeWhiteChartCoordinateTick = DThemeWhiteChartCoordinateTick;
|
|
85550
|
+
exports.DThemeWhiteChartCoordinateTransform = DThemeWhiteChartCoordinateTransform;
|
|
84821
85551
|
exports.DThemeWhiteChartLegend = DThemeWhiteChartLegend;
|
|
84822
85552
|
exports.DThemeWhiteChartLegendItem = DThemeWhiteChartLegendItem;
|
|
84823
85553
|
exports.DThemeWhiteChartOverview = DThemeWhiteChartOverview;
|
|
@@ -84925,9 +85655,13 @@ exports.DThemeWhiteNoteSmallError = DThemeWhiteNoteSmallError;
|
|
|
84925
85655
|
exports.DThemeWhiteNoteSmallNoItemsFound = DThemeWhiteNoteSmallNoItemsFound;
|
|
84926
85656
|
exports.DThemeWhiteNoteSmallSearching = DThemeWhiteNoteSmallSearching;
|
|
84927
85657
|
exports.DThemeWhitePagination = DThemeWhitePagination;
|
|
84928
|
-
exports.
|
|
84929
|
-
exports.
|
|
84930
|
-
exports.
|
|
85658
|
+
exports.DThemeWhitePaginationButtonLast = DThemeWhitePaginationButtonLast;
|
|
85659
|
+
exports.DThemeWhitePaginationButtonNext = DThemeWhitePaginationButtonNext;
|
|
85660
|
+
exports.DThemeWhitePaginationButtonPage = DThemeWhitePaginationButtonPage;
|
|
85661
|
+
exports.DThemeWhitePaginationButtonPrevious = DThemeWhitePaginationButtonPrevious;
|
|
85662
|
+
exports.DThemeWhitePaginationButtonTop = DThemeWhitePaginationButtonTop;
|
|
85663
|
+
exports.DThemeWhitePaginationDots = DThemeWhitePaginationDots;
|
|
85664
|
+
exports.DThemeWhitePaginationPage = DThemeWhitePaginationPage;
|
|
84931
85665
|
exports.DThemeWhitePane = DThemeWhitePane;
|
|
84932
85666
|
exports.DThemeWhitePickerColor = DThemeWhitePickerColor;
|
|
84933
85667
|
exports.DThemeWhitePickerColorGradient = DThemeWhitePickerColorGradient;
|
|
@@ -85012,6 +85746,7 @@ exports.DynamicAtlasItemWhite = DynamicAtlasItemWhite;
|
|
|
85012
85746
|
exports.DynamicFontAtlas = DynamicFontAtlas;
|
|
85013
85747
|
exports.DynamicFontAtlasCharacter = DynamicFontAtlasCharacter;
|
|
85014
85748
|
exports.DynamicFontAtlasCharacterOrigin = DynamicFontAtlasCharacterOrigin;
|
|
85749
|
+
exports.DynamicFontAtlasCharacterType = DynamicFontAtlasCharacterType;
|
|
85015
85750
|
exports.DynamicFontAtlasFont = DynamicFontAtlasFont;
|
|
85016
85751
|
exports.DynamicFontAtlases = DynamicFontAtlases;
|
|
85017
85752
|
exports.DynamicSDFFontAtlas = DynamicSDFFontAtlas;
|
|
@@ -85263,6 +85998,36 @@ exports.EThemeDarkShape = EThemeDarkShape;
|
|
|
85263
85998
|
exports.EThemeDarkShapeActionValue = EThemeDarkShapeActionValue;
|
|
85264
85999
|
exports.EThemeWhiteShape = EThemeWhiteShape;
|
|
85265
86000
|
exports.EThemeWhiteShapeActionValue = EThemeWhiteShapeActionValue;
|
|
86001
|
+
exports.FormatNodeA = FormatNodeA;
|
|
86002
|
+
exports.FormatNodeD = FormatNodeD;
|
|
86003
|
+
exports.FormatNodeH = FormatNodeH;
|
|
86004
|
+
exports.FormatNodeM = FormatNodeM;
|
|
86005
|
+
exports.FormatNodeP = FormatNodeP;
|
|
86006
|
+
exports.FormatNodePadding = FormatNodePadding;
|
|
86007
|
+
exports.FormatNodeParenthesis = FormatNodeParenthesis;
|
|
86008
|
+
exports.FormatNodePlus = FormatNodePlus;
|
|
86009
|
+
exports.FormatNodePrecision = FormatNodePrecision;
|
|
86010
|
+
exports.FormatNodeRP = FormatNodeRP;
|
|
86011
|
+
exports.FormatNodeSpace = FormatNodeSpace;
|
|
86012
|
+
exports.FormatNodeString = FormatNodeString;
|
|
86013
|
+
exports.FormatNodeY = FormatNodeY;
|
|
86014
|
+
exports.FormatNodea = FormatNodea;
|
|
86015
|
+
exports.FormatNoded = FormatNoded;
|
|
86016
|
+
exports.FormatNodee = FormatNodee;
|
|
86017
|
+
exports.FormatNodef = FormatNodef;
|
|
86018
|
+
exports.FormatNodefsi = FormatNodefsi;
|
|
86019
|
+
exports.FormatNodeg = FormatNodeg;
|
|
86020
|
+
exports.FormatNodeh = FormatNodeh;
|
|
86021
|
+
exports.FormatNodem = FormatNodem;
|
|
86022
|
+
exports.FormatNodemi = FormatNodemi;
|
|
86023
|
+
exports.FormatNodep = FormatNodep;
|
|
86024
|
+
exports.FormatNoderd = FormatNoderd;
|
|
86025
|
+
exports.FormatNoderp = FormatNoderp;
|
|
86026
|
+
exports.FormatNodes = FormatNodes;
|
|
86027
|
+
exports.FormatNodesdt = FormatNodesdt;
|
|
86028
|
+
exports.FormatNodessi = FormatNodessi;
|
|
86029
|
+
exports.FormatNodey = FormatNodey;
|
|
86030
|
+
exports.FormatNodez = FormatNodez;
|
|
85266
86031
|
exports.IMAGE_SDF_INDEX_COUNT = IMAGE_SDF_INDEX_COUNT;
|
|
85267
86032
|
exports.IMAGE_SDF_VERTEX_COUNT = IMAGE_SDF_VERTEX_COUNT;
|
|
85268
86033
|
exports.IMAGE_SDF_WORLD_SIZE = IMAGE_SDF_WORLD_SIZE;
|
|
@@ -85286,6 +86051,7 @@ exports.TRIANGLE_WORLD_SIZE = TRIANGLE_WORLD_SIZE;
|
|
|
85286
86051
|
exports.UtilAlpha = UtilAlpha;
|
|
85287
86052
|
exports.UtilAttach = UtilAttach;
|
|
85288
86053
|
exports.UtilAttachAlign = UtilAttachAlign;
|
|
86054
|
+
exports.UtilCharacterIterator = UtilCharacterIterator;
|
|
85289
86055
|
exports.UtilClickOutside = UtilClickOutside;
|
|
85290
86056
|
exports.UtilClipboard = UtilClipboard;
|
|
85291
86057
|
exports.UtilExtract = UtilExtract;
|
|
@@ -85637,7 +86403,7 @@ exports.toLinkOptions = toLinkOptions;
|
|
|
85637
86403
|
exports.toPadded = toPadded;
|
|
85638
86404
|
exports.toPointsBoundary = toPointsBoundary;
|
|
85639
86405
|
exports.toPointsCount = toPointsCount;
|
|
85640
|
-
exports.
|
|
86406
|
+
exports.toResized = toResized;
|
|
85641
86407
|
exports.toScaleInvariant = toScaleInvariant;
|
|
85642
86408
|
exports.toSizeNormalized = toSizeNormalized;
|
|
85643
86409
|
exports.toSizeRounded = toSizeRounded;
|