@wcardinal/wcardinal-ui 0.430.0 → 0.432.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-chart-plot-area-twofold-sub-base.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-chart-plot-area.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-chart-selection-container-impl.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-container.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-shape-base.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +9 -0
- package/dist/types/wcardinal/ui/d-chart-selection-sub-impl.d.ts +6 -1
- package/dist/types/wcardinal/ui/d-chart-selection-sub.d.ts +18 -1
- package/dist/types/wcardinal/ui/d-chart-selection.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-editor-snap.d.ts +10 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-editor.d.ts +3 -1
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-diagram-canvas-editor.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-diagram-canvas-editor.d.ts +1 -0
- package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js +3 -0
- package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-plot-area.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js +2 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js +2 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape-base.js +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-simple.js +17 -4
- package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +160 -61
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js +84 -22
- package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-editor.js +22 -10
- package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
- package/dist/wcardinal/ui/snapper/e-snapper-grid.js +1 -1
- package/dist/wcardinal/ui/snapper/e-snapper-grid.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-diagram-canvas-editor.js +3 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-diagram-canvas-editor.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-diagram-canvas-editor.js +3 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-diagram-canvas-editor.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +4 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +4 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +4 -1
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +4 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +4 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +4 -1
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +298 -101
- package/dist/wcardinal-ui.js +292 -101
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { DChartCoordinateContainer } from "./d-chart-coordinate-container";
|
|
|
7
7
|
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
8
8
|
import { DChartAxisContainerImpl } from "./d-chart-axis-container-impl";
|
|
9
9
|
import { DChartPlotAreaTwofoldSub, DChartPlotAreaTwofoldSubOptions } from "./d-chart-plot-area-twofold-sub";
|
|
10
|
-
import { Point, Rectangle } from "pixi.js";
|
|
10
|
+
import { DisplayObject, IPoint, Point, Rectangle } from "pixi.js";
|
|
11
11
|
import { DChartRegion } from "./d-chart-region";
|
|
12
12
|
import { DChartAxisPosition } from "./d-chart-axis-position";
|
|
13
13
|
import { EShapeContainer } from "./shape/e-shape-container";
|
|
@@ -45,6 +45,7 @@ export declare abstract class DChartPlotAreaTwofoldSubBase<CHART extends DBase =
|
|
|
45
45
|
getSelectionBoundsX(): Rectangle;
|
|
46
46
|
getSelectionBoundsY(): Rectangle;
|
|
47
47
|
toBoundsDirty(): void;
|
|
48
|
+
toLocal(position: IPoint, from?: DisplayObject, result?: Point, skipUpdate?: boolean): Point;
|
|
48
49
|
abstract getContainerBounds(): PIXI.Rectangle;
|
|
49
50
|
destroy(): void;
|
|
50
51
|
}
|
|
@@ -3,7 +3,7 @@ import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
|
3
3
|
import { DChartCoordinateContainer } from "./d-chart-coordinate-container";
|
|
4
4
|
import { DChartPlotAreaContainer } from "./d-chart-plot-area-container";
|
|
5
5
|
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
6
|
-
import { Rectangle } from "pixi.js";
|
|
6
|
+
import { DisplayObject, IPoint, Point, Rectangle } from "pixi.js";
|
|
7
7
|
import { DView, DViewOptions } from "./d-view";
|
|
8
8
|
import { DApplicationTarget } from "./d-application-like";
|
|
9
9
|
import { DChartRegion } from "./d-chart-region";
|
|
@@ -35,6 +35,7 @@ export interface DChartPlotAreaLike<CHART extends DBase = DBase> extends DApplic
|
|
|
35
35
|
getSelectionBoundsX(): Rectangle;
|
|
36
36
|
getSelectionBoundsY(): Rectangle;
|
|
37
37
|
getContainerBounds(): Rectangle;
|
|
38
|
+
toLocal(position: IPoint, from?: DisplayObject, result?: Point, skipUpdate?: boolean): Point;
|
|
38
39
|
}
|
|
39
40
|
export interface DChartPlotArea<CHART extends DBase = DBase> extends DBase {
|
|
40
41
|
readonly chart: CHART;
|
|
@@ -12,7 +12,7 @@ export declare class DChartSelectionContainerImpl<CHART extends DBase = DBase> i
|
|
|
12
12
|
get y(): DChartSelectionShape<CHART>;
|
|
13
13
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
14
14
|
unbind(): void;
|
|
15
|
-
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
15
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): void;
|
|
16
16
|
unset(): void;
|
|
17
17
|
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
18
18
|
}
|
|
@@ -12,7 +12,7 @@ export interface DChartSelectionContainer<CHART extends DBase = DBase> {
|
|
|
12
12
|
readonly y: DChartSelectionShape<CHART>;
|
|
13
13
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
14
14
|
unbind(): void;
|
|
15
|
-
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
15
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): void;
|
|
16
16
|
unset(): void;
|
|
17
17
|
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
18
18
|
}
|
|
@@ -18,8 +18,8 @@ export declare abstract class DChartSelectionShapeBase<CHART extends DBase = DBa
|
|
|
18
18
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
19
19
|
unbind(): void;
|
|
20
20
|
protected newShape(state: DBaseStateSet, theme: DThemeChartSelectionShape): EShape;
|
|
21
|
-
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
22
|
-
protected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART>): void;
|
|
21
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): void;
|
|
22
|
+
protected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART> | null): void;
|
|
23
23
|
unset(): void;
|
|
24
24
|
abstract update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
25
25
|
protected toTheme(options?: DChartSelectionShapeOptions<CHART>): DThemeChartSelectionShape;
|
|
@@ -20,7 +20,7 @@ export interface DThemeChartSelectionShape {
|
|
|
20
20
|
export interface DChartSelectionShape<CHART extends DBase = DBase> {
|
|
21
21
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
22
22
|
unbind(): void;
|
|
23
|
-
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
23
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): void;
|
|
24
24
|
unset(): void;
|
|
25
25
|
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
26
26
|
}
|
|
@@ -12,10 +12,14 @@ export interface DChartSelectionSimpleDismissTapOptions {
|
|
|
12
12
|
export interface DChartSelectionSimpleDismissLongPressOptions {
|
|
13
13
|
enable?: boolean;
|
|
14
14
|
}
|
|
15
|
+
export interface DChartSelectionSimpleDismissNoSeriesOptions {
|
|
16
|
+
enable?: boolean;
|
|
17
|
+
}
|
|
15
18
|
export interface DChartSelectionSimpleDismissOptions {
|
|
16
19
|
enable?: boolean;
|
|
17
20
|
tap?: DChartSelectionSimpleDismissTapOptions;
|
|
18
21
|
longPress?: DChartSelectionSimpleDismissLongPressOptions;
|
|
22
|
+
noSeries?: DChartSelectionSimpleDismissNoSeriesOptions;
|
|
19
23
|
}
|
|
20
24
|
export interface DChartSelectionSimpleOptions<CHART extends DBase = DBase, EMITTER = any> {
|
|
21
25
|
selected?: DChartSelectionSubOptions<CHART>;
|
|
@@ -28,6 +32,7 @@ export interface DChartSelectionSimpleDismiss {
|
|
|
28
32
|
enable: boolean;
|
|
29
33
|
tap: DChartSelectionSimpleDismissTap;
|
|
30
34
|
longPress: DChartSelectionSimpleDismissLongPress;
|
|
35
|
+
noSeries: DChartSelectionSimpleDismissNoSeries;
|
|
31
36
|
}
|
|
32
37
|
export interface DChartSelectionSimpleDismissTap {
|
|
33
38
|
enable: boolean;
|
|
@@ -36,6 +41,9 @@ export interface DChartSelectionSimpleDismissTap {
|
|
|
36
41
|
export interface DChartSelectionSimpleDismissLongPress {
|
|
37
42
|
enable: boolean;
|
|
38
43
|
}
|
|
44
|
+
export interface DChartSelectionSimpleDismissNoSeries {
|
|
45
|
+
enable: boolean;
|
|
46
|
+
}
|
|
39
47
|
export declare class DChartSelectionSimple<CHART extends DBase = DBase> extends utils.EventEmitter implements DChartSelection<CHART> {
|
|
40
48
|
protected static WORK_SELECT: DChartSeriesHitResult;
|
|
41
49
|
protected _container: DChartSeriesContainer<CHART> | null;
|
|
@@ -49,6 +57,7 @@ export declare class DChartSelectionSimple<CHART extends DBase = DBase> extends
|
|
|
49
57
|
protected toDismiss(options?: DChartSelectionSimpleOptions<CHART>): DChartSelectionSimpleDismiss;
|
|
50
58
|
protected toDismissTap(options?: DChartSelectionSimpleDismissTapOptions): DChartSelectionSimpleDismissTap;
|
|
51
59
|
protected toDismissLongPress(options?: DChartSelectionSimpleDismissLongPressOptions): DChartSelectionSimpleDismissLongPress;
|
|
60
|
+
protected toDismissNoSeries(options?: DChartSelectionSimpleDismissNoSeriesOptions): DChartSelectionSimpleDismissNoSeries;
|
|
52
61
|
protected newSelected(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
|
|
53
62
|
protected newHovered(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
|
|
54
63
|
protected toSelectedOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
|
|
@@ -10,6 +10,7 @@ import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
|
10
10
|
export declare class DChartSelectionSubImpl<CHART extends DBase = DBase> extends utils.EventEmitter implements DChartSelectionSub<CHART> {
|
|
11
11
|
protected _container: DChartSeriesContainer<CHART> | null;
|
|
12
12
|
protected _isEnabled: boolean;
|
|
13
|
+
protected _isVisible: boolean;
|
|
13
14
|
protected _series: DChartSeries<CHART> | null;
|
|
14
15
|
protected _coordinateX: DChartCoordinate<CHART> | null;
|
|
15
16
|
protected _coordinateY: DChartCoordinate<CHART> | null;
|
|
@@ -22,11 +23,15 @@ export declare class DChartSelectionSubImpl<CHART extends DBase = DBase> extends
|
|
|
22
23
|
constructor(options: DChartSelectionSubOptions<CHART>);
|
|
23
24
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
24
25
|
unbind(): void;
|
|
26
|
+
get visible(): boolean;
|
|
25
27
|
get series(): DChartSeries<CHART> | null;
|
|
26
28
|
get position(): Point;
|
|
27
29
|
get gridline(): DChartSelectionContainer<CHART>;
|
|
28
30
|
get marker(): DChartSelectionMarker<CHART>;
|
|
29
|
-
set(
|
|
31
|
+
set(x: number, y: number): void;
|
|
32
|
+
set(series: DChartSeries<CHART>, result: DChartSeriesHitResult): void;
|
|
33
|
+
protected set1(x: number, y: number): void;
|
|
34
|
+
protected set2(series: DChartSeries<CHART>, result: DChartSeriesHitResult): void;
|
|
30
35
|
unset(): void;
|
|
31
36
|
update(): boolean;
|
|
32
37
|
}
|
|
@@ -18,11 +18,28 @@ export interface DThemeChartSelectionSub {
|
|
|
18
18
|
isEnabled(): boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface DChartSelectionSub<CHART extends DBase = DBase> extends utils.EventEmitter {
|
|
21
|
+
readonly visible: boolean;
|
|
21
22
|
readonly series: DChartSeries<CHART> | null;
|
|
22
23
|
readonly position: Point;
|
|
23
24
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
24
25
|
unbind(): void;
|
|
25
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Sets a series to null and set a position to the given global position.
|
|
28
|
+
*
|
|
29
|
+
* @param x a global X position
|
|
30
|
+
* @param y a global Y position
|
|
31
|
+
*/
|
|
32
|
+
set(x: number, y: number): void;
|
|
33
|
+
/**
|
|
34
|
+
* Sets a series and a position.
|
|
35
|
+
*
|
|
36
|
+
* @param series a series to be set
|
|
37
|
+
* @param result a hit result
|
|
38
|
+
*/
|
|
39
|
+
set(series: DChartSeries<CHART>, result: DChartSeriesHitResult): void;
|
|
40
|
+
/**
|
|
41
|
+
* Clear a series and a position.
|
|
42
|
+
*/
|
|
26
43
|
unset(): void;
|
|
27
44
|
update(): boolean;
|
|
28
45
|
}
|
|
@@ -10,7 +10,7 @@ export declare const DChartSelectionPoint: {
|
|
|
10
10
|
readonly INTERSECTION: 3;
|
|
11
11
|
};
|
|
12
12
|
export type DChartSelectionPoint = (typeof DChartSelectionPoint)[keyof typeof DChartSelectionPoint];
|
|
13
|
-
export type DChartSelectionStyle<CHART extends DBase = DBase> = (shape: EShape, series: DChartSeries<CHART>) => void;
|
|
13
|
+
export type DChartSelectionStyle<CHART extends DBase = DBase> = (shape: EShape, series: DChartSeries<CHART> | null) => void;
|
|
14
14
|
export interface DChartSelection<CHART extends DBase = DBase> extends utils.EventEmitter {
|
|
15
15
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
16
16
|
unbind(): void;
|
|
@@ -23,6 +23,7 @@ export interface DDiagramCanvasEditorSnapGridOptions {
|
|
|
23
23
|
major?: DDiagramCanvasEditorSnapGridMajorOptions;
|
|
24
24
|
minor?: DDiagramCanvasEditorSnapGridMinorOptions;
|
|
25
25
|
size?: DDiagramCanvasEditorSnapGridSize;
|
|
26
|
+
adaptive?: boolean;
|
|
26
27
|
}
|
|
27
28
|
export interface DDiagramCanvasEditorSnapTargetOptions {
|
|
28
29
|
color?: number;
|
|
@@ -46,6 +47,7 @@ export interface DThemeDiagramCanvasEditorSnap {
|
|
|
46
47
|
getSnapGridMinorWidth(): number;
|
|
47
48
|
getSnapGridMinorStyle(): EShapeStrokeStyle;
|
|
48
49
|
getSnapGridSize(): DDiagramCanvasEditorSnapGridSize;
|
|
50
|
+
isSnapGridAdaptive(): boolean;
|
|
49
51
|
getSnapTargetColor(): number;
|
|
50
52
|
getSnapTargetAlpha(): number;
|
|
51
53
|
getSnapTargetWidth(): number;
|
|
@@ -73,6 +75,7 @@ export interface DDiagramCanvasEditorSnapGrid {
|
|
|
73
75
|
major: DDiagramCanvasEditorSnapGridMajor;
|
|
74
76
|
minor: DDiagramCanvasEditorSnapGridMinor;
|
|
75
77
|
size: DDiagramCanvasEditorSnapGridSize;
|
|
78
|
+
adaptive: boolean;
|
|
76
79
|
}
|
|
77
80
|
export interface DDiagramCanvasEditorSnapTarget {
|
|
78
81
|
color: number;
|
|
@@ -84,7 +87,9 @@ export declare class DDiagramCanvasEditorSnap {
|
|
|
84
87
|
protected _parent: DDiagramCanvasEditorSnapParent;
|
|
85
88
|
protected _controller: ESnapper;
|
|
86
89
|
protected _container: EShapeContainer;
|
|
90
|
+
protected _isDirty: boolean;
|
|
87
91
|
protected _grid: DDiagramCanvasEditorSnapGrid;
|
|
92
|
+
protected _gridScale: number;
|
|
88
93
|
protected _target: DDiagramCanvasEditorSnapTarget;
|
|
89
94
|
constructor(parent: DDiagramCanvasEditorSnapParent, theme: DThemeDiagramCanvasEditorSnap, options: DDiagramCanvasEditorSnapOptions);
|
|
90
95
|
protected toGrid(theme: DThemeDiagramCanvasEditorSnap, options?: DDiagramCanvasEditorSnapGridOptions): DDiagramCanvasEditorSnapGrid;
|
|
@@ -94,6 +99,10 @@ export declare class DDiagramCanvasEditorSnap {
|
|
|
94
99
|
protected onChange(): void;
|
|
95
100
|
get container(): EShapeContainer;
|
|
96
101
|
serialize(): DDiagramSerializedSnap;
|
|
97
|
-
|
|
102
|
+
onResize(newWidth: number, newHeight: number, oldWidth: number, oldHeight: number): void;
|
|
103
|
+
onScale(newX: number, newY: number, oldX: number, oldY: number): void;
|
|
104
|
+
protected toGridScale(sx: number): number;
|
|
105
|
+
onRender(): void;
|
|
106
|
+
protected updateAll(): void;
|
|
98
107
|
protected update(container: EShapeContainer, shapes: EShapeBar[], index: number, x: number, y: number, position: EShapeBarPosition, w: number, h: number, style: DDiagramCanvasEditorSnapGridMajor | DDiagramCanvasEditorSnapGridMinor | DDiagramCanvasEditorSnapTarget): void;
|
|
99
108
|
}
|
|
@@ -19,6 +19,8 @@ export declare class DDiagramCanvasEditor<THEME extends DThemeDiagramCanvasEdito
|
|
|
19
19
|
get shape(): DDiagramCanvasEditorShape;
|
|
20
20
|
protected newShape(): DDiagramCanvasEditorShape;
|
|
21
21
|
serialize(id?: number, thumbnail?: DDiagramCanvasEditorThumbnail): DDiagramSerialized;
|
|
22
|
-
|
|
22
|
+
onResize(newWidth: number, newHeight: number, oldWidth: number, oldHeight: number): void;
|
|
23
|
+
protected onScale(newX: number, newY: number, oldX: number, oldY: number): void;
|
|
24
|
+
render(renderer: PIXI.Renderer): void;
|
|
23
25
|
protected getType(): string;
|
|
24
26
|
}
|
|
@@ -17,6 +17,7 @@ export declare class DThemeDarkDiagramCanvasEditor extends DThemeDarkDiagramCanv
|
|
|
17
17
|
getSnapGridMinorWidth(): number;
|
|
18
18
|
getSnapGridMinorStyle(): EShapeStrokeStyle;
|
|
19
19
|
getSnapGridSize(): DDiagramCanvasEditorSnapGridSize;
|
|
20
|
+
isSnapGridAdaptive(): boolean;
|
|
20
21
|
getSnapTargetColor(): number;
|
|
21
22
|
getSnapTargetAlpha(): number;
|
|
22
23
|
getSnapTargetWidth(): number;
|
|
@@ -17,6 +17,7 @@ export declare class DThemeWhiteDiagramCanvasEditor extends DThemeWhiteDiagramCa
|
|
|
17
17
|
getSnapGridMinorWidth(): number;
|
|
18
18
|
getSnapGridMinorStyle(): EShapeStrokeStyle;
|
|
19
19
|
getSnapGridSize(): DDiagramCanvasEditorSnapGridSize;
|
|
20
|
+
isSnapGridAdaptive(): boolean;
|
|
20
21
|
getSnapTargetColor(): number;
|
|
21
22
|
getSnapTargetAlpha(): number;
|
|
22
23
|
getSnapTargetWidth(): number;
|
|
@@ -112,6 +112,9 @@ var DChartPlotAreaTwofoldSubBase = /** @class */ (function () {
|
|
|
112
112
|
DChartPlotAreaTwofoldSubBase.prototype.toBoundsDirty = function () {
|
|
113
113
|
this._isContainerBoundsDirty = true;
|
|
114
114
|
};
|
|
115
|
+
DChartPlotAreaTwofoldSubBase.prototype.toLocal = function (position, from, result, skipUpdate) {
|
|
116
|
+
return this._plotArea.toLocal(position, from, result, skipUpdate);
|
|
117
|
+
};
|
|
115
118
|
DChartPlotAreaTwofoldSubBase.prototype.destroy = function () {
|
|
116
119
|
this._container.destroy();
|
|
117
120
|
this._series.destroy();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-plot-area-twofold-sub-base.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-plot-area-twofold-sub-base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAKpF,OAAO,
|
|
1
|
+
{"version":3,"file":"d-chart-plot-area-twofold-sub-base.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-plot-area-twofold-sub-base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAKpF,OAAO,EAAyB,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAUlE;IAeC,sCACC,QAA+C,EAC/C,iBAA6B,EAC7B,IAAa,EACb,MAAc,EACd,kBAAmC,EACnC,OAAgD;QAEhD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,IAAI,SAAS,EAAE,CAAC;QACxC,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,EAAE,CAAC;QAE9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,YAAY;QACZ,IAAM,SAAS,GAAG,IAAI,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;QACjE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,aAAa;QACb,IAAI,CAAC,WAAW,GA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AAC;QACvB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IACF,mCAAC;AAAD,CAAC,AAtID,IAsIC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DChartPlotArea } from \"./d-chart-plot-area\";\nimport { DChartPlotAreaContainer } from \"./d-chart-plot-area-container\";\nimport { DBaseOverflowMaskSimple } from \"./d-base-overflow-mask-simple\";\nimport { DChartSeriesContainerImpl } from \"./d-chart-series-container-impl\";\nimport { DChartCoordinateContainer } from \"./d-chart-coordinate-container\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { DChartAxisContainerImpl } from \"./d-chart-axis-container-impl\";\nimport { DChartCoordinateContainerImpl } from \"./d-chart-coordinate-container-impl\";\nimport {\n\tDChartPlotAreaTwofoldSub,\n\tDChartPlotAreaTwofoldSubOptions\n} from \"./d-chart-plot-area-twofold-sub\";\nimport { DisplayObject, IPoint, Point, Rectangle } from \"pixi.js\";\nimport { DChartRegion } from \"./d-chart-region\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { EShapeContainer } from \"./shape/e-shape-container\";\nimport { DView } from \"./d-view\";\nimport { DBaseStateSet } from \"./d-base-state-set\";\n\nexport interface DChartPlotAreaTwofoldSubParent<CHART extends DBase = DBase>\n\textends DChartPlotArea<CHART> {}\n\nexport abstract class DChartPlotAreaTwofoldSubBase<CHART extends DBase = DBase>\n\timplements DChartPlotAreaTwofoldSub<CHART>\n{\n\tprotected _isContainerBoundsDirty: boolean;\n\tprotected _containerBounds: Rectangle;\n\tprotected _workPoint: Point;\n\n\tprotected _plotArea: DChartPlotAreaTwofoldSubParent<CHART>;\n\tprotected _container: DChartPlotAreaContainer;\n\tprotected _series: DChartSeriesContainerImpl<CHART>;\n\tprotected _coordinate: DChartCoordinateContainer<CHART>;\n\tprotected _axis: DChartAxisContainerImpl<CHART>;\n\tprotected _overflowMask?: DBaseOverflowMaskSimple;\n\tprotected _margin: number;\n\n\tconstructor(\n\t\tplotArea: DChartPlotAreaTwofoldSubParent<CHART>,\n\t\tonContainerChange: () => void,\n\t\tmask: boolean,\n\t\tmargin: number,\n\t\taxisShapeContainer: EShapeContainer,\n\t\toptions?: DChartPlotAreaTwofoldSubOptions<CHART>\n\t) {\n\t\tthis._isContainerBoundsDirty = true;\n\t\tthis._containerBounds = new Rectangle();\n\t\tthis._workPoint = new Point();\n\n\t\tthis._margin = margin;\n\n\t\tthis._plotArea = plotArea;\n\n\t\t// Container\n\t\tconst container = new DChartPlotAreaContainer(onContainerChange);\n\t\tthis._container = container;\n\n\t\t// Coordinate\n\t\tthis._coordinate = new DChartCoordinateContainerImpl(this, options?.coordinate);\n\n\t\t// Overflow mask\n\t\tif (mask) {\n\t\t\tcontainer.mask = this.getOverflowMask();\n\t\t}\n\n\t\t// Series\n\t\tthis._series = new DChartSeriesContainerImpl(this, options?.series);\n\n\t\t// Axis\n\t\tthis._axis = new DChartAxisContainerImpl(this, axisShapeContainer, options?.axis);\n\t}\n\n\tprotected abstract getOverflowMask(): DBaseOverflowMaskSimple;\n\n\tget plotArea(): DChartPlotArea<CHART> {\n\t\treturn this._plotArea;\n\t}\n\n\tget chart(): CHART {\n\t\treturn this._plotArea.chart;\n\t}\n\n\tget container(): DChartPlotAreaContainer {\n\t\treturn this._container;\n\t}\n\n\tget series(): DChartSeriesContainerImpl<CHART> {\n\t\treturn this._series;\n\t}\n\n\tget coordinate(): DChartCoordinateContainer<CHART> {\n\t\treturn this._coordinate;\n\t}\n\n\tget axis(): DChartAxisContainer<CHART> {\n\t\treturn this._axis;\n\t}\n\n\tget state(): DBaseStateSet {\n\t\treturn this._plotArea.state;\n\t}\n\n\tget view(): DView {\n\t\treturn this._plotArea.view;\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\ton(name: string, callback: Function, context?: any): this {\n\t\tthis._plotArea.on(name, callback, context);\n\t\treturn this;\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\toff(name: string, callback?: Function, context?: any): this {\n\t\tthis._plotArea.off(name, callback, context);\n\t\treturn this;\n\t}\n\n\tgetPixelDomain(result: DChartRegion): DChartRegion {\n\t\tconst plotArea = this._plotArea;\n\t\tconst padding = plotArea.padding;\n\t\tconst width = plotArea.width;\n\t\treturn result.set(padding.getLeft(), width - padding.getRight());\n\t}\n\n\tabstract getPixelRange(result: DChartRegion): DChartRegion;\n\n\tabstract getPixelBounds(): Rectangle;\n\n\tgetAxisBounds(position: DChartAxisPosition): Rectangle {\n\t\treturn this.getPixelBounds();\n\t}\n\n\tgetSelectionBoundsX(): Rectangle {\n\t\treturn this.getPixelBounds();\n\t}\n\n\tgetSelectionBoundsY(): Rectangle {\n\t\treturn this.getPixelBounds();\n\t}\n\n\ttoBoundsDirty(): void {\n\t\tthis._isContainerBoundsDirty = true;\n\t}\n\n\ttoLocal(position: IPoint, from?: DisplayObject, result?: Point, skipUpdate?: boolean): Point {\n\t\treturn this._plotArea.toLocal(position, from, result, skipUpdate);\n\t}\n\n\tabstract getContainerBounds(): PIXI.Rectangle;\n\n\tdestroy(): void {\n\t\tthis._container.destroy();\n\t\tthis._series.destroy();\n\t\tthis._axis.destroy();\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-plot-area.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-plot-area.ts"],"names":[],"mappings":"","sourcesContent":["import { DBase, DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { DChartCoordinateContainer } from \"./d-chart-coordinate-container\";\nimport { DChartPlotAreaContainer } from \"./d-chart-plot-area-container\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { Rectangle } from \"pixi.js\";\nimport { DView, DViewOptions } from \"./d-view\";\nimport { DApplicationTarget } from \"./d-application-like\";\nimport { DChartRegion } from \"./d-chart-region\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DBaseStateSet } from \"./d-base-state-set\";\n\nexport interface DChartPlotAreaOptions<\n\tCHART extends DBase = DBase,\n\tTHEME extends DThemeChartPlotArea = DThemeChartPlotArea\n> extends DBaseOptions<THEME> {\n\tmask?: boolean;\n\tview?: DViewOptions;\n}\n\nexport interface DThemeChartPlotArea extends DThemeBase {\n\tisOverflowMaskEnabled(): boolean;\n\tgetMargin(): number;\n}\n\nexport interface DChartPlotAreaLike<CHART extends DBase = DBase> extends DApplicationTarget {\n\treadonly chart: CHART;\n\treadonly plotArea: DChartPlotArea<CHART>;\n\treadonly coordinate: DChartCoordinateContainer<CHART>;\n\treadonly series: DChartSeriesContainer<CHART>;\n\treadonly container: DChartPlotAreaContainer;\n\treadonly axis: DChartAxisContainer<CHART>;\n\treadonly view: DView;\n\treadonly state: DBaseStateSet;\n\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\ton(name: string, callback: Function, context?: any): this;\n\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\toff(name: string, callback?: Function, context?: any): this;\n\n\tgetPixelDomain(result: DChartRegion): DChartRegion;\n\tgetPixelRange(result: DChartRegion): DChartRegion;\n\tgetPixelBounds(): Rectangle;\n\tgetAxisBounds(position: DChartAxisPosition): Rectangle;\n\tgetSelectionBoundsX(): Rectangle;\n\tgetSelectionBoundsY(): Rectangle;\n\tgetContainerBounds(): Rectangle;\n}\n\nexport interface DChartPlotArea<CHART extends DBase = DBase> extends DBase {\n\treadonly chart: CHART;\n\treadonly coordinate: DChartCoordinateContainer<CHART>;\n\treadonly series: DChartSeriesContainer<CHART>;\n\treadonly container: DChartPlotAreaContainer;\n\treadonly axis: DChartAxisContainer<CHART>;\n\treadonly view: DView;\n\n\tfit(\n\t\tduration?: number,\n\t\tdomainFrom?: number,\n\t\tdomainTo?: number,\n\t\trangeFrom?: number,\n\t\trangeTo?: number\n\t): this;\n\tgetPixelDomain(result: DChartRegion): DChartRegion;\n\tgetPixelRange(result: DChartRegion): DChartRegion;\n\tgetPixelBounds(): Rectangle;\n\tgetAxisBounds(position: DChartAxisPosition): Rectangle;\n\tgetSelectionBoundsX(): Rectangle;\n\tgetSelectionBoundsY(): Rectangle;\n\tgetContainerBounds(): Rectangle;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"d-chart-plot-area.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-plot-area.ts"],"names":[],"mappings":"","sourcesContent":["import { DBase, DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { DChartCoordinateContainer } from \"./d-chart-coordinate-container\";\nimport { DChartPlotAreaContainer } from \"./d-chart-plot-area-container\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { DisplayObject, IPoint, Point, Rectangle } from \"pixi.js\";\nimport { DView, DViewOptions } from \"./d-view\";\nimport { DApplicationTarget } from \"./d-application-like\";\nimport { DChartRegion } from \"./d-chart-region\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DBaseStateSet } from \"./d-base-state-set\";\n\nexport interface DChartPlotAreaOptions<\n\tCHART extends DBase = DBase,\n\tTHEME extends DThemeChartPlotArea = DThemeChartPlotArea\n> extends DBaseOptions<THEME> {\n\tmask?: boolean;\n\tview?: DViewOptions;\n}\n\nexport interface DThemeChartPlotArea extends DThemeBase {\n\tisOverflowMaskEnabled(): boolean;\n\tgetMargin(): number;\n}\n\nexport interface DChartPlotAreaLike<CHART extends DBase = DBase> extends DApplicationTarget {\n\treadonly chart: CHART;\n\treadonly plotArea: DChartPlotArea<CHART>;\n\treadonly coordinate: DChartCoordinateContainer<CHART>;\n\treadonly series: DChartSeriesContainer<CHART>;\n\treadonly container: DChartPlotAreaContainer;\n\treadonly axis: DChartAxisContainer<CHART>;\n\treadonly view: DView;\n\treadonly state: DBaseStateSet;\n\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\ton(name: string, callback: Function, context?: any): this;\n\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\toff(name: string, callback?: Function, context?: any): this;\n\n\tgetPixelDomain(result: DChartRegion): DChartRegion;\n\tgetPixelRange(result: DChartRegion): DChartRegion;\n\tgetPixelBounds(): Rectangle;\n\tgetAxisBounds(position: DChartAxisPosition): Rectangle;\n\tgetSelectionBoundsX(): Rectangle;\n\tgetSelectionBoundsY(): Rectangle;\n\tgetContainerBounds(): Rectangle;\n\ttoLocal(position: IPoint, from?: DisplayObject, result?: Point, skipUpdate?: boolean): Point;\n}\n\nexport interface DChartPlotArea<CHART extends DBase = DBase> extends DBase {\n\treadonly chart: CHART;\n\treadonly coordinate: DChartCoordinateContainer<CHART>;\n\treadonly series: DChartSeriesContainer<CHART>;\n\treadonly container: DChartPlotAreaContainer;\n\treadonly axis: DChartAxisContainer<CHART>;\n\treadonly view: DView;\n\n\tfit(\n\t\tduration?: number,\n\t\tdomainFrom?: number,\n\t\tdomainTo?: number,\n\t\trangeFrom?: number,\n\t\trangeTo?: number\n\t): this;\n\tgetPixelDomain(result: DChartRegion): DChartRegion;\n\tgetPixelRange(result: DChartRegion): DChartRegion;\n\tgetPixelBounds(): Rectangle;\n\tgetAxisBounds(position: DChartAxisPosition): Rectangle;\n\tgetSelectionBoundsX(): Rectangle;\n\tgetSelectionBoundsY(): Rectangle;\n\tgetContainerBounds(): Rectangle;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-container-impl.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-container-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH;IAMC,sCAAY,CAA8B,EAAE,CAA8B;QACzE,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACb,CAAC;IAED,sBAAI,2CAAC;aAAL;YACC,OAAO,IAAI,CAAC,EAAE,CAAC;QAChB,CAAC;;;OAAA;IAED,sBAAI,2CAAC;aAAL;YACC,OAAO,IAAI,CAAC,EAAE,CAAC;QAChB,CAAC;;;OAAA;IAED,2CAAI,GAAJ,UAAK,SAAuC;QAC3C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IAED,6CAAM,GAAN;QACC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,0CAAG,GAAH,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"d-chart-selection-container-impl.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-container-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH;IAMC,sCAAY,CAA8B,EAAE,CAA8B;QACzE,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACb,CAAC;IAED,sBAAI,2CAAC;aAAL;YACC,OAAO,IAAI,CAAC,EAAE,CAAC;QAChB,CAAC;;;OAAA;IAED,sBAAI,2CAAC;aAAL;YACC,OAAO,IAAI,CAAC,EAAE,CAAC;QAChB,CAAC;;;OAAA;IAED,2CAAI,GAAJ,UAAK,SAAuC;QAC3C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IAED,6CAAM,GAAN;QACC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,0CAAG,GAAH,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,MAAkC;QAElC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;IAED,4CAAK,GAAL;QACC,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;QAChB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;IAED,6CAAM,GAAN,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,MAAkC;QAElC,IAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;QAC/E,IAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;QAC/E,OAAO,UAAU,IAAI,UAAU,CAAC;IACjC,CAAC;IACF,mCAAC;AAAD,CAAC,AAtDD,IAsDC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DChartSelectionContainer } from \"./d-chart-selection-container\";\nimport { DChartSelectionShape } from \"./d-chart-selection-shape\";\nimport { DChartSeries } from \"./d-chart-series\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\n\nexport class DChartSelectionContainerImpl<CHART extends DBase = DBase>\n\timplements DChartSelectionContainer<CHART>\n{\n\tprotected _x: DChartSelectionShape<CHART>;\n\tprotected _y: DChartSelectionShape<CHART>;\n\n\tconstructor(x: DChartSelectionShape<CHART>, y: DChartSelectionShape<CHART>) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t}\n\n\tget x(): DChartSelectionShape<CHART> {\n\t\treturn this._x;\n\t}\n\n\tget y(): DChartSelectionShape<CHART> {\n\t\treturn this._y;\n\t}\n\n\tbind(container: DChartSeriesContainer<CHART>): void {\n\t\tthis._x.bind(container);\n\t\tthis._y.bind(container);\n\t}\n\n\tunbind(): void {\n\t\tthis._x.unbind();\n\t\tthis._y.unbind();\n\t}\n\n\tset(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): void {\n\t\tthis._x.set(container, position, mappedPosition, series);\n\t\tthis._y.set(container, position, mappedPosition, series);\n\t}\n\n\tunset(): void {\n\t\tthis._x.unset();\n\t\tthis._y.unset();\n\t}\n\n\tupdate(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): boolean {\n\t\tconst isXUpdated = this._x.update(container, position, mappedPosition, series);\n\t\tconst isYUpdated = this._y.update(container, position, mappedPosition, series);\n\t\treturn isXUpdated || isYUpdated;\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-container.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-container.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DChartSelectionShape, DChartSelectionShapeOptions } from \"./d-chart-selection-shape\";\nimport { DChartSeries } from \"./d-chart-series\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\n\nexport interface DChartSelectionContainerOptions<CHART extends DBase = DBase> {\n\tx?: DChartSelectionShapeOptions<CHART>;\n\ty?: DChartSelectionShapeOptions<CHART>;\n}\n\nexport interface DChartSelectionContainer<CHART extends DBase = DBase> {\n\treadonly x: DChartSelectionShape<CHART>;\n\treadonly y: DChartSelectionShape<CHART>;\n\n\tbind(container: DChartSeriesContainer<CHART>): void;\n\tunbind(): void;\n\tset(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART
|
|
1
|
+
{"version":3,"file":"d-chart-selection-container.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-container.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DChartSelectionShape, DChartSelectionShapeOptions } from \"./d-chart-selection-shape\";\nimport { DChartSeries } from \"./d-chart-series\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\n\nexport interface DChartSelectionContainerOptions<CHART extends DBase = DBase> {\n\tx?: DChartSelectionShapeOptions<CHART>;\n\ty?: DChartSelectionShapeOptions<CHART>;\n}\n\nexport interface DChartSelectionContainer<CHART extends DBase = DBase> {\n\treadonly x: DChartSelectionShape<CHART>;\n\treadonly y: DChartSelectionShape<CHART>;\n\n\tbind(container: DChartSeriesContainer<CHART>): void;\n\tunbind(): void;\n\tset(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): void;\n\tunset(): void;\n\tupdate(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): boolean;\n}\n"]}
|
|
@@ -16,7 +16,8 @@ var DChartSelectionGridlineX = /** @class */ (function (_super) {
|
|
|
16
16
|
var bounds = container.plotArea.getSelectionBoundsX();
|
|
17
17
|
shape.transform.position.set(mappedX, bounds.y + bounds.height * 0.5);
|
|
18
18
|
shape.size.set(0, bounds.height);
|
|
19
|
-
|
|
19
|
+
var hw = shape.stroke.width * 0.5;
|
|
20
|
+
shape.visible = bounds.x <= mappedX + hw && mappedX - hw <= bounds.x + bounds.width;
|
|
20
21
|
return true;
|
|
21
22
|
}
|
|
22
23
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-gridline-x.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-gridline-x.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E;IAEU,4CAA+B;IAFzC;;
|
|
1
|
+
{"version":3,"file":"d-chart-selection-gridline-x.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-gridline-x.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E;IAEU,4CAA+B;IAFzC;;IAyBA,CAAC;IAtBS,yCAAM,GAAf,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,MAAkC;QAElC,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,EAAE;YACV,IAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC;YACjC,IAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;YACxD,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;YACtE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,IAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC;YACpC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,IAAI,OAAO,GAAG,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;YACpF,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAES,0CAAO,GAAjB;QACC,OAAO,0BAA0B,CAAC;IACnC,CAAC;IACF,+BAAC;AAAD,CAAC,AAzBD,CAEU,wBAAwB,GAuBjC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DChartSelectionShapeBase } from \"./d-chart-selection-shape-base\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { DChartSeries } from \"./d-chart-series\";\n\nexport class DChartSelectionGridlineX<\n\tCHART extends DBase = DBase\n> extends DChartSelectionShapeBase<CHART> {\n\toverride update(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): boolean {\n\t\tconst shape = this._shape;\n\t\tif (shape) {\n\t\t\tconst mappedX = mappedPosition.x;\n\t\t\tconst bounds = container.plotArea.getSelectionBoundsX();\n\t\t\tshape.transform.position.set(mappedX, bounds.y + bounds.height * 0.5);\n\t\t\tshape.size.set(0, bounds.height);\n\t\t\tconst hw = shape.stroke.width * 0.5;\n\t\t\tshape.visible = bounds.x <= mappedX + hw && mappedX - hw <= bounds.x + bounds.width;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DChartSelectionGridlineX\";\n\t}\n}\n"]}
|
|
@@ -16,7 +16,8 @@ var DChartSelectionGridlineY = /** @class */ (function (_super) {
|
|
|
16
16
|
var bounds = container.plotArea.getSelectionBoundsY();
|
|
17
17
|
shape.transform.position.set(bounds.x + bounds.width * 0.5, mappedY);
|
|
18
18
|
shape.size.set(bounds.width, 0);
|
|
19
|
-
|
|
19
|
+
var hw = shape.stroke.width * 0.5;
|
|
20
|
+
shape.visible = bounds.y <= mappedY + hw && mappedY - hw <= bounds.y + bounds.height;
|
|
20
21
|
return true;
|
|
21
22
|
}
|
|
22
23
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-gridline-y.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-gridline-y.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E;IAEU,4CAA+B;IAFzC;;
|
|
1
|
+
{"version":3,"file":"d-chart-selection-gridline-y.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-gridline-y.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E;IAEU,4CAA+B;IAFzC;;IAyBA,CAAC;IAtBS,yCAAM,GAAf,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,MAA2B;QAE3B,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,EAAE;YACV,IAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC;YACjC,IAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;YACxD,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC;YACrE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAChC,IAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC;YACpC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,IAAI,OAAO,GAAG,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;YACrF,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAES,0CAAO,GAAjB;QACC,OAAO,0BAA0B,CAAC;IACnC,CAAC;IACF,+BAAC;AAAD,CAAC,AAzBD,CAEU,wBAAwB,GAuBjC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DChartSelectionShapeBase } from \"./d-chart-selection-shape-base\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { DChartSeries } from \"./d-chart-series\";\n\nexport class DChartSelectionGridlineY<\n\tCHART extends DBase = DBase\n> extends DChartSelectionShapeBase<CHART> {\n\toverride update(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART>\n\t): boolean {\n\t\tconst shape = this._shape;\n\t\tif (shape) {\n\t\t\tconst mappedY = mappedPosition.y;\n\t\t\tconst bounds = container.plotArea.getSelectionBoundsY();\n\t\t\tshape.transform.position.set(bounds.x + bounds.width * 0.5, mappedY);\n\t\t\tshape.size.set(bounds.width, 0);\n\t\t\tconst hw = shape.stroke.width * 0.5;\n\t\t\tshape.visible = bounds.y <= mappedY + hw && mappedY - hw <= bounds.y + bounds.height;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DChartSelectionGridlineY\";\n\t}\n}\n"]}
|
|
@@ -58,7 +58,7 @@ var DChartSelectionShapeBase = /** @class */ (function () {
|
|
|
58
58
|
DChartSelectionShapeBase.prototype.set = function (container, position, mappedPosition, series) {
|
|
59
59
|
this.update(container, position, mappedPosition, series);
|
|
60
60
|
var shape = this._shape;
|
|
61
|
-
if (shape) {
|
|
61
|
+
if (shape != null) {
|
|
62
62
|
this._style(shape, series);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-shape-base.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-shape-base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAU5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;IAWC,kCAAY,OAA4C;;QACvD,IAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAM,KAAK,GAAG,IAAI,iBAAiB,EAAE,CAAC,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,UAAU,CAAC,OAAO,CAAC,CAAC;QAChF,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC5D,IAAI,OAAO,IAAI,IAAI,EAAE;YACpB,IAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;YAC5B,IAAI,KAAK,IAAI,IAAI,EAAE;gBAClB,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE;oBACtB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;iBACvB;qBAAM;oBAC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AK,GAAL;QACC,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,EAAE;YACV,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;IACF,CAAC;IASS,0CAAO,GAAjB,UAAkB,OAA4C;QAC7D,IAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC;QAC7B,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;YACpB,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SAC5B;aAAM,IAAI,KAAK,IAAI,IAAI,EAAE;YACzB,OAAO,KAAK,CAAC;SACb;aAAM;YACN,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;SACrC;IACF,CAAC;IAES,2CAAQ,GAAlB,UAAmB,IAAY;QAC9B,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAGF,+BAAC;AAAD,CAAC,AA3GD,IA2GC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DBaseState } from \"./d-base-state\";\nimport { DBaseStateSet } from \"./d-base-state-set\";\nimport { DBaseStateSetImpl } from \"./d-base-state-set-impl\";\nimport { DChartSelectionStyle } from \"./d-chart-selection\";\nimport {\n\tDChartSelectionShape,\n\tDChartSelectionShapeOptions,\n\tDThemeChartSelectionShape\n} from \"./d-chart-selection-shape\";\nimport { DChartSeries } from \"./d-chart-series\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { EShape } from \"./shape/e-shape\";\nimport { DThemes } from \"./theme/d-themes\";\nimport { isString } from \"./util/is-string\";\nimport { isFunction } from \"./util/is-function\";\n\nexport abstract class DChartSelectionShapeBase<CHART extends DBase = DBase>\n\timplements DChartSelectionShape<CHART>\n{\n\tprotected _options?: DChartSelectionShapeOptions<CHART>;\n\tprotected _isEnabled: boolean;\n\tprotected _shape?: EShape;\n\tprotected _newShape?: (state: DBaseStateSet) => EShape;\n\tprotected _style: DChartSelectionStyle<CHART>;\n\tprotected _state: DBaseStateSet;\n\tprotected _theme: DThemeChartSelectionShape;\n\n\tconstructor(options?: DChartSelectionShapeOptions<CHART>) {\n\t\tconst theme = this.toTheme(options);\n\t\tthis._theme = theme;\n\t\tconst state = new DBaseStateSetImpl().add(options?.state ?? DBaseState.HOVERED);\n\t\tthis._state = state;\n\t\tthis._isEnabled = options?.enable ?? theme.isEnabled(state);\n\t\tif (options != null) {\n\t\t\tconst shape = options.shape;\n\t\t\tif (shape != null) {\n\t\t\t\tif (isFunction(shape)) {\n\t\t\t\t\tthis._newShape = shape;\n\t\t\t\t} else {\n\t\t\t\t\tthis._shape = shape;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis._style = options?.style ?? this.setStyle;\n\t}\n\n\tbind(container: DChartSeriesContainer<CHART>): void {\n\t\tif (this._isEnabled) {\n\t\t\tlet shape = this._shape;\n\t\t\tif (shape == null) {\n\t\t\t\tconst state = this._state;\n\t\t\t\tconst newShape = this._newShape;\n\t\t\t\tif (newShape != null) {\n\t\t\t\t\tshape = newShape(state);\n\t\t\t\t} else {\n\t\t\t\t\tshape = this.newShape(state, this._theme);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._shape = shape;\n\t\t\tshape.attach(container.plotArea.axis.container);\n\t\t\tshape.visible = false;\n\t\t}\n\t}\n\n\tunbind(): void {\n\t\tconst shape = this._shape;\n\t\tif (shape) {\n\t\t\tshape.detach();\n\t\t}\n\t}\n\n\tprotected newShape(state: DBaseStateSet, theme: DThemeChartSelectionShape): EShape {\n\t\treturn theme.newShape(state);\n\t}\n\n\tset(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): void {\n\t\tthis.update(container, position, mappedPosition, series);\n\n\t\tconst shape = this._shape;\n\t\tif (shape != null) {\n\t\t\tthis._style(shape, series);\n\t\t}\n\t}\n\n\tprotected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART> | null): void {\n\t\t// DO NOTHING\n\t}\n\n\tunset(): void {\n\t\tconst shape = this._shape;\n\t\tif (shape) {\n\t\t\tshape.visible = false;\n\t\t}\n\t}\n\n\tabstract update(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): boolean;\n\n\tprotected toTheme(options?: DChartSelectionShapeOptions<CHART>): DThemeChartSelectionShape {\n\t\tconst theme = options?.theme;\n\t\tif (isString(theme)) {\n\t\t\treturn this.getTheme(theme);\n\t\t} else if (theme != null) {\n\t\t\treturn theme;\n\t\t} else {\n\t\t\treturn this.getTheme(this.getType());\n\t\t}\n\t}\n\n\tprotected getTheme(type: string): DThemeChartSelectionShape {\n\t\treturn DThemes.getInstance().get(type);\n\t}\n\n\tprotected abstract getType(): string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-shape.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DBaseStateSet } from \"./d-base-state-set\";\nimport { DChartSelectionStyle } from \"./d-chart-selection\";\nimport { DChartSeries } from \"./d-chart-series\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { EShape } from \"./shape/e-shape\";\n\nexport type DChartSelectionShapeNewShape = (state: DBaseStateSet) => EShape;\n\nexport interface DChartSelectionShapeOptions<CHART extends DBase = DBase> {\n\tenable?: boolean;\n\tshape?: EShape | DChartSelectionShapeNewShape;\n\tstyle?: DChartSelectionStyle<CHART>;\n\tstate?: string;\n\ttheme?: string | DThemeChartSelectionShape;\n}\n\nexport interface DThemeChartSelectionShape {\n\tisEnabled(state: DBaseStateSet): boolean;\n\tnewShape(state: DBaseStateSet): EShape;\n}\n\nexport interface DChartSelectionShape<CHART extends DBase = DBase> {\n\tbind(container: DChartSeriesContainer<CHART>): void;\n\tunbind(): void;\n\tset(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART
|
|
1
|
+
{"version":3,"file":"d-chart-selection-shape.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DBaseStateSet } from \"./d-base-state-set\";\nimport { DChartSelectionStyle } from \"./d-chart-selection\";\nimport { DChartSeries } from \"./d-chart-series\";\nimport { DChartSeriesContainer } from \"./d-chart-series-container\";\nimport { EShape } from \"./shape/e-shape\";\n\nexport type DChartSelectionShapeNewShape = (state: DBaseStateSet) => EShape;\n\nexport interface DChartSelectionShapeOptions<CHART extends DBase = DBase> {\n\tenable?: boolean;\n\tshape?: EShape | DChartSelectionShapeNewShape;\n\tstyle?: DChartSelectionStyle<CHART>;\n\tstate?: string;\n\ttheme?: string | DThemeChartSelectionShape;\n}\n\nexport interface DThemeChartSelectionShape {\n\tisEnabled(state: DBaseStateSet): boolean;\n\tnewShape(state: DBaseStateSet): EShape;\n}\n\nexport interface DChartSelectionShape<CHART extends DBase = DBase> {\n\tbind(container: DChartSeriesContainer<CHART>): void;\n\tunbind(): void;\n\tset(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): void;\n\tunset(): void;\n\tupdate(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): boolean;\n}\n"]}
|
|
@@ -52,14 +52,16 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
|
|
|
52
52
|
return {
|
|
53
53
|
enable: (_a = dismiss.enable) !== null && _a !== void 0 ? _a : true,
|
|
54
54
|
tap: this.toDismissTap(dismiss.tap),
|
|
55
|
-
longPress: this.toDismissLongPress(dismiss.longPress)
|
|
55
|
+
longPress: this.toDismissLongPress(dismiss.longPress),
|
|
56
|
+
noSeries: this.toDismissNoSeries(dismiss.noSeries)
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
return {
|
|
60
61
|
enable: true,
|
|
61
62
|
tap: this.toDismissTap(),
|
|
62
|
-
longPress: this.toDismissLongPress()
|
|
63
|
+
longPress: this.toDismissLongPress(),
|
|
64
|
+
noSeries: this.toDismissNoSeries()
|
|
63
65
|
};
|
|
64
66
|
};
|
|
65
67
|
DChartSelectionSimple.prototype.toDismissTap = function (options) {
|
|
@@ -75,6 +77,12 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
|
|
|
75
77
|
enable: (_a = options === null || options === void 0 ? void 0 : options.enable) !== null && _a !== void 0 ? _a : true
|
|
76
78
|
};
|
|
77
79
|
};
|
|
80
|
+
DChartSelectionSimple.prototype.toDismissNoSeries = function (options) {
|
|
81
|
+
var _a;
|
|
82
|
+
return {
|
|
83
|
+
enable: (_a = options === null || options === void 0 ? void 0 : options.enable) !== null && _a !== void 0 ? _a : true
|
|
84
|
+
};
|
|
85
|
+
};
|
|
78
86
|
DChartSelectionSimple.prototype.newSelected = function (point, options) {
|
|
79
87
|
return new DChartSelectionSubImpl(this.toSelectedOptions(point, options));
|
|
80
88
|
};
|
|
@@ -140,7 +148,12 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
|
|
|
140
148
|
selected.set(series, result);
|
|
141
149
|
}
|
|
142
150
|
else {
|
|
143
|
-
|
|
151
|
+
if (dismiss.enable && dismiss.noSeries.enable) {
|
|
152
|
+
selected.unset();
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
selected.set(global_1.x, global_1.y);
|
|
156
|
+
}
|
|
144
157
|
}
|
|
145
158
|
}
|
|
146
159
|
};
|
|
@@ -168,7 +181,7 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
|
|
|
168
181
|
var result = DChartSelectionSimple.WORK_SELECT;
|
|
169
182
|
var global_2 = e.data.global;
|
|
170
183
|
var series = container.calcHitPoint(global_2.x, global_2.y, result);
|
|
171
|
-
if (series) {
|
|
184
|
+
if (series != null) {
|
|
172
185
|
hovered.set(series, result);
|
|
173
186
|
}
|
|
174
187
|
else {
|