@wcardinal/wcardinal-ui 0.429.0 → 0.431.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.
Files changed (53) hide show
  1. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-base.d.ts +2 -1
  2. package/dist/types/wcardinal/ui/d-chart-plot-area.d.ts +2 -1
  3. package/dist/types/wcardinal/ui/d-chart-selection-container-impl.d.ts +1 -1
  4. package/dist/types/wcardinal/ui/d-chart-selection-container.d.ts +1 -1
  5. package/dist/types/wcardinal/ui/d-chart-selection-shape-base.d.ts +2 -2
  6. package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +1 -1
  7. package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +36 -3
  8. package/dist/types/wcardinal/ui/d-chart-selection-sub-impl.d.ts +6 -1
  9. package/dist/types/wcardinal/ui/d-chart-selection-sub.d.ts +18 -1
  10. package/dist/types/wcardinal/ui/d-chart-selection.d.ts +1 -1
  11. package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +1 -0
  12. package/dist/types/wcardinal/ui/d-view.d.ts +9 -0
  13. package/dist/types/wcardinal/ui/util/util-gesture-data.d.ts +1 -0
  14. package/dist/types/wcardinal/ui/util/util-gesture-tap.d.ts +16 -2
  15. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js +3 -0
  16. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js.map +1 -1
  17. package/dist/wcardinal/ui/d-chart-plot-area.js.map +1 -1
  18. package/dist/wcardinal/ui/d-chart-selection-container-impl.js.map +1 -1
  19. package/dist/wcardinal/ui/d-chart-selection-container.js.map +1 -1
  20. package/dist/wcardinal/ui/d-chart-selection-shape-base.js +1 -1
  21. package/dist/wcardinal/ui/d-chart-selection-shape-base.js.map +1 -1
  22. package/dist/wcardinal/ui/d-chart-selection-shape.js.map +1 -1
  23. package/dist/wcardinal/ui/d-chart-selection-simple.js +60 -10
  24. package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
  25. package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +160 -61
  26. package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
  27. package/dist/wcardinal/ui/d-chart-selection-sub.js.map +1 -1
  28. package/dist/wcardinal/ui/d-chart-selection.js.map +1 -1
  29. package/dist/wcardinal/ui/d-view-gesture-impl.js +7 -0
  30. package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
  31. package/dist/wcardinal/ui/d-view.js.map +1 -1
  32. package/dist/wcardinal/ui/util/util-gesture-data.js.map +1 -1
  33. package/dist/wcardinal/ui/util/util-gesture-tap.js +58 -7
  34. package/dist/wcardinal/ui/util/util-gesture-tap.js.map +1 -1
  35. package/dist/wcardinal/ui/util/util-gesture.js +3 -1
  36. package/dist/wcardinal/ui/util/util-gesture.js.map +1 -1
  37. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  38. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  39. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  40. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  41. package/dist/wcardinal-ui-theme-dark.js +1 -1
  42. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  43. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  44. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  45. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  46. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  47. package/dist/wcardinal-ui-theme-white.js +1 -1
  48. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  49. package/dist/wcardinal-ui.cjs.js +292 -80
  50. package/dist/wcardinal-ui.js +292 -80
  51. package/dist/wcardinal-ui.min.js +2 -2
  52. package/dist/wcardinal-ui.min.js.map +1 -1
  53. 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
  }
@@ -5,10 +5,22 @@ import { DChartSelectionSub, DChartSelectionSubOptions } from "./d-chart-selecti
5
5
  import { DChartSeriesHitResult } from "./d-chart-series";
6
6
  import { DChartSeriesContainer } from "./d-chart-series-container";
7
7
  import { UtilGestureModifier } from "./util/util-gesture-modifier";
8
- export interface DChartSelectionSimpleDismissOptions {
8
+ export interface DChartSelectionSimpleDismissTapOptions {
9
9
  enable?: boolean;
10
10
  modifier?: keyof typeof UtilGestureModifier | UtilGestureModifier;
11
11
  }
12
+ export interface DChartSelectionSimpleDismissLongPressOptions {
13
+ enable?: boolean;
14
+ }
15
+ export interface DChartSelectionSimpleDismissNoSeriesOptions {
16
+ enable?: boolean;
17
+ }
18
+ export interface DChartSelectionSimpleDismissOptions {
19
+ enable?: boolean;
20
+ tap?: DChartSelectionSimpleDismissTapOptions;
21
+ longPress?: DChartSelectionSimpleDismissLongPressOptions;
22
+ noSeries?: DChartSelectionSimpleDismissNoSeriesOptions;
23
+ }
12
24
  export interface DChartSelectionSimpleOptions<CHART extends DBase = DBase, EMITTER = any> {
13
25
  selected?: DChartSelectionSubOptions<CHART>;
14
26
  hovered?: DChartSelectionSubOptions<CHART>;
@@ -16,22 +28,43 @@ export interface DChartSelectionSimpleOptions<CHART extends DBase = DBase, EMITT
16
28
  on?: DBaseOnOptions<EMITTER>;
17
29
  dismiss?: DChartSelectionSimpleDismissOptions;
18
30
  }
31
+ export interface DChartSelectionSimpleDismiss {
32
+ enable: boolean;
33
+ tap: DChartSelectionSimpleDismissTap;
34
+ longPress: DChartSelectionSimpleDismissLongPress;
35
+ noSeries: DChartSelectionSimpleDismissNoSeries;
36
+ }
37
+ export interface DChartSelectionSimpleDismissTap {
38
+ enable: boolean;
39
+ modifier: UtilGestureModifier;
40
+ }
41
+ export interface DChartSelectionSimpleDismissLongPress {
42
+ enable: boolean;
43
+ }
44
+ export interface DChartSelectionSimpleDismissNoSeries {
45
+ enable: boolean;
46
+ }
19
47
  export declare class DChartSelectionSimple<CHART extends DBase = DBase> extends utils.EventEmitter implements DChartSelection<CHART> {
20
48
  protected static WORK_SELECT: DChartSeriesHitResult;
21
49
  protected _container: DChartSeriesContainer<CHART> | null;
22
50
  protected _selected: DChartSelectionSub<CHART>;
23
51
  protected _hovered: DChartSelectionSub<CHART>;
24
- protected _dismiss?: UtilGestureModifier;
52
+ protected _dismiss: DChartSelectionSimpleDismiss;
25
53
  protected _onMoveBound: (e: InteractionEvent) => void;
26
54
  protected _onTapBound: (target: unknown, e: InteractionEvent) => void;
55
+ protected _onLongPressBound: (target: unknown, e: InteractionEvent) => void;
27
56
  constructor(options?: DChartSelectionSimpleOptions<CHART>);
28
- protected toDismiss(options?: DChartSelectionSimpleOptions<CHART>): UtilGestureModifier | undefined;
57
+ protected toDismiss(options?: DChartSelectionSimpleOptions<CHART>): DChartSelectionSimpleDismiss;
58
+ protected toDismissTap(options?: DChartSelectionSimpleDismissTapOptions): DChartSelectionSimpleDismissTap;
59
+ protected toDismissLongPress(options?: DChartSelectionSimpleDismissLongPressOptions): DChartSelectionSimpleDismissLongPress;
60
+ protected toDismissNoSeries(options?: DChartSelectionSimpleDismissNoSeriesOptions): DChartSelectionSimpleDismissNoSeries;
29
61
  protected newSelected(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
30
62
  protected newHovered(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
31
63
  protected toSelectedOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
32
64
  protected toHoveredOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
33
65
  protected toSubOptions(point: DChartSelectionPoint, options: DChartSelectionSubOptions<CHART> | undefined, state: string): DChartSelectionSubOptions<CHART>;
34
66
  protected onTap(e: InteractionEvent): void;
67
+ protected onLongPress(e: InteractionEvent): void;
35
68
  protected onMove(e: InteractionEvent): void;
36
69
  bind(container: DChartSeriesContainer<CHART>): void;
37
70
  unbind(): void;
@@ -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(series: DChartSeries<CHART>, result: DChartSeriesHitResult | DChartSelectionSub<CHART>): void;
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
- set(series: DChartSeries<CHART>, result: DChartSeriesHitResult | DChartSelectionSub<CHART>): void;
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;
@@ -15,6 +15,7 @@ export declare class DViewGestureImpl implements DViewGesture {
15
15
  protected onEnd(target: DBase): void;
16
16
  protected onStop(target: DBase): void;
17
17
  protected onTap(target: DBase, e: InteractionEvent): void;
18
+ protected onLongPress(target: DBase, e: InteractionEvent): void;
18
19
  protected onGestureMove(target: DViewTarget | null, dx: number, dy: number, x: number, y: number, ds: number, work: Point): void;
19
20
  stop(): void;
20
21
  onDown(e: InteractionEvent): void;
@@ -112,6 +112,15 @@ export interface DViewEvents<EMITTER> {
112
112
  * @param emitter an emitter
113
113
  */
114
114
  gesturetap(target: DBase, e: InteractionEvent, emitter: EMITTER): void;
115
+ /**
116
+ * Triggered when pressed long.
117
+ * Unlike the tap event of PixiJS, this event is emitted only when the gesture is not performed.
118
+ *
119
+ * @param target an operation target
120
+ * @param target an event data
121
+ * @param emitter an emitter
122
+ */
123
+ gesturelongpress(target: DBase, e: InteractionEvent, emitter: EMITTER): void;
115
124
  /**
116
125
  * Triggered when a transform starts.
117
126
  *
@@ -8,6 +8,7 @@ export declare class UtilGestureData<TARGET> {
8
8
  scale: number;
9
9
  time: number;
10
10
  distance: number;
11
+ timeoutId?: number;
11
12
  onMove?: (e: InteractionEvent) => void;
12
13
  onEnd?: (e: InteractionEvent) => void;
13
14
  easing?: UtilGestureEasing;
@@ -2,18 +2,30 @@ import { InteractionEvent } from "pixi.js";
2
2
  import { UtilGestureData } from "./util-gesture-data";
3
3
  import { UtilGestureTarget } from "./util-gesture-target";
4
4
  export type UtilGestureOnTap<TARGET> = (target: TARGET, e: InteractionEvent) => void;
5
+ export type UtilGestureOnLongPress<TARGET> = (target: TARGET, e: InteractionEvent) => void;
5
6
  export interface UtilGestureTapOnOptions<TARGET> {
6
7
  tap?: UtilGestureOnTap<TARGET>;
8
+ longpress?: UtilGestureOnLongPress<TARGET>;
9
+ }
10
+ export interface UtilGestureTapThresholdOptions<TARGET> {
11
+ distance?: number;
12
+ long?: number;
13
+ }
14
+ export interface UtilGestureTapThreshold<TARGET> {
15
+ distance: number;
16
+ long: number;
7
17
  }
8
18
  export interface UtilGestureTapOptions<TARGET> {
9
- threshold?: number;
19
+ threshold?: UtilGestureTapThresholdOptions<TARGET>;
10
20
  }
11
21
  export declare class UtilGestureTap<TARGET extends UtilGestureTarget> {
12
22
  protected _onTap?: UtilGestureOnTap<TARGET>;
13
- protected _threshold: number;
23
+ protected _onLongPress?: UtilGestureOnTap<TARGET>;
24
+ protected _threshold: UtilGestureTapThreshold<TARGET>;
14
25
  protected _unused: Array<UtilGestureData<TARGET>>;
15
26
  protected _used: Map<TARGET, UtilGestureData<TARGET>>;
16
27
  constructor(on?: UtilGestureTapOnOptions<TARGET>, options?: UtilGestureTapOptions<TARGET>);
28
+ protected toThreshold(options?: UtilGestureTapOptions<TARGET>): UtilGestureTapThreshold<TARGET>;
17
29
  protected newData(target: TARGET): UtilGestureData<TARGET>;
18
30
  protected deleteData(data: UtilGestureData<TARGET>): void;
19
31
  protected newOnMove(data: UtilGestureData<TARGET>): (e: InteractionEvent) => void;
@@ -21,6 +33,8 @@ export declare class UtilGestureTap<TARGET extends UtilGestureTarget> {
21
33
  onDown(target: TARGET, e: InteractionEvent): void;
22
34
  protected onMove(e: InteractionEvent, data: UtilGestureData<TARGET>): void;
23
35
  protected onEnd(e: InteractionEvent, data: UtilGestureData<TARGET>): void;
36
+ protected onLongPress(target: TARGET, data: UtilGestureData<TARGET>, e: InteractionEvent): void;
37
+ start(target: TARGET, data: UtilGestureData<TARGET>, e: InteractionEvent): void;
24
38
  end(target: TARGET, data: UtilGestureData<TARGET>, e: InteractionEvent): void;
25
39
  stop(target: TARGET): void;
26
40
  }
@@ -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/wcard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AChC,IAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QACjC,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC7B,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAMD,oDAAa,GAAb,UAAc,QAA4B;QACzC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,0DAAmB,GAAnB;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,0DAAmB,GAAnB;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,oDAAa,GAAb;QACC,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACrC,CAAC;IAID,8CAAO,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
+ {"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,GAAG,IAAI,6BAA6B,CAAC,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,CAAC;QAEhF,gBAAgB;QAChB,IAAI,IAAI,EAAE;YACT,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;SACxC;QAED,SAAS;QACT,IAAI,CAAC,OA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GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC;IACb,CAAC;IAED,qDAAc,GAAd,UAAe,MAAoB;QAClC,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QACjC,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC7B,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAMD,oDAAa,GAAb,UAAc,QAA4B;QACzC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,0DAAmB,GAAnB;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,0DAAmB,GAAnB;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,oDAAa,GAAb;QACC,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACrC,CAAC;IAED,8CAAO,GAAP,UAAQ,QAAgB,EAAE,IAAoB,EAAE,MAAc,EAAE,UAAoB;QACnF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IACnE,CAAC;IAID,8CAAO,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,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,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,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>\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
+ {"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,2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oint } 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>\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"]}
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"]}
@@ -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,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AC9B,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
+ {"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,IA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EzD,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC3B;IACF,CAAC;IAES,2CAAQ,GAAlB,UAAkC,KAAa,EAAE,MAAkC;QAClF,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> | 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>\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"]}
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"]}
@@ -39,6 +39,9 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
39
39
  _this._onTapBound = function (target, e) {
40
40
  _this.onTap(e);
41
41
  };
42
+ _this._onLongPressBound = function (target, e) {
43
+ _this.onLongPress(e);
44
+ };
42
45
  return _this;
43
46
  }
44
47
  DChartSelectionSimple.prototype.toDismiss = function (options) {
@@ -46,13 +49,39 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
46
49
  if (options != null) {
47
50
  var dismiss = options.dismiss;
48
51
  if (dismiss != null) {
49
- if (dismiss.enable === false) {
50
- return undefined;
51
- }
52
- return toEnum((_a = dismiss.modifier) !== null && _a !== void 0 ? _a : UtilGestureModifier.NOT_NONE, UtilGestureModifier);
52
+ return {
53
+ enable: (_a = dismiss.enable) !== null && _a !== void 0 ? _a : true,
54
+ tap: this.toDismissTap(dismiss.tap),
55
+ longPress: this.toDismissLongPress(dismiss.longPress),
56
+ noSeries: this.toDismissNoSeries(dismiss.noSeries)
57
+ };
53
58
  }
54
59
  }
55
- return UtilGestureModifier.NOT_NONE;
60
+ return {
61
+ enable: true,
62
+ tap: this.toDismissTap(),
63
+ longPress: this.toDismissLongPress(),
64
+ noSeries: this.toDismissNoSeries()
65
+ };
66
+ };
67
+ DChartSelectionSimple.prototype.toDismissTap = function (options) {
68
+ var _a, _b;
69
+ return {
70
+ enable: (_a = options === null || options === void 0 ? void 0 : options.enable) !== null && _a !== void 0 ? _a : true,
71
+ modifier: toEnum((_b = options === null || options === void 0 ? void 0 : options.modifier) !== null && _b !== void 0 ? _b : UtilGestureModifier.NOT_NONE, UtilGestureModifier)
72
+ };
73
+ };
74
+ DChartSelectionSimple.prototype.toDismissLongPress = function (options) {
75
+ var _a;
76
+ return {
77
+ enable: (_a = options === null || options === void 0 ? void 0 : options.enable) !== null && _a !== void 0 ? _a : true
78
+ };
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
+ };
56
85
  };
57
86
  DChartSelectionSimple.prototype.newSelected = function (point, options) {
58
87
  return new DChartSelectionSubImpl(this.toSelectedOptions(point, options));
@@ -106,7 +135,9 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
106
135
  }
107
136
  var dismiss = this._dismiss;
108
137
  var selected = this._selected;
109
- if (dismiss != null && UtilGestureModifiers.match(e, dismiss)) {
138
+ if (dismiss.enable &&
139
+ dismiss.tap.enable &&
140
+ UtilGestureModifiers.match(e, dismiss.tap.modifier)) {
110
141
  selected.unset();
111
142
  }
112
143
  else {
@@ -117,10 +148,25 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
117
148
  selected.set(series, result);
118
149
  }
119
150
  else {
120
- selected.unset();
151
+ if (dismiss.enable && dismiss.noSeries.enable) {
152
+ selected.unset();
153
+ }
154
+ else {
155
+ selected.set(global_1.x, global_1.y);
156
+ }
121
157
  }
122
158
  }
123
159
  };
160
+ DChartSelectionSimple.prototype.onLongPress = function (e) {
161
+ var container = this._container;
162
+ if (container == null) {
163
+ return;
164
+ }
165
+ var dismiss = this._dismiss;
166
+ if (dismiss.enable && dismiss.longPress.enable) {
167
+ this._selected.unset();
168
+ }
169
+ };
124
170
  DChartSelectionSimple.prototype.onMove = function (e) {
125
171
  var container = this._container;
126
172
  if (container == null) {
@@ -135,7 +181,7 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
135
181
  var result = DChartSelectionSimple.WORK_SELECT;
136
182
  var global_2 = e.data.global;
137
183
  var series = container.calcHitPoint(global_2.x, global_2.y, result);
138
- if (series) {
184
+ if (series != null) {
139
185
  hovered.set(series, result);
140
186
  }
141
187
  else {
@@ -151,16 +197,20 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
151
197
  this._selected.bind(container);
152
198
  this._hovered.bind(container);
153
199
  var plotArea = container.plotArea;
200
+ var plotAreaView = plotArea.view;
154
201
  plotArea.on(UtilPointerEvent.move, this._onMoveBound);
155
- plotArea.view.on("gesturetap", this._onTapBound);
202
+ plotAreaView.on("gesturetap", this._onTapBound);
203
+ plotAreaView.on("gesturelongpress", this._onLongPressBound);
156
204
  };
157
205
  DChartSelectionSimple.prototype.unbind = function () {
158
206
  var container = this._container;
159
207
  this._container = null;
160
208
  if (container != null) {
161
209
  var plotArea = container.plotArea;
210
+ var plotAreaView = plotArea.view;
162
211
  plotArea.off(UtilPointerEvent.move, this._onMoveBound);
163
- plotArea.view.off("gesturetap", this._onTapBound);
212
+ plotAreaView.off("gesturetap", this._onTapBound);
213
+ plotAreaView.off("gesturelongpress", this._onLongPressBound);
164
214
  }
165
215
  this._selected.unbind();
166
216
  this._hovered.unbind();