@ax-design/reveal-highlight 0.4.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +75 -75
- package/build/BaseConfig.d.ts +5 -1
- package/build/BaseConfig.d.ts.map +1 -1
- package/build/CanvasConfig.d.ts +7 -1
- package/build/CanvasConfig.d.ts.map +1 -1
- package/build/ComputedStyleStorage.d.ts.map +1 -1
- package/build/CustomElements.d.ts +20 -4
- package/build/CustomElements.d.ts.map +1 -1
- package/build/RevealBoundryStore.d.ts +4 -0
- package/build/RevealBoundryStore.d.ts.map +1 -1
- package/build/RevealStateManager.d.ts +5 -1
- package/build/RevealStateManager.d.ts.map +1 -1
- package/build/main.js +113 -82
- package/build/utils/types.d.ts +2 -10
- package/build/utils/types.d.ts.map +1 -1
- package/es/BaseConfig.d.ts +46 -42
- package/es/BaseConfig.d.ts.map +1 -1
- package/es/BaseConfig.js +241 -219
- package/es/BaseConfig.js.map +1 -1
- package/es/CanvasConfig.d.ts +21 -15
- package/es/CanvasConfig.d.ts.map +1 -1
- package/es/CanvasConfig.js +332 -320
- package/es/CanvasConfig.js.map +1 -1
- package/es/ComputedStyleStorage.d.ts +8 -8
- package/es/ComputedStyleStorage.d.ts.map +1 -1
- package/es/ComputedStyleStorage.js +68 -58
- package/es/ComputedStyleStorage.js.map +1 -1
- package/es/CustomElements.d.ts +75 -59
- package/es/CustomElements.d.ts.map +1 -1
- package/es/CustomElements.js +296 -233
- package/es/CustomElements.js.map +1 -1
- package/es/Profiler.d.ts +12 -12
- package/es/Profiler.js +31 -31
- package/es/RevealBoundryStore.d.ts +80 -76
- package/es/RevealBoundryStore.d.ts.map +1 -1
- package/es/RevealBoundryStore.js +269 -248
- package/es/RevealBoundryStore.js.map +1 -1
- package/es/RevealStateManager.d.ts +19 -15
- package/es/RevealStateManager.d.ts.map +1 -1
- package/es/RevealStateManager.js +99 -73
- package/es/RevealStateManager.js.map +1 -1
- package/es/SvgConfig.d.ts +16 -16
- package/es/SvgConfig.js +345 -345
- package/es/config.d.ts +4 -4
- package/es/config.js +21 -21
- package/es/index.d.ts +5 -5
- package/es/index.js +205 -205
- package/es/tsconfig.tsbuildinfo +1 -1
- package/es/utils/extractRGBValue.d.ts +1 -1
- package/es/utils/extractRGBValue.js +47 -47
- package/es/utils/isValidateBorderDecorationType.d.ts +2 -2
- package/es/utils/isValidateBorderDecorationType.js +9 -9
- package/es/utils/types.d.ts +94 -102
- package/es/utils/types.d.ts.map +1 -1
- package/es/utils/types.js +1 -1
- package/es/variables.d.ts +1 -1
- package/es/variables.js +1 -1
- package/package.json +35 -34
- package/src/BaseConfig.ts +332 -310
- package/src/CanvasConfig.ts +420 -415
- package/src/ComputedStyleStorage.ts +102 -89
- package/src/CustomElements.ts +344 -272
- package/src/Profiler.ts +44 -44
- package/src/RevealBoundryStore.ts +315 -291
- package/src/RevealStateManager.ts +109 -86
- package/src/SvgConfig.ts +422 -422
- package/src/config.ts +26 -26
- package/src/cssTypedOM.d.ts +52 -52
- package/src/index.ts +219 -219
- package/src/utils/extractRGBValue.ts +58 -58
- package/src/utils/isValidateBorderDecorationType.ts +8 -8
- package/src/utils/types.ts +97 -105
- package/src/variables.ts +1 -1
package/es/BaseConfig.js
CHANGED
|
@@ -1,220 +1,242 @@
|
|
|
1
|
-
import { createStorage } from './ComputedStyleStorage.js';
|
|
2
|
-
import { extractRGBValue } from './utils/extractRGBValue.js';
|
|
3
|
-
import { isValidateBorderDecorationType } from './utils/isValidateBorderDecorationType.js';
|
|
4
|
-
export class BaseConfig {
|
|
5
|
-
constructor(store, $canvas, $container) {
|
|
6
|
-
this.pxRatio = window.devicePixelRatio || 1;
|
|
7
|
-
this.paintedWidth = 0;
|
|
8
|
-
this.paintedHeight = 0;
|
|
9
|
-
this.currentFrameId = -1;
|
|
10
|
-
this.cachedBoundingRectFrameId = -2;
|
|
11
|
-
this.cachedBoundingRect = {
|
|
12
|
-
top: -1,
|
|
13
|
-
left: -1,
|
|
14
|
-
width: -1,
|
|
15
|
-
height: -1,
|
|
16
|
-
};
|
|
17
|
-
this.cachedStyleFrameId = -2;
|
|
18
|
-
this.cachedStyle = {
|
|
19
|
-
trueFillRadius: [0, 0],
|
|
20
|
-
color: '',
|
|
21
|
-
opacity: 1,
|
|
22
|
-
borderColor: '',
|
|
23
|
-
borderFillRadius: 0,
|
|
24
|
-
borderDecorationType: 'miter',
|
|
25
|
-
borderDecorationRadius: 0,
|
|
26
|
-
topLeftBorderDecorationRadius: 0,
|
|
27
|
-
topRightBorderDecorationRadius: 0,
|
|
28
|
-
bottomLeftBorderDecorationRadius: 0,
|
|
29
|
-
bottomRightBorderDecorationRadius: 0,
|
|
30
|
-
withLeftBorderFactor: 1,
|
|
31
|
-
withRightBorderFactor: 1,
|
|
32
|
-
withTopBorderFactor: 1,
|
|
33
|
-
withBottomBorderFactor: 1,
|
|
34
|
-
borderWidth: 1,
|
|
35
|
-
hoverLight: true,
|
|
36
|
-
hoverLightColor: '',
|
|
37
|
-
hoverLightFillMode: '',
|
|
38
|
-
hoverLightFillRadius: 0,
|
|
39
|
-
diffuse: true,
|
|
40
|
-
pressAnimation: true,
|
|
41
|
-
pressAnimationFillMode: '',
|
|
42
|
-
pressAnimationColor: '',
|
|
43
|
-
pressAnimationSpeed: 0,
|
|
44
|
-
releaseAnimationAccelerateRate: 0,
|
|
45
|
-
};
|
|
46
|
-
this.dirty = false;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
this.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
trueFillRadius[
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
return;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
//
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
this.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
this.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
1
|
+
import { createStorage } from './ComputedStyleStorage.js';
|
|
2
|
+
import { extractRGBValue } from './utils/extractRGBValue.js';
|
|
3
|
+
import { isValidateBorderDecorationType } from './utils/isValidateBorderDecorationType.js';
|
|
4
|
+
export class BaseConfig {
|
|
5
|
+
constructor(store, $canvas, $container) {
|
|
6
|
+
this.pxRatio = window.devicePixelRatio || 1;
|
|
7
|
+
this.paintedWidth = 0;
|
|
8
|
+
this.paintedHeight = 0;
|
|
9
|
+
this.currentFrameId = -1;
|
|
10
|
+
this.cachedBoundingRectFrameId = -2;
|
|
11
|
+
this.cachedBoundingRect = {
|
|
12
|
+
top: -1,
|
|
13
|
+
left: -1,
|
|
14
|
+
width: -1,
|
|
15
|
+
height: -1,
|
|
16
|
+
};
|
|
17
|
+
this.cachedStyleFrameId = -2;
|
|
18
|
+
this.cachedStyle = {
|
|
19
|
+
trueFillRadius: [0, 0],
|
|
20
|
+
color: '',
|
|
21
|
+
opacity: 1,
|
|
22
|
+
borderColor: '',
|
|
23
|
+
borderFillRadius: 0,
|
|
24
|
+
borderDecorationType: 'miter',
|
|
25
|
+
borderDecorationRadius: 0,
|
|
26
|
+
topLeftBorderDecorationRadius: 0,
|
|
27
|
+
topRightBorderDecorationRadius: 0,
|
|
28
|
+
bottomLeftBorderDecorationRadius: 0,
|
|
29
|
+
bottomRightBorderDecorationRadius: 0,
|
|
30
|
+
withLeftBorderFactor: 1,
|
|
31
|
+
withRightBorderFactor: 1,
|
|
32
|
+
withTopBorderFactor: 1,
|
|
33
|
+
withBottomBorderFactor: 1,
|
|
34
|
+
borderWidth: 1,
|
|
35
|
+
hoverLight: true,
|
|
36
|
+
hoverLightColor: '',
|
|
37
|
+
hoverLightFillMode: '',
|
|
38
|
+
hoverLightFillRadius: 0,
|
|
39
|
+
diffuse: true,
|
|
40
|
+
pressAnimation: true,
|
|
41
|
+
pressAnimationFillMode: '',
|
|
42
|
+
pressAnimationColor: '',
|
|
43
|
+
pressAnimationSpeed: 0,
|
|
44
|
+
releaseAnimationAccelerateRate: 0,
|
|
45
|
+
};
|
|
46
|
+
this.dirty = false;
|
|
47
|
+
/**
|
|
48
|
+
* Bumped whenever `cacheCanvasPaintingStyle` sees any value change, so
|
|
49
|
+
* painters can tell whether the last painted frame is still valid.
|
|
50
|
+
*/
|
|
51
|
+
this.styleVersion = 0;
|
|
52
|
+
this.shapeDirty = true;
|
|
53
|
+
this.fillDirty = true;
|
|
54
|
+
this.animationDirty = true;
|
|
55
|
+
/**
|
|
56
|
+
* If is cleaned up by `RevealBoundaryStore` during animation
|
|
57
|
+
* duration checkup.
|
|
58
|
+
*/
|
|
59
|
+
this.cleanedUpForAnimation = false;
|
|
60
|
+
this.mouseUpClientX = null;
|
|
61
|
+
this.mouseUpClientY = null;
|
|
62
|
+
this.mouseDownAnimateStartFrame = null;
|
|
63
|
+
this.mouseDownAnimateCurrentFrame = null;
|
|
64
|
+
this.mouseDownAnimateReleasedFrame = null;
|
|
65
|
+
this.mouseDownAnimateLogicFrame = null;
|
|
66
|
+
this.mousePressed = false;
|
|
67
|
+
this.mouseReleased = false;
|
|
68
|
+
this.cacheBoundingRect = () => {
|
|
69
|
+
if (this.currentFrameId === this.cachedBoundingRectFrameId) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const boundingRect = this.container.getBoundingClientRect();
|
|
73
|
+
this.cachedBoundingRect.top = Math.floor(boundingRect.top);
|
|
74
|
+
this.cachedBoundingRect.left = Math.floor(boundingRect.left);
|
|
75
|
+
this.cachedBoundingRect.width = Math.floor(boundingRect.width);
|
|
76
|
+
this.cachedBoundingRect.height = Math.floor(boundingRect.height);
|
|
77
|
+
this.cachedBoundingRectFrameId = this.currentFrameId;
|
|
78
|
+
};
|
|
79
|
+
this.getTrueFillRadius = (trueFillRadius = [0, 0], fillMode = this.computedStyle.get('--reveal-hover-light-fill-radius-mode') || 'relative') => {
|
|
80
|
+
const b = this.cachedBoundingRect;
|
|
81
|
+
switch (fillMode) {
|
|
82
|
+
case 'relative':
|
|
83
|
+
trueFillRadius[0] = Math.min(b.width, b.height);
|
|
84
|
+
trueFillRadius[1] = Math.max(b.width, b.height);
|
|
85
|
+
break;
|
|
86
|
+
case 'absolute':
|
|
87
|
+
trueFillRadius[0] = -1;
|
|
88
|
+
trueFillRadius[1] = -1;
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
throw new SyntaxError('The value of `--reveal-hover-light-fill-radius-mode` must be `relative`, `absolute`, but got `' + fillMode + '`!');
|
|
92
|
+
}
|
|
93
|
+
return trueFillRadius;
|
|
94
|
+
};
|
|
95
|
+
this.getPropFromMultipleSource = (domPropsName, cssPropsName) => {
|
|
96
|
+
const domProps = this.container.dataset[domPropsName];
|
|
97
|
+
if (domProps)
|
|
98
|
+
return domProps;
|
|
99
|
+
return this.computedStyle.get(cssPropsName);
|
|
100
|
+
};
|
|
101
|
+
this.getNumberPropFromMultipleSource = (domPropsName, cssPropsName) => {
|
|
102
|
+
const domProps = this.container.dataset[domPropsName];
|
|
103
|
+
if (domProps)
|
|
104
|
+
return Number.parseFloat(domProps);
|
|
105
|
+
return this.computedStyle.getNumber(cssPropsName);
|
|
106
|
+
};
|
|
107
|
+
this.cacheCanvasPaintingStyle = () => {
|
|
108
|
+
if (this.currentFrameId === this.cachedStyleFrameId) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (this.computedStyle.size() === 0) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const parsedBaseColor = extractRGBValue(this.computedStyle.getColor('--reveal-color')) || '0, 0, 0';
|
|
115
|
+
const parsedBorderColor = extractRGBValue(this.computedStyle.getColor('--reveal-border-color')) || parsedBaseColor;
|
|
116
|
+
const parsedHoverLightColor = extractRGBValue(this.computedStyle.getColor('--reveal-hover-light-color')) || parsedBaseColor;
|
|
117
|
+
const parsedPressAnimationColor = extractRGBValue(this.computedStyle.getColor('--reveal-press-animation-color')) || parsedBaseColor;
|
|
118
|
+
const nextColor = parsedBaseColor;
|
|
119
|
+
const nextOpacity = this.computedStyle.getNumber('--reveal-opacity');
|
|
120
|
+
// Border related configurations
|
|
121
|
+
const nextBorderColor = parsedBorderColor;
|
|
122
|
+
const nextBorderFillRadius = this.computedStyle.getNumber('--reveal-border-fill-radius');
|
|
123
|
+
const nextBorderDecorationType = this.computedStyle.get('--reveal-border-decoration-type') || 'miter';
|
|
124
|
+
const nextBorderWidth = this.computedStyle.getNumber('--reveal-border-width');
|
|
125
|
+
const nextWithLeftBorderFactor = this.getPropFromMultipleSource('leftBorder', '--reveal-border-left-type') === 'line' ? 1 : 0;
|
|
126
|
+
const nextWithRightBorderFactor = this.getPropFromMultipleSource('rightBorder', '--reveal-border-right-type') === 'line' ? 1 : 0;
|
|
127
|
+
const nextWithTopBorderFactor = this.getPropFromMultipleSource('topBorder', '--reveal-border-top-type') === 'line' ? 1 : 0;
|
|
128
|
+
const nextWithBottomBorderFactor = this.getPropFromMultipleSource('bottomBorder', '--reveal-border-bottom-type') === 'line' ? 1 : 0;
|
|
129
|
+
// Hover light related configurations
|
|
130
|
+
const nextHoverLight = this.computedStyle.get('--reveal-hover-light') === 'true';
|
|
131
|
+
const nextHoverLightColor = parsedHoverLightColor;
|
|
132
|
+
const nextHoverLightFillRadius = this.computedStyle.getNumber('--reveal-hover-light-fill-radius');
|
|
133
|
+
const nextHoverLightFillMode = this.computedStyle.get('--reveal-hover-light-fill-radius-mode') || 'relative';
|
|
134
|
+
// Press animation related configurations
|
|
135
|
+
const nextDiffuse = this.computedStyle.get('--reveal-diffuse') === 'true';
|
|
136
|
+
const nextPressAnimation = this.computedStyle.get('--reveal-press-animation') === 'true';
|
|
137
|
+
const nextPressAnimationFillMode = this.computedStyle.get('--reveal-press-animation-radius-mode');
|
|
138
|
+
const nextPressAnimationColor = parsedPressAnimationColor;
|
|
139
|
+
const nextPressAnimationSpeed = this.computedStyle.getNumber('--reveal-press-animation-speed');
|
|
140
|
+
const nextReleaseAnimationAccelerateRate = this.computedStyle.getNumber('--reveal-release-animation-accelerate-rate');
|
|
141
|
+
// Border decoration related configurations
|
|
142
|
+
const r = this.computedStyle.getNumber('--reveal-border-decoration-radius');
|
|
143
|
+
const tl = this.getNumberPropFromMultipleSource('topLeftBorderRadius', '--reveal-border-decoration-top-left-radius');
|
|
144
|
+
const tr = this.getNumberPropFromMultipleSource('topRightBorderRadius', '--reveal-border-decoration-top-right-radius');
|
|
145
|
+
const bl = this.getNumberPropFromMultipleSource('bottomLeftBorderRadius', '--reveal-border-decoration-bottom-left-radius');
|
|
146
|
+
const br = this.getNumberPropFromMultipleSource('bottomRightBorderRadius', '--reveal-border-decoration-bottom-right-radius');
|
|
147
|
+
const nextTopLeftBorderDecorationRadius = tl >= 0 ? tl : r;
|
|
148
|
+
const nextTopRightBorderDecorationRadius = tr >= 0 ? tr : r;
|
|
149
|
+
const nextBottomLeftBorderDecorationRadius = bl >= 0 ? bl : r;
|
|
150
|
+
const nextBottomRightBorderDecorationRadius = br >= 0 ? br : r;
|
|
151
|
+
const c = this.cachedStyle;
|
|
152
|
+
const styleChanged = c.color !== nextColor ||
|
|
153
|
+
c.opacity !== nextOpacity ||
|
|
154
|
+
c.borderColor !== nextBorderColor ||
|
|
155
|
+
c.borderFillRadius !== nextBorderFillRadius ||
|
|
156
|
+
c.borderDecorationType !== nextBorderDecorationType ||
|
|
157
|
+
c.borderWidth !== nextBorderWidth ||
|
|
158
|
+
c.withLeftBorderFactor !== nextWithLeftBorderFactor ||
|
|
159
|
+
c.withRightBorderFactor !== nextWithRightBorderFactor ||
|
|
160
|
+
c.withTopBorderFactor !== nextWithTopBorderFactor ||
|
|
161
|
+
c.withBottomBorderFactor !== nextWithBottomBorderFactor ||
|
|
162
|
+
c.hoverLight !== nextHoverLight ||
|
|
163
|
+
c.hoverLightColor !== nextHoverLightColor ||
|
|
164
|
+
c.hoverLightFillRadius !== nextHoverLightFillRadius ||
|
|
165
|
+
c.hoverLightFillMode !== nextHoverLightFillMode ||
|
|
166
|
+
c.diffuse !== nextDiffuse ||
|
|
167
|
+
c.pressAnimation !== nextPressAnimation ||
|
|
168
|
+
c.pressAnimationFillMode !== nextPressAnimationFillMode ||
|
|
169
|
+
c.pressAnimationColor !== nextPressAnimationColor ||
|
|
170
|
+
c.pressAnimationSpeed !== nextPressAnimationSpeed ||
|
|
171
|
+
c.releaseAnimationAccelerateRate !== nextReleaseAnimationAccelerateRate ||
|
|
172
|
+
c.topLeftBorderDecorationRadius !== nextTopLeftBorderDecorationRadius ||
|
|
173
|
+
c.topRightBorderDecorationRadius !== nextTopRightBorderDecorationRadius ||
|
|
174
|
+
c.bottomLeftBorderDecorationRadius !== nextBottomLeftBorderDecorationRadius ||
|
|
175
|
+
c.bottomRightBorderDecorationRadius !== nextBottomRightBorderDecorationRadius;
|
|
176
|
+
if (styleChanged)
|
|
177
|
+
this.styleVersion++;
|
|
178
|
+
this.fillDirty = this.fillDirty || c.color !== nextColor;
|
|
179
|
+
this.fillDirty = this.fillDirty || c.opacity !== nextOpacity;
|
|
180
|
+
this.fillDirty = this.fillDirty || c.borderColor !== nextBorderColor;
|
|
181
|
+
this.fillDirty = this.fillDirty || c.borderFillRadius !== nextBorderFillRadius;
|
|
182
|
+
this.fillDirty = this.fillDirty || c.hoverLightColor !== nextHoverLightColor;
|
|
183
|
+
this.fillDirty = this.fillDirty || c.hoverLightFillRadius !== nextHoverLightFillRadius;
|
|
184
|
+
this.fillDirty = this.fillDirty || c.hoverLightFillMode !== nextHoverLightFillMode;
|
|
185
|
+
this.shapeDirty = this.shapeDirty || c.borderDecorationType !== nextBorderDecorationType;
|
|
186
|
+
this.shapeDirty = this.shapeDirty || c.borderWidth !== nextBorderWidth;
|
|
187
|
+
this.shapeDirty = this.shapeDirty || c.withLeftBorderFactor !== nextWithLeftBorderFactor;
|
|
188
|
+
this.shapeDirty = this.shapeDirty || c.withRightBorderFactor !== nextWithRightBorderFactor;
|
|
189
|
+
this.shapeDirty = this.shapeDirty || c.withTopBorderFactor !== nextWithTopBorderFactor;
|
|
190
|
+
this.shapeDirty = this.shapeDirty || c.withBottomBorderFactor !== nextWithBottomBorderFactor;
|
|
191
|
+
this.shapeDirty = this.shapeDirty || c.topLeftBorderDecorationRadius !== nextTopLeftBorderDecorationRadius;
|
|
192
|
+
this.shapeDirty = this.shapeDirty || c.topRightBorderDecorationRadius !== nextTopRightBorderDecorationRadius;
|
|
193
|
+
this.shapeDirty = this.shapeDirty || c.bottomLeftBorderDecorationRadius !== nextBottomLeftBorderDecorationRadius;
|
|
194
|
+
this.shapeDirty = this.shapeDirty || c.bottomRightBorderDecorationRadius !== nextBottomRightBorderDecorationRadius;
|
|
195
|
+
this.animationDirty = this.animationDirty || c.pressAnimation !== nextPressAnimation;
|
|
196
|
+
this.animationDirty = this.animationDirty || c.pressAnimationFillMode !== nextPressAnimationFillMode;
|
|
197
|
+
this.animationDirty = this.animationDirty || c.pressAnimationColor !== nextPressAnimationColor;
|
|
198
|
+
this.animationDirty = this.animationDirty || c.pressAnimationSpeed !== nextPressAnimationSpeed;
|
|
199
|
+
this.animationDirty = this.animationDirty || c.releaseAnimationAccelerateRate !== nextReleaseAnimationAccelerateRate;
|
|
200
|
+
c.color = nextColor;
|
|
201
|
+
c.opacity = nextOpacity;
|
|
202
|
+
c.borderColor = nextBorderColor;
|
|
203
|
+
c.borderFillRadius = nextBorderFillRadius;
|
|
204
|
+
c.borderDecorationType = nextBorderDecorationType;
|
|
205
|
+
c.borderWidth = nextBorderWidth;
|
|
206
|
+
c.withLeftBorderFactor = nextWithLeftBorderFactor;
|
|
207
|
+
c.withRightBorderFactor = nextWithRightBorderFactor;
|
|
208
|
+
c.withTopBorderFactor = nextWithTopBorderFactor;
|
|
209
|
+
c.withBottomBorderFactor = nextWithBottomBorderFactor;
|
|
210
|
+
c.hoverLight = nextHoverLight;
|
|
211
|
+
c.hoverLightColor = nextHoverLightColor;
|
|
212
|
+
c.hoverLightFillRadius = nextHoverLightFillRadius;
|
|
213
|
+
c.hoverLightFillMode = nextHoverLightFillMode;
|
|
214
|
+
c.diffuse = nextDiffuse;
|
|
215
|
+
c.pressAnimation = nextPressAnimation;
|
|
216
|
+
c.pressAnimationFillMode = nextPressAnimationFillMode;
|
|
217
|
+
c.pressAnimationColor = nextPressAnimationColor;
|
|
218
|
+
c.pressAnimationSpeed = nextPressAnimationSpeed;
|
|
219
|
+
c.releaseAnimationAccelerateRate = nextReleaseAnimationAccelerateRate;
|
|
220
|
+
c.topLeftBorderDecorationRadius = nextTopLeftBorderDecorationRadius;
|
|
221
|
+
c.topRightBorderDecorationRadius = nextTopRightBorderDecorationRadius;
|
|
222
|
+
c.bottomLeftBorderDecorationRadius = nextBottomLeftBorderDecorationRadius;
|
|
223
|
+
c.bottomRightBorderDecorationRadius = nextBottomRightBorderDecorationRadius;
|
|
224
|
+
this.getTrueFillRadius(c.trueFillRadius, c.hoverLightFillMode);
|
|
225
|
+
if (!isValidateBorderDecorationType(c.borderDecorationType)) {
|
|
226
|
+
throw new SyntaxError('The value of `--reveal-border-decoration-type` must be `round`, `bevel` or `miter`!');
|
|
227
|
+
}
|
|
228
|
+
this.cachedStyleFrameId = this.currentFrameId;
|
|
229
|
+
};
|
|
230
|
+
this.mouseInCanvas = () => {
|
|
231
|
+
const b = this.cachedBoundingRect;
|
|
232
|
+
const relativeX = this._store.clientX - b.left;
|
|
233
|
+
const relativeY = this._store.clientY - b.top;
|
|
234
|
+
return relativeX > 0 && relativeY > 0 && relativeX < b.width && relativeY < b.height;
|
|
235
|
+
};
|
|
236
|
+
this._store = store;
|
|
237
|
+
this.container = $container;
|
|
238
|
+
this.element = $canvas;
|
|
239
|
+
this.computedStyle = createStorage($container);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
220
242
|
//# sourceMappingURL=BaseConfig.js.map
|
package/es/BaseConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConfig.js","sourceRoot":"","sources":["../src/BaseConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGhF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAG3F,MAAM,OAAO,UAAU;IA6EnB,YAAY,KAA0B,EAAE,OAAU,EAAE,UAAuB;QA1E3E,YAAO,GAAG,MAAM,CAAC,gBAAgB,IAAI,CAAC,CAAC;QAOvC,iBAAY,GAAG,CAAC,CAAC;QACjB,kBAAa,GAAG,CAAC,CAAC;QAElB,mBAAc,GAAW,CAAC,CAAC,CAAC;QAE5B,8BAAyB,GAAW,CAAC,CAAC,CAAC;QAEvC,uBAAkB,GAAuB;YACrC,GAAG,EAAE,CAAC,CAAC;YACP,IAAI,EAAE,CAAC,CAAC;YACR,KAAK,EAAE,CAAC,CAAC;YACT,MAAM,EAAE,CAAC,CAAC;SACb,CAAC;QAEF,uBAAkB,GAAW,CAAC,CAAC,CAAC;QAEh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C,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC;CA2OJ"}
|
package/es/CanvasConfig.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { RevealBoundaryStore } from './RevealBoundryStore.js';
|
|
2
|
-
import type { CachedRevealBitmap } from './utils/types.js';
|
|
3
|
-
import { BaseConfig } from './BaseConfig.js';
|
|
4
|
-
export declare class CanvasConfig extends BaseConfig<HTMLCanvasElement> {
|
|
5
|
-
ctx: CanvasRenderingContext2D | null;
|
|
6
|
-
protected cachedImg: CachedRevealBitmap;
|
|
7
|
-
constructor(store: RevealBoundaryStore, $canvas: HTMLCanvasElement, $container: HTMLElement);
|
|
8
|
-
updateCachedReveal: () => void;
|
|
9
|
-
updateCachedBitmap: () => void;
|
|
10
|
-
private updateAnimateGrd;
|
|
11
|
-
private drawShape;
|
|
12
|
-
syncSizeToElement: (x: HTMLCanvasElement) => void;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { RevealBoundaryStore } from './RevealBoundryStore.js';
|
|
2
|
+
import type { CachedRevealBitmap } from './utils/types.js';
|
|
3
|
+
import { BaseConfig } from './BaseConfig.js';
|
|
4
|
+
export declare class CanvasConfig extends BaseConfig<HTMLCanvasElement> {
|
|
5
|
+
ctx: CanvasRenderingContext2D | null;
|
|
6
|
+
protected cachedImg: CachedRevealBitmap;
|
|
7
|
+
constructor(store: RevealBoundaryStore, $canvas: HTMLCanvasElement, $container: HTMLElement);
|
|
8
|
+
updateCachedReveal: () => void;
|
|
9
|
+
updateCachedBitmap: () => void;
|
|
10
|
+
private updateAnimateGrd;
|
|
11
|
+
private drawShape;
|
|
12
|
+
syncSizeToElement: (x: HTMLCanvasElement) => void;
|
|
13
|
+
private paintedRelativeX;
|
|
14
|
+
private paintedRelativeY;
|
|
15
|
+
private paintedRectWidth;
|
|
16
|
+
private paintedRectHeight;
|
|
17
|
+
private paintedStyleVersion;
|
|
18
|
+
private paintedAnimation;
|
|
19
|
+
clear: () => boolean;
|
|
20
|
+
paint: (_skipSamePointerPositionCheck?: boolean | undefined) => boolean;
|
|
21
|
+
}
|
|
16
22
|
//# sourceMappingURL=CanvasConfig.d.ts.map
|
package/es/CanvasConfig.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasConfig.d.ts","sourceRoot":"","sources":["../src/CanvasConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasConfig.d.ts","sourceRoot":"","sources":["../src/CanvasConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,qBAAa,YAAa,SAAQ,UAAU,CAAC,iBAAiB,CAAC;IAC3D,GAAG,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAErC,SAAS,CAAC,SAAS,EAAE,kBAAkB,CAAC;gBAE5B,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW;IAyB3F,kBAAkB,aA8ChB;IAEF,kBAAkB,aAGhB;IAEF,OAAO,CAAC,gBAAgB,CAgBtB;IAEF,OAAO,CAAC,SAAS,CA8Hf;IAEF,iBAAiB,MAAO,iBAAiB,UAcvC;IAIF,OAAO,CAAC,gBAAgB,CAAO;IAC/B,OAAO,CAAC,gBAAgB,CAAO;IAC/B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OAAO,CAAC,mBAAmB,CAAM;IACjC,OAAO,CAAC,gBAAgB,CAAS;IAEjC,KAAK,gBAeJ;IAED,KAAK,2DAA8C,OAAO,CA6IxD;CACL"}
|