@myrmidon/gve-snapshot-rendition 0.0.4 → 0.0.5
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/README.md +7 -1
- package/dist/core/gve-snapshot-rendition.d.ts +36 -0
- package/dist/index.cjs.min.js +5 -5
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.js +1388 -76
- package/dist/index.js.map +1 -1
- package/dist/rendering/svg-utils.d.ts +23 -2
- package/dist/rendering/text-layout.d.ts +22 -0
- package/dist/rendering/text-renderer.d.ts +7 -0
- package/dist/ui/details-area.d.ts +14 -0
- package/dist/ui/toolbar.d.ts +5 -0
- package/package.json +81 -79
package/README.md
CHANGED
|
@@ -159,4 +159,10 @@ Package structure:
|
|
|
159
159
|
To deploy demo in surge:
|
|
160
160
|
|
|
161
161
|
1. run the script for the demo you want to create (`deploy-demo.ps1` or `deploy-hint-demo.ps1`).
|
|
162
|
-
2. in the created folder, run `surge`, enter your credentials, confirm the local source directory, and specify a URL to use (e.g. <
|
|
162
|
+
2. in the created folder, run `surge`, enter your credentials, confirm the local source directory, and specify a URL to use (e.g. <gve-rendition.surge.sh> or <gve-hint-designer.surge.sh/>).
|
|
163
|
+
|
|
164
|
+
Demo links:
|
|
165
|
+
|
|
166
|
+
- [rendition, mock text](http://gve-rendition.surge.sh)
|
|
167
|
+
- [rendition, H5-48](http://gve-rendition.surge.sh?sample=h5-48)
|
|
168
|
+
- [hint designer](http://gve-hint-designer.surge.sh)
|
|
@@ -30,6 +30,17 @@ export declare class GveSnapshotRendition extends HTMLElement {
|
|
|
30
30
|
private _hilites?;
|
|
31
31
|
private _panZoomInstance?;
|
|
32
32
|
private _keyboardHandler?;
|
|
33
|
+
private _mainSplit?;
|
|
34
|
+
private _bottomSplit?;
|
|
35
|
+
private _verticalSplit?;
|
|
36
|
+
private static readonly LAYOUT_STORAGE_KEY;
|
|
37
|
+
/**
|
|
38
|
+
* Get the library version.
|
|
39
|
+
* This value is injected at build time via @rollup/plugin-replace
|
|
40
|
+
* from package.json. It allows consumers to verify which version
|
|
41
|
+
* of the web component is loaded.
|
|
42
|
+
*/
|
|
43
|
+
static get version(): string;
|
|
33
44
|
private _baseNodes;
|
|
34
45
|
private _versionPalette;
|
|
35
46
|
private _slideshowTimerId;
|
|
@@ -81,6 +92,22 @@ export declare class GveSnapshotRendition extends HTMLElement {
|
|
|
81
92
|
* Render the component UI.
|
|
82
93
|
*/
|
|
83
94
|
private render;
|
|
95
|
+
/**
|
|
96
|
+
* Initialize Split.js panes for resizable panels.
|
|
97
|
+
*/
|
|
98
|
+
private initializeSplitPanes;
|
|
99
|
+
/**
|
|
100
|
+
* Load saved layout sizes from localStorage.
|
|
101
|
+
*/
|
|
102
|
+
private loadLayoutSizes;
|
|
103
|
+
/**
|
|
104
|
+
* Save current layout sizes to localStorage.
|
|
105
|
+
*/
|
|
106
|
+
private saveLayoutSizes;
|
|
107
|
+
/**
|
|
108
|
+
* Reset layout to default sizes.
|
|
109
|
+
*/
|
|
110
|
+
resetLayout(): void;
|
|
84
111
|
/**
|
|
85
112
|
* Render content (base text only - starts at v0).
|
|
86
113
|
* Use goToVersionIndex() to navigate to specific versions.
|
|
@@ -162,6 +189,11 @@ export declare class GveSnapshotRendition extends HTMLElement {
|
|
|
162
189
|
* Set up hover listeners on all text elements to update details area.
|
|
163
190
|
*/
|
|
164
191
|
private setupTextElementHoverListeners;
|
|
192
|
+
/**
|
|
193
|
+
* Attach features from featureSet to a node.
|
|
194
|
+
* Features are stored separately in the step's featureSet.nodeFeatures map.
|
|
195
|
+
*/
|
|
196
|
+
private attachNodeFeatures;
|
|
165
197
|
/**
|
|
166
198
|
* Handle hover over a text element.
|
|
167
199
|
*/
|
|
@@ -170,6 +202,10 @@ export declare class GveSnapshotRendition extends HTMLElement {
|
|
|
170
202
|
* Handle leaving a text element.
|
|
171
203
|
*/
|
|
172
204
|
private handleTextElementLeave;
|
|
205
|
+
/**
|
|
206
|
+
* Handle click on a text element (for pinning).
|
|
207
|
+
*/
|
|
208
|
+
private handleTextElementClick;
|
|
173
209
|
/**
|
|
174
210
|
* Navigate forward by processing operations one by one.
|
|
175
211
|
* Each operation adds hints and/or text that persist for all future versions.
|