@myrmidon/gve-snapshot-rendition 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hint-designer/gve-hint-designer.d.ts +17 -0
- package/dist/index.cjs.min.js +4 -4
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.js +269 -58
- package/dist/index.js.map +1 -1
- package/dist/rendering/svg-utils.d.ts +18 -1
- package/dist/settings/settings.d.ts +4 -0
- package/dist/utils/text-utils.d.ts +5 -1
- package/package.json +1 -1
|
@@ -45,7 +45,15 @@ export declare class GveHintDesigner extends HTMLElement {
|
|
|
45
45
|
private _currentTimeline?;
|
|
46
46
|
private _isPlaying;
|
|
47
47
|
private _progressUpdateInterval?;
|
|
48
|
+
private _panMoveHandler?;
|
|
49
|
+
private _panUpHandler?;
|
|
48
50
|
constructor();
|
|
51
|
+
/**
|
|
52
|
+
* Register GSAP plugins when GSAP is available. Retried in
|
|
53
|
+
* connectedCallback because GSAP may be loaded after the component
|
|
54
|
+
* class is constructed.
|
|
55
|
+
*/
|
|
56
|
+
private registerGsapPlugins;
|
|
49
57
|
/**
|
|
50
58
|
* Called when component is added to the DOM.
|
|
51
59
|
*/
|
|
@@ -137,6 +145,10 @@ export declare class GveHintDesigner extends HTMLElement {
|
|
|
137
145
|
* Initialize panning with mouse drag.
|
|
138
146
|
*/
|
|
139
147
|
private initializePanning;
|
|
148
|
+
/**
|
|
149
|
+
* Remove the document-level pan listeners, if any.
|
|
150
|
+
*/
|
|
151
|
+
private removeDocumentPanListeners;
|
|
140
152
|
/**
|
|
141
153
|
* Initialize zooming with mouse wheel.
|
|
142
154
|
*/
|
|
@@ -196,10 +208,15 @@ export declare class GveHintDesigner extends HTMLElement {
|
|
|
196
208
|
private refreshSvgDisplay;
|
|
197
209
|
/**
|
|
198
210
|
* Resolve variables in SVG code.
|
|
211
|
+
* Delegates to the same resolver used by the renderer (shared semantics:
|
|
212
|
+
* literal names — no regex injection — and "??" fallback chains like
|
|
213
|
+
* {{r_fore-color ?? r_color}}).
|
|
199
214
|
*/
|
|
200
215
|
private resolveVariables;
|
|
201
216
|
/**
|
|
202
217
|
* Extract variable names from SVG code (variables in {{...}} placeholders).
|
|
218
|
+
* Placeholders may contain "??" fallback chains: each name in a chain is
|
|
219
|
+
* reported as a separate variable.
|
|
203
220
|
*/
|
|
204
221
|
private extractVariablesFromSvg;
|
|
205
222
|
/**
|