@myrmidon/gve-snapshot-rendition 0.0.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.
- package/LICENSE +4 -0
- package/README.md +135 -0
- package/dist/adapter/adapter-models.d.ts +171 -0
- package/dist/adapter/data-feature-adapter.d.ts +31 -0
- package/dist/adapter/feature-adapter.d.ts +34 -0
- package/dist/adapter/index.d.ts +6 -0
- package/dist/adapter/matcher.d.ts +38 -0
- package/dist/adapter/parser.d.ts +58 -0
- package/dist/adapter/tokenizer.d.ts +55 -0
- package/dist/animation/animation-engine.d.ts +118 -0
- package/dist/animation/animation-factory.d.ts +49 -0
- package/dist/core/color-palette.d.ts +39 -0
- package/dist/core/gve-snapshot-rendition.d.ts +318 -0
- package/dist/core/logger.d.ts +37 -0
- package/dist/hint-designer/gve-hint-designer.d.ts +298 -0
- package/dist/hint-designer/hint-designer-models.d.ts +32 -0
- package/dist/index.cjs.min.js +348 -0
- package/dist/index.cjs.min.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +83396 -0
- package/dist/index.js.map +1 -0
- package/dist/models.d.ts +200 -0
- package/dist/rendering/bounds-cache.d.ts +62 -0
- package/dist/rendering/feature-resolver.d.ts +98 -0
- package/dist/rendering/hint-renderer.d.ts +109 -0
- package/dist/rendering/spreading-engine.d.ts +98 -0
- package/dist/rendering/svg-utils.d.ts +112 -0
- package/dist/rendering/text-layout.d.ts +75 -0
- package/dist/rendering/text-renderer.d.ts +73 -0
- package/dist/settings/hint-models.d.ts +66 -0
- package/dist/settings/settings.d.ts +122 -0
- package/dist/ui/details-area.d.ts +81 -0
- package/dist/ui/hilites.d.ts +69 -0
- package/dist/ui/operation-summary-service.d.ts +76 -0
- package/dist/ui/toolbar.d.ts +131 -0
- package/dist/ui/version-text-area.d.ts +131 -0
- package/dist/ui/versions-list-area.d.ts +88 -0
- package/dist/utils/color-palette.d.ts +36 -0
- package/dist/utils/feature-utils.d.ts +76 -0
- package/dist/utils/node-utils.d.ts +47 -0
- package/dist/utils/text-utils.d.ts +35 -0
- package/package.json +79 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Logger } from "../core/logger";
|
|
2
|
+
/**
|
|
3
|
+
* Animation function signature.
|
|
4
|
+
* Receives gsap instance, target element, and root SVG element.
|
|
5
|
+
* Returns a Promise that resolves when animation completes.
|
|
6
|
+
*/
|
|
7
|
+
export type AnimationFunction = (gsap: any, targetEl: SVGElement, rootEl: SVGElement) => Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Factory for creating animation functions from code strings.
|
|
10
|
+
* This wraps user-provided GSAP animation code into executable functions.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AnimationFactory {
|
|
13
|
+
private _logger;
|
|
14
|
+
private _gsap;
|
|
15
|
+
constructor(gsap: any, logger: Logger);
|
|
16
|
+
/**
|
|
17
|
+
* Create an animation function from a code string.
|
|
18
|
+
*
|
|
19
|
+
* @param code - The JavaScript code as a string that uses GSAP
|
|
20
|
+
* @param label - Optional label for debugging
|
|
21
|
+
* @returns An animation function that returns a Promise
|
|
22
|
+
*/
|
|
23
|
+
createAnimation(code: string, label?: string): AnimationFunction;
|
|
24
|
+
/**
|
|
25
|
+
* Create an animation function from an ID reference.
|
|
26
|
+
* The ID should exist in the animations catalog.
|
|
27
|
+
*
|
|
28
|
+
* @param animationId - The ID of the animation (with or without # prefix)
|
|
29
|
+
* @param animationsCatalog - The catalog of animations from settings
|
|
30
|
+
* @param label - Optional label for debugging
|
|
31
|
+
* @returns An animation function or undefined if not found
|
|
32
|
+
*/
|
|
33
|
+
createAnimationFromId(animationId: string, animationsCatalog: Record<string, string>, label?: string): AnimationFunction | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve an animation property value to an animation function.
|
|
36
|
+
* Handles both direct code strings and ID references.
|
|
37
|
+
*
|
|
38
|
+
* @param animationValue - Either a code string or an ID reference (starting with #)
|
|
39
|
+
* @param animationsCatalog - The catalog of animations from settings
|
|
40
|
+
* @param label - Optional label for debugging
|
|
41
|
+
* @returns An animation function or undefined
|
|
42
|
+
*/
|
|
43
|
+
resolveAnimation(animationValue: string | undefined, animationsCatalog: Record<string, string>, label?: string): AnimationFunction | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Create a no-op animation that resolves immediately.
|
|
46
|
+
* Used when no animation is specified.
|
|
47
|
+
*/
|
|
48
|
+
createNoOpAnimation(): AnimationFunction;
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate a pastel color palette for version tags with maximum visual distinction.
|
|
3
|
+
* Uses HSL color space to generate evenly distributed, light, pastel colors.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ColorPalette {
|
|
6
|
+
private colors;
|
|
7
|
+
/**
|
|
8
|
+
* Generate a pastel color for a given version tag.
|
|
9
|
+
* The color generation is idempotent - same version tag always generates the same color.
|
|
10
|
+
* @param versionTag - Version tag (e.g., "v0", "v1", "v2")
|
|
11
|
+
* @returns Pastel color as hex string (e.g., "#FFE4E1")
|
|
12
|
+
*/
|
|
13
|
+
getColor(versionTag: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Extract version number from version tag.
|
|
16
|
+
* @param versionTag - Version tag like "v0", "v1", etc.
|
|
17
|
+
* @returns Version number
|
|
18
|
+
*/
|
|
19
|
+
private extractVersionNumber;
|
|
20
|
+
/**
|
|
21
|
+
* Generate a pastel color using HSL color space with golden ratio distribution.
|
|
22
|
+
* This ensures maximum visual distinction between colors.
|
|
23
|
+
* @param index - Version index number
|
|
24
|
+
* @returns Hex color string
|
|
25
|
+
*/
|
|
26
|
+
private generatePastelColor;
|
|
27
|
+
/**
|
|
28
|
+
* Convert HSL to hex color.
|
|
29
|
+
* @param h - Hue (0-360)
|
|
30
|
+
* @param s - Saturation (0-100)
|
|
31
|
+
* @param l - Lightness (0-100)
|
|
32
|
+
* @returns Hex color string
|
|
33
|
+
*/
|
|
34
|
+
private hslToHex;
|
|
35
|
+
/**
|
|
36
|
+
* Clear all cached colors.
|
|
37
|
+
*/
|
|
38
|
+
clear(): void;
|
|
39
|
+
}
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { CharChainResult } from "../models";
|
|
2
|
+
import { GveRenditionSettings } from "../settings/settings";
|
|
3
|
+
/**
|
|
4
|
+
* Relative position for elements (hints and additional text) with respect to the RBR.
|
|
5
|
+
* Specifies how the EBR (Element Bounding Rectangle) aligns with the RBR (Reference Bounding Rectangle).
|
|
6
|
+
*/
|
|
7
|
+
export type RelativePosition = "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw" | "inw" | "ine" | "isw" | "ise" | "o";
|
|
8
|
+
/**
|
|
9
|
+
* GVE Snapshot Rendition Web Component.
|
|
10
|
+
* Renders interactive text transformations from snapshot model data.
|
|
11
|
+
*/
|
|
12
|
+
export declare class GveSnapshotRendition extends HTMLElement {
|
|
13
|
+
private _settings;
|
|
14
|
+
private _data?;
|
|
15
|
+
private _versionTag?;
|
|
16
|
+
private _logger;
|
|
17
|
+
private _animationEngine?;
|
|
18
|
+
private _boundsCache;
|
|
19
|
+
private _spreadingEngine;
|
|
20
|
+
private _textRenderer?;
|
|
21
|
+
private _hintRenderer?;
|
|
22
|
+
private _featureResolver;
|
|
23
|
+
private _shadow;
|
|
24
|
+
private _rootSvg?;
|
|
25
|
+
private _container?;
|
|
26
|
+
private _toolbar?;
|
|
27
|
+
private _versionTextArea?;
|
|
28
|
+
private _detailsArea?;
|
|
29
|
+
private _versionsListArea?;
|
|
30
|
+
private _hilites?;
|
|
31
|
+
private _panZoomInstance?;
|
|
32
|
+
private _keyboardHandler?;
|
|
33
|
+
private _baseNodes;
|
|
34
|
+
private _versionPalette;
|
|
35
|
+
private _slideshowTimerId;
|
|
36
|
+
private _currentVersion;
|
|
37
|
+
private _currentVersionIndex;
|
|
38
|
+
private _autoForwardEnabled;
|
|
39
|
+
private _autoForwardTimerId;
|
|
40
|
+
constructor();
|
|
41
|
+
/**
|
|
42
|
+
* Observed attributes for the web component.
|
|
43
|
+
*/
|
|
44
|
+
static get observedAttributes(): string[];
|
|
45
|
+
/**
|
|
46
|
+
* Called when component is added to the DOM.
|
|
47
|
+
*/
|
|
48
|
+
connectedCallback(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Called when component is removed from the DOM.
|
|
51
|
+
*/
|
|
52
|
+
disconnectedCallback(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Called when observed attributes change.
|
|
55
|
+
*/
|
|
56
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
57
|
+
/**
|
|
58
|
+
* Settings property (bindable).
|
|
59
|
+
*/
|
|
60
|
+
get settings(): GveRenditionSettings;
|
|
61
|
+
set settings(value: GveRenditionSettings);
|
|
62
|
+
/**
|
|
63
|
+
* Data property (bindable).
|
|
64
|
+
*/
|
|
65
|
+
get data(): CharChainResult | undefined;
|
|
66
|
+
set data(value: CharChainResult | undefined);
|
|
67
|
+
/**
|
|
68
|
+
* Version tag property (bindable).
|
|
69
|
+
*/
|
|
70
|
+
get versionTag(): string | undefined;
|
|
71
|
+
set versionTag(value: string | undefined);
|
|
72
|
+
/**
|
|
73
|
+
* Initialize GSAP when available.
|
|
74
|
+
*/
|
|
75
|
+
private initializeGsap;
|
|
76
|
+
/**
|
|
77
|
+
* Process data to prepare for rendering.
|
|
78
|
+
*/
|
|
79
|
+
private processData;
|
|
80
|
+
/**
|
|
81
|
+
* Render the component UI.
|
|
82
|
+
*/
|
|
83
|
+
private render;
|
|
84
|
+
/**
|
|
85
|
+
* Render content (base text only - starts at v0).
|
|
86
|
+
* Use goToVersionIndex() to navigate to specific versions.
|
|
87
|
+
*/
|
|
88
|
+
private renderContent;
|
|
89
|
+
/**
|
|
90
|
+
* Initialize pan/zoom functionality on the SVG element.
|
|
91
|
+
* Enables mouse wheel zoom, click-and-drag pan, with configurable limits.
|
|
92
|
+
*/
|
|
93
|
+
private initializePanZoom;
|
|
94
|
+
/**
|
|
95
|
+
* Process operations to render text transformations.
|
|
96
|
+
* Processes operations in order, rendering hints and additional text.
|
|
97
|
+
*/
|
|
98
|
+
private processOperations;
|
|
99
|
+
/**
|
|
100
|
+
* Process a single operation step.
|
|
101
|
+
*/
|
|
102
|
+
private processOperation;
|
|
103
|
+
/**
|
|
104
|
+
* Internal operation processing (called with pan/zoom disabled).
|
|
105
|
+
*/
|
|
106
|
+
private processOperationInternal;
|
|
107
|
+
/**
|
|
108
|
+
* Get reference nodes for an operation using node IDs from trace features.
|
|
109
|
+
* Reference nodes are the nodes affected by the operation.
|
|
110
|
+
*
|
|
111
|
+
* According to the snapshot model, deleted nodes are not included in subsequent
|
|
112
|
+
* versions' taggedNodes. To find a deleted node, we must search backwards through
|
|
113
|
+
* previous versions until we find it.
|
|
114
|
+
*
|
|
115
|
+
* @param nodeIds - Array of node IDs from step.refNodeIds (extracted from trace features)
|
|
116
|
+
* @param inputTag - The input version tag to look for nodes (e.g., "v11")
|
|
117
|
+
* @returns Array of CharNode objects matching the IDs
|
|
118
|
+
*/
|
|
119
|
+
private getReferenceNodes;
|
|
120
|
+
/**
|
|
121
|
+
* Find a node by ID, searching backwards through versions if needed.
|
|
122
|
+
* This handles the case where a node was deleted in a previous version but
|
|
123
|
+
* is still referenced by a later operation (e.g., to add a hint to a deleted node).
|
|
124
|
+
*
|
|
125
|
+
* Searches backwards from the specified version to v0. Since v0 is now normalized
|
|
126
|
+
* and added to taggedNodes during data processing, no special handling is needed.
|
|
127
|
+
*
|
|
128
|
+
* @param nodeId - The node ID to find
|
|
129
|
+
* @param startTag - The version tag to start searching from (e.g., "v11")
|
|
130
|
+
* @returns The node if found, undefined otherwise
|
|
131
|
+
*/
|
|
132
|
+
private findNodeById;
|
|
133
|
+
/**
|
|
134
|
+
* Get nodes added by a specific operation.
|
|
135
|
+
* These are nodes with opid feature matching the operation ID.
|
|
136
|
+
*
|
|
137
|
+
* @param operationId - The operation ID to match
|
|
138
|
+
* @param outputTag - The output version tag (e.g., "v3") where the nodes were added
|
|
139
|
+
* @returns Array of nodes added by this operation
|
|
140
|
+
*/
|
|
141
|
+
private getAddedNodes;
|
|
142
|
+
/**
|
|
143
|
+
* Render hints for an operation.
|
|
144
|
+
*/
|
|
145
|
+
private renderHints;
|
|
146
|
+
/**
|
|
147
|
+
* Navigate to a specific version index (0 = base text, 1+ = after operations).
|
|
148
|
+
* Uses accumulation model: forward adds elements, backward removes them.
|
|
149
|
+
*/
|
|
150
|
+
private goToVersionIndex;
|
|
151
|
+
/**
|
|
152
|
+
* Update the version text area with the current version's text.
|
|
153
|
+
* @param versionIndex - The version index (0 = base text)
|
|
154
|
+
*/
|
|
155
|
+
private updateVersionText;
|
|
156
|
+
/**
|
|
157
|
+
* Update the details area with the current version's information.
|
|
158
|
+
* @param versionIndex - The version index (0 = base text)
|
|
159
|
+
*/
|
|
160
|
+
private updateDetailsArea;
|
|
161
|
+
/**
|
|
162
|
+
* Set up hover listeners on all text elements to update details area.
|
|
163
|
+
*/
|
|
164
|
+
private setupTextElementHoverListeners;
|
|
165
|
+
/**
|
|
166
|
+
* Handle hover over a text element.
|
|
167
|
+
*/
|
|
168
|
+
private handleTextElementHover;
|
|
169
|
+
/**
|
|
170
|
+
* Handle leaving a text element.
|
|
171
|
+
*/
|
|
172
|
+
private handleTextElementLeave;
|
|
173
|
+
/**
|
|
174
|
+
* Navigate forward by processing operations one by one.
|
|
175
|
+
* Each operation adds hints and/or text that persist for all future versions.
|
|
176
|
+
*/
|
|
177
|
+
private navigateForward;
|
|
178
|
+
/**
|
|
179
|
+
* Navigate backward by removing elements added in later versions.
|
|
180
|
+
* Reverses operations from current down to target.
|
|
181
|
+
*/
|
|
182
|
+
private navigateBackward;
|
|
183
|
+
/**
|
|
184
|
+
* Remove all elements belonging to a specific version.
|
|
185
|
+
* Optionally fades them out before removal based on settings.
|
|
186
|
+
*/
|
|
187
|
+
private removeVersionElements;
|
|
188
|
+
/**
|
|
189
|
+
* Extract char offsets from first operation if it's an annotate.
|
|
190
|
+
*/
|
|
191
|
+
private extractCharOffsets;
|
|
192
|
+
/**
|
|
193
|
+
* Zoom in by configured step amount.
|
|
194
|
+
*/
|
|
195
|
+
zoomIn(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Zoom out by configured step amount.
|
|
198
|
+
*/
|
|
199
|
+
zoomOut(): void;
|
|
200
|
+
/**
|
|
201
|
+
* Reset zoom to 100% and center pan.
|
|
202
|
+
*/
|
|
203
|
+
resetZoom(): void;
|
|
204
|
+
/**
|
|
205
|
+
* Set zoom to specific level (1.0 = 100%).
|
|
206
|
+
*/
|
|
207
|
+
setZoom(zoomLevel: number): void;
|
|
208
|
+
/**
|
|
209
|
+
* Get current zoom level.
|
|
210
|
+
*/
|
|
211
|
+
getZoom(): number;
|
|
212
|
+
/**
|
|
213
|
+
* Update toolbar with current zoom level.
|
|
214
|
+
*/
|
|
215
|
+
private updateToolbarZoom;
|
|
216
|
+
/**
|
|
217
|
+
* Handle toolbar navigation actions.
|
|
218
|
+
*/
|
|
219
|
+
private handleToolbarNavigation;
|
|
220
|
+
/**
|
|
221
|
+
* Navigate to previous staged version.
|
|
222
|
+
*/
|
|
223
|
+
private goToPrevStagedVersion;
|
|
224
|
+
/**
|
|
225
|
+
* Navigate to next staged version.
|
|
226
|
+
*/
|
|
227
|
+
private goToNextStagedVersion;
|
|
228
|
+
/**
|
|
229
|
+
* Handle toolbar slideshow actions.
|
|
230
|
+
*/
|
|
231
|
+
private handleToolbarSlideshow;
|
|
232
|
+
/**
|
|
233
|
+
* Handle toolbar display actions.
|
|
234
|
+
*/
|
|
235
|
+
private handleToolbarDisplay;
|
|
236
|
+
/**
|
|
237
|
+
* Fit SVG to view (center and zoom to fit all content).
|
|
238
|
+
*/
|
|
239
|
+
private fitToView;
|
|
240
|
+
/**
|
|
241
|
+
* Download SVG as a file.
|
|
242
|
+
*/
|
|
243
|
+
private downloadSVG;
|
|
244
|
+
/**
|
|
245
|
+
* Start slideshow mode.
|
|
246
|
+
*/
|
|
247
|
+
private startSlideshow;
|
|
248
|
+
/**
|
|
249
|
+
* Stop slideshow mode.
|
|
250
|
+
*/
|
|
251
|
+
private stopSlideshow;
|
|
252
|
+
/**
|
|
253
|
+
* Advance slideshow by one frame.
|
|
254
|
+
*/
|
|
255
|
+
private slideshowAdvance;
|
|
256
|
+
/**
|
|
257
|
+
* Check if the current version belongs to a group and trigger auto-forward if needed.
|
|
258
|
+
* Auto-forward continues to the next version after a delay, as long as operations
|
|
259
|
+
* share the same groupId.
|
|
260
|
+
*
|
|
261
|
+
* @param versionIndex - The current version index (just navigated to)
|
|
262
|
+
*/
|
|
263
|
+
private checkAndTriggerAutoForward;
|
|
264
|
+
/**
|
|
265
|
+
* Stop any pending auto-forward timer.
|
|
266
|
+
*/
|
|
267
|
+
private stopAutoForward;
|
|
268
|
+
/**
|
|
269
|
+
* Toggle auto-forward on group feature.
|
|
270
|
+
* @param enabled - Whether to enable auto-forward
|
|
271
|
+
*/
|
|
272
|
+
setAutoForwardEnabled(enabled: boolean): void;
|
|
273
|
+
/**
|
|
274
|
+
* Get current auto-forward enabled state.
|
|
275
|
+
*/
|
|
276
|
+
getAutoForwardEnabled(): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Setup keyboard shortcuts for navigation and zoom.
|
|
279
|
+
* Shortcuts:
|
|
280
|
+
* - ArrowLeft/ArrowRight: Previous/Next version
|
|
281
|
+
* - Home/End: First/Last version
|
|
282
|
+
* - 0-9: Jump to version 0-9
|
|
283
|
+
* - +/-: Zoom in/out
|
|
284
|
+
*/
|
|
285
|
+
private setupKeyboardShortcuts;
|
|
286
|
+
/**
|
|
287
|
+
* Get the SVG element where content should be appended.
|
|
288
|
+
* When pan/zoom is active, returns the transformed viewport group.
|
|
289
|
+
* When pan/zoom is inactive, returns the root SVG.
|
|
290
|
+
*
|
|
291
|
+
* CRITICAL: svg-pan-zoom wraps content in a <g> element. New elements
|
|
292
|
+
* must be added to this group, not the root SVG, or they won't transform.
|
|
293
|
+
*/
|
|
294
|
+
private getSvgContainer;
|
|
295
|
+
/**
|
|
296
|
+
* Temporarily disable pan/zoom for rendering operations.
|
|
297
|
+
* CRITICAL: Disables user input but preserves viewport transform.
|
|
298
|
+
*/
|
|
299
|
+
private disablePanZoom;
|
|
300
|
+
/**
|
|
301
|
+
* Re-enable pan/zoom after rendering operations complete.
|
|
302
|
+
*/
|
|
303
|
+
private enablePanZoom;
|
|
304
|
+
/**
|
|
305
|
+
* Navigate to a specific version by tag.
|
|
306
|
+
* @param versionTag - Version tag (e.g., "v0", "v1")
|
|
307
|
+
*/
|
|
308
|
+
private navigateToVersion;
|
|
309
|
+
/**
|
|
310
|
+
* Toggle hilites for a specific version.
|
|
311
|
+
* @param versionTag - Version tag to hilite, or null to clear hilites
|
|
312
|
+
*/
|
|
313
|
+
private toggleHilites;
|
|
314
|
+
/**
|
|
315
|
+
* Get component styles.
|
|
316
|
+
*/
|
|
317
|
+
private getStyles;
|
|
318
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logger utility for diagnostic output.
|
|
3
|
+
* Logging is controlled by the debug setting in component settings.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Logger {
|
|
6
|
+
private _enabled;
|
|
7
|
+
private _prefix;
|
|
8
|
+
constructor(prefix?: string, enabled?: boolean);
|
|
9
|
+
/**
|
|
10
|
+
* Enable or disable logging.
|
|
11
|
+
*/
|
|
12
|
+
setEnabled(enabled: boolean): void;
|
|
13
|
+
/**
|
|
14
|
+
* Log an informational message.
|
|
15
|
+
*/
|
|
16
|
+
info(message: string, ...args: any[]): void;
|
|
17
|
+
/**
|
|
18
|
+
* Log a warning message.
|
|
19
|
+
*/
|
|
20
|
+
warn(message: string, ...args: any[]): void;
|
|
21
|
+
/**
|
|
22
|
+
* Log an error message (always logged, regardless of debug setting).
|
|
23
|
+
*/
|
|
24
|
+
error(message: string, ...args: any[]): void;
|
|
25
|
+
/**
|
|
26
|
+
* Log a debug message with detailed context.
|
|
27
|
+
*/
|
|
28
|
+
debug(category: string, message: string, data?: any): void;
|
|
29
|
+
/**
|
|
30
|
+
* Time a block of code execution.
|
|
31
|
+
*/
|
|
32
|
+
time(label: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* End timing a block of code.
|
|
35
|
+
*/
|
|
36
|
+
timeEnd(label: string): void;
|
|
37
|
+
}
|