@wcardinal/wcardinal-ui 0.427.0 → 0.428.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 +4 -0
- package/dist/types/wcardinal/ui/d-chart-plot-area.d.ts +3 -0
- 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-gridline-x.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-y.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-chart-selection-marker.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-chart-selection-shape-base.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +10 -2
- package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-view-to-target.d.ts +5 -1
- package/dist/types/wcardinal/ui/d-view.d.ts +11 -2
- package/dist/types/wcardinal/ui/util/index.d.ts +2 -0
- package/dist/types/wcardinal/ui/util/util-gesture-data.d.ts +1 -0
- package/dist/types/wcardinal/ui/util/util-gesture-tap.d.ts +26 -0
- package/dist/types/wcardinal/ui/util/util-gesture-target.d.ts +5 -0
- package/dist/types/wcardinal/ui/util/util-gesture.d.ts +8 -6
- package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js +14 -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 +3 -3
- 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 +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-marker.js +4 -3
- package/dist/wcardinal/ui/d-chart-selection-marker.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 +49 -21
- package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +3 -2
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram.js +11 -2
- package/dist/wcardinal/ui/d-diagram.js.map +1 -1
- package/dist/wcardinal/ui/d-view-gesture-impl.js +18 -3
- package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-to-target.js.map +1 -1
- package/dist/wcardinal/ui/d-view.js.map +1 -1
- package/dist/wcardinal/ui/util/index.js +2 -0
- package/dist/wcardinal/ui/util/index.js.map +1 -1
- package/dist/wcardinal/ui/util/util-gesture-data.js +1 -0
- package/dist/wcardinal/ui/util/util-gesture-data.js.map +1 -1
- package/dist/wcardinal/ui/util/util-gesture-tap.js +148 -0
- package/dist/wcardinal/ui/util/util-gesture-tap.js.map +1 -0
- package/dist/wcardinal/ui/util/util-gesture-target.js +2 -0
- package/dist/wcardinal/ui/util/util-gesture-target.js.map +1 -0
- package/dist/wcardinal/ui/util/util-gesture.js +26 -15
- package/dist/wcardinal/ui/util/util-gesture.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +274 -53
- package/dist/wcardinal-ui.js +274 -53
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,8 @@ import { 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";
|
|
14
|
+
import { DView } from "./d-view";
|
|
15
|
+
import { DBaseStateSet } from "./d-base-state-set";
|
|
14
16
|
export interface DChartPlotAreaTwofoldSubParent<CHART extends DBase = DBase> extends DChartPlotArea<CHART> {
|
|
15
17
|
}
|
|
16
18
|
export declare abstract class DChartPlotAreaTwofoldSubBase<CHART extends DBase = DBase> implements DChartPlotAreaTwofoldSub<CHART> {
|
|
@@ -32,6 +34,8 @@ export declare abstract class DChartPlotAreaTwofoldSubBase<CHART extends DBase =
|
|
|
32
34
|
get series(): DChartSeriesContainerImpl<CHART>;
|
|
33
35
|
get coordinate(): DChartCoordinateContainer<CHART>;
|
|
34
36
|
get axis(): DChartAxisContainer<CHART>;
|
|
37
|
+
get state(): DBaseStateSet;
|
|
38
|
+
get view(): DView;
|
|
35
39
|
on(name: string, callback: Function, context?: any): this;
|
|
36
40
|
off(name: string, callback?: Function, context?: any): this;
|
|
37
41
|
getPixelDomain(result: DChartRegion): DChartRegion;
|
|
@@ -8,6 +8,7 @@ import { DView, DViewOptions } from "./d-view";
|
|
|
8
8
|
import { DApplicationTarget } from "./d-application-like";
|
|
9
9
|
import { DChartRegion } from "./d-chart-region";
|
|
10
10
|
import { DChartAxisPosition } from "./d-chart-axis-position";
|
|
11
|
+
import { DBaseStateSet } from "./d-base-state-set";
|
|
11
12
|
export interface DChartPlotAreaOptions<CHART extends DBase = DBase, THEME extends DThemeChartPlotArea = DThemeChartPlotArea> extends DBaseOptions<THEME> {
|
|
12
13
|
mask?: boolean;
|
|
13
14
|
view?: DViewOptions;
|
|
@@ -23,6 +24,8 @@ export interface DChartPlotAreaLike<CHART extends DBase = DBase> extends DApplic
|
|
|
23
24
|
readonly series: DChartSeriesContainer<CHART>;
|
|
24
25
|
readonly container: DChartPlotAreaContainer;
|
|
25
26
|
readonly axis: DChartAxisContainer<CHART>;
|
|
27
|
+
readonly view: DView;
|
|
28
|
+
readonly state: DBaseStateSet;
|
|
26
29
|
on(name: string, callback: Function, context?: any): this;
|
|
27
30
|
off(name: string, callback?: Function, context?: any): this;
|
|
28
31
|
getPixelDomain(result: DChartRegion): DChartRegion;
|
|
@@ -14,5 +14,5 @@ export declare class DChartSelectionContainerImpl<CHART extends DBase = DBase> i
|
|
|
14
14
|
unbind(): void;
|
|
15
15
|
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
16
16
|
unset(): void;
|
|
17
|
-
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
17
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
18
18
|
}
|
|
@@ -14,5 +14,5 @@ export interface DChartSelectionContainer<CHART extends DBase = DBase> {
|
|
|
14
14
|
unbind(): void;
|
|
15
15
|
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
16
16
|
unset(): void;
|
|
17
|
-
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
17
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
18
18
|
}
|
|
@@ -2,7 +2,8 @@ import { IPoint } from "pixi.js";
|
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DChartSelectionShapeBase } from "./d-chart-selection-shape-base";
|
|
4
4
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
5
|
+
import { DChartSeries } from "./d-chart-series";
|
|
5
6
|
export declare class DChartSelectionGridlineX<CHART extends DBase = DBase> extends DChartSelectionShapeBase<CHART> {
|
|
6
|
-
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
7
8
|
protected getType(): string;
|
|
8
9
|
}
|
|
@@ -2,7 +2,8 @@ import { IPoint } from "pixi.js";
|
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DChartSelectionShapeBase } from "./d-chart-selection-shape-base";
|
|
4
4
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
5
|
+
import { DChartSeries } from "./d-chart-series";
|
|
5
6
|
export declare class DChartSelectionGridlineY<CHART extends DBase = DBase> extends DChartSelectionShapeBase<CHART> {
|
|
6
|
-
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): boolean;
|
|
7
8
|
protected getType(): string;
|
|
8
9
|
}
|
|
@@ -2,8 +2,9 @@ import { IPoint } from "pixi.js";
|
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DChartSelectionShapeBase } from "./d-chart-selection-shape-base";
|
|
4
4
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
5
|
+
import { DChartSeries } from "./d-chart-series";
|
|
5
6
|
export declare class DChartSelectionMarker<CHART extends DBase = DBase> extends DChartSelectionShapeBase<CHART> {
|
|
6
|
-
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
-
protected isVisible(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
8
|
+
protected isVisible(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
8
9
|
protected getType(): string;
|
|
9
10
|
}
|
|
@@ -21,7 +21,7 @@ export declare abstract class DChartSelectionShapeBase<CHART extends DBase = DBa
|
|
|
21
21
|
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
22
22
|
protected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART>): void;
|
|
23
23
|
unset(): void;
|
|
24
|
-
abstract update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
24
|
+
abstract update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
25
25
|
protected toTheme(options?: DChartSelectionShapeOptions<CHART>): DThemeChartSelectionShape;
|
|
26
26
|
protected getTheme(type: string): DThemeChartSelectionShape;
|
|
27
27
|
protected abstract getType(): string;
|
|
@@ -22,5 +22,5 @@ export interface DChartSelectionShape<CHART extends DBase = DBase> {
|
|
|
22
22
|
unbind(): void;
|
|
23
23
|
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
24
24
|
unset(): void;
|
|
25
|
-
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
25
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART> | null): boolean;
|
|
26
26
|
}
|
|
@@ -4,26 +4,34 @@ import { DChartSelection, DChartSelectionPoint } from "./d-chart-selection";
|
|
|
4
4
|
import { DChartSelectionSub, DChartSelectionSubOptions } from "./d-chart-selection-sub";
|
|
5
5
|
import { DChartSeriesHitResult } from "./d-chart-series";
|
|
6
6
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
7
|
+
import { UtilGestureModifier } from "./util/util-gesture-modifier";
|
|
8
|
+
export interface DChartSelectionSimpleDismissOptions {
|
|
9
|
+
enable?: boolean;
|
|
10
|
+
modifier?: keyof typeof UtilGestureModifier | UtilGestureModifier;
|
|
11
|
+
}
|
|
7
12
|
export interface DChartSelectionSimpleOptions<CHART extends DBase = DBase, EMITTER = any> {
|
|
8
13
|
selected?: DChartSelectionSubOptions<CHART>;
|
|
9
14
|
hovered?: DChartSelectionSubOptions<CHART>;
|
|
10
15
|
point?: DChartSelectionPoint | keyof typeof DChartSelectionPoint;
|
|
11
16
|
on?: DBaseOnOptions<EMITTER>;
|
|
17
|
+
dismiss?: DChartSelectionSimpleDismissOptions;
|
|
12
18
|
}
|
|
13
19
|
export declare class DChartSelectionSimple<CHART extends DBase = DBase> extends utils.EventEmitter implements DChartSelection<CHART> {
|
|
14
20
|
protected static WORK_SELECT: DChartSeriesHitResult;
|
|
15
21
|
protected _container: DChartSeriesContainer<CHART> | null;
|
|
16
22
|
protected _selected: DChartSelectionSub<CHART>;
|
|
17
23
|
protected _hovered: DChartSelectionSub<CHART>;
|
|
18
|
-
protected
|
|
24
|
+
protected _dismiss?: UtilGestureModifier;
|
|
19
25
|
protected _onMoveBound: (e: InteractionEvent) => void;
|
|
26
|
+
protected _onTapBound: (target: unknown, e: InteractionEvent) => void;
|
|
20
27
|
constructor(options?: DChartSelectionSimpleOptions<CHART>);
|
|
28
|
+
protected toDismiss(options?: DChartSelectionSimpleOptions<CHART>): UtilGestureModifier | undefined;
|
|
21
29
|
protected newSelected(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
|
|
22
30
|
protected newHovered(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
|
|
23
31
|
protected toSelectedOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
|
|
24
32
|
protected toHoveredOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
|
|
25
33
|
protected toSubOptions(point: DChartSelectionPoint, options: DChartSelectionSubOptions<CHART> | undefined, state: string): DChartSelectionSubOptions<CHART>;
|
|
26
|
-
protected
|
|
34
|
+
protected onTap(e: InteractionEvent): void;
|
|
27
35
|
protected onMove(e: InteractionEvent): void;
|
|
28
36
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
29
37
|
unbind(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InteractionEvent } from "pixi.js";
|
|
1
|
+
import { InteractionEvent, Point } from "pixi.js";
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DThemeViewGesture, DViewGesture, DViewGestureOptions } from "./d-view-gesture";
|
|
4
4
|
import { DViewParent } from "./d-view-parent";
|
|
@@ -14,7 +14,8 @@ export declare class DViewGestureImpl implements DViewGesture {
|
|
|
14
14
|
protected onStart(target: DBase): void;
|
|
15
15
|
protected onEnd(target: DBase): void;
|
|
16
16
|
protected onStop(target: DBase): void;
|
|
17
|
-
protected
|
|
17
|
+
protected onTap(target: DBase, e: InteractionEvent): void;
|
|
18
|
+
protected onGestureMove(target: DViewTarget | null, dx: number, dy: number, x: number, y: number, ds: number, work: Point): void;
|
|
18
19
|
stop(): void;
|
|
19
20
|
onDown(e: InteractionEvent): void;
|
|
20
21
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { Rectangle } from "pixi.js";
|
|
1
|
+
import { DisplayObject, IPointData, Point, Rectangle } from "pixi.js";
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
export interface DViewTargetPoint {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
6
6
|
set(x?: number, y?: number): void;
|
|
7
7
|
}
|
|
8
|
+
export interface DViewTargetParent {
|
|
9
|
+
toLocal(position: IPointData, from?: DisplayObject, point?: Point, skipUpdate?: boolean): PIXI.Point;
|
|
10
|
+
}
|
|
8
11
|
export interface DViewTarget {
|
|
12
|
+
parent?: DViewTargetParent | null;
|
|
9
13
|
readonly scale: DViewTargetPoint;
|
|
10
14
|
readonly position: DViewTargetPoint;
|
|
11
15
|
getLocalBounds(rect: Rectangle): Rectangle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPoint } from "pixi.js";
|
|
1
|
+
import { IPoint, InteractionEvent, utils } from "pixi.js";
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { UtilGestureModifier } from "./util/util-gesture-modifier";
|
|
4
4
|
import { DThemeViewGesture, DViewGesture, DViewGestureOptions } from "./d-view-gesture";
|
|
@@ -103,6 +103,15 @@ export interface DViewEvents<EMITTER> {
|
|
|
103
103
|
* @param emitter an emitter
|
|
104
104
|
*/
|
|
105
105
|
gesturestop(target: DBase, emitter: EMITTER): void;
|
|
106
|
+
/**
|
|
107
|
+
* Triggered when tapped.
|
|
108
|
+
* Unlike the tap event of PixiJS, this event is emitted only when the gesture is not performed.
|
|
109
|
+
*
|
|
110
|
+
* @param target an operation target
|
|
111
|
+
* @param target an event data
|
|
112
|
+
* @param emitter an emitter
|
|
113
|
+
*/
|
|
114
|
+
gesturetap(target: DBase, e: InteractionEvent, emitter: EMITTER): void;
|
|
106
115
|
/**
|
|
107
116
|
* Triggered when a transform starts.
|
|
108
117
|
*
|
|
@@ -186,7 +195,7 @@ export interface DThemeView extends DThemeViewGesture {
|
|
|
186
195
|
getZoomMax(): number;
|
|
187
196
|
getZoomKeepRatio(): boolean;
|
|
188
197
|
}
|
|
189
|
-
export interface DView {
|
|
198
|
+
export interface DView extends utils.EventEmitter {
|
|
190
199
|
readonly gesture: DViewGesture;
|
|
191
200
|
scale: DViewTargetPoint;
|
|
192
201
|
position: DViewTargetPoint;
|
|
@@ -53,6 +53,8 @@ export * from "./util-gesture-easing";
|
|
|
53
53
|
export * from "./util-gesture-mode";
|
|
54
54
|
export * from "./util-gesture-modifier";
|
|
55
55
|
export * from "./util-gesture-modifiers";
|
|
56
|
+
export * from "./util-gesture-tap";
|
|
57
|
+
export * from "./util-gesture-target";
|
|
56
58
|
export * from "./util-gesture";
|
|
57
59
|
export * from "./util-extract";
|
|
58
60
|
export * from "./util-extractor-pixels";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InteractionEvent } from "pixi.js";
|
|
2
|
+
import { UtilGestureData } from "./util-gesture-data";
|
|
3
|
+
import { UtilGestureTarget } from "./util-gesture-target";
|
|
4
|
+
export type UtilGestureOnTap<TARGET> = (target: TARGET, e: InteractionEvent) => void;
|
|
5
|
+
export interface UtilGestureTapOnOptions<TARGET> {
|
|
6
|
+
tap?: UtilGestureOnTap<TARGET>;
|
|
7
|
+
}
|
|
8
|
+
export interface UtilGestureTapOptions<TARGET> {
|
|
9
|
+
threshold?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class UtilGestureTap<TARGET extends UtilGestureTarget> {
|
|
12
|
+
protected _onTap?: UtilGestureOnTap<TARGET>;
|
|
13
|
+
protected _threshold: number;
|
|
14
|
+
protected _unused: Array<UtilGestureData<TARGET>>;
|
|
15
|
+
protected _used: Map<TARGET, UtilGestureData<TARGET>>;
|
|
16
|
+
constructor(on?: UtilGestureTapOnOptions<TARGET>, options?: UtilGestureTapOptions<TARGET>);
|
|
17
|
+
protected newData(target: TARGET): UtilGestureData<TARGET>;
|
|
18
|
+
protected deleteData(data: UtilGestureData<TARGET>): void;
|
|
19
|
+
protected newOnMove(data: UtilGestureData<TARGET>): (e: InteractionEvent) => void;
|
|
20
|
+
protected newOnEnd(data: UtilGestureData<TARGET>): (e: InteractionEvent) => void;
|
|
21
|
+
onDown(target: TARGET, e: InteractionEvent): void;
|
|
22
|
+
protected onMove(e: InteractionEvent, data: UtilGestureData<TARGET>): void;
|
|
23
|
+
protected onEnd(e: InteractionEvent, data: UtilGestureData<TARGET>): void;
|
|
24
|
+
end(target: TARGET, data: UtilGestureData<TARGET>, e: InteractionEvent): void;
|
|
25
|
+
stop(target: TARGET): void;
|
|
26
|
+
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { InteractionEvent, utils } from "pixi.js";
|
|
2
|
-
import { DApplicationTarget } from "../d-application-like";
|
|
3
|
-
import { DBaseStateSet } from "../d-base-state-set";
|
|
4
2
|
import { UtilGestureModifier } from "./util-gesture-modifier";
|
|
5
3
|
import { UtilGestureData } from "./util-gesture-data";
|
|
6
4
|
import { UtilGestureEasing, UtilGestureEasingOptions } from "./util-gesture-easing";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
5
|
+
import { UtilGestureTap, UtilGestureTapOnOptions, UtilGestureTapOptions } from "./util-gesture-tap";
|
|
6
|
+
import { UtilGestureTarget } from "./util-gesture-target";
|
|
10
7
|
export type UtilGestureOnMove<TARGET> = (target: TARGET, dx: number, dy: number, x: number, y: number, ds: number) => void;
|
|
11
8
|
export type UtilGestureOnStart<TARGET> = (target: TARGET) => void;
|
|
12
9
|
export type UtilGestureOnEnd<TARGET> = (target: TARGET) => void;
|
|
@@ -22,7 +19,7 @@ export interface UtilGestureOnEasingOptions<TARGET> {
|
|
|
22
19
|
start?: UtilGestureOnEasingStart<TARGET>;
|
|
23
20
|
end?: UtilGestureOnEasingEnd<TARGET>;
|
|
24
21
|
}
|
|
25
|
-
export interface UtilGestureOnOptions<TARGET> {
|
|
22
|
+
export interface UtilGestureOnOptions<TARGET> extends UtilGestureTapOnOptions<TARGET> {
|
|
26
23
|
start?: UtilGestureOnStart<TARGET>;
|
|
27
24
|
move?: UtilGestureOnMove<TARGET>;
|
|
28
25
|
end?: UtilGestureOnEnd<TARGET>;
|
|
@@ -48,6 +45,10 @@ export interface UtilGestureOptions<TARGET> {
|
|
|
48
45
|
easing?: boolean | UtilGestureEasingOptions;
|
|
49
46
|
/** Binds the pointerdown event of the given target. */
|
|
50
47
|
bind?: TARGET & utils.EventEmitter;
|
|
48
|
+
/**
|
|
49
|
+
* Tap options
|
|
50
|
+
*/
|
|
51
|
+
tap?: UtilGestureTapOptions<TARGET>;
|
|
51
52
|
/** Event options */
|
|
52
53
|
on?: UtilGestureOnOptions<TARGET>;
|
|
53
54
|
}
|
|
@@ -65,6 +66,7 @@ export declare class UtilGesture<TARGET extends UtilGestureTarget> {
|
|
|
65
66
|
protected _touch: boolean;
|
|
66
67
|
protected _unused: Array<UtilGestureData<TARGET>>;
|
|
67
68
|
protected _used: Map<TARGET, UtilGestureData<TARGET>>;
|
|
69
|
+
protected _tap: UtilGestureTap<TARGET>;
|
|
68
70
|
constructor(options: UtilGestureOptions<TARGET>);
|
|
69
71
|
protected newData(target: TARGET): UtilGestureData<TARGET>;
|
|
70
72
|
protected newEasing(data: UtilGestureData<TARGET>): UtilGestureEasing | undefined;
|
|
@@ -70,6 +70,20 @@ var DChartPlotAreaTwofoldSubBase = /** @class */ (function () {
|
|
|
70
70
|
enumerable: false,
|
|
71
71
|
configurable: true
|
|
72
72
|
});
|
|
73
|
+
Object.defineProperty(DChartPlotAreaTwofoldSubBase.prototype, "state", {
|
|
74
|
+
get: function () {
|
|
75
|
+
return this._plotArea.state;
|
|
76
|
+
},
|
|
77
|
+
enumerable: false,
|
|
78
|
+
configurable: true
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(DChartPlotAreaTwofoldSubBase.prototype, "view", {
|
|
81
|
+
get: function () {
|
|
82
|
+
return this._plotArea.view;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
73
87
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
74
88
|
DChartPlotAreaTwofoldSubBase.prototype.on = function (name, callback, context) {
|
|
75
89
|
this._plotArea.on(name, callback, context);
|
|
@@ -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,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
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,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAU3C;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,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AAO,GAAP;QACC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC1B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACvB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IACF,mCAAC;AAAD,CAAC,AAlID,IAkIC","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 { 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\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\";\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\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 { 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"]}
|
|
@@ -37,9 +37,9 @@ var DChartSelectionContainerImpl = /** @class */ (function () {
|
|
|
37
37
|
this._x.unset();
|
|
38
38
|
this._y.unset();
|
|
39
39
|
};
|
|
40
|
-
DChartSelectionContainerImpl.prototype.update = function (container, position, mappedPosition) {
|
|
41
|
-
var isXUpdated = this._x.update(container, position, mappedPosition);
|
|
42
|
-
var isYUpdated = this._y.update(container, position, mappedPosition);
|
|
40
|
+
DChartSelectionContainerImpl.prototype.update = function (container, position, mappedPosition, series) {
|
|
41
|
+
var isXUpdated = this._x.update(container, position, mappedPosition, series);
|
|
42
|
+
var isYUpdated = this._y.update(container, position, mappedPosition, series);
|
|
43
43
|
return isXUpdated || isYUpdated;
|
|
44
44
|
};
|
|
45
45
|
return DChartSelectionContainerImpl;
|
|
@@ -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,MAA2B;QAE3B,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;
|
|
1
|
+
{"version":3,"file":"d-chart-selection-container-impl.js","sourceRoot":"","sources":["../../../src/main/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,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>\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>\n\t): void;\n\tunset(): void;\n\tupdate(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint\n\t): boolean;\n}\n"]}
|
|
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>\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"]}
|
|
@@ -9,7 +9,7 @@ var DChartSelectionGridlineX = /** @class */ (function (_super) {
|
|
|
9
9
|
function DChartSelectionGridlineX() {
|
|
10
10
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
11
|
}
|
|
12
|
-
DChartSelectionGridlineX.prototype.update = function (container, position, mappedPosition) {
|
|
12
|
+
DChartSelectionGridlineX.prototype.update = function (container, position, mappedPosition, series) {
|
|
13
13
|
var shape = this._shape;
|
|
14
14
|
if (shape) {
|
|
15
15
|
var mappedX = mappedPosition.x;
|
|
@@ -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;
|
|
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;;IAwBA,CAAC;IArBS,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,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,IAAI,OAAO,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;YAC1E,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAES,0CAAO,GAAjB;QACC,OAAO,0BAA0B,CAAC;IACnC,CAAC;IACF,+BAAC;AAAD,CAAC,AAxBD,CAEU,wBAAwB,GAsBjC","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\tshape.visible = bounds.x <= mappedX && mappedX <= 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"]}
|
|
@@ -9,7 +9,7 @@ var DChartSelectionGridlineY = /** @class */ (function (_super) {
|
|
|
9
9
|
function DChartSelectionGridlineY() {
|
|
10
10
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
11
|
}
|
|
12
|
-
DChartSelectionGridlineY.prototype.update = function (container, position, mappedPosition) {
|
|
12
|
+
DChartSelectionGridlineY.prototype.update = function (container, position, mappedPosition, series) {
|
|
13
13
|
var shape = this._shape;
|
|
14
14
|
if (shape) {
|
|
15
15
|
var mappedY = mappedPosition.y;
|
|
@@ -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;
|
|
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;;IAwBA,CAAC;IArBS,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,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,IAAI,OAAO,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;YAC3E,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAES,0CAAO,GAAjB;QACC,OAAO,0BAA0B,CAAC;IACnC,CAAC;IACF,+BAAC;AAAD,CAAC,AAxBD,CAEU,wBAAwB,GAsBjC","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\tshape.visible = bounds.y <= mappedY && mappedY <= 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"]}
|
|
@@ -9,16 +9,17 @@ var DChartSelectionMarker = /** @class */ (function (_super) {
|
|
|
9
9
|
function DChartSelectionMarker() {
|
|
10
10
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
11
|
}
|
|
12
|
-
DChartSelectionMarker.prototype.update = function (container, position, mappedPosition) {
|
|
12
|
+
DChartSelectionMarker.prototype.update = function (container, position, mappedPosition, series) {
|
|
13
13
|
var shape = this._shape;
|
|
14
14
|
if (shape) {
|
|
15
15
|
shape.transform.position.copyFrom(mappedPosition);
|
|
16
|
-
shape.visible = this.isVisible(container, position, mappedPosition);
|
|
16
|
+
shape.visible = this.isVisible(container, position, mappedPosition, series);
|
|
17
17
|
return true;
|
|
18
18
|
}
|
|
19
19
|
return false;
|
|
20
20
|
};
|
|
21
|
-
DChartSelectionMarker.prototype.isVisible = function (container, position, mappedPosition) {
|
|
21
|
+
DChartSelectionMarker.prototype.isVisible = function (container, position, mappedPosition, series) {
|
|
22
|
+
container = (series === null || series === void 0 ? void 0 : series.container) || container;
|
|
22
23
|
var x = mappedPosition.x;
|
|
23
24
|
var y = mappedPosition.y;
|
|
24
25
|
var bounds = container.plotArea.getPixelBounds();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-selection-marker.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-marker.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"d-chart-selection-marker.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-selection-marker.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E;IAEU,yCAA+B;IAFzC;;IAuCA,CAAC;IApCS,sCAAM,GAAf,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,MAAkC;QAElC,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,EAAE;YACV,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;YAClD,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;YAC5E,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAES,yCAAS,GAAnB,UACC,SAAuC,EACvC,QAAgB,EAChB,cAAsB,EACtB,MAAkC;QAElC,SAAS,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,KAAI,SAAS,CAAC;QAC3C,IAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC;QAC3B,IAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC;QAC3B,IAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;QACnD,OAAO,CACN,MAAM,CAAC,CAAC,IAAI,CAAC;YACb,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK;YAC5B,MAAM,CAAC,CAAC,IAAI,CAAC;YACb,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAC7B,CAAC;IACH,CAAC;IAES,uCAAO,GAAjB;QACC,OAAO,uBAAuB,CAAC;IAChC,CAAC;IACF,4BAAC;AAAD,CAAC,AAvCD,CAEU,wBAAwB,GAqCjC","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 DChartSelectionMarker<\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\tshape.transform.position.copyFrom(mappedPosition);\n\t\t\tshape.visible = this.isVisible(container, position, mappedPosition, series);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprotected isVisible(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint,\n\t\tseries: DChartSeries<CHART> | null\n\t): boolean {\n\t\tcontainer = series?.container || container;\n\t\tconst x = mappedPosition.x;\n\t\tconst y = mappedPosition.y;\n\t\tconst bounds = container.plotArea.getPixelBounds();\n\t\treturn (\n\t\t\tbounds.x <= x &&\n\t\t\tx <= bounds.x + bounds.width &&\n\t\t\tbounds.y <= y &&\n\t\t\ty <= bounds.y + bounds.height\n\t\t);\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DChartSelectionMarker\";\n\t}\n}\n"]}
|
|
@@ -56,7 +56,7 @@ var DChartSelectionShapeBase = /** @class */ (function () {
|
|
|
56
56
|
return theme.newShape(state);
|
|
57
57
|
};
|
|
58
58
|
DChartSelectionShapeBase.prototype.set = function (container, position, mappedPosition, series) {
|
|
59
|
-
this.update(container, position, mappedPosition);
|
|
59
|
+
this.update(container, position, mappedPosition, series);
|
|
60
60
|
var shape = this._shape;
|
|
61
61
|
if (shape) {
|
|
62
62
|
this._style(shape, series);
|
|
@@ -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;oBACN,IAAI,CAAC,MAAM,GAAG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EAAE,MAA2B;QAC3E,aAAa;IACd,CAAC;IAED,wCAAK,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>\n\t): void {\n\t\tthis.update(container, position, mappedPosition, series);\n\n\t\tconst shape = this._shape;\n\t\tif (shape) {\n\t\t\tthis._style(shape, series);\n\t\t}\n\t}\n\n\tprotected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART>): 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>\n\t): void;\n\tunset(): void;\n\tupdate(\n\t\tcontainer: DChartSeriesContainer<CHART>,\n\t\tposition: IPoint,\n\t\tmappedPosition: IPoint\n\t): boolean;\n}\n"]}
|
|
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>\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"]}
|