@memberjunction/core-actions 6.2.0-edge.0 → 6.2.0-edge.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/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.js +6 -6
- package/dist/custom/ai/find-candidate-agents.action.js +2 -2
- 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/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/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/package.json +40 -40
|
@@ -9,7 +9,7 @@ import { RegisterClass } from '@memberjunction/global';
|
|
|
9
9
|
import dagre from '@dagrejs/dagre';
|
|
10
10
|
import * as d3Hierarchy from 'd3-hierarchy';
|
|
11
11
|
import { SVGUtils } from './shared/svg-utils.js';
|
|
12
|
-
import {
|
|
12
|
+
import { GetPalette, GenerateCSS, GetFontSpec } from './shared/svg-theming.js';
|
|
13
13
|
/**
|
|
14
14
|
* Action that generates SVG diagrams including flowcharts, org charts, and ER diagrams.
|
|
15
15
|
*
|
|
@@ -193,10 +193,10 @@ let CreateSVGDiagramAction = class CreateSVGDiagramAction extends BaseAction {
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
// Add styles
|
|
196
|
-
const css =
|
|
196
|
+
const css = GenerateCSS(branding);
|
|
197
197
|
SVGUtils.addStyles(svg, css);
|
|
198
198
|
// Get palette for colors
|
|
199
|
-
const palette =
|
|
199
|
+
const palette = GetPalette(branding.palette);
|
|
200
200
|
// Render nodes
|
|
201
201
|
for (const nodeId of g.nodes()) {
|
|
202
202
|
const node = g.node(nodeId);
|
|
@@ -209,7 +209,7 @@ let CreateSVGDiagramAction = class CreateSVGDiagramAction extends BaseAction {
|
|
|
209
209
|
}
|
|
210
210
|
// Add title if present
|
|
211
211
|
if (title) {
|
|
212
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
212
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
213
213
|
}
|
|
214
214
|
// Sanitize and return
|
|
215
215
|
return SVGUtils.sanitizeSVG(svg.outerHTML);
|
|
@@ -390,10 +390,10 @@ let CreateSVGDiagramAction = class CreateSVGDiagramAction extends BaseAction {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
// Add styles
|
|
393
|
-
const css =
|
|
393
|
+
const css = GenerateCSS(branding);
|
|
394
394
|
SVGUtils.addStyles(svg, css);
|
|
395
395
|
// Get palette
|
|
396
|
-
const palette =
|
|
396
|
+
const palette = GetPalette(branding.palette);
|
|
397
397
|
// Create container group with offset for padding
|
|
398
398
|
const container = doc.createElementNS(svg.namespaceURI, 'g');
|
|
399
399
|
container.setAttribute('transform', `translate(${vb.x}, ${vb.y})`);
|
|
@@ -408,7 +408,7 @@ let CreateSVGDiagramAction = class CreateSVGDiagramAction extends BaseAction {
|
|
|
408
408
|
});
|
|
409
409
|
// Add title if present
|
|
410
410
|
if (title) {
|
|
411
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
411
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
412
412
|
}
|
|
413
413
|
// Sanitize and return
|
|
414
414
|
return SVGUtils.sanitizeSVG(svg.outerHTML);
|
|
@@ -541,10 +541,10 @@ let CreateSVGDiagramAction = class CreateSVGDiagramAction extends BaseAction {
|
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
// Add styles
|
|
544
|
-
const css =
|
|
544
|
+
const css = GenerateCSS(branding);
|
|
545
545
|
SVGUtils.addStyles(svg, css);
|
|
546
546
|
// Get palette
|
|
547
|
-
const palette =
|
|
547
|
+
const palette = GetPalette(branding.palette);
|
|
548
548
|
// Render tables
|
|
549
549
|
for (const tableId of g.nodes()) {
|
|
550
550
|
const table = g.node(tableId);
|
|
@@ -557,7 +557,7 @@ let CreateSVGDiagramAction = class CreateSVGDiagramAction extends BaseAction {
|
|
|
557
557
|
}
|
|
558
558
|
// Add title if present
|
|
559
559
|
if (title) {
|
|
560
|
-
this.addTitle(doc, svg, title, vb.width,
|
|
560
|
+
this.addTitle(doc, svg, title, vb.width, GetFontSpec(branding.font));
|
|
561
561
|
}
|
|
562
562
|
// Sanitize and return
|
|
563
563
|
return SVGUtils.sanitizeSVG(svg.outerHTML);
|
|
@@ -8,7 +8,7 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
8
8
|
import { RegisterClass } from '@memberjunction/global';
|
|
9
9
|
import { JSDOM } from 'jsdom';
|
|
10
10
|
import { SVGUtils } from './shared/svg-utils.js';
|
|
11
|
-
import {
|
|
11
|
+
import { GetPalette, GenerateCSS, GetFontSpec } from './shared/svg-theming.js';
|
|
12
12
|
/**
|
|
13
13
|
* Action that composes multiple SVG visualizations into a single infographic.
|
|
14
14
|
*
|
|
@@ -120,11 +120,11 @@ let CreateSVGInfographicAction = class CreateSVGInfographicAction extends BaseAc
|
|
|
120
120
|
const doc = SVGUtils.createSVG(width, totalHeight, 'infographic');
|
|
121
121
|
const svg = doc.querySelector('svg');
|
|
122
122
|
// Add styles
|
|
123
|
-
const css =
|
|
123
|
+
const css = GenerateCSS(branding);
|
|
124
124
|
SVGUtils.addStyles(svg, css);
|
|
125
125
|
// Get palette
|
|
126
|
-
const palette =
|
|
127
|
-
const font =
|
|
126
|
+
const palette = GetPalette(branding.palette);
|
|
127
|
+
const font = GetFontSpec(branding.font);
|
|
128
128
|
const ns = svg.namespaceURI;
|
|
129
129
|
// Add background
|
|
130
130
|
const bg = doc.createElementNS(ns, 'rect');
|
|
@@ -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;;GA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AQ,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;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,E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;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,aAAa;SAC3B;KACJ;IACD,IAAI,EAAE;QACF,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE;YACT,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;SACZ;QACD,UAAU,EAAE;YACR,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;YACT,SAAS;SACZ;KACJ;IACD,MAAM,EAAE;QACJ,UAAU,EAAE,S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