@memberjunction/core-actions 6.2.0-edge.0 → 6.2.0-edge.2
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/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -4
- package/dist/config.js.map +1 -1
- package/dist/custom/ai/base-find-actions.action.js +6 -6
- package/dist/custom/ai/base-find-agents.action.d.ts.map +1 -1
- package/dist/custom/ai/base-find-agents.action.js +8 -13
- package/dist/custom/ai/base-find-agents.action.js.map +1 -1
- package/dist/custom/ai/find-candidate-agents.action.d.ts.map +1 -1
- package/dist/custom/ai/find-candidate-agents.action.js +4 -3
- package/dist/custom/ai/find-candidate-agents.action.js.map +1 -1
- package/dist/custom/ai/generate-image.action.d.ts +63 -5
- package/dist/custom/ai/generate-image.action.d.ts.map +1 -1
- package/dist/custom/ai/generate-image.action.js +196 -139
- package/dist/custom/ai/generate-image.action.js.map +1 -1
- package/dist/custom/ai/run-decision.action.d.ts +45 -0
- package/dist/custom/ai/run-decision.action.d.ts.map +1 -0
- package/dist/custom/ai/run-decision.action.js +169 -0
- package/dist/custom/ai/run-decision.action.js.map +1 -0
- package/dist/custom/ai/semantic-entity-search.helper.d.ts +6 -0
- package/dist/custom/ai/semantic-entity-search.helper.d.ts.map +1 -1
- package/dist/custom/ai/semantic-entity-search.helper.js +16 -4
- package/dist/custom/ai/semantic-entity-search.helper.js.map +1 -1
- package/dist/custom/data/search-query-catalog.action.js +2 -2
- package/dist/custom/integration/api-rate-limiter.action.d.ts +4 -0
- package/dist/custom/integration/api-rate-limiter.action.d.ts.map +1 -1
- package/dist/custom/integration/api-rate-limiter.action.js +10 -2
- package/dist/custom/integration/api-rate-limiter.action.js.map +1 -1
- package/dist/custom/integration/gamma-generate-presentation.action.js +2 -2
- package/dist/custom/integration/integration-action-executor.d.ts +22 -22
- package/dist/custom/integration/integration-action-executor.js +83 -83
- package/dist/custom/interactive-forms/_shared.d.ts +69 -0
- package/dist/custom/interactive-forms/_shared.d.ts.map +1 -1
- package/dist/custom/interactive-forms/_shared.js +118 -38
- package/dist/custom/interactive-forms/_shared.js.map +1 -1
- package/dist/custom/interactive-forms/activate-interactive-form-version.action.js +25 -25
- package/dist/custom/interactive-forms/create-interactive-form.action.js +22 -22
- package/dist/custom/interactive-forms/modify-interactive-form.action.js +35 -35
- package/dist/custom/interactive-forms/revert-interactive-form.action.js +32 -32
- package/dist/custom/lists/_action-helpers.d.ts +10 -0
- package/dist/custom/lists/_action-helpers.d.ts.map +1 -1
- package/dist/custom/lists/_action-helpers.js +26 -6
- package/dist/custom/lists/_action-helpers.js.map +1 -1
- package/dist/custom/lists/add-view-results-to-list.action.js +8 -8
- package/dist/custom/lists/bulk-update-list-item-status.action.js +8 -8
- package/dist/custom/lists/compose-lists.action.js +14 -14
- package/dist/custom/lists/invite-to-list.action.js +10 -10
- package/dist/custom/lists/materialize-list-from-view.action.js +13 -13
- package/dist/custom/lists/move-list-members.action.js +12 -12
- package/dist/custom/lists/refresh-list-from-source.action.js +8 -8
- package/dist/custom/lists/resolve-audience.action.js +7 -7
- package/dist/custom/lists/revoke-list-invitation.action.js +3 -3
- package/dist/custom/lists/share-list.action.js +8 -8
- package/dist/custom/lists/unshare-list.action.js +3 -3
- package/dist/custom/record-cloning/clone-record.action.d.ts +15 -0
- package/dist/custom/record-cloning/clone-record.action.d.ts.map +1 -0
- package/dist/custom/record-cloning/clone-record.action.js +125 -0
- package/dist/custom/record-cloning/clone-record.action.js.map +1 -0
- package/dist/custom/record-cloning/clone-records.action.d.ts +15 -0
- package/dist/custom/record-cloning/clone-records.action.d.ts.map +1 -0
- package/dist/custom/record-cloning/clone-records.action.js +175 -0
- package/dist/custom/record-cloning/clone-records.action.js.map +1 -0
- package/dist/custom/utilities/address-services.action.js +2 -2
- package/dist/custom/utilities/artifact-builder-service.d.ts +16 -16
- package/dist/custom/utilities/artifact-builder-service.js +39 -39
- package/dist/custom/utilities/artifact-builder-service.js.map +1 -1
- package/dist/custom/utilities/docx-renderer.d.ts +17 -11
- package/dist/custom/utilities/docx-renderer.d.ts.map +1 -1
- package/dist/custom/utilities/docx-renderer.js +60 -48
- package/dist/custom/utilities/docx-renderer.js.map +1 -1
- package/dist/custom/utilities/json-param-helper.d.ts +6 -0
- package/dist/custom/utilities/json-param-helper.d.ts.map +1 -1
- package/dist/custom/utilities/json-param-helper.js +16 -4
- package/dist/custom/utilities/json-param-helper.js.map +1 -1
- package/dist/custom/utilities/pdf-renderer.d.ts +13 -7
- package/dist/custom/utilities/pdf-renderer.d.ts.map +1 -1
- package/dist/custom/utilities/pdf-renderer.js +27 -15
- package/dist/custom/utilities/pdf-renderer.js.map +1 -1
- package/dist/custom/utilities/vectorize-entity.action.js +1 -1
- package/dist/custom/utilities/vectorize-entity.action.js.map +1 -1
- package/dist/custom/utilities/xlsx-renderer.d.ts +19 -11
- package/dist/custom/utilities/xlsx-renderer.d.ts.map +1 -1
- package/dist/custom/utilities/xlsx-renderer.js +55 -39
- package/dist/custom/utilities/xlsx-renderer.js.map +1 -1
- package/dist/custom/visualization/create-svg-chart.action.js +23 -23
- package/dist/custom/visualization/create-svg-diagram.action.js +10 -10
- package/dist/custom/visualization/create-svg-infographic.action.js +4 -4
- package/dist/custom/visualization/create-svg-network.action.js +12 -12
- package/dist/custom/visualization/create-svg-sketch-diagram.action.js +10 -10
- package/dist/custom/visualization/create-svg-word-cloud.action.js +11 -11
- package/dist/custom/visualization/shared/svg-theming.d.ts +17 -0
- package/dist/custom/visualization/shared/svg-theming.d.ts.map +1 -1
- package/dist/custom/visualization/shared/svg-theming.js +34 -10
- package/dist/custom/visualization/shared/svg-theming.js.map +1 -1
- package/dist/custom/visualization/shared/svg-utils.d.ts +39 -0
- package/dist/custom/visualization/shared/svg-utils.d.ts.map +1 -1
- package/dist/custom/visualization/shared/svg-utils.js +81 -17
- package/dist/custom/visualization/shared/svg-utils.js.map +1 -1
- package/dist/custom/web/duckduckgo-rate-limiter.d.ts +17 -1
- package/dist/custom/web/duckduckgo-rate-limiter.d.ts.map +1 -1
- package/dist/custom/web/duckduckgo-rate-limiter.js +26 -6
- package/dist/custom/web/duckduckgo-rate-limiter.js.map +1 -1
- package/dist/custom/web/google-custom-search.action.js +2 -2
- package/dist/custom/web/rss-feed-parsing.d.ts +19 -0
- package/dist/custom/web/rss-feed-parsing.d.ts.map +1 -1
- package/dist/custom/web/rss-feed-parsing.js +45 -13
- package/dist/custom/web/rss-feed-parsing.js.map +1 -1
- package/dist/custom/web/rss-feed-read.action.js +5 -5
- package/dist/custom/web/tavily-search.action.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +42 -40
|
@@ -9,7 +9,7 @@ import { RegisterClass } from '@memberjunction/global';
|
|
|
9
9
|
import * as d3Force from 'd3-force';
|
|
10
10
|
import * as d3Hierarchy from 'd3-hierarchy';
|
|
11
11
|
import { SVGUtils } from './shared/svg-utils.js';
|
|
12
|
-
import {
|
|
12
|
+
import { GetPalette, GenerateCSS, GetFontSpec, GetColorForIndex } from './shared/svg-theming.js';
|
|
13
13
|
/**
|
|
14
14
|
* Action that generates SVG network graphs including force-directed layouts, decision trees, and radial networks.
|
|
15
15
|
*
|
|
@@ -224,14 +224,14 @@ let CreateSVGNetworkAction = class CreateSVGNetworkAction extends BaseAction {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
// Add styles
|
|
227
|
-
const css =
|
|
227
|
+
const css = GenerateCSS(branding);
|
|
228
228
|
SVGUtils.addStyles(svg, css);
|
|
229
229
|
// Get palette
|
|
230
|
-
const palette =
|
|
230
|
+
const palette = GetPalette(branding.palette);
|
|
231
231
|
const ns = svg.namespaceURI;
|
|
232
232
|
// Build group-to-color mapping
|
|
233
233
|
const groups = [...new Set(nodes.map((n) => n.group).filter((g) => g != null))];
|
|
234
|
-
const groupColorMap = new Map(groups.map((g, i) => [g,
|
|
234
|
+
const groupColorMap = new Map(groups.map((g, i) => [g, GetColorForIndex(i, branding.palette)]));
|
|
235
235
|
// Wrap content in pan/zoom container if needed
|
|
236
236
|
const contentContainer = doc.createElementNS(ns, 'g');
|
|
237
237
|
contentContainer.setAttribute('id', enablePanZoom ? 'pan-zoom-container' : 'content-container');
|
|
@@ -294,11 +294,11 @@ let CreateSVGNetworkAction = class CreateSVGNetworkAction extends BaseAction {
|
|
|
294
294
|
}
|
|
295
295
|
// Add legend if requested
|
|
296
296
|
if (showLegend && groups.length > 0) {
|
|
297
|
-
this.addLegend(doc, svg, groups, groupColorMap, vb,
|
|
297
|
+
this.addLegend(doc, svg, groups, groupColorMap, vb, GetFontSpec(branding.font));
|
|
298
298
|
}
|
|
299
299
|
// Add title if present
|
|
300
300
|
if (title) {
|
|
301
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
301
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
302
302
|
}
|
|
303
303
|
// Add interactivity features
|
|
304
304
|
if (enableTooltips) {
|
|
@@ -343,10 +343,10 @@ let CreateSVGNetworkAction = class CreateSVGNetworkAction extends BaseAction {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
// Add styles
|
|
346
|
-
const css =
|
|
346
|
+
const css = GenerateCSS(branding);
|
|
347
347
|
SVGUtils.addStyles(svg, css);
|
|
348
348
|
// Get palette
|
|
349
|
-
const palette =
|
|
349
|
+
const palette = GetPalette(branding.palette);
|
|
350
350
|
const ns = svg.namespaceURI;
|
|
351
351
|
// Create container group with offset for padding
|
|
352
352
|
const container = doc.createElementNS(ns, 'g');
|
|
@@ -431,7 +431,7 @@ let CreateSVGNetworkAction = class CreateSVGNetworkAction extends BaseAction {
|
|
|
431
431
|
});
|
|
432
432
|
// Add title if present
|
|
433
433
|
if (title) {
|
|
434
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
434
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
435
435
|
}
|
|
436
436
|
// Sanitize and return
|
|
437
437
|
return SVGUtils.sanitizeSVG(svg.outerHTML);
|
|
@@ -495,10 +495,10 @@ let CreateSVGNetworkAction = class CreateSVGNetworkAction extends BaseAction {
|
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
// Add styles
|
|
498
|
-
const css =
|
|
498
|
+
const css = GenerateCSS(branding);
|
|
499
499
|
SVGUtils.addStyles(svg, css);
|
|
500
500
|
// Get palette
|
|
501
|
-
const palette =
|
|
501
|
+
const palette = GetPalette(branding.palette);
|
|
502
502
|
const ns = svg.namespaceURI;
|
|
503
503
|
// Render edges
|
|
504
504
|
const edgesGroup = doc.createElementNS(ns, 'g');
|
|
@@ -548,7 +548,7 @@ let CreateSVGNetworkAction = class CreateSVGNetworkAction extends BaseAction {
|
|
|
548
548
|
}
|
|
549
549
|
// Add title if present
|
|
550
550
|
if (title) {
|
|
551
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
551
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
552
552
|
}
|
|
553
553
|
// Sanitize and return
|
|
554
554
|
return SVGUtils.sanitizeSVG(svg.outerHTML);
|
|
@@ -11,7 +11,7 @@ import rough from 'roughjs';
|
|
|
11
11
|
import dagre from '@dagrejs/dagre';
|
|
12
12
|
import * as d3Hierarchy from 'd3-hierarchy';
|
|
13
13
|
import { SVGUtils } from './shared/svg-utils.js';
|
|
14
|
-
import {
|
|
14
|
+
import { GetPalette, GenerateCSS, GetFontSpec } from './shared/svg-theming.js';
|
|
15
15
|
/**
|
|
16
16
|
* Action that generates hand-drawn/sketch-style SVG diagrams using Rough.js.
|
|
17
17
|
* Provides informal, whiteboard-style visualizations for brainstorming and presentations.
|
|
@@ -206,10 +206,10 @@ let CreateSVGSketchDiagramAction = class CreateSVGSketchDiagramAction extends Ba
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
// Add styles
|
|
209
|
-
const css =
|
|
209
|
+
const css = GenerateCSS(branding);
|
|
210
210
|
SVGUtils.addStyles(svg, css);
|
|
211
211
|
// Get palette
|
|
212
|
-
const palette =
|
|
212
|
+
const palette = GetPalette(branding.palette);
|
|
213
213
|
const ns = svg.namespaceURI;
|
|
214
214
|
// Create container
|
|
215
215
|
const contentContainer = doc.createElementNS(ns, 'g');
|
|
@@ -304,7 +304,7 @@ let CreateSVGSketchDiagramAction = class CreateSVGSketchDiagramAction extends Ba
|
|
|
304
304
|
}
|
|
305
305
|
// Add title
|
|
306
306
|
if (title) {
|
|
307
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
307
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
308
308
|
}
|
|
309
309
|
// Add interactivity
|
|
310
310
|
if (enableTooltips) {
|
|
@@ -349,10 +349,10 @@ let CreateSVGSketchDiagramAction = class CreateSVGSketchDiagramAction extends Ba
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
// Add styles
|
|
352
|
-
const css =
|
|
352
|
+
const css = GenerateCSS(branding);
|
|
353
353
|
SVGUtils.addStyles(svg, css);
|
|
354
354
|
// Get palette
|
|
355
|
-
const palette =
|
|
355
|
+
const palette = GetPalette(branding.palette);
|
|
356
356
|
const ns = svg.namespaceURI;
|
|
357
357
|
// Create container
|
|
358
358
|
const contentContainer = doc.createElementNS(ns, 'g');
|
|
@@ -420,7 +420,7 @@ let CreateSVGSketchDiagramAction = class CreateSVGSketchDiagramAction extends Ba
|
|
|
420
420
|
});
|
|
421
421
|
// Add title
|
|
422
422
|
if (title) {
|
|
423
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
423
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
424
424
|
}
|
|
425
425
|
// Add interactivity
|
|
426
426
|
if (enableTooltips) {
|
|
@@ -488,10 +488,10 @@ let CreateSVGSketchDiagramAction = class CreateSVGSketchDiagramAction extends Ba
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
// Add styles
|
|
491
|
-
const css =
|
|
491
|
+
const css = GenerateCSS(branding);
|
|
492
492
|
SVGUtils.addStyles(svg, css);
|
|
493
493
|
// Get palette
|
|
494
|
-
const palette =
|
|
494
|
+
const palette = GetPalette(branding.palette);
|
|
495
495
|
const ns = svg.namespaceURI;
|
|
496
496
|
// Create container
|
|
497
497
|
const contentContainer = doc.createElementNS(ns, 'g');
|
|
@@ -577,7 +577,7 @@ let CreateSVGSketchDiagramAction = class CreateSVGSketchDiagramAction extends Ba
|
|
|
577
577
|
}
|
|
578
578
|
// Add title
|
|
579
579
|
if (title) {
|
|
580
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
580
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
581
581
|
}
|
|
582
582
|
// Add interactivity
|
|
583
583
|
if (enableTooltips) {
|
|
@@ -8,7 +8,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
8
8
|
import { RegisterClass } from '@memberjunction/global';
|
|
9
9
|
import d3CloudModule from 'd3-cloud';
|
|
10
10
|
import { SVGUtils } from './shared/svg-utils.js';
|
|
11
|
-
import {
|
|
11
|
+
import { GetPalette, GenerateCSS, GetFontSpec, GetColorForIndex } from './shared/svg-theming.js';
|
|
12
12
|
// Handle d3-cloud module export
|
|
13
13
|
const d3Cloud = d3CloudModule.default || d3CloudModule;
|
|
14
14
|
/**
|
|
@@ -199,7 +199,7 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
199
199
|
.words(wordsWithSize)
|
|
200
200
|
.padding(5)
|
|
201
201
|
.rotate(getRotation)
|
|
202
|
-
.font(
|
|
202
|
+
.font(GetFontSpec(branding.font).family)
|
|
203
203
|
.fontSize((d) => d.size)
|
|
204
204
|
.random(random)
|
|
205
205
|
.spiral('archimedean')
|
|
@@ -243,7 +243,7 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
243
243
|
}
|
|
244
244
|
// Add styles - STEP 4
|
|
245
245
|
try {
|
|
246
|
-
const css =
|
|
246
|
+
const css = GenerateCSS(branding);
|
|
247
247
|
SVGUtils.addStyles(svg, css);
|
|
248
248
|
}
|
|
249
249
|
catch (error) {
|
|
@@ -252,7 +252,7 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
252
252
|
// Get palette - STEP 5
|
|
253
253
|
let palette;
|
|
254
254
|
try {
|
|
255
|
-
palette =
|
|
255
|
+
palette = GetPalette(branding.palette);
|
|
256
256
|
}
|
|
257
257
|
catch (error) {
|
|
258
258
|
throw new Error(`[STEP 5: getPalette] ${error instanceof Error ? error.message : String(error)}\nStack: ${error instanceof Error ? error.stack : 'N/A'}`);
|
|
@@ -271,12 +271,12 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
271
271
|
try {
|
|
272
272
|
const text = doc.createElementNS(ns, 'text');
|
|
273
273
|
text.setAttribute('transform', `translate(${word.x || 0}, ${word.y || 0}) rotate(${word.rotate || 0})`);
|
|
274
|
-
text.setAttribute('font-family',
|
|
274
|
+
text.setAttribute('font-family', GetFontSpec(branding.font).family);
|
|
275
275
|
text.setAttribute('font-size', String(word.size));
|
|
276
276
|
text.setAttribute('text-anchor', 'middle');
|
|
277
277
|
text.setAttribute('font-weight', String(word.size > 40 ? 'bold' : 'normal'));
|
|
278
278
|
// Get color from palette
|
|
279
|
-
const color =
|
|
279
|
+
const color = GetColorForIndex(i, branding.palette);
|
|
280
280
|
text.setAttribute('fill', color);
|
|
281
281
|
// Add subtle stroke for better visibility
|
|
282
282
|
if (word.size > 30) {
|
|
@@ -298,7 +298,7 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
298
298
|
// Add title if present - STEP 8
|
|
299
299
|
if (title) {
|
|
300
300
|
try {
|
|
301
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
301
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
302
302
|
}
|
|
303
303
|
catch (error) {
|
|
304
304
|
throw new Error(`[STEP 8: addTitle] ${error instanceof Error ? error.message : String(error)}\nStack: ${error instanceof Error ? error.stack : 'N/A'}`);
|
|
@@ -345,11 +345,11 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
// Add styles
|
|
348
|
-
const css =
|
|
348
|
+
const css = GenerateCSS(branding);
|
|
349
349
|
SVGUtils.addStyles(svg, css);
|
|
350
350
|
// Get palette
|
|
351
|
-
const palette =
|
|
352
|
-
const font =
|
|
351
|
+
const palette = GetPalette(branding.palette);
|
|
352
|
+
const font = GetFontSpec(branding.font);
|
|
353
353
|
// Calculate bar dimensions
|
|
354
354
|
const barHeight = 40;
|
|
355
355
|
const spacing = 10;
|
|
@@ -376,7 +376,7 @@ let CreateSVGWordCloudAction = class CreateSVGWordCloudAction extends BaseAction
|
|
|
376
376
|
rect.setAttribute('y', '0');
|
|
377
377
|
rect.setAttribute('width', String(barWidth));
|
|
378
378
|
rect.setAttribute('height', String(barHeight));
|
|
379
|
-
rect.setAttribute('fill',
|
|
379
|
+
rect.setAttribute('fill', GetColorForIndex(i, branding.palette));
|
|
380
380
|
rect.setAttribute('rx', '5');
|
|
381
381
|
g.appendChild(rect);
|
|
382
382
|
// Label text
|
|
@@ -45,6 +45,13 @@ export declare const DEFAULT_FONT_STACK = "-apple-system, BlinkMacSystemFont, \"
|
|
|
45
45
|
* @param palette - Palette configuration
|
|
46
46
|
* @returns Resolved palette colors
|
|
47
47
|
*/
|
|
48
|
+
export declare function GetPalette(palette?: Palette): {
|
|
49
|
+
background: string;
|
|
50
|
+
foreground: string;
|
|
51
|
+
categorical: string[];
|
|
52
|
+
sequential: string[];
|
|
53
|
+
};
|
|
54
|
+
/** @deprecated Use {@link GetPalette}. */
|
|
48
55
|
export declare function getPalette(palette?: Palette): {
|
|
49
56
|
background: string;
|
|
50
57
|
foreground: string;
|
|
@@ -58,6 +65,8 @@ export declare function getPalette(palette?: Palette): {
|
|
|
58
65
|
* @param palette - Palette configuration
|
|
59
66
|
* @returns Hex color string
|
|
60
67
|
*/
|
|
68
|
+
export declare function GetColorForIndex(index: number, palette?: Palette): string;
|
|
69
|
+
/** @deprecated Use {@link GetColorForIndex}. */
|
|
61
70
|
export declare function getColorForIndex(index: number, palette?: Palette): string;
|
|
62
71
|
/**
|
|
63
72
|
* Gets a sequential color by normalized value (0-1)
|
|
@@ -66,6 +75,8 @@ export declare function getColorForIndex(index: number, palette?: Palette): stri
|
|
|
66
75
|
* @param palette - Palette configuration
|
|
67
76
|
* @returns Hex color string
|
|
68
77
|
*/
|
|
78
|
+
export declare function GetSequentialColor(value: number, palette?: Palette): string;
|
|
79
|
+
/** @deprecated Use {@link GetSequentialColor}. */
|
|
69
80
|
export declare function getSequentialColor(value: number, palette?: Palette): string;
|
|
70
81
|
/**
|
|
71
82
|
* Generates inline CSS from branding configuration
|
|
@@ -73,6 +84,8 @@ export declare function getSequentialColor(value: number, palette?: Palette): st
|
|
|
73
84
|
* @param branding - Branding configuration
|
|
74
85
|
* @returns CSS string for injection into <style> element
|
|
75
86
|
*/
|
|
87
|
+
export declare function GenerateCSS(branding?: Branding): string;
|
|
88
|
+
/** @deprecated Use {@link GenerateCSS}. */
|
|
76
89
|
export declare function generateCSS(branding?: Branding): string;
|
|
77
90
|
/**
|
|
78
91
|
* Gets font specification with defaults applied
|
|
@@ -80,6 +93,8 @@ export declare function generateCSS(branding?: Branding): string;
|
|
|
80
93
|
* @param font - Optional font configuration
|
|
81
94
|
* @returns Complete font specification
|
|
82
95
|
*/
|
|
96
|
+
export declare function GetFontSpec(font?: FontSpec): Required<FontSpec>;
|
|
97
|
+
/** @deprecated Use {@link GetFontSpec}. */
|
|
83
98
|
export declare function getFontSpec(font?: FontSpec): Required<FontSpec>;
|
|
84
99
|
/**
|
|
85
100
|
* Gets font stack for CSS font-family property
|
|
@@ -87,5 +102,7 @@ export declare function getFontSpec(font?: FontSpec): Required<FontSpec>;
|
|
|
87
102
|
* @param font - Optional font configuration
|
|
88
103
|
* @returns Font family stack string
|
|
89
104
|
*/
|
|
105
|
+
export declare function GetFontStack(font?: FontSpec): string;
|
|
106
|
+
/** @deprecated Use {@link GetFontStack}. */
|
|
90
107
|
export declare function getFontStack(font?: FontSpec): string;
|
|
91
108
|
//# sourceMappingURL=svg-theming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-theming.d.ts","sourceRoot":"","sources":["../../../../src/custom/visualization/shared/svg-theming.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;CA2FpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,mGACiE,CAAC;AAEjG;;;;;GAKG;AACH,wBAAgB,UAAU,CACtB,OAAO,CAAC,EAAE,OAAO,GAClB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACxB,CAaA;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAGzE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAK3E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAoDvD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAO/D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAEpD"}
|
|
1
|
+
{"version":3,"file":"svg-theming.d.ts","sourceRoot":"","sources":["../../../../src/custom/visualization/shared/svg-theming.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;CA2FpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,mGACiE,CAAC;AAEjG;;;;;GAKG;AACH,wBAAgB,UAAU,CACtB,OAAO,CAAC,EAAE,OAAO,GAClB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACxB,CAaA;AAED,0CAA0C;AAC1C,wBAAgB,UAAU,CACtB,OAAO,CAAC,EAAE,OAAO,GAClB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACxB,CAEA;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAGzE;AAED,gDAAgD;AAChD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAEzE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAK3E;AAED,kDAAkD;AAClD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAE3E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAoDvD;AAED,2CAA2C;AAC3C,wBAAgB,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAO/D;AAED,2CAA2C;AAC3C,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAEpD;AAED,4CAA4C;AAC5C,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAEpD"}
|
|
@@ -110,7 +110,7 @@ export const DEFAULT_FONT_STACK = '-apple-system, BlinkMacSystemFont, "Segoe UI"
|
|
|
110
110
|
* @param palette - Palette configuration
|
|
111
111
|
* @returns Resolved palette colors
|
|
112
112
|
*/
|
|
113
|
-
export function
|
|
113
|
+
export function GetPalette(palette) {
|
|
114
114
|
if (!palette || palette.type === 'named') {
|
|
115
115
|
const paletteName = palette?.type === 'named' ? palette.name : 'mjDefault';
|
|
116
116
|
return PALETTES[paletteName] || PALETTES.mjDefault;
|
|
@@ -123,6 +123,10 @@ export function getPalette(palette) {
|
|
|
123
123
|
sequential: palette.sequential || PALETTES.mjDefault.sequential,
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
+
/** @deprecated Use {@link GetPalette}. */
|
|
127
|
+
export function getPalette(palette) {
|
|
128
|
+
return GetPalette(palette);
|
|
129
|
+
}
|
|
126
130
|
/**
|
|
127
131
|
* Gets a categorical color by index, cycling through the palette
|
|
128
132
|
*
|
|
@@ -130,10 +134,14 @@ export function getPalette(palette) {
|
|
|
130
134
|
* @param palette - Palette configuration
|
|
131
135
|
* @returns Hex color string
|
|
132
136
|
*/
|
|
133
|
-
export function
|
|
134
|
-
const colors =
|
|
137
|
+
export function GetColorForIndex(index, palette) {
|
|
138
|
+
const colors = GetPalette(palette).categorical;
|
|
135
139
|
return colors[index % colors.length];
|
|
136
140
|
}
|
|
141
|
+
/** @deprecated Use {@link GetColorForIndex}. */
|
|
142
|
+
export function getColorForIndex(index, palette) {
|
|
143
|
+
return GetColorForIndex(index, palette);
|
|
144
|
+
}
|
|
137
145
|
/**
|
|
138
146
|
* Gets a sequential color by normalized value (0-1)
|
|
139
147
|
*
|
|
@@ -141,21 +149,25 @@ export function getColorForIndex(index, palette) {
|
|
|
141
149
|
* @param palette - Palette configuration
|
|
142
150
|
* @returns Hex color string
|
|
143
151
|
*/
|
|
144
|
-
export function
|
|
145
|
-
const colors =
|
|
152
|
+
export function GetSequentialColor(value, palette) {
|
|
153
|
+
const colors = GetPalette(palette).sequential;
|
|
146
154
|
const clampedValue = Math.max(0, Math.min(1, value));
|
|
147
155
|
const index = Math.floor(clampedValue * (colors.length - 1));
|
|
148
156
|
return colors[index];
|
|
149
157
|
}
|
|
158
|
+
/** @deprecated Use {@link GetSequentialColor}. */
|
|
159
|
+
export function getSequentialColor(value, palette) {
|
|
160
|
+
return GetSequentialColor(value, palette);
|
|
161
|
+
}
|
|
150
162
|
/**
|
|
151
163
|
* Generates inline CSS from branding configuration
|
|
152
164
|
*
|
|
153
165
|
* @param branding - Branding configuration
|
|
154
166
|
* @returns CSS string for injection into <style> element
|
|
155
167
|
*/
|
|
156
|
-
export function
|
|
157
|
-
const pal =
|
|
158
|
-
const font =
|
|
168
|
+
export function GenerateCSS(branding) {
|
|
169
|
+
const pal = GetPalette(branding?.palette);
|
|
170
|
+
const font = GetFontSpec(branding?.font);
|
|
159
171
|
const css = `
|
|
160
172
|
.bg-default { fill: ${pal.background}; }
|
|
161
173
|
.fg-default { fill: ${pal.foreground}; stroke: ${pal.foreground}; }
|
|
@@ -200,13 +212,17 @@ export function generateCSS(branding) {
|
|
|
200
212
|
.trim();
|
|
201
213
|
return css;
|
|
202
214
|
}
|
|
215
|
+
/** @deprecated Use {@link GenerateCSS}. */
|
|
216
|
+
export function generateCSS(branding) {
|
|
217
|
+
return GenerateCSS(branding);
|
|
218
|
+
}
|
|
203
219
|
/**
|
|
204
220
|
* Gets font specification with defaults applied
|
|
205
221
|
*
|
|
206
222
|
* @param font - Optional font configuration
|
|
207
223
|
* @returns Complete font specification
|
|
208
224
|
*/
|
|
209
|
-
export function
|
|
225
|
+
export function GetFontSpec(font) {
|
|
210
226
|
return {
|
|
211
227
|
family: font?.family || DEFAULT_FONT_STACK,
|
|
212
228
|
size: font?.size || 14,
|
|
@@ -214,13 +230,21 @@ export function getFontSpec(font) {
|
|
|
214
230
|
lineHeight: font?.lineHeight || 1.5,
|
|
215
231
|
};
|
|
216
232
|
}
|
|
233
|
+
/** @deprecated Use {@link GetFontSpec}. */
|
|
234
|
+
export function getFontSpec(font) {
|
|
235
|
+
return GetFontSpec(font);
|
|
236
|
+
}
|
|
217
237
|
/**
|
|
218
238
|
* Gets font stack for CSS font-family property
|
|
219
239
|
*
|
|
220
240
|
* @param font - Optional font configuration
|
|
221
241
|
* @returns Font family stack string
|
|
222
242
|
*/
|
|
223
|
-
export function
|
|
243
|
+
export function GetFontStack(font) {
|
|
224
244
|
return font?.family || DEFAULT_FONT_STACK;
|
|
225
245
|
}
|
|
246
|
+
/** @deprecated Use {@link GetFontStack}. */
|
|
247
|
+
export function getFontStack(font) {
|
|
248
|
+
return GetFontStack(font);
|
|
249
|
+
}
|
|
226
250
|
//# sourceMappingURL=svg-theming.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-theming.js","sourceRoot":"","sources":["../../../../src/custom/visualization/shared/svg-theming.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;GAEG;A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AC,UAAU;SACX,GAAG,CACA,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;eACf,CAAC,YAAY,KAAK;SACxB,CACI;SACA,IAAI,CAAC,EAAE,CAAC;KAChB;SACI,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC;SACvB,IAAI,EAAE,CAAC;IAEZ,OAAO,GAAG,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,IAAe;IACvC,OAAO;QACH,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,kBAAkB;QAC1C,IAAI,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE;QACtB,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG;QAC3B,UAAU,EAAE,IAAI,EAAE,UAAU,IAAI,GAAG;KACtC,CAAC;AACN,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAe;IACxC,OAAO,IAAI,EAAE,MAAM,IAAI,kBAAkB,CAAC;AAC9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"svg-theming.js","sourceRoot":"","sources":["../../../../src/custom/visualization/shared/svg-theming.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,SAAS,EAAE;QACP,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE;YACT,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,OAAO;YAClB,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,OAAO;YAClB,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,OAAO;SACrB;QACD,UAAU,EAAE;YACR,SAAS,EAAE,cAAc;YACzB,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS,EAAE,aA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;SACxB,CACI;SACA,IAAI,CAAC,EAAE,CAAC;KAChB;SACI,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC;SACvB,IAAI,EAAE,CAAC;IAEZ,OAAO,GAAG,CAAC;AACf,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,WAAW,CAAC,QAAmB;IAC3C,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;AACjC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,IAAe;IACvC,OAAO;QACH,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,kBAAkB;QAC1C,IAAI,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE;QACtB,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG;QAC3B,UAAU,EAAE,IAAI,EAAE,UAAU,IAAI,GAAG;KACtC,CAAC;AACN,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,WAAW,CAAC,IAAe;IACvC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAe;IACxC,OAAO,IAAI,EAAE,MAAM,IAAI,kBAAkB,CAAC;AAC9C,CAAC;AAED,4CAA4C;AAC5C,MAAM,UAAU,YAAY,CAAC,IAAe;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -18,6 +18,8 @@ export declare class SVGUtils {
|
|
|
18
18
|
* @param idPrefix - Optional ID prefix for the root SVG element
|
|
19
19
|
* @returns JSDOM Document containing the SVG
|
|
20
20
|
*/
|
|
21
|
+
static CreateSVG(width: number, height: number, idPrefix?: string): Document;
|
|
22
|
+
/** @deprecated Use {@link CreateSVG}. */
|
|
21
23
|
static createSVG(width: number, height: number, idPrefix?: string): Document;
|
|
22
24
|
/**
|
|
23
25
|
* Sanitizes text content to prevent XSS attacks
|
|
@@ -25,6 +27,8 @@ export declare class SVGUtils {
|
|
|
25
27
|
* @param text - Raw text content
|
|
26
28
|
* @returns HTML-safe text
|
|
27
29
|
*/
|
|
30
|
+
static SanitizeText(text: string): string;
|
|
31
|
+
/** @deprecated Use {@link SanitizeText}. */
|
|
28
32
|
static sanitizeText(text: string): string;
|
|
29
33
|
/**
|
|
30
34
|
* Sanitizes SVG string to remove potentially malicious content
|
|
@@ -36,6 +40,8 @@ export declare class SVGUtils {
|
|
|
36
40
|
* @param svgString - Raw SVG XML string
|
|
37
41
|
* @returns Sanitized SVG string
|
|
38
42
|
*/
|
|
43
|
+
static SanitizeSVG(svgString: string): string;
|
|
44
|
+
/** @deprecated Use {@link SanitizeSVG}. */
|
|
39
45
|
static sanitizeSVG(svgString: string): string;
|
|
40
46
|
/**
|
|
41
47
|
* Generates a unique ID with prefix and timestamp
|
|
@@ -44,6 +50,8 @@ export declare class SVGUtils {
|
|
|
44
50
|
* @param index - Index or identifier
|
|
45
51
|
* @returns Unique ID string
|
|
46
52
|
*/
|
|
53
|
+
static GenerateId(prefix: string, index: number | string): string;
|
|
54
|
+
/** @deprecated Use {@link GenerateId}. */
|
|
47
55
|
static generateId(prefix: string, index: number | string): string;
|
|
48
56
|
/**
|
|
49
57
|
* Adds accessibility elements to SVG root
|
|
@@ -51,6 +59,8 @@ export declare class SVGUtils {
|
|
|
51
59
|
* @param svg - SVG element to enhance
|
|
52
60
|
* @param a11y - Accessibility configuration
|
|
53
61
|
*/
|
|
62
|
+
static AddA11y(svg: SVGElement, a11y: Accessibility): void;
|
|
63
|
+
/** @deprecated Use {@link AddA11y}. */
|
|
54
64
|
static addA11y(svg: SVGElement, a11y: Accessibility): void;
|
|
55
65
|
/**
|
|
56
66
|
* Injects inline CSS styles into SVG
|
|
@@ -58,6 +68,8 @@ export declare class SVGUtils {
|
|
|
58
68
|
* @param svg - SVG element
|
|
59
69
|
* @param css - CSS string to inject
|
|
60
70
|
*/
|
|
71
|
+
static AddStyles(svg: SVGElement, css: string): void;
|
|
72
|
+
/** @deprecated Use {@link AddStyles}. */
|
|
61
73
|
static addStyles(svg: SVGElement, css: string): void;
|
|
62
74
|
/**
|
|
63
75
|
* Calculates viewBox with padding applied
|
|
@@ -65,6 +77,15 @@ export declare class SVGUtils {
|
|
|
65
77
|
* @param viewBox - ViewBox configuration
|
|
66
78
|
* @returns Padding-adjusted dimensions and offsets
|
|
67
79
|
*/
|
|
80
|
+
static CalculateViewBox(viewBox: ViewBox): {
|
|
81
|
+
x: number;
|
|
82
|
+
y: number;
|
|
83
|
+
width: number;
|
|
84
|
+
height: number;
|
|
85
|
+
contentWidth: number;
|
|
86
|
+
contentHeight: number;
|
|
87
|
+
};
|
|
88
|
+
/** @deprecated Use {@link CalculateViewBox}. */
|
|
68
89
|
static calculateViewBox(viewBox: ViewBox): {
|
|
69
90
|
x: number;
|
|
70
91
|
y: number;
|
|
@@ -79,6 +100,8 @@ export declare class SVGUtils {
|
|
|
79
100
|
* @param svg - SVG element
|
|
80
101
|
* @returns The defs element (existing or newly created)
|
|
81
102
|
*/
|
|
103
|
+
static GetOrCreateDefs(svg: SVGElement): SVGDefsElement;
|
|
104
|
+
/** @deprecated Use {@link GetOrCreateDefs}. */
|
|
82
105
|
static getOrCreateDefs(svg: SVGElement): SVGDefsElement;
|
|
83
106
|
/**
|
|
84
107
|
* Adds an arrowhead marker definition to SVG
|
|
@@ -88,6 +111,8 @@ export declare class SVGUtils {
|
|
|
88
111
|
* @param color - Arrow color
|
|
89
112
|
* @returns Marker ID for use in marker-end attribute
|
|
90
113
|
*/
|
|
114
|
+
static AddArrowMarker(svg: SVGElement, id: string, color?: string): string;
|
|
115
|
+
/** @deprecated Use {@link AddArrowMarker}. */
|
|
91
116
|
static addArrowMarker(svg: SVGElement, id: string, color?: string): string;
|
|
92
117
|
/**
|
|
93
118
|
* Creates a seeded pseudo-random number generator
|
|
@@ -96,6 +121,8 @@ export declare class SVGUtils {
|
|
|
96
121
|
* @param seed - Random seed
|
|
97
122
|
* @returns Function that returns random numbers between 0 and 1
|
|
98
123
|
*/
|
|
124
|
+
static SeededRandom(seed: number): () => number;
|
|
125
|
+
/** @deprecated Use {@link SeededRandom}. */
|
|
99
126
|
static seededRandom(seed: number): () => number;
|
|
100
127
|
/**
|
|
101
128
|
* Wraps text to fit within a specified width
|
|
@@ -104,6 +131,8 @@ export declare class SVGUtils {
|
|
|
104
131
|
* @param maxWidth - Maximum width in characters (approximate)
|
|
105
132
|
* @returns Array of text lines
|
|
106
133
|
*/
|
|
134
|
+
static WrapText(text: string, maxWidth: number): string[];
|
|
135
|
+
/** @deprecated Use {@link WrapText}. */
|
|
107
136
|
static wrapText(text: string, maxWidth: number): string[];
|
|
108
137
|
/**
|
|
109
138
|
* Calculates text width (approximate based on character count and font size)
|
|
@@ -113,6 +142,8 @@ export declare class SVGUtils {
|
|
|
113
142
|
* @param fontSize - Font size in pixels
|
|
114
143
|
* @returns Estimated width in pixels
|
|
115
144
|
*/
|
|
145
|
+
static EstimateTextWidth(text: string, fontSize?: number): number;
|
|
146
|
+
/** @deprecated Use {@link EstimateTextWidth}. */
|
|
116
147
|
static estimateTextWidth(text: string, fontSize?: number): number;
|
|
117
148
|
/**
|
|
118
149
|
* Creates a rounded rectangle path
|
|
@@ -124,6 +155,8 @@ export declare class SVGUtils {
|
|
|
124
155
|
* @param radius - Corner radius
|
|
125
156
|
* @returns SVG path data string
|
|
126
157
|
*/
|
|
158
|
+
static RoundedRectPath(x: number, y: number, width: number, height: number, radius: number): string;
|
|
159
|
+
/** @deprecated Use {@link RoundedRectPath}. */
|
|
127
160
|
static roundedRectPath(x: number, y: number, width: number, height: number, radius: number): string;
|
|
128
161
|
/**
|
|
129
162
|
* Wraps SVG string in a scrollable HTML container
|
|
@@ -136,6 +169,8 @@ export declare class SVGUtils {
|
|
|
136
169
|
* @param borderColor - Border color (default: #ddd)
|
|
137
170
|
* @returns HTML string with SVG wrapped in scrollable div
|
|
138
171
|
*/
|
|
172
|
+
static WrapWithScrollContainer(svgString: string, maxWidth?: number, maxHeight?: number, showBorder?: boolean, borderColor?: string): string;
|
|
173
|
+
/** @deprecated Use {@link WrapWithScrollContainer}. */
|
|
139
174
|
static wrapWithScrollContainer(svgString: string, maxWidth?: number, maxHeight?: number, showBorder?: boolean, borderColor?: string): string;
|
|
140
175
|
/**
|
|
141
176
|
* Generates self-contained pan/zoom script for SVG
|
|
@@ -147,6 +182,8 @@ export declare class SVGUtils {
|
|
|
147
182
|
* @param showControls - Show zoom in/out/reset buttons (default: false)
|
|
148
183
|
* @returns Script tag with pan/zoom implementation
|
|
149
184
|
*/
|
|
185
|
+
static GeneratePanZoomScript(containerId?: string, minScale?: number, maxScale?: number, showControls?: boolean): string;
|
|
186
|
+
/** @deprecated Use {@link GeneratePanZoomScript}. */
|
|
150
187
|
static generatePanZoomScript(containerId?: string, minScale?: number, maxScale?: number, showControls?: boolean): string;
|
|
151
188
|
/**
|
|
152
189
|
* Generates zoom control buttons script
|
|
@@ -161,6 +198,8 @@ export declare class SVGUtils {
|
|
|
161
198
|
* @param doc - Document to create elements in
|
|
162
199
|
* @returns Script tag with tooltip implementation
|
|
163
200
|
*/
|
|
201
|
+
static AddTooltipSupport(svg: SVGElement, doc: Document): void;
|
|
202
|
+
/** @deprecated Use {@link AddTooltipSupport}. */
|
|
164
203
|
static addTooltipSupport(svg: SVGElement, doc: Document): void;
|
|
165
204
|
}
|
|
166
205
|
//# sourceMappingURL=svg-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-utils.d.ts","sourceRoot":"","sources":["../../../../src/custom/visualization/shared/svg-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,aAAa,EAAW,MAAM,aAAa,CAAC;AAE9D;;GAEG;AACH,qBAAa,QAAQ;IACjB;;;;;;;OAOG;IACH,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ;IAU5E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