@wcardinal/wcardinal-ui 0.309.0 → 0.310.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 (119) hide show
  1. package/README.md +1 -1
  2. package/dist/types/wcardinal/ui/d-base-state-and-value.d.ts +4 -0
  3. package/dist/types/wcardinal/ui/d-base-state-matcher.d.ts +1 -0
  4. package/dist/types/wcardinal/ui/d-base-state-set-blinker-datum-impl.d.ts +5 -0
  5. package/dist/types/wcardinal/ui/d-base-state-set-blinker-impl.d.ts +8 -0
  6. package/dist/types/wcardinal/ui/d-base-state-set-blinker.d.ts +3 -0
  7. package/dist/types/wcardinal/ui/d-base-state-set-impl.d.ts +51 -18
  8. package/dist/types/wcardinal/ui/d-base-state-set-sub-datum-impl.d.ts +17 -0
  9. package/dist/types/wcardinal/ui/d-base-state-set-sub-datum.d.ts +6 -0
  10. package/dist/types/wcardinal/ui/d-base-state-set-sub-impl.d.ts +15 -0
  11. package/dist/types/wcardinal/ui/d-base-state-set-sub.d.ts +6 -0
  12. package/dist/types/wcardinal/ui/d-base-state-set-ticker-datum-impl.d.ts +5 -0
  13. package/dist/types/wcardinal/ui/d-base-state-set-ticker-impl.d.ts +8 -0
  14. package/dist/types/wcardinal/ui/d-base-state-set-ticker.d.ts +3 -0
  15. package/dist/types/wcardinal/ui/d-base-state-set.d.ts +38 -8
  16. package/dist/types/wcardinal/ui/d-base.d.ts +23 -1
  17. package/dist/types/wcardinal/ui/d-chart-axis-base-guide-container.d.ts +21 -0
  18. package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +6 -0
  19. package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +5 -0
  20. package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +4 -0
  21. package/dist/types/wcardinal/ui/d-chart-axis-guide-container.d.ts +14 -0
  22. package/dist/types/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.d.ts +41 -0
  23. package/dist/types/wcardinal/ui/d-chart-axis-guide-simple-shape.d.ts +80 -0
  24. package/dist/types/wcardinal/ui/d-chart-axis-guide-simple.d.ts +32 -0
  25. package/dist/types/wcardinal/ui/d-chart-axis-guide.d.ts +14 -0
  26. package/dist/types/wcardinal/ui/d-chart-axis.d.ts +2 -0
  27. package/dist/types/wcardinal/ui/d-dynamic-text-geometry.d.ts +7 -4
  28. package/dist/types/wcardinal/ui/d-dynamic-text-measure-result.d.ts +3 -0
  29. package/dist/types/wcardinal/ui/d-dynamic-text-measure.d.ts +4 -3
  30. package/dist/types/wcardinal/ui/d-dynamic-text-style.d.ts +16 -1
  31. package/dist/types/wcardinal/ui/d-dynamic-text.d.ts +7 -6
  32. package/dist/types/wcardinal/ui/d-links.d.ts +2 -1
  33. package/dist/types/wcardinal/ui/d-text-base.d.ts +1 -0
  34. package/dist/types/wcardinal/ui/index.d.ts +18 -0
  35. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-text-base.d.ts +1 -0
  36. package/dist/types/wcardinal/ui/theme/white/d-theme-white-text-base.d.ts +1 -0
  37. package/dist/types/wcardinal/ui/util/util-font.d.ts +2 -0
  38. package/dist/wcardinal/ui/d-base-state-and-value.js +2 -0
  39. package/dist/wcardinal/ui/d-base-state-and-value.js.map +1 -0
  40. package/dist/wcardinal/ui/d-base-state-matcher.js +2 -0
  41. package/dist/wcardinal/ui/d-base-state-matcher.js.map +1 -0
  42. package/dist/wcardinal/ui/d-base-state-set-blinker-datum-impl.js +17 -0
  43. package/dist/wcardinal/ui/d-base-state-set-blinker-datum-impl.js.map +1 -0
  44. package/dist/wcardinal/ui/d-base-state-set-blinker-impl.js +16 -0
  45. package/dist/wcardinal/ui/d-base-state-set-blinker-impl.js.map +1 -0
  46. package/dist/wcardinal/ui/d-base-state-set-blinker.js +2 -0
  47. package/dist/wcardinal/ui/d-base-state-set-blinker.js.map +1 -0
  48. package/dist/wcardinal/ui/d-base-state-set-impl.js +298 -129
  49. package/dist/wcardinal/ui/d-base-state-set-impl.js.map +1 -1
  50. package/dist/wcardinal/ui/d-base-state-set-sub-datum-impl.js +75 -0
  51. package/dist/wcardinal/ui/d-base-state-set-sub-datum-impl.js.map +1 -0
  52. package/dist/wcardinal/ui/d-base-state-set-sub-datum.js +2 -0
  53. package/dist/wcardinal/ui/d-base-state-set-sub-datum.js.map +1 -0
  54. package/dist/wcardinal/ui/d-base-state-set-sub-impl.js +73 -0
  55. package/dist/wcardinal/ui/d-base-state-set-sub-impl.js.map +1 -0
  56. package/dist/wcardinal/ui/d-base-state-set-sub.js +2 -0
  57. package/dist/wcardinal/ui/d-base-state-set-sub.js.map +1 -0
  58. package/dist/wcardinal/ui/d-base-state-set-ticker-datum-impl.js +17 -0
  59. package/dist/wcardinal/ui/d-base-state-set-ticker-datum-impl.js.map +1 -0
  60. package/dist/wcardinal/ui/d-base-state-set-ticker-impl.js +16 -0
  61. package/dist/wcardinal/ui/d-base-state-set-ticker-impl.js.map +1 -0
  62. package/dist/wcardinal/ui/d-base-state-set-ticker.js +2 -0
  63. package/dist/wcardinal/ui/d-base-state-set-ticker.js.map +1 -0
  64. package/dist/wcardinal/ui/d-base-state-set.js.map +1 -1
  65. package/dist/wcardinal/ui/d-base.js +34 -2
  66. package/dist/wcardinal/ui/d-base.js.map +1 -1
  67. package/dist/wcardinal/ui/d-chart-axis-base-guide-container.js +75 -0
  68. package/dist/wcardinal/ui/d-chart-axis-base-guide-container.js.map +1 -0
  69. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +7 -0
  70. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
  71. package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
  72. package/dist/wcardinal/ui/d-chart-axis-base.js +23 -1
  73. package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
  74. package/dist/wcardinal/ui/d-chart-axis-guide-container.js +2 -0
  75. package/dist/wcardinal/ui/d-chart-axis-guide-container.js.map +1 -0
  76. package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.js +328 -0
  77. package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.js.map +1 -0
  78. package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape.js +2 -0
  79. package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape.js.map +1 -0
  80. package/dist/wcardinal/ui/d-chart-axis-guide-simple.js +123 -0
  81. package/dist/wcardinal/ui/d-chart-axis-guide-simple.js.map +1 -0
  82. package/dist/wcardinal/ui/d-chart-axis-guide.js +2 -0
  83. package/dist/wcardinal/ui/d-chart-axis-guide.js.map +1 -0
  84. package/dist/wcardinal/ui/d-chart-axis.js.map +1 -1
  85. package/dist/wcardinal/ui/d-dynamic-text-geometry.js +17 -10
  86. package/dist/wcardinal/ui/d-dynamic-text-geometry.js.map +1 -1
  87. package/dist/wcardinal/ui/d-dynamic-text-measure-result.js +22 -0
  88. package/dist/wcardinal/ui/d-dynamic-text-measure-result.js.map +1 -1
  89. package/dist/wcardinal/ui/d-dynamic-text-measure.js +14 -10
  90. package/dist/wcardinal/ui/d-dynamic-text-measure.js.map +1 -1
  91. package/dist/wcardinal/ui/d-dynamic-text-style.js +107 -6
  92. package/dist/wcardinal/ui/d-dynamic-text-style.js.map +1 -1
  93. package/dist/wcardinal/ui/d-dynamic-text.js +52 -29
  94. package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
  95. package/dist/wcardinal/ui/d-links.js +18 -1
  96. package/dist/wcardinal/ui/d-links.js.map +1 -1
  97. package/dist/wcardinal/ui/d-text-base.js +6 -3
  98. package/dist/wcardinal/ui/d-text-base.js.map +1 -1
  99. package/dist/wcardinal/ui/index.js +18 -0
  100. package/dist/wcardinal/ui/index.js.map +1 -1
  101. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js +2 -2
  102. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js.map +1 -1
  103. package/dist/wcardinal/ui/theme/dark/d-theme-dark-text-base.js +3 -0
  104. package/dist/wcardinal/ui/theme/dark/d-theme-dark-text-base.js.map +1 -1
  105. package/dist/wcardinal/ui/theme/white/d-theme-white-text-base.js +3 -0
  106. package/dist/wcardinal/ui/theme/white/d-theme-white-text-base.js.map +1 -1
  107. package/dist/wcardinal/ui/util/util-font.js +18 -11
  108. package/dist/wcardinal/ui/util/util-font.js.map +1 -1
  109. package/dist/wcardinal-ui-theme-dark.js +4 -1
  110. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  111. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  112. package/dist/wcardinal-ui-theme-white.js +4 -1
  113. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  114. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  115. package/dist/wcardinal-ui.cjs.js +1403 -275
  116. package/dist/wcardinal-ui.js +1397 -275
  117. package/dist/wcardinal-ui.min.js +2 -2
  118. package/dist/wcardinal-ui.min.js.map +1 -1
  119. package/package.json +1 -1
package/README.md CHANGED
@@ -167,8 +167,8 @@ npm run lint:fix
167
167
 
168
168
  ### TODO
169
169
 
170
- * Simplify DTableRow blinking.
171
170
  * DTable select / action arguments.
171
+ * Provides DText text style accessors.
172
172
 
173
173
  ### License
174
174
 
@@ -0,0 +1,4 @@
1
+ export interface DBaseStateAndValue {
2
+ state: string;
3
+ value: number | null;
4
+ }
@@ -0,0 +1 @@
1
+ export declare type DBaseStateMatcher = (state: string) => void | boolean;
@@ -0,0 +1,5 @@
1
+ import { DBaseStateSetSubDatumImp } from "./d-base-state-set-sub-datum-impl";
2
+ export declare class DBaseStateSetBlinkerDatumImpl extends DBaseStateSetSubDatumImp {
3
+ protected newValue(now: number, interval: number): number | null;
4
+ protected newOn(now: number, interval: number): boolean;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { DBaseStateSet } from "./d-base-state-set";
2
+ import { DBaseStateSetBlinker } from "./d-base-state-set-blinker";
3
+ import { DBaseStateSetSubDatum } from "./d-base-state-set-sub-datum";
4
+ import { DBaseStateSetSubImpl } from "./d-base-state-set-sub-impl";
5
+ export declare class DBaseStateSetBlinkerImpl extends DBaseStateSetSubImpl implements DBaseStateSetBlinker {
6
+ constructor(parent: DBaseStateSet);
7
+ protected newDatum(interval: number): DBaseStateSetSubDatum;
8
+ }
@@ -0,0 +1,3 @@
1
+ import { DBaseStateSetSub } from "./d-base-state-set-sub";
2
+ export interface DBaseStateSetBlinker extends DBaseStateSetSub {
3
+ }
@@ -1,40 +1,73 @@
1
+ import { DBaseStateAndValue } from "./d-base-state-and-value";
2
+ import { DBaseStateMatcher } from "./d-base-state-matcher";
1
3
  import { DBaseStateSet } from "./d-base-state-set";
4
+ import { DBaseStateSetBlinker } from "./d-base-state-set-blinker";
2
5
  import { DBaseStateSetLike } from "./d-base-state-set-like";
6
+ import { DBaseStateSetTicker } from "./d-base-state-set-ticker";
3
7
  export declare class DBaseStateSetImpl implements DBaseStateSet {
4
- protected _local: Set<string>;
8
+ protected _local: Map<string, number | null>;
5
9
  protected _parent: DBaseStateSet | null;
10
+ protected _blinker?: DBaseStateSetBlinker;
11
+ protected _ticker?: DBaseStateSetTicker;
6
12
  constructor();
7
- is(state: string): boolean;
8
- in(state: string): boolean;
9
- on(state: string): boolean;
10
- under(state: string): boolean;
13
+ get local(): Map<string, number | null>;
14
+ get parent(): DBaseStateSet | null;
15
+ set parent(parent: DBaseStateSet | null);
16
+ onParentChange(newState: DBaseStateSet, oldState: DBaseStateSet): void;
17
+ get blinker(): DBaseStateSetBlinker;
18
+ protected newBlinker(): DBaseStateSetBlinker;
19
+ get ticker(): DBaseStateSetTicker;
20
+ protected newTicker(): DBaseStateSetTicker;
21
+ is(state: string, value?: number | null): boolean;
22
+ in(state: string, value?: number | null): boolean;
23
+ on(state: string, value?: number | null): boolean;
24
+ under(state: string, value?: number | null): boolean;
11
25
  lock(callOnChange?: boolean): this;
12
26
  unlock(): this;
13
27
  protected begin(): this;
14
28
  protected end(): this;
15
- protected checkAdded(added: string): boolean;
16
- add(state: string): this;
17
- protected checkAddeds(states: string[]): boolean;
29
+ protected checkAdded(added: string, value: number | null): boolean;
30
+ add(state: string, value?: number | null): this;
31
+ protected checkAddedsString(states: string[]): boolean;
32
+ protected checkAddedsObject(states: DBaseStateAndValue[]): boolean;
18
33
  addAll(states: string[]): this;
34
+ addAll(states: DBaseStateAndValue[]): this;
35
+ addAll(states: string[] | DBaseStateAndValue[]): this;
19
36
  addAll(...states: string[]): this;
37
+ addAll(...states: DBaseStateAndValue[]): this;
38
+ protected addAllString(states: string[]): this;
39
+ protected addAllObject(states: DBaseStateAndValue[]): this;
20
40
  protected checkRemoved(removed: string): boolean;
21
41
  remove(state: string): this;
22
- protected checkRemoveds(states: string[]): boolean;
42
+ protected checkRemovedsString(states: string[]): boolean;
43
+ protected checkRemovedsObject(states: DBaseStateAndValue[]): boolean;
23
44
  removeAll(states: string[]): this;
45
+ removeAll(states: DBaseStateAndValue[]): this;
46
+ removeAll(states: string[] | DBaseStateAndValue[]): this;
24
47
  removeAll(...states: string[]): this;
25
- removeAll(matcher: (state: string) => void | boolean): this;
26
- clear(): this;
27
- set(state: string, isOn: boolean): this;
48
+ removeAll(...states: DBaseStateAndValue[]): this;
49
+ removeAll(matcher: DBaseStateMatcher): this;
50
+ protected removeAllMatcher(matcher: DBaseStateMatcher): this;
51
+ protected removeAllString(states: string[]): this;
52
+ protected removeAllObject(states: DBaseStateAndValue[]): this;
53
+ set(state: string, on: boolean): this;
54
+ set(state: string, value: number | null, on: boolean): this;
28
55
  set(added: string | null, removed: string | null): this;
29
- setAll(states: string[], isOn: boolean): this;
56
+ set(added: string | null, value: number | null, removed: string | null): this;
57
+ protected doSet(added: string | null, value: number | null, removed?: string | null): this;
58
+ setAll(states: string[], on: boolean): this;
59
+ setAll(states: DBaseStateAndValue[], on: boolean): this;
60
+ setAll(states: string[] | DBaseStateAndValue[], on: boolean): this;
30
61
  setAll(addeds: string[] | null, removeds: string[] | null): this;
31
- each(iteratee: (state: string) => void): this;
62
+ setAll(addeds: DBaseStateAndValue[] | null, removeds: string[] | null): this;
63
+ setAll(addeds: string[] | DBaseStateAndValue[] | null, removeds: string[] | null): this;
64
+ protected setAllString(addeds: string[], removeds: string[]): this;
65
+ protected setAllObject(addeds: DBaseStateAndValue[], removeds: string[]): this;
66
+ clear(): this;
67
+ valueOf(state: string, def?: number | null): number | null | undefined;
68
+ each(iteratee: (state: string, value: number | null) => void): this;
32
69
  size(): number;
33
70
  copy(other: DBaseStateSet): this;
34
- get local(): Set<string>;
35
- get parent(): DBaseStateSet | null;
36
- set parent(parent: DBaseStateSet | null);
37
- onParentChange(newState: DBaseStateSet, oldState: DBaseStateSet): void;
38
71
  get isHovered(): boolean;
39
72
  set isHovered(isHovered: boolean);
40
73
  get inHovered(): boolean;
@@ -0,0 +1,17 @@
1
+ import { DBaseStateSet } from "./d-base-state-set";
2
+ import { DBaseStateSetSubDatum } from "./d-base-state-set-sub-datum";
3
+ export declare abstract class DBaseStateSetSubDatumImp implements DBaseStateSetSubDatum {
4
+ private _stateToTargets;
5
+ private _interval;
6
+ private _timeoutId?;
7
+ private _onTimeBound;
8
+ constructor(interval: number);
9
+ get interval(): number;
10
+ add(state: string, target: DBaseStateSet): this;
11
+ remove(state: string, target: DBaseStateSet): this;
12
+ protected start(): this;
13
+ protected stop(): this;
14
+ protected onTime(): void;
15
+ protected abstract newValue(now: number, interval: number): number | null;
16
+ protected abstract newOn(now: number, interval: number): boolean;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { DBaseStateSet } from "./d-base-state-set";
2
+ export interface DBaseStateSetSubDatum {
3
+ readonly interval: number;
4
+ add(state: string, target: DBaseStateSet): this;
5
+ remove(state: string, target: DBaseStateSet): this;
6
+ }
@@ -0,0 +1,15 @@
1
+ import { DBaseStateSet } from "./d-base-state-set";
2
+ import { DBaseStateSetSub } from "./d-base-state-set-sub";
3
+ import { DBaseStateSetSubDatum } from "./d-base-state-set-sub-datum";
4
+ export declare abstract class DBaseStateSetSubImpl implements DBaseStateSetSub {
5
+ protected readonly _parent: DBaseStateSet;
6
+ protected readonly _stateToInterval: Map<string, number>;
7
+ protected readonly _intervalToDatum: Map<number, DBaseStateSetSubDatum>;
8
+ constructor(parent: DBaseStateSet, intervalToDatum: Map<number, DBaseStateSetSubDatum>);
9
+ add(state: string, interval: number): this;
10
+ protected abstract newDatum(interval: number): DBaseStateSetSubDatum;
11
+ remove(state: string): this;
12
+ set(state: string, interval: number, on: boolean): this;
13
+ has(state: string): boolean;
14
+ clear(): this;
15
+ }
@@ -0,0 +1,6 @@
1
+ export interface DBaseStateSetSub {
2
+ add(state: string, interval: number): this;
3
+ remove(state: string): this;
4
+ has(state: string): boolean;
5
+ clear(): this;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { DBaseStateSetSubDatumImp } from "./d-base-state-set-sub-datum-impl";
2
+ export declare class DBaseStateSetTickerDatumImpl extends DBaseStateSetSubDatumImp {
3
+ protected newValue(now: number, interval: number): number | null;
4
+ protected newOn(now: number, interval: number): boolean;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { DBaseStateSet } from "./d-base-state-set";
2
+ import { DBaseStateSetSubDatum } from "./d-base-state-set-sub-datum";
3
+ import { DBaseStateSetSubImpl } from "./d-base-state-set-sub-impl";
4
+ import { DBaseStateSetTicker } from "./d-base-state-set-ticker";
5
+ export declare class DBaseStateSetTickerImpl extends DBaseStateSetSubImpl implements DBaseStateSetTicker {
6
+ constructor(parent: DBaseStateSet);
7
+ protected newDatum(interval: number): DBaseStateSetSubDatum;
8
+ }
@@ -0,0 +1,3 @@
1
+ import { DBaseStateSetSub } from "./d-base-state-set-sub";
2
+ export interface DBaseStateSetTicker extends DBaseStateSetSub {
3
+ }
@@ -1,6 +1,11 @@
1
+ import { DBaseStateAndValue } from "./d-base-state-and-value";
2
+ import { DBaseStateSetBlinker } from "./d-base-state-set-blinker";
1
3
  import { DBaseStateSetLike } from "./d-base-state-set-like";
4
+ import { DBaseStateSetTicker } from "./d-base-state-set-ticker";
2
5
  export interface DBaseStateSet {
3
6
  parent: DBaseStateSet | null;
7
+ readonly blinker: DBaseStateSetBlinker;
8
+ readonly ticker: DBaseStateSetTicker;
4
9
  isHovered: boolean;
5
10
  readonly inHovered: boolean;
6
11
  readonly onHovered: boolean;
@@ -76,32 +81,44 @@ export interface DBaseStateSet {
76
81
  readonly underAlternated: boolean;
77
82
  /**
78
83
  * Returns true if the given state is on.
84
+ * If the given value is undefined, values assigned to states are ignored.
85
+ * If the given value is not undefined, values assigned to states are taken into account.
79
86
  *
80
87
  * @param state a state
88
+ * @param value a state value
81
89
  * @return true if the given state is on
82
90
  */
83
- is(state: string): boolean;
91
+ is(state: string, value?: number | null): boolean;
84
92
  /**
85
93
  * Returns true if the given state is on or if one of the parents has the given state.
94
+ * If the given value is undefined, values assigned to states are ignored.
95
+ * If the given value is not undefined, values assigned to states are taken into account.
86
96
  *
87
97
  * @param state a state
98
+ * @param value a state value
88
99
  * @return true if the given state is on or if one of the parents has the given state.
89
100
  */
90
- in(state: string): boolean;
101
+ in(state: string, value?: number | null): boolean;
91
102
  /**
92
103
  * Returns true if the direct parent has the given state.
104
+ * If the given value is undefined, values assigned to states are ignored.
105
+ * If the given value is not undefined, values assigned to states are taken into account.
93
106
  *
94
107
  * @param state a state
108
+ * @param value a state value
95
109
  * @return true if the direct parent has the given state.
96
110
  */
97
- on(state: string): boolean;
111
+ on(state: string, value?: number | null): boolean;
98
112
  /**
99
113
  * Returns true if one of the parents has the given state.
114
+ * If the given value is undefined, values assigned to states are ignored.
115
+ * If the given value is not undefined, values assigned to states are taken into account.
100
116
  *
101
117
  * @param state a state
118
+ * @param value a state value
102
119
  * @return true if one of the parents has the given state.
103
120
  */
104
- under(state: string): boolean;
121
+ under(state: string, value?: number | null): boolean;
105
122
  /**
106
123
  * Locks this state set.
107
124
  * The locked state set delays calling the change event handler.
@@ -117,19 +134,32 @@ export interface DBaseStateSet {
117
134
  * @return this
118
135
  */
119
136
  unlock(): this;
120
- add(state: string): this;
137
+ add(state: string, value?: number | null): this;
121
138
  addAll(states: string[]): this;
139
+ addAll(states: DBaseStateAndValue[]): this;
140
+ addAll(states: string[] | DBaseStateAndValue[]): this;
122
141
  addAll(...states: string[]): this;
142
+ addAll(...states: DBaseStateAndValue[]): this;
123
143
  remove(state: string): this;
124
144
  removeAll(states: string[]): this;
145
+ removeAll(states: DBaseStateAndValue[]): this;
146
+ removeAll(states: string[] | DBaseStateAndValue[]): this;
125
147
  removeAll(...states: string[]): this;
148
+ removeAll(...states: DBaseStateAndValue[]): this;
126
149
  removeAll(matcher: (state: string) => void | boolean): this;
127
- set(state: string, isOn: boolean): this;
150
+ set(state: string, on: boolean): this;
151
+ set(state: string, value: number | null, on: boolean): this;
128
152
  set(added: string | null, removed: string | null): this;
129
- setAll(state: string[], isOn: boolean): this;
153
+ set(added: string | null, value: number | null, removed: string | null): this;
154
+ setAll(states: string[], on: boolean): this;
155
+ setAll(states: DBaseStateAndValue[], on: boolean): this;
156
+ setAll(states: string[] | DBaseStateAndValue[], on: boolean): this;
130
157
  setAll(addeds: string[] | null, removeds: string[] | null): this;
158
+ setAll(addeds: DBaseStateAndValue[] | null, removeds: string[] | null): this;
159
+ setAll(addeds: string[] | DBaseStateAndValue[] | null, removeds: string[] | null): this;
131
160
  clear(): this;
132
- each(iteratee: (state: string) => void): this;
161
+ valueOf(state: string, def?: number | null): number | null | undefined;
162
+ each(iteratee: (state: string, value: number | null) => void): this;
133
163
  size(): number;
134
164
  copy(state: DBaseStateSet): this;
135
165
  onParentChange(newState: DBaseStateSet, oldState: DBaseStateSet): void;
@@ -276,6 +276,28 @@ export interface DBaseOutlineOptions {
276
276
  mask?: DStateAwareOrValueMightBe<DBorderMask> | keyof typeof DBorderMask;
277
277
  }
278
278
  export declare type DBaseShadow = "NONE" | "WEAK" | "DEFAULT" | DShadow;
279
+ /**
280
+ * {@link DBase} state blinker options.
281
+ */
282
+ export interface DBaseStateBlinkerOptions {
283
+ state: string;
284
+ interval: number;
285
+ }
286
+ /**
287
+ * {@link DBase} state ticker options.
288
+ */
289
+ export interface DBaseStateTickerOptions {
290
+ state: string;
291
+ interval: number;
292
+ }
293
+ /**
294
+ * {@link DBase} state options.
295
+ */
296
+ export interface DBaseStateOptions {
297
+ values?: string | string[];
298
+ blinkers?: DBaseStateBlinkerOptions[];
299
+ tickers?: DBaseStateTickerOptions[];
300
+ }
279
301
  /**
280
302
  * {@link DBase} options.
281
303
  */
@@ -346,7 +368,7 @@ export interface DBaseOptions<THEME extends DThemeBase = DThemeBase, EMITTER = a
346
368
  */
347
369
  renderable?: boolean;
348
370
  /** A default state. */
349
- state?: string | string[];
371
+ state?: string | string[] | DBaseStateOptions;
350
372
  /** An interactivity option. */
351
373
  interactive?: keyof typeof DBaseInteractive | DBaseInteractive;
352
374
  /** A padding options. */
@@ -0,0 +1,21 @@
1
+ import { DBase } from "./d-base";
2
+ import { DChartAxis } from "./d-chart-axis";
3
+ import { DChartAxisContainer } from "./d-chart-axis-container";
4
+ import { DChartAxisGuide } from "./d-chart-axis-guide";
5
+ import { DChartAxisGuideContainer } from "./d-chart-axis-guide-container";
6
+ export declare class DChartAxisBaseGuideContainer<CHART extends DBase = DBase> implements DChartAxisGuideContainer<CHART> {
7
+ protected _axis: DChartAxis<CHART>;
8
+ protected _container?: DChartAxisContainer<CHART>;
9
+ protected _index: number;
10
+ protected _list: DChartAxisGuide<CHART>[];
11
+ constructor(axis: DChartAxis<CHART>);
12
+ add(guide: DChartAxisGuide<CHART>): this;
13
+ get(index: number): DChartAxisGuide<CHART> | null;
14
+ indexOf(guide: DChartAxisGuide<CHART>): number;
15
+ clear(): this;
16
+ size(): number;
17
+ bind(container: DChartAxisContainer<CHART>, index: number): void;
18
+ unbind(): void;
19
+ update(): boolean;
20
+ destroy(): void;
21
+ }
@@ -1,4 +1,5 @@
1
1
  import { DChartAxisBaseOptions, DChartAxisBaseTickOptions, DChartAxisBaseTickMajorGridlineOptions, DChartAxisBaseTickMajorOptions, DChartAxisBaseTickMinorOptions, DChartAxisBaseTextDirectionOption, DChartAxisBaseTickTextOptions, DThemeChartAxisBase, DChartAxisBaseStrokeOptions } from "./d-chart-axis-base-options";
2
+ import { DChartAxisGuide } from "./d-chart-axis-guide";
2
3
  import { DChartAxisPosition } from "./d-chart-axis-position";
3
4
  import { DChartAxisTickPosition } from "./d-chart-axis-tick-position";
4
5
  import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
@@ -72,6 +73,9 @@ export interface DChartAxisBaseOptionParserBar {
72
73
  style?: EShapePointsStyle;
73
74
  stroke?: Partial<EShapeStrokeLike>;
74
75
  }
76
+ export interface DChartAxisBaseOptionParserGuide {
77
+ list: DChartAxisGuide[];
78
+ }
75
79
  export declare class DChartAxisBaseOptionParser<THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>> {
76
80
  coordinate: number;
77
81
  position: DChartAxisPosition;
@@ -79,8 +83,10 @@ export declare class DChartAxisBaseOptionParser<THEME extends DThemeChartAxisBas
79
83
  label: DeepPartial<EShapeTextLike> | undefined;
80
84
  padding: number;
81
85
  bar: DChartAxisBaseOptionParserBar;
86
+ guide: DChartAxisBaseOptionParserGuide;
82
87
  constructor(theme: THEME, options?: OPTIONS);
83
88
  protected toPosition(theme: THEME, options?: OPTIONS): DChartAxisPosition;
89
+ protected toGuide(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserGuide;
84
90
  protected toBar(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserBar;
85
91
  protected toTick(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserTick;
86
92
  protected toTickMajor(theme: THEME, options?: DChartAxisBaseTickOptions): DChartAxisBaseOptionParserTickMajor;
@@ -1,4 +1,5 @@
1
1
  import { DChartAxisOptions } from "./d-chart-axis";
2
+ import { DChartAxisGuide } from "./d-chart-axis-guide";
2
3
  import { DChartAxisPosition } from "./d-chart-axis-position";
3
4
  import { DChartAxisTickPosition } from "./d-chart-axis-tick-position";
4
5
  import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
@@ -96,6 +97,9 @@ export interface DChartAxisBaseLabelOptions {
96
97
  padding?: Partial<EShapeTextOffsetLike>;
97
98
  clipping?: boolean;
98
99
  }
100
+ export interface DChartAxisBaseGuideOptions {
101
+ list?: DChartAxisGuide[];
102
+ }
99
103
  export interface DChartAxisBaseOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisOptions {
100
104
  tick?: DChartAxisBaseTickOptions;
101
105
  label?: DChartAxisBaseLabelOptions;
@@ -104,6 +108,7 @@ export interface DChartAxisBaseOptions<THEME extends DThemeChartAxisBase = DThem
104
108
  coordinate?: number;
105
109
  padding?: number;
106
110
  theme?: THEME;
111
+ guide?: DChartAxisBaseGuideOptions;
107
112
  }
108
113
  export interface DThemeChartAxisBase {
109
114
  getPosition(): DChartAxisPosition;
@@ -4,6 +4,7 @@ import { DChartAxisBar } from "./d-chart-axis-bar";
4
4
  import { DChartAxisBaseOptions, DThemeChartAxisBase } from "./d-chart-axis-base-options";
5
5
  import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
6
6
  import { DChartAxisContainer } from "./d-chart-axis-container";
7
+ import { DChartAxisGuideContainer } from "./d-chart-axis-guide-container";
7
8
  import { DChartAxisPosition } from "./d-chart-axis-position";
8
9
  import { DChartAxisTickContainer } from "./d-chart-axis-tick-container";
9
10
  export declare class DChartAxisBase<CHART extends DBase = DBase, THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>> implements DChartAxis<CHART> {
@@ -13,6 +14,7 @@ export declare class DChartAxisBase<CHART extends DBase = DBase, THEME extends D
13
14
  protected _index: number;
14
15
  protected _bar: DChartAxisBar<CHART>;
15
16
  protected _tick: DChartAxisTickContainer<CHART>;
17
+ protected _guide: DChartAxisGuideContainer<CHART>;
16
18
  constructor(options?: OPTIONS);
17
19
  protected newParser(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParser<THEME>;
18
20
  get position(): DChartAxisPosition;
@@ -25,6 +27,8 @@ export declare class DChartAxisBase<CHART extends DBase = DBase, THEME extends D
25
27
  protected newBar(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisBar<CHART>;
26
28
  get tick(): DChartAxisTickContainer<CHART>;
27
29
  protected newTick(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisTickContainer<CHART>;
30
+ get guide(): DChartAxisGuideContainer<CHART>;
31
+ protected newGuide(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisGuideContainer<CHART>;
28
32
  bind(container: DChartAxisContainer<CHART>, index: number): void;
29
33
  unbind(): void;
30
34
  update(): void;
@@ -0,0 +1,14 @@
1
+ import { DBase } from "./d-base";
2
+ import { DChartAxisContainer } from "./d-chart-axis-container";
3
+ import { DChartAxisGuide } from "./d-chart-axis-guide";
4
+ export interface DChartAxisGuideContainer<CHART extends DBase = DBase> {
5
+ add(guide: DChartAxisGuide<CHART>): this;
6
+ get(index: number): DChartAxisGuide<CHART> | null;
7
+ indexOf(guide: DChartAxisGuide<CHART>): number;
8
+ clear(): this;
9
+ size(): number;
10
+ bind(container: DChartAxisContainer<CHART>, index: number): void;
11
+ unbind(): void;
12
+ update(): boolean;
13
+ destroy(): void;
14
+ }
@@ -0,0 +1,41 @@
1
+ import { DBase } from "./d-base";
2
+ import { DChartAxisContainer } from "./d-chart-axis-container";
3
+ import { DChartAxisPosition } from "./d-chart-axis-position";
4
+ import { EShapeBar } from "./shape/variant/e-shape-bar";
5
+ import { EShapeBarPosition } from "./shape/variant/e-shape-bar-position";
6
+ import { DChartAxis } from "./d-chart-axis";
7
+ import { DChartAxisGuideSimpleShape, DChartAxisGuideSimpleShapeOptions, DChartAxisGuideSimpleShapeStrokeOptions, DChartAxisGuideSimpleShapeTextAlignOptions, DChartAxisGuideSimpleShapeTextOptions } from "./d-chart-axis-guide-simple-shape";
8
+ import { EShapeStrokeLike } from "./shape/e-shape-stroke";
9
+ import { EShapeStrokeStyle } from "./shape/e-shape-stroke-style";
10
+ import { EShapeRectangleRounded } from "./shape/variant/e-shape-rectangle-rounded";
11
+ import { EShapeTextLike } from "./shape/e-shape-text";
12
+ import { DeepPartial } from "./util/deep-partial";
13
+ import { EShapeTextAlignLike } from "./shape/e-shape-text-align";
14
+ export declare class DChartAxisGuideSimpleShapeImpl<CHART extends DBase = DBase> implements DChartAxisGuideSimpleShape<CHART> {
15
+ protected _options?: DChartAxisGuideSimpleShapeOptions;
16
+ protected _bar?: EShapeBar | null;
17
+ protected _label?: EShapeRectangleRounded | null;
18
+ protected _labelMargin?: number;
19
+ protected _tick?: EShapeBar | null;
20
+ protected _tickMargin?: number;
21
+ constructor(options?: DChartAxisGuideSimpleShapeOptions);
22
+ get bar(): EShapeBar | null;
23
+ protected newBar(): EShapeBar | null;
24
+ protected toStrokeOptions(options?: DChartAxisGuideSimpleShapeStrokeOptions, style?: EShapeStrokeStyle): Partial<EShapeStrokeLike>;
25
+ protected toTextOptions(options?: DChartAxisGuideSimpleShapeTextOptions): DeepPartial<EShapeTextLike>;
26
+ protected toTextAlignOptions(options?: DChartAxisGuideSimpleShapeTextAlignOptions): Partial<EShapeTextAlignLike>;
27
+ protected toBarPosition(axis: DChartAxis<CHART>): EShapeBarPosition;
28
+ get label(): EShapeRectangleRounded | null;
29
+ protected newLabel(): EShapeRectangleRounded | null;
30
+ get labelMargin(): number;
31
+ protected newLabelMargin(): number;
32
+ get tick(): EShapeBar | null;
33
+ protected newTick(): EShapeBar | null;
34
+ get tickMargin(): number;
35
+ protected newTickMargin(): number;
36
+ protected toTickPosition(axis: DChartAxis<CHART>): EShapeBarPosition;
37
+ bind(container: DChartAxisContainer<CHART>, index: number, axis: DChartAxis<CHART>): void;
38
+ unbind(): void;
39
+ update(position: DChartAxisPosition, x: number, y: number, visible: boolean, width: number, height: number, offset: number): boolean;
40
+ destroy(): void;
41
+ }
@@ -0,0 +1,80 @@
1
+ import { DBase } from "./d-base";
2
+ import { DChartAxisContainer } from "./d-chart-axis-container";
3
+ import { DChartAxisPosition } from "./d-chart-axis-position";
4
+ import { EShapeBar } from "./shape/variant/e-shape-bar";
5
+ import { DChartAxis } from "./d-chart-axis";
6
+ import { EShapeFillLike } from "./shape/e-shape-fill";
7
+ import { EShapeTextStyle, EShapeTextWeight } from "./shape/e-shape-text";
8
+ import { EShapeStrokeSide } from "./shape/e-shape-stroke-side";
9
+ import { EShapeStrokeStyle } from "./shape/e-shape-stroke-style";
10
+ import { EShapeRectangleRounded } from "./shape/variant/e-shape-rectangle-rounded";
11
+ import { EShapeTextOffsetLike } from "./shape/e-shape-text-offset";
12
+ import { EShapeTextOutlineLike } from "./shape/e-shape-text-outline";
13
+ import { EShapeTextDirection } from "./shape/e-shape-text-direction";
14
+ import { EShapeTextAlignHorizontal } from "./shape/e-shape-text-align-horizontal";
15
+ import { EShapeTextAlignVertical } from "./shape/e-shape-text-align-vertical";
16
+ export interface DChartAxisGuideSimpleShapeStrokeOptions {
17
+ enable?: boolean;
18
+ color?: number;
19
+ alpha?: number;
20
+ width?: number;
21
+ align?: number;
22
+ side?: EShapeStrokeSide | keyof typeof EShapeStrokeSide;
23
+ style?: EShapeStrokeStyle | keyof typeof EShapeStrokeStyle;
24
+ }
25
+ export interface DChartAxisGuideSimpleShapeTextAlignOptions {
26
+ horizontal?: EShapeTextAlignHorizontal | keyof typeof EShapeTextAlignHorizontal;
27
+ vertical?: EShapeTextAlignVertical | keyof typeof EShapeTextAlignVertical;
28
+ }
29
+ export interface DChartAxisGuideSimpleShapeTextOptions {
30
+ value?: string;
31
+ color?: number;
32
+ alpha?: number;
33
+ family?: string;
34
+ size?: number;
35
+ weight?: EShapeTextWeight | keyof typeof EShapeTextWeight;
36
+ align?: DChartAxisGuideSimpleShapeTextAlignOptions;
37
+ offset?: Partial<EShapeTextOffsetLike>;
38
+ style?: EShapeTextStyle | keyof typeof EShapeTextStyle;
39
+ outline?: Partial<EShapeTextOutlineLike>;
40
+ spacing?: Partial<EShapeTextOffsetLike>;
41
+ direction?: EShapeTextDirection | keyof typeof EShapeTextDirection;
42
+ padding?: Partial<EShapeTextOffsetLike>;
43
+ clipping?: boolean;
44
+ fitting?: boolean;
45
+ }
46
+ export interface DChartAxisGuideSimpleShapeBarOptions {
47
+ enable?: boolean;
48
+ stroke?: DChartAxisGuideSimpleShapeStrokeOptions;
49
+ text?: DChartAxisGuideSimpleShapeTextOptions;
50
+ }
51
+ export interface DChartAxisGuideSimpleShapeLabelOptions {
52
+ enable?: boolean;
53
+ stroke?: DChartAxisGuideSimpleShapeStrokeOptions;
54
+ fill?: Partial<EShapeFillLike>;
55
+ text?: DChartAxisGuideSimpleShapeTextOptions;
56
+ width?: number;
57
+ height?: number;
58
+ margin?: number;
59
+ }
60
+ export interface DChartAxisGuideSimpleShapeTickOptions {
61
+ enable?: boolean;
62
+ stroke?: DChartAxisGuideSimpleShapeStrokeOptions;
63
+ text?: DChartAxisGuideSimpleShapeTextOptions;
64
+ size?: number;
65
+ margin?: number;
66
+ }
67
+ export interface DChartAxisGuideSimpleShapeOptions {
68
+ bar?: DChartAxisGuideSimpleShapeBarOptions;
69
+ label?: DChartAxisGuideSimpleShapeLabelOptions;
70
+ tick?: DChartAxisGuideSimpleShapeTickOptions;
71
+ }
72
+ export interface DChartAxisGuideSimpleShape<CHART extends DBase = DBase> {
73
+ readonly bar: EShapeBar | null;
74
+ readonly label: EShapeRectangleRounded | null;
75
+ readonly tick: EShapeBar | null;
76
+ bind(container: DChartAxisContainer<CHART>, index: number, axis: DChartAxis<CHART>): void;
77
+ unbind(): void;
78
+ update(position: DChartAxisPosition, x: number, y: number, visible: boolean, width: number, height: number, offset: number): boolean;
79
+ destroy(): void;
80
+ }
@@ -0,0 +1,32 @@
1
+ import { Point } from "pixi.js";
2
+ import { DBase } from "./d-base";
3
+ import { DChartAxisContainer } from "./d-chart-axis-container";
4
+ import { DChartAxisGuide } from "./d-chart-axis-guide";
5
+ import { DChartAxis } from "./d-chart-axis";
6
+ import { DChartAxisGuideSimpleShape, DChartAxisGuideSimpleShapeOptions } from "./d-chart-axis-guide-simple-shape";
7
+ export interface DChartAxisGuideSimpleOptions extends DChartAxisGuideSimpleShapeOptions {
8
+ position?: number;
9
+ }
10
+ export declare class DChartAxisGuideSimple<CHART extends DBase = DBase> implements DChartAxisGuide<CHART> {
11
+ protected _axis?: DChartAxis<CHART>;
12
+ protected _options?: DChartAxisGuideSimpleOptions;
13
+ protected _container?: DChartAxisContainer<CHART>;
14
+ protected _index: number;
15
+ protected _shape?: DChartAxisGuideSimpleShape;
16
+ protected _position: number;
17
+ protected _work: Point;
18
+ protected _isShown: boolean;
19
+ constructor(options?: DChartAxisGuideSimpleOptions);
20
+ get shape(): DChartAxisGuideSimpleShape;
21
+ protected newShape(): DChartAxisGuideSimpleShape;
22
+ get position(): number;
23
+ set position(position: number);
24
+ show(): this;
25
+ isShown(): boolean;
26
+ hide(): this;
27
+ isHidden(): boolean;
28
+ bind(container: DChartAxisContainer<CHART>, index: number, axis: DChartAxis<CHART>): void;
29
+ unbind(): void;
30
+ update(): boolean;
31
+ destroy(): void;
32
+ }
@@ -0,0 +1,14 @@
1
+ import { DBase } from "./d-base";
2
+ import { DChartAxis } from "./d-chart-axis";
3
+ import { DChartAxisContainer } from "./d-chart-axis-container";
4
+ export interface DChartAxisGuide<CHART extends DBase = DBase> {
5
+ position: number;
6
+ bind(container: DChartAxisContainer<CHART>, index: number, axis: DChartAxis<CHART>): void;
7
+ unbind(): void;
8
+ show(): this;
9
+ isShown(): boolean;
10
+ hide(): this;
11
+ isHidden(): boolean;
12
+ update(): boolean;
13
+ destroy(): void;
14
+ }
@@ -1,6 +1,7 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { DChartAxisBar } from "./d-chart-axis-bar";
3
3
  import { DChartAxisContainer } from "./d-chart-axis-container";
4
+ import { DChartAxisGuideContainer } from "./d-chart-axis-guide-container";
4
5
  import { DChartAxisPosition } from "./d-chart-axis-position";
5
6
  import { DChartAxisTickContainer } from "./d-chart-axis-tick-container";
6
7
  export interface DChartAxisOptions {
@@ -12,6 +13,7 @@ export interface DChartAxis<CHART extends DBase = DBase> {
12
13
  padding: number;
13
14
  readonly bar: DChartAxisBar<CHART>;
14
15
  readonly tick: DChartAxisTickContainer<CHART>;
16
+ readonly guide: DChartAxisGuideContainer<CHART>;
15
17
  bind(container: DChartAxisContainer<CHART>, index: number): void;
16
18
  unbind(): void;
17
19
  update(): void;