@ax-design/reveal-highlight 0.3.0-alpha.7 → 0.4.1

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 (92) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +76 -235
  3. package/build/BaseConfig.d.ts +43 -0
  4. package/build/BaseConfig.d.ts.map +1 -0
  5. package/build/CanvasConfig.d.ts +7 -92
  6. package/build/CanvasConfig.d.ts.map +1 -1
  7. package/build/CustomElements.d.ts +20 -4
  8. package/build/CustomElements.d.ts.map +1 -1
  9. package/build/RevealBoundryStore.d.ts +50 -10
  10. package/build/RevealBoundryStore.d.ts.map +1 -1
  11. package/build/RevealStateManager.d.ts +3 -0
  12. package/build/RevealStateManager.d.ts.map +1 -1
  13. package/build/SvgConfig.d.ts +17 -0
  14. package/build/SvgConfig.d.ts.map +1 -0
  15. package/build/index.d.ts.map +1 -1
  16. package/build/main.js +169 -17
  17. package/build/utils/extractRGBValue.d.ts +2 -0
  18. package/build/utils/extractRGBValue.d.ts.map +1 -0
  19. package/build/utils/isValidateBorderDecorationType.d.ts +3 -0
  20. package/build/utils/isValidateBorderDecorationType.d.ts.map +1 -0
  21. package/build/utils/types.d.ts +103 -0
  22. package/build/utils/types.d.ts.map +1 -0
  23. package/es/BaseConfig.d.ts +43 -0
  24. package/es/BaseConfig.d.ts.map +1 -0
  25. package/es/BaseConfig.js +220 -0
  26. package/es/BaseConfig.js.map +1 -0
  27. package/es/CanvasConfig.d.ts +7 -92
  28. package/es/CanvasConfig.d.ts.map +1 -1
  29. package/es/CanvasConfig.js +35 -233
  30. package/es/CanvasConfig.js.map +1 -1
  31. package/es/CustomElements.d.ts +20 -4
  32. package/es/CustomElements.d.ts.map +1 -1
  33. package/es/CustomElements.js +130 -33
  34. package/es/CustomElements.js.map +1 -1
  35. package/es/RevealBoundryStore.d.ts +50 -10
  36. package/es/RevealBoundryStore.d.ts.map +1 -1
  37. package/es/RevealBoundryStore.js +129 -35
  38. package/es/RevealBoundryStore.js.map +1 -1
  39. package/es/RevealStateManager.d.ts +3 -0
  40. package/es/RevealStateManager.d.ts.map +1 -1
  41. package/es/RevealStateManager.js +35 -8
  42. package/es/RevealStateManager.js.map +1 -1
  43. package/es/SvgConfig.d.ts +17 -0
  44. package/es/SvgConfig.d.ts.map +1 -0
  45. package/es/SvgConfig.js +346 -0
  46. package/es/SvgConfig.js.map +1 -0
  47. package/es/index.d.ts.map +1 -1
  48. package/es/index.js +12 -18
  49. package/es/index.js.map +1 -1
  50. package/es/tsconfig.tsbuildinfo +1 -0
  51. package/es/utils/extractRGBValue.d.ts +2 -0
  52. package/es/utils/extractRGBValue.d.ts.map +1 -0
  53. package/es/utils/extractRGBValue.js +48 -0
  54. package/es/utils/extractRGBValue.js.map +1 -0
  55. package/es/utils/isValidateBorderDecorationType.d.ts +3 -0
  56. package/es/utils/isValidateBorderDecorationType.d.ts.map +1 -0
  57. package/es/utils/isValidateBorderDecorationType.js +10 -0
  58. package/es/utils/isValidateBorderDecorationType.js.map +1 -0
  59. package/es/utils/types.d.ts +103 -0
  60. package/es/utils/types.d.ts.map +1 -0
  61. package/es/utils/types.js +2 -0
  62. package/es/utils/types.js.map +1 -0
  63. package/package.json +34 -30
  64. package/src/BaseConfig.ts +311 -0
  65. package/src/CanvasConfig.ts +415 -729
  66. package/src/ComputedStyleStorage.ts +89 -89
  67. package/src/CustomElements.ts +272 -164
  68. package/src/Profiler.ts +44 -44
  69. package/src/RevealBoundryStore.ts +291 -192
  70. package/src/RevealStateManager.ts +78 -48
  71. package/src/SvgConfig.ts +422 -0
  72. package/src/config.ts +26 -26
  73. package/src/cssTypedOM.d.ts +52 -52
  74. package/src/index.ts +219 -225
  75. package/src/utils/extractRGBValue.ts +58 -0
  76. package/src/utils/isValidateBorderDecorationType.ts +8 -0
  77. package/src/utils/types.ts +106 -0
  78. package/src/variables.ts +1 -1
  79. package/.prettierrc +0 -6
  80. package/.travis.yml +0 -26
  81. package/.yarnrc.yml +0 -1
  82. package/docs/demo/debug.html +0 -75
  83. package/docs/demo/index.html +0 -1065
  84. package/docs/demo/performance-inspector.html +0 -60
  85. package/docs/demo/shapes-demo.html +0 -93
  86. package/docs/demo/single-unit.html +0 -40
  87. package/docs/logo.png +0 -0
  88. package/docs/logo.svg +0 -1
  89. package/docs/screen-record.gif +0 -0
  90. package/docs/src/logo.afdesign +0 -0
  91. package/rollup.config.js +0 -14
  92. package/tsconfig.json +0 -18
@@ -0,0 +1,220 @@
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
+ this.shapeDirty = true;
48
+ this.fillDirty = true;
49
+ this.animationDirty = true;
50
+ /**
51
+ * If is cleaned up by `RevealBoundaryStore` during animation
52
+ * duration checkup.
53
+ */
54
+ this.cleanedUpForAnimation = false;
55
+ this.mouseUpClientX = null;
56
+ this.mouseUpClientY = null;
57
+ this.mouseDownAnimateStartFrame = null;
58
+ this.mouseDownAnimateCurrentFrame = null;
59
+ this.mouseDownAnimateReleasedFrame = null;
60
+ this.mouseDownAnimateLogicFrame = null;
61
+ this.mousePressed = false;
62
+ this.mouseReleased = false;
63
+ this.cacheBoundingRect = () => {
64
+ if (this.currentFrameId === this.cachedBoundingRectFrameId) {
65
+ return;
66
+ }
67
+ const boundingRect = this.container.getBoundingClientRect();
68
+ this.cachedBoundingRect.top = Math.floor(boundingRect.top);
69
+ this.cachedBoundingRect.left = Math.floor(boundingRect.left);
70
+ this.cachedBoundingRect.width = Math.floor(boundingRect.width);
71
+ this.cachedBoundingRect.height = Math.floor(boundingRect.height);
72
+ this.cachedBoundingRectFrameId = this.currentFrameId;
73
+ };
74
+ this.getTrueFillRadius = (trueFillRadius = [0, 0], fillMode = this.computedStyle.get('--reveal-hover-light-fill-radius-mode') || 'relative') => {
75
+ const b = this.cachedBoundingRect;
76
+ switch (fillMode) {
77
+ case 'relative':
78
+ trueFillRadius[0] = Math.min(b.width, b.height);
79
+ trueFillRadius[1] = Math.max(b.width, b.height);
80
+ break;
81
+ case 'absolute':
82
+ trueFillRadius[0] = -1;
83
+ trueFillRadius[1] = -1;
84
+ break;
85
+ default:
86
+ throw new SyntaxError('The value of `--reveal-hover-light-fill-radius-mode` must be `relative`, `absolute`, but got `' + fillMode + '`!');
87
+ }
88
+ return trueFillRadius;
89
+ };
90
+ this.getPropFromMultipleSource = (domPropsName, cssPropsName) => {
91
+ const domProps = this.container.dataset[domPropsName];
92
+ if (domProps)
93
+ return domProps;
94
+ return this.computedStyle.get(cssPropsName);
95
+ };
96
+ this.getNumberPropFromMultipleSource = (domPropsName, cssPropsName) => {
97
+ const domProps = this.container.dataset[domPropsName];
98
+ if (domProps)
99
+ return Number.parseFloat(domProps);
100
+ return this.computedStyle.getNumber(cssPropsName);
101
+ };
102
+ this.cacheCanvasPaintingStyle = () => {
103
+ if (this.currentFrameId === this.cachedStyleFrameId) {
104
+ return;
105
+ }
106
+ if (this.computedStyle.size() === 0) {
107
+ return;
108
+ }
109
+ const parsedBaseColor = extractRGBValue(this.computedStyle.getColor('--reveal-color')) || '0, 0, 0';
110
+ const parsedBorderColor = extractRGBValue(this.computedStyle.getColor('--reveal-border-color')) || parsedBaseColor;
111
+ const parsedHoverLightColor = extractRGBValue(this.computedStyle.getColor('--reveal-hover-light-color')) || parsedBaseColor;
112
+ const parsedPressAnimationColor = extractRGBValue(this.computedStyle.getColor('--reveal-press-animation-color')) || parsedBaseColor;
113
+ const nextColor = parsedBaseColor;
114
+ const nextOpacity = this.computedStyle.getNumber('--reveal-opacity');
115
+ // Border related configurations
116
+ const nextBorderColor = parsedBorderColor;
117
+ const nextBorderFillRadius = this.computedStyle.getNumber('--reveal-border-fill-radius');
118
+ const nextBorderDecorationType = this.computedStyle.get('--reveal-border-decoration-type') || 'miter';
119
+ const nextBorderWidth = this.computedStyle.getNumber('--reveal-border-width');
120
+ const nextWithLeftBorderFactor = this.getPropFromMultipleSource('leftBorder', '--reveal-border-left-type') === 'line' ? 1 : 0;
121
+ const nextWithRightBorderFactor = this.getPropFromMultipleSource('rightBorder', '--reveal-border-right-type') === 'line' ? 1 : 0;
122
+ const nextWithTopBorderFactor = this.getPropFromMultipleSource('topBorder', '--reveal-border-top-type') === 'line' ? 1 : 0;
123
+ const nextWithBottomBorderFactor = this.getPropFromMultipleSource('bottomBorder', '--reveal-border-bottom-type') === 'line' ? 1 : 0;
124
+ // Hover light related configurations
125
+ const nextHoverLight = this.computedStyle.get('--reveal-hover-light') === 'true';
126
+ const nextHoverLightColor = parsedHoverLightColor;
127
+ const nextHoverLightFillRadius = this.computedStyle.getNumber('--reveal-hover-light-fill-radius');
128
+ const nextHoverLightFillMode = this.computedStyle.get('--reveal-hover-light-fill-radius-mode') || 'relative';
129
+ // Press animation related configurations
130
+ const nextDiffuse = this.computedStyle.get('--reveal-diffuse') === 'true';
131
+ const nextPressAnimation = this.computedStyle.get('--reveal-press-animation') === 'true';
132
+ const nextPressAnimationFillMode = this.computedStyle.get('--reveal-press-animation-radius-mode');
133
+ const nextPressAnimationColor = parsedPressAnimationColor;
134
+ const nextPressAnimationSpeed = this.computedStyle.getNumber('--reveal-press-animation-speed');
135
+ const nextReleaseAnimationAccelerateRate = this.computedStyle.getNumber('--reveal-release-animation-accelerate-rate');
136
+ // Border decoration related configurations
137
+ const r = this.computedStyle.getNumber('--reveal-border-decoration-radius');
138
+ const tl = this.getNumberPropFromMultipleSource('topLeftBorderRadius', '--reveal-border-decoration-top-left-radius');
139
+ const tr = this.getNumberPropFromMultipleSource('topRightBorderRadius', '--reveal-border-decoration-top-right-radius');
140
+ const bl = this.getNumberPropFromMultipleSource('bottomLeftBorderRadius', '--reveal-border-decoration-bottom-left-radius');
141
+ const br = this.getNumberPropFromMultipleSource('bottomRightBorderRadius', '--reveal-border-decoration-bottom-right-radius');
142
+ const nextTopLeftBorderDecorationRadius = tl >= 0 ? tl : r;
143
+ const nextTopRightBorderDecorationRadius = tr >= 0 ? tr : r;
144
+ const nextBottomLeftBorderDecorationRadius = bl >= 0 ? bl : r;
145
+ const nextBottomRightBorderDecorationRadius = br >= 0 ? br : r;
146
+ const c = this.cachedStyle;
147
+ this.fillDirty = this.fillDirty || c.color !== nextColor;
148
+ this.fillDirty = this.fillDirty || c.opacity !== nextOpacity;
149
+ this.fillDirty = this.fillDirty || c.borderColor !== nextBorderColor;
150
+ this.fillDirty = this.fillDirty || c.borderFillRadius !== nextBorderFillRadius;
151
+ this.fillDirty = this.fillDirty || c.hoverLightColor !== nextHoverLightColor;
152
+ this.fillDirty = this.fillDirty || c.hoverLightFillRadius !== nextHoverLightFillRadius;
153
+ this.fillDirty = this.fillDirty || c.hoverLightFillMode !== nextHoverLightFillMode;
154
+ this.shapeDirty = this.shapeDirty || c.borderDecorationType !== nextBorderDecorationType;
155
+ this.shapeDirty = this.shapeDirty || c.borderWidth !== nextBorderWidth;
156
+ this.shapeDirty = this.shapeDirty || c.withLeftBorderFactor !== nextWithLeftBorderFactor;
157
+ this.shapeDirty = this.shapeDirty || c.withRightBorderFactor !== nextWithRightBorderFactor;
158
+ this.shapeDirty = this.shapeDirty || c.withTopBorderFactor !== nextWithTopBorderFactor;
159
+ this.shapeDirty = this.shapeDirty || c.withBottomBorderFactor !== nextWithBottomBorderFactor;
160
+ this.shapeDirty = this.shapeDirty || c.topLeftBorderDecorationRadius !== nextTopLeftBorderDecorationRadius;
161
+ this.shapeDirty = this.shapeDirty || c.topRightBorderDecorationRadius !== nextTopRightBorderDecorationRadius;
162
+ this.shapeDirty = this.shapeDirty || c.bottomLeftBorderDecorationRadius !== nextBottomLeftBorderDecorationRadius;
163
+ this.shapeDirty = this.shapeDirty || c.bottomRightBorderDecorationRadius !== nextBottomRightBorderDecorationRadius;
164
+ this.animationDirty = this.animationDirty || c.pressAnimation !== nextPressAnimation;
165
+ this.animationDirty = this.animationDirty || c.pressAnimationFillMode !== nextPressAnimationFillMode;
166
+ this.animationDirty = this.animationDirty || c.pressAnimationColor !== nextPressAnimationColor;
167
+ this.animationDirty = this.animationDirty || c.pressAnimationSpeed !== nextPressAnimationSpeed;
168
+ this.animationDirty = this.animationDirty || c.releaseAnimationAccelerateRate !== nextReleaseAnimationAccelerateRate;
169
+ c.color = nextColor;
170
+ c.opacity = nextOpacity;
171
+ c.borderColor = nextBorderColor;
172
+ c.borderFillRadius = nextBorderFillRadius;
173
+ c.borderDecorationType = nextBorderDecorationType;
174
+ c.borderWidth = nextBorderWidth;
175
+ c.withLeftBorderFactor = nextWithLeftBorderFactor;
176
+ c.withRightBorderFactor = nextWithRightBorderFactor;
177
+ c.withTopBorderFactor = nextWithTopBorderFactor;
178
+ c.withBottomBorderFactor = nextWithBottomBorderFactor;
179
+ c.hoverLight = nextHoverLight;
180
+ c.hoverLightColor = nextHoverLightColor;
181
+ c.hoverLightFillRadius = nextHoverLightFillRadius;
182
+ c.hoverLightFillMode = nextHoverLightFillMode;
183
+ c.diffuse = nextDiffuse;
184
+ c.pressAnimation = nextPressAnimation;
185
+ c.pressAnimationFillMode = nextPressAnimationFillMode;
186
+ c.pressAnimationColor = nextPressAnimationColor;
187
+ c.pressAnimationSpeed = nextPressAnimationSpeed;
188
+ c.releaseAnimationAccelerateRate = nextReleaseAnimationAccelerateRate;
189
+ c.topLeftBorderDecorationRadius = nextTopLeftBorderDecorationRadius;
190
+ c.topRightBorderDecorationRadius = nextTopRightBorderDecorationRadius;
191
+ c.bottomLeftBorderDecorationRadius = nextBottomLeftBorderDecorationRadius;
192
+ c.bottomRightBorderDecorationRadius = nextBottomRightBorderDecorationRadius;
193
+ this.getTrueFillRadius(c.trueFillRadius, c.hoverLightFillMode);
194
+ if (!isValidateBorderDecorationType(c.borderDecorationType)) {
195
+ throw new SyntaxError('The value of `--reveal-border-decoration-type` must be `round`, `bevel` or `miter`!');
196
+ }
197
+ this.cachedStyleFrameId = this.currentFrameId;
198
+ };
199
+ this.mouseInCanvas = () => {
200
+ const b = this.cachedBoundingRect;
201
+ const relativeX = this._store.clientX - b.left;
202
+ const relativeY = this._store.clientY - b.top;
203
+ return relativeX > 0 && relativeY > 0 && relativeX < b.width && relativeY < b.height;
204
+ };
205
+ this.syncSizeToRevealRadius = (x, factor) => {
206
+ const { trueFillRadius } = this.cachedStyle;
207
+ const radius = trueFillRadius[1] || 1;
208
+ const size = radius * 2 * this.pxRatio * factor;
209
+ if (x.width !== size || x.height !== size) {
210
+ x.width = size;
211
+ x.height = size;
212
+ }
213
+ };
214
+ this._store = store;
215
+ this.container = $container;
216
+ this.element = $canvas;
217
+ this.computedStyle = createStorage($container);
218
+ }
219
+ }
220
+ //#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AI,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;QACzF,CAAC,CAAC;QAEF,2BAAsB,GAAG,CAAC,CAAoB,EAAE,MAAc,EAAE,EAAE;YAC9D,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;YAE5C,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;YAEhD,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,KAAK,IAAI,EAAE;gBACvC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC;gBACf,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;aACnB;QACL,CAAC,CAAC;QAhOE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC;CA2NJ"}
@@ -1,101 +1,16 @@
1
1
  import { RevealBoundaryStore } from './RevealBoundryStore.js';
2
- declare type BorderDecoration = 'round' | 'bevel' | 'miter';
3
- export interface CachedBoundingRect {
4
- top: number;
5
- left: number;
6
- width: number;
7
- height: number;
8
- }
9
- export interface CachedStyle {
10
- color: string;
11
- opacity: number;
12
- trueFillRadius: [number, number];
13
- borderStyle: string;
14
- borderColor: string;
15
- borderFillRadius: number;
16
- borderDecorationType: BorderDecoration;
17
- borderDecorationRadius: number;
18
- topLeftBorderDecorationRadius: number;
19
- topRightBorderDecorationRadius: number;
20
- bottomLeftBorderDecorationRadius: number;
21
- bottomRightBorderDecorationRadius: number;
22
- withLeftBorderFactor: number;
23
- withRightBorderFactor: number;
24
- withTopBorderFactor: number;
25
- withBottomBorderFactor: number;
26
- borderWidth: number;
27
- hoverLight: boolean;
28
- hoverLightColor: string;
29
- hoverLightFillMode: string;
30
- hoverLightFillRadius: number;
31
- diffuse: boolean;
32
- pressAnimation: boolean;
33
- pressAnimationFillMode: string;
34
- pressAnimationColor: string;
35
- pressAnimationSpeed: number;
36
- releaseAnimationAccelerateRate: number;
37
- }
38
- interface CachedReveal {
39
- radius: number;
40
- radiusFactor: number;
41
- color: string;
42
- opacity: number;
43
- pattern: CanvasPattern | null;
44
- }
45
- /**
46
- * Cached border and body pattern, for faster painting on the canvas.
47
- * @interface CachedRevealBitmap
48
- */
49
- export interface CachedRevealBitmap {
50
- cachedReveal: {
51
- borderReveal: CachedReveal;
52
- fillReveal: CachedReveal;
53
- };
54
- cachedCanvas: {
55
- borderReveal: HTMLCanvasElement;
56
- fillReveal: HTMLCanvasElement;
57
- };
58
- cachedCtx: {
59
- borderReveal: CanvasRenderingContext2D | null;
60
- fillReveal: CanvasRenderingContext2D | null;
61
- };
62
- }
63
- export declare class CanvasConfig {
64
- protected _store: RevealBoundaryStore;
65
- pxRatio: number;
66
- readonly container: HTMLElement;
67
- readonly canvas: HTMLCanvasElement;
2
+ import type { CachedRevealBitmap } from './utils/types.js';
3
+ import { BaseConfig } from './BaseConfig.js';
4
+ export declare class CanvasConfig extends BaseConfig<HTMLCanvasElement> {
68
5
  ctx: CanvasRenderingContext2D | null;
69
- private readonly computedStyle;
70
- paintedWidth: number;
71
- paintedHeight: number;
72
6
  protected cachedImg: CachedRevealBitmap;
73
- currentFrameId: number;
74
- cachedBoundingRectFrameId: number;
75
- cachedBoundingRect: CachedBoundingRect;
76
- cachedStyleFrameId: number;
77
- cachedStyle: CachedStyle;
78
- mouseUpClientX: number | null;
79
- mouseUpClientY: number | null;
80
- mouseDownAnimateStartFrame: number | null;
81
- mouseDownAnimateCurrentFrame: number | null;
82
- mouseDownAnimateReleasedFrame: number | null;
83
- mouseDownAnimateLogicFrame: number | null;
84
- mousePressed: boolean;
85
- mouseReleased: boolean;
86
7
  constructor(store: RevealBoundaryStore, $canvas: HTMLCanvasElement, $container: HTMLElement);
87
- cacheBoundingRect: () => void;
88
- getTrueFillRadius: (trueFillRadius?: [number, number], fillMode?: string) => [number, number];
89
- getPropFromMultipleSource: (domPropsName: string, cssPropsName: string) => string;
90
- cacheCanvasPaintingStyle: () => void;
91
8
  updateCachedReveal: () => void;
92
9
  updateCachedBitmap: () => void;
93
- mouseInCanvas: () => boolean;
94
- syncSizeToElement: (x: HTMLCanvasElement) => void;
95
- syncSizeToRevealRadius: (x: HTMLCanvasElement, factor: number) => void;
96
- updateAnimateGrd: (frame: number, grd: CanvasGradient) => void;
10
+ private updateAnimateGrd;
97
11
  private drawShape;
98
- paint: (force?: boolean | undefined, debug?: boolean | undefined) => boolean;
12
+ syncSizeToElement: (x: HTMLCanvasElement) => void;
13
+ clear: () => boolean;
14
+ paint: (skipSamePointerPositionCheck?: boolean | undefined) => boolean;
99
15
  }
100
- export {};
101
16
  //# sourceMappingURL=CanvasConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasConfig.d.ts","sourceRoot":"","sources":["../src/CanvasConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,aAAK,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAoEpD,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,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