pptx-angular-viewer 2.17.6 → 2.17.8
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/CHANGELOG.md +4 -0
- package/fesm2022/{pptx-angular-viewer-chat-history-idb-D7J9_fDG.mjs → pptx-angular-viewer-chat-history-idb-B07mmb7a.mjs} +2 -2
- package/fesm2022/{pptx-angular-viewer-chat-history-idb-D7J9_fDG.mjs.map → pptx-angular-viewer-chat-history-idb-B07mmb7a.mjs.map} +1 -1
- package/fesm2022/{pptx-angular-viewer-pptx-angular-viewer-Cb3OH99V.mjs → pptx-angular-viewer-pptx-angular-viewer-CfxrOZVN.mjs} +215 -195
- package/fesm2022/{pptx-angular-viewer-pptx-angular-viewer-Cb3OH99V.mjs.map → pptx-angular-viewer-pptx-angular-viewer-CfxrOZVN.mjs.map} +1 -1
- package/fesm2022/pptx-angular-viewer.mjs +1 -1
- package/package.json +1 -1
- package/types/pptx-angular-viewer.d.ts +141 -69
|
@@ -34457,35 +34457,43 @@ function resolveParagraphStrutFontSize(segments, bodyFontSize) {
|
|
|
34457
34457
|
* separately so it can pick up bullet font/size/colour). Each binding maps the
|
|
34458
34458
|
* returned plain-object styles onto its own style binding.
|
|
34459
34459
|
*/
|
|
34460
|
+
/** Points to CSS px. */
|
|
34461
|
+
const PT_TO_PX = 96 / 72;
|
|
34460
34462
|
/**
|
|
34461
|
-
* Resolve a paragraph's
|
|
34462
|
-
* `paragraphProperties` (the first segment's per-paragraph `a:pPr`, #69). Only
|
|
34463
|
-
* keys the paragraph explicitly overrides are set, so a paragraph without its
|
|
34464
|
-
* own spacing inherits the body-level defaults each binding already applies.
|
|
34463
|
+
* Resolve a paragraph's line-height and vertical margins.
|
|
34465
34464
|
*
|
|
34466
|
-
* `
|
|
34467
|
-
*
|
|
34468
|
-
*
|
|
34469
|
-
*
|
|
34465
|
+
* OOXML puts line spacing (`a:lnSpc`), space-before (`a:spcBef`) and
|
|
34466
|
+
* space-after (`a:spcAft`) on the paragraph, so collapsing them into one
|
|
34467
|
+
* body-level padding gives every paragraph the same gap and loses the authored
|
|
34468
|
+
* rhythm. Values the paragraph does not set fall back to the text body's, and
|
|
34469
|
+
* an exact measure (`a:spcPts`) beats a proportional one (`a:spcPct`) taken
|
|
34470
|
+
* from the same level; a paragraph's own multiplier is never mixed with an
|
|
34471
|
+
* exact value inherited from the body.
|
|
34472
|
+
*
|
|
34473
|
+
* `paragraphSpacingBefore` / `paragraphSpacingAfter` are already px from core.
|
|
34470
34474
|
*/
|
|
34471
|
-
function resolveParagraphSpacing
|
|
34475
|
+
function resolveParagraphSpacing(input) {
|
|
34476
|
+
const { paraProps, bodyStyle, isFirst = false, isLast = false, spaceFirstLast = true } = input;
|
|
34472
34477
|
const out = {};
|
|
34473
|
-
|
|
34474
|
-
|
|
34475
|
-
|
|
34476
|
-
|
|
34477
|
-
|
|
34478
|
-
|
|
34479
|
-
|
|
34480
|
-
|
|
34481
|
-
|
|
34482
|
-
|
|
34483
|
-
|
|
34484
|
-
|
|
34485
|
-
|
|
34486
|
-
|
|
34487
|
-
|
|
34488
|
-
|
|
34478
|
+
const before = paraProps?.paragraphSpacingBefore ?? bodyStyle?.paragraphSpacingBefore;
|
|
34479
|
+
if (typeof before === 'number' && before > 0 && (!isFirst || spaceFirstLast)) {
|
|
34480
|
+
out.spaceBeforePx = before;
|
|
34481
|
+
}
|
|
34482
|
+
const after = paraProps?.paragraphSpacingAfter ?? bodyStyle?.paragraphSpacingAfter;
|
|
34483
|
+
if (typeof after === 'number' && after > 0 && (!isLast || spaceFirstLast)) {
|
|
34484
|
+
out.spaceAfterPx = after;
|
|
34485
|
+
}
|
|
34486
|
+
const hasOwnLineSpacing = paraProps?.lineSpacing !== undefined || paraProps?.lineSpacingExactPt !== undefined;
|
|
34487
|
+
const lineSource = hasOwnLineSpacing ? paraProps : bodyStyle;
|
|
34488
|
+
const exactPt = lineSource?.lineSpacingExactPt;
|
|
34489
|
+
const multiplier = lineSource?.lineSpacing;
|
|
34490
|
+
if (typeof exactPt === 'number' && exactPt > 0) {
|
|
34491
|
+
out.lineHeight = `${exactPt * PT_TO_PX}px`;
|
|
34492
|
+
}
|
|
34493
|
+
else if (typeof multiplier === 'number' && multiplier > 0) {
|
|
34494
|
+
// `a:spcPct` stacks on PowerPoint's 1.2 single-spacing pitch; see
|
|
34495
|
+
// `proportionalLineHeight` for the COM measurement behind it.
|
|
34496
|
+
out.lineHeight = proportionalLineHeight(multiplier);
|
|
34489
34497
|
}
|
|
34490
34498
|
return out;
|
|
34491
34499
|
}
|
|
@@ -34544,6 +34552,7 @@ function buildParagraphs(element, fieldContext, segmentOverrides) {
|
|
|
34544
34552
|
}
|
|
34545
34553
|
grouped[grouped.length - 1].paraSegments.push(seg);
|
|
34546
34554
|
}
|
|
34555
|
+
const bodyStyle = hasTextProperties(element) ? element.textStyle : undefined;
|
|
34547
34556
|
const result = grouped.map(({ paraSegments, terminator }, paraIndex) => {
|
|
34548
34557
|
const firstSeg = paraSegments[0];
|
|
34549
34558
|
const baseFontSize = firstSeg?.style?.fontSize ?? element.textStyle?.fontSize ?? 16;
|
|
@@ -34649,7 +34658,13 @@ function buildParagraphs(element, fieldContext, segmentOverrides) {
|
|
|
34649
34658
|
// An empty paragraph's own `a:pPr` / `a:endParaRPr` ride its terminator
|
|
34650
34659
|
// segment (there is no run to carry them), so read them from there.
|
|
34651
34660
|
const propsCarrier = firstSeg ?? (paraSegments.length === 0 ? terminator : undefined);
|
|
34652
|
-
const spacing = resolveParagraphSpacing
|
|
34661
|
+
const spacing = resolveParagraphSpacing({
|
|
34662
|
+
paraProps: propsCarrier?.paragraphProperties,
|
|
34663
|
+
bodyStyle,
|
|
34664
|
+
isFirst: paraIndex === 0,
|
|
34665
|
+
isLast: paraIndex === grouped.length - 1,
|
|
34666
|
+
spaceFirstLast: bodyStyle?.spaceFirstLastParagraph !== false,
|
|
34667
|
+
});
|
|
34653
34668
|
const strutFontSizePx = resolveParagraphStrutFontSize(paraSegments.length > 0 ? paraSegments : terminator ? [terminator] : [], hasTextProperties(element) ? element.textStyle?.fontSize : undefined);
|
|
34654
34669
|
return {
|
|
34655
34670
|
runs,
|
|
@@ -44003,6 +44018,27 @@ function fitFontSize(text, maxWidth, maxHeight, baseSize) {
|
|
|
44003
44018
|
const maxByHeight = maxHeight * 0.5;
|
|
44004
44019
|
return Math.max(6, Math.min(baseSize, maxByWidth, maxByHeight));
|
|
44005
44020
|
}
|
|
44021
|
+
/**
|
|
44022
|
+
* SVG polygon `points` for a chevron / arrow inscribed in the box at (`x`, `y`)
|
|
44023
|
+
* sized `w` x `h`: a notch on the left edge and a tip on the right.
|
|
44024
|
+
*
|
|
44025
|
+
* @param x - Left edge.
|
|
44026
|
+
* @param y - Top edge.
|
|
44027
|
+
* @param w - Box width.
|
|
44028
|
+
* @param h - Box height.
|
|
44029
|
+
* @returns Space-separated `"x,y"` pairs.
|
|
44030
|
+
*/
|
|
44031
|
+
function chevronPoints(x, y, w, h) {
|
|
44032
|
+
const depth = Math.min(w * 0.2, h * 0.4);
|
|
44033
|
+
return [
|
|
44034
|
+
`${x},${y}`,
|
|
44035
|
+
`${x + w - depth},${y}`,
|
|
44036
|
+
`${x + w},${y + h / 2}`,
|
|
44037
|
+
`${x + w - depth},${y + h}`,
|
|
44038
|
+
`${x},${y + h}`,
|
|
44039
|
+
`${x + depth},${y + h / 2}`,
|
|
44040
|
+
].join(' ');
|
|
44041
|
+
}
|
|
44006
44042
|
/** Outline-stroke colour for a node given its computed stroke width. */
|
|
44007
44043
|
function strokeFor(sw) {
|
|
44008
44044
|
return sw > 0 ? 'rgba(255,255,255,0.3)' : 'none';
|
|
@@ -47408,6 +47444,53 @@ function computeDrawingViewBox(shapes) {
|
|
|
47408
47444
|
height: maxY - minY || 1,
|
|
47409
47445
|
};
|
|
47410
47446
|
}
|
|
47447
|
+
/**
|
|
47448
|
+
* Build the SVG gradient for a cached shape's `a:gradFill`, or `undefined` when
|
|
47449
|
+
* it has none.
|
|
47450
|
+
*
|
|
47451
|
+
* The OOXML angle is clockwise from +x with y pointing down, which is also the
|
|
47452
|
+
* SVG convention, so sin/cos map straight onto the axis endpoints.
|
|
47453
|
+
*/
|
|
47454
|
+
function resolveGradient(shape, id) {
|
|
47455
|
+
const stops = shape.fillGradientStops;
|
|
47456
|
+
if (!stops || stops.length === 0) {
|
|
47457
|
+
return undefined;
|
|
47458
|
+
}
|
|
47459
|
+
const mapped = stops.map((stop) => ({
|
|
47460
|
+
offset: `${Math.max(0, Math.min(100, stop.position))}%`,
|
|
47461
|
+
color: stop.color,
|
|
47462
|
+
...(stop.opacity !== undefined ? { opacity: stop.opacity } : {}),
|
|
47463
|
+
}));
|
|
47464
|
+
if (shape.fillGradientType === 'radial') {
|
|
47465
|
+
return { id, kind: 'radial', cx: '50%', cy: '50%', r: '50%', stops: mapped };
|
|
47466
|
+
}
|
|
47467
|
+
const radians = ((shape.fillGradientAngle ?? 0) * Math.PI) / 180;
|
|
47468
|
+
const dx = Math.cos(radians) / 2;
|
|
47469
|
+
const dy = Math.sin(radians) / 2;
|
|
47470
|
+
return {
|
|
47471
|
+
id,
|
|
47472
|
+
kind: 'linear',
|
|
47473
|
+
x1: `${(0.5 - dx) * 100}%`,
|
|
47474
|
+
y1: `${(0.5 - dy) * 100}%`,
|
|
47475
|
+
x2: `${(0.5 + dx) * 100}%`,
|
|
47476
|
+
y2: `${(0.5 + dy) * 100}%`,
|
|
47477
|
+
stops: mapped,
|
|
47478
|
+
};
|
|
47479
|
+
}
|
|
47480
|
+
/** Which primitive paints this shape's body, from its preset type. */
|
|
47481
|
+
function resolveShapeKind(shape, hasImage) {
|
|
47482
|
+
if (hasImage) {
|
|
47483
|
+
return 'image';
|
|
47484
|
+
}
|
|
47485
|
+
// `getShapeType` folds the aliases it knows (oval -> ellipse, can -> cylinder)
|
|
47486
|
+
// but has no vocabulary for the arrow presets SmartArt process layouts use, so
|
|
47487
|
+
// those are matched on the normalised raw type.
|
|
47488
|
+
const normalized = (shape.shapeType ?? '').trim().toLowerCase();
|
|
47489
|
+
if (normalized === 'chevron' || normalized === 'homeplate') {
|
|
47490
|
+
return 'polygon';
|
|
47491
|
+
}
|
|
47492
|
+
return getShapeType(shape.shapeType) === 'ellipse' ? 'ellipse' : 'rect';
|
|
47493
|
+
}
|
|
47411
47494
|
/**
|
|
47412
47495
|
* Project raw `PptxSmartArtDrawingShape`s into `RenderedShape` view-models,
|
|
47413
47496
|
* rebasing positions relative to the viewBox origin.
|
|
@@ -47416,11 +47499,20 @@ function projectDrawingShapes(elementId, shapes, viewBox, palette, style) {
|
|
|
47416
47499
|
const { minX, minY } = viewBox;
|
|
47417
47500
|
const sw = styleStroke(style);
|
|
47418
47501
|
return shapes.map((shape, i) => {
|
|
47419
|
-
const
|
|
47502
|
+
const gradient = shape.fillNone
|
|
47503
|
+
? undefined
|
|
47504
|
+
: resolveGradient(shape, `${elementId}-dspgrad-${shape.id}-${i}`);
|
|
47505
|
+
// Precedence: authored transparency, then gradient, then a pattern's
|
|
47506
|
+
// foreground (the closest flat stand-in for one), then solid, then palette.
|
|
47507
|
+
const fill = shape.fillNone
|
|
47508
|
+
? 'none'
|
|
47509
|
+
: gradient
|
|
47510
|
+
? `url(#${gradient.id})`
|
|
47511
|
+
: (shape.fillPatternForegroundColor ?? shape.fillColor ?? paletteColour(i, palette));
|
|
47420
47512
|
const relX = shape.x - minX;
|
|
47421
47513
|
const relY = shape.y - minY;
|
|
47422
|
-
const
|
|
47423
|
-
const rx = shape.shapeType === 'roundRect' ? Math.min(shape.width, shape.height) * 0.1 : 0;
|
|
47514
|
+
const kind = resolveShapeKind(shape, Boolean(shape.fillImageUrl));
|
|
47515
|
+
const rx = getShapeType(shape.shapeType) === 'roundRect' ? Math.min(shape.width, shape.height) * 0.1 : 0;
|
|
47424
47516
|
const cx = relX + shape.width / 2;
|
|
47425
47517
|
const cy = relY + shape.height / 2;
|
|
47426
47518
|
const stroke = shape.strokeColor ?? (sw > 0 ? 'rgba(255,255,255,0.3)' : 'none');
|
|
@@ -47428,7 +47520,11 @@ function projectDrawingShapes(elementId, shapes, viewBox, palette, style) {
|
|
|
47428
47520
|
const fontSize = shape.fontSize ?? Math.max(8, Math.min(14, shape.height * 0.2));
|
|
47429
47521
|
return {
|
|
47430
47522
|
key: `${elementId}-dsp-${shape.id}-${i}`,
|
|
47431
|
-
|
|
47523
|
+
kind,
|
|
47524
|
+
...(kind === 'polygon'
|
|
47525
|
+
? { points: chevronPoints(relX, relY, shape.width, shape.height) }
|
|
47526
|
+
: {}),
|
|
47527
|
+
...(gradient ? { gradient } : {}),
|
|
47432
47528
|
x: relX,
|
|
47433
47529
|
y: relY,
|
|
47434
47530
|
width: shape.width,
|
|
@@ -55081,6 +55177,29 @@ const PRESENTATION_HIT_TEST_CSS = `
|
|
|
55081
55177
|
pointer-events: auto;
|
|
55082
55178
|
}
|
|
55083
55179
|
`;
|
|
55180
|
+
/**
|
|
55181
|
+
* The inline `pointer-events` an element renderer may write, if any.
|
|
55182
|
+
*
|
|
55183
|
+
* Off the show stage a locked element (an inherited master / layout shape with
|
|
55184
|
+
* template editing off) has to be pointer-transparent, and a binding says so
|
|
55185
|
+
* inline because nothing else knows the lock.
|
|
55186
|
+
*
|
|
55187
|
+
* During a show it must NOT: {@link PRESENTATION_HIT_TEST_CSS} owns the rule
|
|
55188
|
+
* there, and it works by re-enabling actionable shapes that sit inside inert
|
|
55189
|
+
* ones. An inline `none` on the element outranks any stylesheet, so writing one
|
|
55190
|
+
* makes every Action Setting on the slide unclickable and the show advances
|
|
55191
|
+
* instead of following the link. That is not a hypothetical: it is why the
|
|
55192
|
+
* wheel-of-slices deck could not be navigated in the bindings that wrote it.
|
|
55193
|
+
*
|
|
55194
|
+
* @returns `'none'` when the binding should write it, `undefined` to leave the
|
|
55195
|
+
* property alone and let the cascade decide.
|
|
55196
|
+
*/
|
|
55197
|
+
function inlineElementPointerEvents(options) {
|
|
55198
|
+
if (options.presenting) {
|
|
55199
|
+
return undefined;
|
|
55200
|
+
}
|
|
55201
|
+
return options.interactive ? undefined : 'none';
|
|
55202
|
+
}
|
|
55084
55203
|
|
|
55085
55204
|
function flattenElements(elements) {
|
|
55086
55205
|
const flattened = [];
|
|
@@ -55449,7 +55568,7 @@ function strokeToInkElement(opts) {
|
|
|
55449
55568
|
* lightweight processing. This is sufficient for pressure-width
|
|
55450
55569
|
* rendering where each extracted point gets a circle overlay.
|
|
55451
55570
|
*/
|
|
55452
|
-
function extractPathPoints
|
|
55571
|
+
function extractPathPoints(d) {
|
|
55453
55572
|
const points = [];
|
|
55454
55573
|
// Match all numeric pairs following SVG path commands
|
|
55455
55574
|
const numberRegex = /-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/giu;
|
|
@@ -55469,7 +55588,7 @@ function extractPathPoints$1(d) {
|
|
|
55469
55588
|
* Given an array of width samples, linearly interpolate the width
|
|
55470
55589
|
* at `t` where `t` is the normalised position along the path (0 to 1).
|
|
55471
55590
|
*/
|
|
55472
|
-
function interpolateWidth
|
|
55591
|
+
function interpolateWidth(widths, t) {
|
|
55473
55592
|
if (widths.length === 0) {
|
|
55474
55593
|
return 1;
|
|
55475
55594
|
}
|
|
@@ -55491,7 +55610,7 @@ function interpolateWidth$1(widths, t) {
|
|
|
55491
55610
|
* interpolated width at that position. When `widths` contains fewer
|
|
55492
55611
|
* entries than `points`, values are interpolated linearly.
|
|
55493
55612
|
*/
|
|
55494
|
-
function generatePressureCircles
|
|
55613
|
+
function generatePressureCircles(points, widths, config) {
|
|
55495
55614
|
if (points.length === 0) {
|
|
55496
55615
|
return [];
|
|
55497
55616
|
}
|
|
@@ -55499,7 +55618,7 @@ function generatePressureCircles$1(points, widths, config) {
|
|
|
55499
55618
|
const maxR = config.maxRadius ?? config.baseWidth;
|
|
55500
55619
|
return points.map((pt, i) => {
|
|
55501
55620
|
const t = points.length === 1 ? 0.5 : i / (points.length - 1);
|
|
55502
|
-
const w = interpolateWidth
|
|
55621
|
+
const w = interpolateWidth(widths, t);
|
|
55503
55622
|
// Scale radius based on the ratio of the interpolated width to
|
|
55504
55623
|
// the base width, clamped between minR and maxR.
|
|
55505
55624
|
const ratio = config.baseWidth > 0 ? w / config.baseWidth : 1;
|
|
@@ -55511,7 +55630,7 @@ function generatePressureCircles$1(points, widths, config) {
|
|
|
55511
55630
|
* Determine whether an ink element has meaningful pressure data that
|
|
55512
55631
|
* differs from uniform width (i.e., the widths array has variation).
|
|
55513
55632
|
*/
|
|
55514
|
-
function hasPressureVariation
|
|
55633
|
+
function hasPressureVariation(widths) {
|
|
55515
55634
|
if (widths.length <= 1) {
|
|
55516
55635
|
return false;
|
|
55517
55636
|
}
|
|
@@ -55531,7 +55650,7 @@ function hasPressureVariation$1(widths) {
|
|
|
55531
55650
|
* @param minScale - Width multiplier at zero pressure (default 0.3).
|
|
55532
55651
|
* @param maxScale - Width multiplier at full pressure (default 1.8).
|
|
55533
55652
|
*/
|
|
55534
|
-
function pressuresToWidths
|
|
55653
|
+
function pressuresToWidths(pressures, baseWidth, minScale = 0.3, maxScale = 1.8) {
|
|
55535
55654
|
return pressures.map((p) => {
|
|
55536
55655
|
const clamped = Math.max(0, Math.min(1, p));
|
|
55537
55656
|
return baseWidth * (minScale + clamped * (maxScale - minScale));
|
|
@@ -55601,7 +55720,7 @@ function getInkStrokeReplayStyle(strokeIndex, pathLength, config = {}) {
|
|
|
55601
55720
|
*/
|
|
55602
55721
|
function getInkReplayStyles(el, config = {}) {
|
|
55603
55722
|
return el.inkPaths.map((d, i) => {
|
|
55604
|
-
const points = extractPathPoints
|
|
55723
|
+
const points = extractPathPoints(d);
|
|
55605
55724
|
const pathLen = estimatePathLength(points);
|
|
55606
55725
|
return getInkStrokeReplayStyle(i, pathLen, config);
|
|
55607
55726
|
});
|
|
@@ -55611,7 +55730,7 @@ function getInkReplayStyles(el, config = {}) {
|
|
|
55611
55730
|
*/
|
|
55612
55731
|
function getContentPartReplayStyles(strokes, config = {}) {
|
|
55613
55732
|
return strokes.map((stroke, i) => {
|
|
55614
|
-
const points = extractPathPoints
|
|
55733
|
+
const points = extractPathPoints(stroke.path);
|
|
55615
55734
|
const pathLen = estimatePathLength(points);
|
|
55616
55735
|
return getInkStrokeReplayStyle(i, pathLen, config);
|
|
55617
55736
|
});
|
|
@@ -58903,7 +59022,7 @@ async function scanAvailableFontFamilies(families, source = browserFontSource())
|
|
|
58903
59022
|
}
|
|
58904
59023
|
|
|
58905
59024
|
/** Score a presentation password from 0 (very weak) to 4 (very strong). */
|
|
58906
|
-
function getPasswordStrength
|
|
59025
|
+
function getPasswordStrength(password) {
|
|
58907
59026
|
if (!password) {
|
|
58908
59027
|
return 0;
|
|
58909
59028
|
}
|
|
@@ -65173,7 +65292,7 @@ function createLocalStorageBackend(namespace) {
|
|
|
65173
65292
|
/** Try IndexedDB first; fall back to localStorage on any failure. */
|
|
65174
65293
|
async function resolveBackend(dbName, namespace) {
|
|
65175
65294
|
try {
|
|
65176
|
-
const { openChatDb, createIdbBackend } = await import('./pptx-angular-viewer-chat-history-idb-
|
|
65295
|
+
const { openChatDb, createIdbBackend } = await import('./pptx-angular-viewer-chat-history-idb-B07mmb7a.mjs');
|
|
65177
65296
|
const db = await openChatDb(dbName);
|
|
65178
65297
|
return createIdbBackend(db);
|
|
65179
65298
|
}
|
|
@@ -72644,24 +72763,6 @@ function narrowToPolygon(node) {
|
|
|
72644
72763
|
function narrowToRect(node) {
|
|
72645
72764
|
return node.kind === 'rect' ? node : undefined;
|
|
72646
72765
|
}
|
|
72647
|
-
/**
|
|
72648
|
-
* Split node text on newlines and compute per-line y offsets (in SVG px)
|
|
72649
|
-
* that centre the block around the node centre y (offset 0). Single-line
|
|
72650
|
-
* text produces one entry with offsetY=0, preserving the existing
|
|
72651
|
-
* dominant-baseline="central" behaviour exactly.
|
|
72652
|
-
*/
|
|
72653
|
-
function computeTextLines(text, fontSize) {
|
|
72654
|
-
const raw = (text ?? '').split('\n').filter((l) => l.length > 0);
|
|
72655
|
-
if (raw.length === 0) {
|
|
72656
|
-
return [{ text: '', offsetY: 0 }];
|
|
72657
|
-
}
|
|
72658
|
-
const lh = fontSize * 1.2;
|
|
72659
|
-
const totalH = raw.length * lh;
|
|
72660
|
-
return raw.map((line, i) => ({
|
|
72661
|
-
text: line,
|
|
72662
|
-
offsetY: -totalH / 2 + lh / 2 + i * lh,
|
|
72663
|
-
}));
|
|
72664
|
-
}
|
|
72665
72766
|
|
|
72666
72767
|
/**
|
|
72667
72768
|
* SmartArtRendererComponent: Angular SmartArt renderer.
|
|
@@ -72887,7 +72988,7 @@ class SmartArtRendererComponent {
|
|
|
72887
72988
|
asCircle = narrowToCircle;
|
|
72888
72989
|
asPolygon = narrowToPolygon;
|
|
72889
72990
|
asRect = narrowToRect;
|
|
72890
|
-
textLines =
|
|
72991
|
+
textLines = centeredSvgTextLines;
|
|
72891
72992
|
// ── Inline node-text editing ───────────────────────────────────────────
|
|
72892
72993
|
/** Double-click a node enters inline edit mode (when editable). */
|
|
72893
72994
|
onNodeDblClick(event, node) {
|
|
@@ -73080,11 +73181,11 @@ class SmartArtRendererComponent {
|
|
|
73080
73181
|
isEmpty = computed(() => this.nodes().length === 0 && !this.hasDrawingShapes(), /* @ts-ignore */
|
|
73081
73182
|
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
73082
73183
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SmartArtRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
73083
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SmartArtRendererComponent, isStandalone: true, selector: "pptx-smart-art-renderer", inputs: { element: { classPropertyName: "element", publicName: "element", isSignal: true, isRequired: true, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, animationState: { classPropertyName: "animationState", publicName: "animationState", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "nodeEditor", first: true, predicate: ["nodeEditor"], descendants: true, isSignal: true }, { propertyName: "smartartContainer", first: true, predicate: ["smartartContainer"], descendants: true, isSignal: true }, { propertyName: "styleBar", first: true, predicate: ["styleBar"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n\t#smartartContainer\n\tclass=\"pptx-ng-smartart-chrome\"\n\t[ngStyle]=\"chromeStyle()\"\n\t[attr.role]=\"a11y() ? a11y()!.role : null\"\n\t[attr.aria-label]=\"a11y()?.label ?? null\"\n\t(mousemove)=\"onMouseMove($event)\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t@if (isEmpty()) {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t} @else if (hasDrawingShapes()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\tdata-testid=\"smartart-drawing-shapes\"\n\t\t\t[attr.viewBox]=\"svgViewBox()\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t>\n\t\t\t@for (shape of renderedShapes(); track shape.key; let i = $index) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"drawingShapeNodeIds()[i] ?? null\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes() && !!drawingShapeNodeIds()[i]\"\n\t\t\t\t>\n\t\t\t\t\t@if (shape.imageUrl) {\n\t\t\t\t\t\t<image\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.href]=\"shape.imageUrl\"\n\t\t\t\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else if (shape.isEllipse) {\n\t\t\t\t\t\t<ellipse\n\t\t\t\t\t\t\t[attr.cx]=\"shape.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"shape.cy\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.width / 2\"\n\t\t\t\t\t\t\t[attr.ry]=\"shape.height / 2\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t}\n\t\t\t\t\t@if (shape.textLines.length > 0) {\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"shape.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fontColor\"\n\t\t\t\t\t\t\t[attr.font-size]=\"shape.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of shape.textLines; track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"shape.textX\" [attr.y]=\"line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else if (hasLayout()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\t[attr.data-testid]=\"'smartart-' + layout().family\"\n\t\t\t[attr.viewBox]=\"layout().viewBox\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t[attr.data-layout-family]=\"layout().family\"\n\t\t>\n\t\t\t@for (conn of layout().connectors; track conn.key) {\n\t\t\t\t<path [attr.d]=\"conn.d\" fill=\"none\" stroke=\"#94a3b8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t}\n\t\t\t@for (node of layout().nodes; track node.key) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes()\"\n\t\t\t\t\t[attr.tabindex]=\"canEditNodes() ? 0 : null\"\n\t\t\t\t\t[attr.role]=\"canEditNodes() ? 'button' : 'img'\"\n\t\t\t\t\t[attr.aria-label]=\"nodeAriaLabel(node) ?? node.text\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"nodeKeyId(node)\"\n\t\t\t\t\t(dblclick)=\"onNodeDblClick($event, node)\"\n\t\t\t\t\t(keydown)=\"onNodeKeydown($event, node)\"\n\t\t\t\t>\n\t\t\t\t\t@if (nodeAriaLabel(node); as title) {\n\t\t\t\t\t\t<title>{{ title }}</title>\n\t\t\t\t\t}\n\t\t\t\t\t@if (asCircle(node); as c) {\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t[attr.cx]=\"c.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"c.cy\"\n\t\t\t\t\t\t\t[attr.r]=\"c.r\"\n\t\t\t\t\t\t\t[attr.fill]=\"c.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"c.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"c.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"c.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"c.cx\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"c.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(c.text, c.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"c.cx\" [attr.y]=\"c.cy + line.offsetY\">{{ line.text }}</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asPolygon(node); as p) {\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t[attr.points]=\"p.points\"\n\t\t\t\t\t\t\t[attr.fill]=\"p.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"p.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"p.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"p.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"p.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"p.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(p.text, p.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"p.textX\" [attr.y]=\"p.textY + line.offsetY\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asRect(node); as r) {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"r.x\"\n\t\t\t\t\t\t\t[attr.y]=\"r.y\"\n\t\t\t\t\t\t\t[attr.width]=\"r.width\"\n\t\t\t\t\t\t\t[attr.height]=\"r.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"r.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"r.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"r.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"r.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"r.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"r.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"r.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(r.text, r.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"r.textX\" [attr.y]=\"r.textY + line.offsetY\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t}\n\n\t@if (canEditNodes() && hoveredNodeId() && !editState() && styleBarStyle()) {\n\t\t<div\n\t\t\t#styleBar\n\t\t\tclass=\"pptx-ng-smartart-style-bar\"\n\t\t\t[ngStyle]=\"styleBarStyle()!\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t>\n\t\t\t@for (color of palette().slice(0, 6); track color) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"pptx-ng-smartart-swatch\"\n\t\t\t\t\tdata-pptx-compact\n\t\t\t\t\t[attr.aria-label]=\"'pptx.smartArt.setFill' | translate: { color: color }\"\n\t\t\t\t\t[style.background]=\"color\"\n\t\t\t\t\t(click)=\"handleChangeNodeStyle(hoveredNodeId()!, color)\"\n\t\t\t\t></button>\n\t\t\t}\n\t\t</div>\n\t}\n\n\t<!--\n\t\tInline node-text editor. Positioned in element-local px (== viewBox\n\t\tunits, since the SVG viewBox matches the element pixel size and the\n\t\tsvg fills the chrome) over the double-clicked node. Commits via the\n\t\tshared EditorStateService.updateElement path on Enter / blur.\n\t-->\n\t@if (editState(); as edit) {\n\t\t<textarea\n\t\t\t#nodeEditor\n\t\t\tclass=\"pptx-ng-smartart-node-editor\"\n\t\t\t[style.left.px]=\"edit.box.x\"\n\t\t\t[style.top.px]=\"edit.box.y\"\n\t\t\t[style.width.px]=\"edit.box.width\"\n\t\t\t[style.height.px]=\"edit.box.height\"\n\t\t\t[value]=\"edit.text\"\n\t\t\t(pointerdown)=\"$event.stopPropagation()\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t\t(dblclick)=\"$event.stopPropagation()\"\n\t\t\t(blur)=\"commitEdit($event)\"\n\t\t\t(keydown)=\"onEditorKeydown($event)\"\n\t\t></textarea>\n\t}\n\n\t<!-- Polite live region: announces node-text edit commits to AT. -->\n\t<span class=\"pptx-ng-sr-only\" aria-live=\"polite\" role=\"status\">{{ liveMessage() }}</span>\n</div>\n", styles: [".pptx-ng-smartart-chrome{box-sizing:border-box;overflow:hidden;position:relative}.pptx-ng-smartart-svg{width:100%;height:100%;pointer-events:none}.pptx-ng-smartart-node--editable{pointer-events:auto;cursor:text}.pptx-ng-smartart-node--editable:hover{filter:drop-shadow(0 0 2px rgba(96,165,250,.8))}.pptx-ng-smartart-node-editor{position:absolute;box-sizing:border-box;margin:0;padding:1px 2px;border:1px solid var(--pptx-inspector-active, #0078d4);border-radius:2px;background:#fff;color:#111;font-size:11px;line-height:1.1;text-align:center;resize:none;overflow:hidden;z-index:2}.pptx-ng-smartart-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fffc;pointer-events:none}.pptx-ng-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pptx-ng-smartart-style-bar{position:absolute;pointer-events:auto;display:flex;gap:6px;padding:6px 8px;background:#ffffffe6;border:1px solid var(--border, #e2e8f0);border-radius:9999px;box-shadow:0 1px 2px #0000001a}.pptx-ng-smartart-swatch{width:20px;height:20px;border-radius:50%;border:1px solid rgba(0,0,0,.1);cursor:pointer;transition:transform .1s}.pptx-ng-smartart-swatch:hover{transform:scale(1.25)}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
73184
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: SmartArtRendererComponent, isStandalone: true, selector: "pptx-smart-art-renderer", inputs: { element: { classPropertyName: "element", publicName: "element", isSignal: true, isRequired: true, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, animationState: { classPropertyName: "animationState", publicName: "animationState", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "nodeEditor", first: true, predicate: ["nodeEditor"], descendants: true, isSignal: true }, { propertyName: "smartartContainer", first: true, predicate: ["smartartContainer"], descendants: true, isSignal: true }, { propertyName: "styleBar", first: true, predicate: ["styleBar"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n\t#smartartContainer\n\tclass=\"pptx-ng-smartart-chrome\"\n\t[ngStyle]=\"chromeStyle()\"\n\t[attr.role]=\"a11y() ? a11y()!.role : null\"\n\t[attr.aria-label]=\"a11y()?.label ?? null\"\n\t(mousemove)=\"onMouseMove($event)\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t@if (isEmpty()) {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t} @else if (hasDrawingShapes()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\tdata-testid=\"smartart-drawing-shapes\"\n\t\t\t[attr.viewBox]=\"svgViewBox()\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t>\n\t\t\t@for (shape of renderedShapes(); track shape.key; let i = $index) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"drawingShapeNodeIds()[i] ?? null\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes() && !!drawingShapeNodeIds()[i]\"\n\t\t\t\t>\n\t\t\t\t\t@if (shape.gradient) {\n\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t@if (shape.gradient!.kind === 'radial') {\n\t\t\t\t\t\t\t\t<radialGradient\n\t\t\t\t\t\t\t\t\t[attr.id]=\"shape.gradient!.id\"\n\t\t\t\t\t\t\t\t\t[attr.cx]=\"shape.gradient!.cx\"\n\t\t\t\t\t\t\t\t\t[attr.cy]=\"shape.gradient!.cy\"\n\t\t\t\t\t\t\t\t\t[attr.r]=\"shape.gradient!.r\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t@for (stop of shape.gradient!.stops; track $index) {\n\t\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\t\t[attr.offset]=\"stop.offset\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-color]=\"stop.color\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-opacity]=\"stop.opacity ?? null\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</radialGradient>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\t\t\t[attr.id]=\"shape.gradient!.id\"\n\t\t\t\t\t\t\t\t\t[attr.x1]=\"shape.gradient!.x1\"\n\t\t\t\t\t\t\t\t\t[attr.y1]=\"shape.gradient!.y1\"\n\t\t\t\t\t\t\t\t\t[attr.x2]=\"shape.gradient!.x2\"\n\t\t\t\t\t\t\t\t\t[attr.y2]=\"shape.gradient!.y2\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t@for (stop of shape.gradient!.stops; track $index) {\n\t\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\t\t[attr.offset]=\"stop.offset\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-color]=\"stop.color\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-opacity]=\"stop.opacity ?? null\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</defs>\n\t\t\t\t\t}\n\t\t\t\t\t@if (shape.kind === 'image') {\n\t\t\t\t\t\t<image\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.href]=\"shape.imageUrl\"\n\t\t\t\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else if (shape.kind === 'ellipse') {\n\t\t\t\t\t\t<ellipse\n\t\t\t\t\t\t\t[attr.cx]=\"shape.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"shape.cy\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.width / 2\"\n\t\t\t\t\t\t\t[attr.ry]=\"shape.height / 2\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else if (shape.kind === 'polygon') {\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t[attr.points]=\"shape.points\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t}\n\t\t\t\t\t@if (shape.textLines.length > 0) {\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"shape.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fontColor\"\n\t\t\t\t\t\t\t[attr.font-size]=\"shape.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of shape.textLines; track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"shape.textX\" [attr.y]=\"line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else if (hasLayout()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\t[attr.data-testid]=\"'smartart-' + layout().family\"\n\t\t\t[attr.viewBox]=\"layout().viewBox\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t[attr.data-layout-family]=\"layout().family\"\n\t\t>\n\t\t\t@for (conn of layout().connectors; track conn.key) {\n\t\t\t\t<path [attr.d]=\"conn.d\" fill=\"none\" stroke=\"#94a3b8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t}\n\t\t\t@for (node of layout().nodes; track node.key) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes()\"\n\t\t\t\t\t[attr.tabindex]=\"canEditNodes() ? 0 : null\"\n\t\t\t\t\t[attr.role]=\"canEditNodes() ? 'button' : 'img'\"\n\t\t\t\t\t[attr.aria-label]=\"nodeAriaLabel(node) ?? node.text\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"nodeKeyId(node)\"\n\t\t\t\t\t(dblclick)=\"onNodeDblClick($event, node)\"\n\t\t\t\t\t(keydown)=\"onNodeKeydown($event, node)\"\n\t\t\t\t>\n\t\t\t\t\t@if (nodeAriaLabel(node); as title) {\n\t\t\t\t\t\t<title>{{ title }}</title>\n\t\t\t\t\t}\n\t\t\t\t\t@if (asCircle(node); as c) {\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t[attr.cx]=\"c.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"c.cy\"\n\t\t\t\t\t\t\t[attr.r]=\"c.r\"\n\t\t\t\t\t\t\t[attr.fill]=\"c.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"c.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"c.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"c.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"c.cx\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"c.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(c.text, c.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"c.cx\" [attr.y]=\"c.cy + line.y\">{{ line.text }}</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asPolygon(node); as p) {\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t[attr.points]=\"p.points\"\n\t\t\t\t\t\t\t[attr.fill]=\"p.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"p.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"p.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"p.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"p.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"p.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(p.text, p.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"p.textX\" [attr.y]=\"p.textY + line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asRect(node); as r) {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"r.x\"\n\t\t\t\t\t\t\t[attr.y]=\"r.y\"\n\t\t\t\t\t\t\t[attr.width]=\"r.width\"\n\t\t\t\t\t\t\t[attr.height]=\"r.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"r.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"r.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"r.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"r.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"r.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"r.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"r.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(r.text, r.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"r.textX\" [attr.y]=\"r.textY + line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t}\n\n\t@if (canEditNodes() && hoveredNodeId() && !editState() && styleBarStyle()) {\n\t\t<div\n\t\t\t#styleBar\n\t\t\tclass=\"pptx-ng-smartart-style-bar\"\n\t\t\t[ngStyle]=\"styleBarStyle()!\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t>\n\t\t\t@for (color of palette().slice(0, 6); track color) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"pptx-ng-smartart-swatch\"\n\t\t\t\t\tdata-pptx-compact\n\t\t\t\t\t[attr.aria-label]=\"'pptx.smartArt.setFill' | translate: { color: color }\"\n\t\t\t\t\t[style.background]=\"color\"\n\t\t\t\t\t(click)=\"handleChangeNodeStyle(hoveredNodeId()!, color)\"\n\t\t\t\t></button>\n\t\t\t}\n\t\t</div>\n\t}\n\n\t<!--\n\t\tInline node-text editor. Positioned in element-local px (== viewBox\n\t\tunits, since the SVG viewBox matches the element pixel size and the\n\t\tsvg fills the chrome) over the double-clicked node. Commits via the\n\t\tshared EditorStateService.updateElement path on Enter / blur.\n\t-->\n\t@if (editState(); as edit) {\n\t\t<textarea\n\t\t\t#nodeEditor\n\t\t\tclass=\"pptx-ng-smartart-node-editor\"\n\t\t\t[style.left.px]=\"edit.box.x\"\n\t\t\t[style.top.px]=\"edit.box.y\"\n\t\t\t[style.width.px]=\"edit.box.width\"\n\t\t\t[style.height.px]=\"edit.box.height\"\n\t\t\t[value]=\"edit.text\"\n\t\t\t(pointerdown)=\"$event.stopPropagation()\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t\t(dblclick)=\"$event.stopPropagation()\"\n\t\t\t(blur)=\"commitEdit($event)\"\n\t\t\t(keydown)=\"onEditorKeydown($event)\"\n\t\t></textarea>\n\t}\n\n\t<!-- Polite live region: announces node-text edit commits to AT. -->\n\t<span class=\"pptx-ng-sr-only\" aria-live=\"polite\" role=\"status\">{{ liveMessage() }}</span>\n</div>\n", styles: [".pptx-ng-smartart-chrome{box-sizing:border-box;overflow:hidden;position:relative}.pptx-ng-smartart-svg{width:100%;height:100%;pointer-events:none}.pptx-ng-smartart-node--editable{pointer-events:auto;cursor:text}.pptx-ng-smartart-node--editable:hover{filter:drop-shadow(0 0 2px rgba(96,165,250,.8))}.pptx-ng-smartart-node-editor{position:absolute;box-sizing:border-box;margin:0;padding:1px 2px;border:1px solid var(--pptx-inspector-active, #0078d4);border-radius:2px;background:#fff;color:#111;font-size:11px;line-height:1.1;text-align:center;resize:none;overflow:hidden;z-index:2}.pptx-ng-smartart-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fffc;pointer-events:none}.pptx-ng-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pptx-ng-smartart-style-bar{position:absolute;pointer-events:auto;display:flex;gap:6px;padding:6px 8px;background:#ffffffe6;border:1px solid var(--border, #e2e8f0);border-radius:9999px;box-shadow:0 1px 2px #0000001a}.pptx-ng-smartart-swatch{width:20px;height:20px;border-radius:50%;border:1px solid rgba(0,0,0,.1);cursor:pointer;transition:transform .1s}.pptx-ng-smartart-swatch:hover{transform:scale(1.25)}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
73084
73185
|
}
|
|
73085
73186
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: SmartArtRendererComponent, decorators: [{
|
|
73086
73187
|
type: Component,
|
|
73087
|
-
args: [{ selector: 'pptx-smart-art-renderer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgStyle, TranslatePipe], template: "<div\n\t#smartartContainer\n\tclass=\"pptx-ng-smartart-chrome\"\n\t[ngStyle]=\"chromeStyle()\"\n\t[attr.role]=\"a11y() ? a11y()!.role : null\"\n\t[attr.aria-label]=\"a11y()?.label ?? null\"\n\t(mousemove)=\"onMouseMove($event)\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t@if (isEmpty()) {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t} @else if (hasDrawingShapes()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\tdata-testid=\"smartart-drawing-shapes\"\n\t\t\t[attr.viewBox]=\"svgViewBox()\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t>\n\t\t\t@for (shape of renderedShapes(); track shape.key; let i = $index) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"drawingShapeNodeIds()[i] ?? null\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes() && !!drawingShapeNodeIds()[i]\"\n\t\t\t\t>\n\t\t\t\t\t@if (shape.imageUrl) {\n\t\t\t\t\t\t<image\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.href]=\"shape.imageUrl\"\n\t\t\t\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else if (shape.isEllipse) {\n\t\t\t\t\t\t<ellipse\n\t\t\t\t\t\t\t[attr.cx]=\"shape.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"shape.cy\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.width / 2\"\n\t\t\t\t\t\t\t[attr.ry]=\"shape.height / 2\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t}\n\t\t\t\t\t@if (shape.textLines.length > 0) {\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"shape.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fontColor\"\n\t\t\t\t\t\t\t[attr.font-size]=\"shape.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of shape.textLines; track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"shape.textX\" [attr.y]=\"line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else if (hasLayout()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\t[attr.data-testid]=\"'smartart-' + layout().family\"\n\t\t\t[attr.viewBox]=\"layout().viewBox\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t[attr.data-layout-family]=\"layout().family\"\n\t\t>\n\t\t\t@for (conn of layout().connectors; track conn.key) {\n\t\t\t\t<path [attr.d]=\"conn.d\" fill=\"none\" stroke=\"#94a3b8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t}\n\t\t\t@for (node of layout().nodes; track node.key) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes()\"\n\t\t\t\t\t[attr.tabindex]=\"canEditNodes() ? 0 : null\"\n\t\t\t\t\t[attr.role]=\"canEditNodes() ? 'button' : 'img'\"\n\t\t\t\t\t[attr.aria-label]=\"nodeAriaLabel(node) ?? node.text\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"nodeKeyId(node)\"\n\t\t\t\t\t(dblclick)=\"onNodeDblClick($event, node)\"\n\t\t\t\t\t(keydown)=\"onNodeKeydown($event, node)\"\n\t\t\t\t>\n\t\t\t\t\t@if (nodeAriaLabel(node); as title) {\n\t\t\t\t\t\t<title>{{ title }}</title>\n\t\t\t\t\t}\n\t\t\t\t\t@if (asCircle(node); as c) {\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t[attr.cx]=\"c.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"c.cy\"\n\t\t\t\t\t\t\t[attr.r]=\"c.r\"\n\t\t\t\t\t\t\t[attr.fill]=\"c.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"c.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"c.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"c.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"c.cx\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"c.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(c.text, c.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"c.cx\" [attr.y]=\"c.cy + line.offsetY\">{{ line.text }}</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asPolygon(node); as p) {\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t[attr.points]=\"p.points\"\n\t\t\t\t\t\t\t[attr.fill]=\"p.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"p.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"p.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"p.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"p.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"p.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(p.text, p.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"p.textX\" [attr.y]=\"p.textY + line.offsetY\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asRect(node); as r) {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"r.x\"\n\t\t\t\t\t\t\t[attr.y]=\"r.y\"\n\t\t\t\t\t\t\t[attr.width]=\"r.width\"\n\t\t\t\t\t\t\t[attr.height]=\"r.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"r.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"r.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"r.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"r.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"r.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"r.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"r.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(r.text, r.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"r.textX\" [attr.y]=\"r.textY + line.offsetY\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t}\n\n\t@if (canEditNodes() && hoveredNodeId() && !editState() && styleBarStyle()) {\n\t\t<div\n\t\t\t#styleBar\n\t\t\tclass=\"pptx-ng-smartart-style-bar\"\n\t\t\t[ngStyle]=\"styleBarStyle()!\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t>\n\t\t\t@for (color of palette().slice(0, 6); track color) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"pptx-ng-smartart-swatch\"\n\t\t\t\t\tdata-pptx-compact\n\t\t\t\t\t[attr.aria-label]=\"'pptx.smartArt.setFill' | translate: { color: color }\"\n\t\t\t\t\t[style.background]=\"color\"\n\t\t\t\t\t(click)=\"handleChangeNodeStyle(hoveredNodeId()!, color)\"\n\t\t\t\t></button>\n\t\t\t}\n\t\t</div>\n\t}\n\n\t<!--\n\t\tInline node-text editor. Positioned in element-local px (== viewBox\n\t\tunits, since the SVG viewBox matches the element pixel size and the\n\t\tsvg fills the chrome) over the double-clicked node. Commits via the\n\t\tshared EditorStateService.updateElement path on Enter / blur.\n\t-->\n\t@if (editState(); as edit) {\n\t\t<textarea\n\t\t\t#nodeEditor\n\t\t\tclass=\"pptx-ng-smartart-node-editor\"\n\t\t\t[style.left.px]=\"edit.box.x\"\n\t\t\t[style.top.px]=\"edit.box.y\"\n\t\t\t[style.width.px]=\"edit.box.width\"\n\t\t\t[style.height.px]=\"edit.box.height\"\n\t\t\t[value]=\"edit.text\"\n\t\t\t(pointerdown)=\"$event.stopPropagation()\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t\t(dblclick)=\"$event.stopPropagation()\"\n\t\t\t(blur)=\"commitEdit($event)\"\n\t\t\t(keydown)=\"onEditorKeydown($event)\"\n\t\t></textarea>\n\t}\n\n\t<!-- Polite live region: announces node-text edit commits to AT. -->\n\t<span class=\"pptx-ng-sr-only\" aria-live=\"polite\" role=\"status\">{{ liveMessage() }}</span>\n</div>\n", styles: [".pptx-ng-smartart-chrome{box-sizing:border-box;overflow:hidden;position:relative}.pptx-ng-smartart-svg{width:100%;height:100%;pointer-events:none}.pptx-ng-smartart-node--editable{pointer-events:auto;cursor:text}.pptx-ng-smartart-node--editable:hover{filter:drop-shadow(0 0 2px rgba(96,165,250,.8))}.pptx-ng-smartart-node-editor{position:absolute;box-sizing:border-box;margin:0;padding:1px 2px;border:1px solid var(--pptx-inspector-active, #0078d4);border-radius:2px;background:#fff;color:#111;font-size:11px;line-height:1.1;text-align:center;resize:none;overflow:hidden;z-index:2}.pptx-ng-smartart-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fffc;pointer-events:none}.pptx-ng-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pptx-ng-smartart-style-bar{position:absolute;pointer-events:auto;display:flex;gap:6px;padding:6px 8px;background:#ffffffe6;border:1px solid var(--border, #e2e8f0);border-radius:9999px;box-shadow:0 1px 2px #0000001a}.pptx-ng-smartart-swatch{width:20px;height:20px;border-radius:50%;border:1px solid rgba(0,0,0,.1);cursor:pointer;transition:transform .1s}.pptx-ng-smartart-swatch:hover{transform:scale(1.25)}\n"] }]
|
|
73188
|
+
args: [{ selector: 'pptx-smart-art-renderer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgStyle, TranslatePipe], template: "<div\n\t#smartartContainer\n\tclass=\"pptx-ng-smartart-chrome\"\n\t[ngStyle]=\"chromeStyle()\"\n\t[attr.role]=\"a11y() ? a11y()!.role : null\"\n\t[attr.aria-label]=\"a11y()?.label ?? null\"\n\t(mousemove)=\"onMouseMove($event)\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t@if (isEmpty()) {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t} @else if (hasDrawingShapes()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\tdata-testid=\"smartart-drawing-shapes\"\n\t\t\t[attr.viewBox]=\"svgViewBox()\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t>\n\t\t\t@for (shape of renderedShapes(); track shape.key; let i = $index) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"drawingShapeNodeIds()[i] ?? null\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes() && !!drawingShapeNodeIds()[i]\"\n\t\t\t\t>\n\t\t\t\t\t@if (shape.gradient) {\n\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t@if (shape.gradient!.kind === 'radial') {\n\t\t\t\t\t\t\t\t<radialGradient\n\t\t\t\t\t\t\t\t\t[attr.id]=\"shape.gradient!.id\"\n\t\t\t\t\t\t\t\t\t[attr.cx]=\"shape.gradient!.cx\"\n\t\t\t\t\t\t\t\t\t[attr.cy]=\"shape.gradient!.cy\"\n\t\t\t\t\t\t\t\t\t[attr.r]=\"shape.gradient!.r\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t@for (stop of shape.gradient!.stops; track $index) {\n\t\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\t\t[attr.offset]=\"stop.offset\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-color]=\"stop.color\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-opacity]=\"stop.opacity ?? null\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</radialGradient>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\t\t\t[attr.id]=\"shape.gradient!.id\"\n\t\t\t\t\t\t\t\t\t[attr.x1]=\"shape.gradient!.x1\"\n\t\t\t\t\t\t\t\t\t[attr.y1]=\"shape.gradient!.y1\"\n\t\t\t\t\t\t\t\t\t[attr.x2]=\"shape.gradient!.x2\"\n\t\t\t\t\t\t\t\t\t[attr.y2]=\"shape.gradient!.y2\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t@for (stop of shape.gradient!.stops; track $index) {\n\t\t\t\t\t\t\t\t\t\t<stop\n\t\t\t\t\t\t\t\t\t\t\t[attr.offset]=\"stop.offset\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-color]=\"stop.color\"\n\t\t\t\t\t\t\t\t\t\t\t[attr.stop-opacity]=\"stop.opacity ?? null\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</defs>\n\t\t\t\t\t}\n\t\t\t\t\t@if (shape.kind === 'image') {\n\t\t\t\t\t\t<image\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.href]=\"shape.imageUrl\"\n\t\t\t\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else if (shape.kind === 'ellipse') {\n\t\t\t\t\t\t<ellipse\n\t\t\t\t\t\t\t[attr.cx]=\"shape.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"shape.cy\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.width / 2\"\n\t\t\t\t\t\t\t[attr.ry]=\"shape.height / 2\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else if (shape.kind === 'polygon') {\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t[attr.points]=\"shape.points\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"shape.x\"\n\t\t\t\t\t\t\t[attr.y]=\"shape.y\"\n\t\t\t\t\t\t\t[attr.width]=\"shape.width\"\n\t\t\t\t\t\t\t[attr.height]=\"shape.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"shape.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"shape.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"shape.strokeWidth\"\n\t\t\t\t\t\t\t[attr.transform]=\"shape.transform ?? null\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t}\n\t\t\t\t\t@if (shape.textLines.length > 0) {\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"shape.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\t[attr.fill]=\"shape.fontColor\"\n\t\t\t\t\t\t\t[attr.font-size]=\"shape.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of shape.textLines; track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"shape.textX\" [attr.y]=\"line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else if (hasLayout()) {\n\t\t<svg\n\t\t\tclass=\"pptx-ng-smartart-svg\"\n\t\t\t[attr.data-testid]=\"'smartart-' + layout().family\"\n\t\t\t[attr.viewBox]=\"layout().viewBox\"\n\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t[attr.data-layout-family]=\"layout().family\"\n\t\t>\n\t\t\t@for (conn of layout().connectors; track conn.key) {\n\t\t\t\t<path [attr.d]=\"conn.d\" fill=\"none\" stroke=\"#94a3b8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t}\n\t\t\t@for (node of layout().nodes; track node.key) {\n\t\t\t\t<g\n\t\t\t\t\t[ngStyle]=\"shadowFilter() ? { filter: shadowFilter() } : {}\"\n\t\t\t\t\t[class.pptx-ng-smartart-node--editable]=\"canEditNodes()\"\n\t\t\t\t\t[attr.tabindex]=\"canEditNodes() ? 0 : null\"\n\t\t\t\t\t[attr.role]=\"canEditNodes() ? 'button' : 'img'\"\n\t\t\t\t\t[attr.aria-label]=\"nodeAriaLabel(node) ?? node.text\"\n\t\t\t\t\t[attr.data-smartart-node-id]=\"nodeKeyId(node)\"\n\t\t\t\t\t(dblclick)=\"onNodeDblClick($event, node)\"\n\t\t\t\t\t(keydown)=\"onNodeKeydown($event, node)\"\n\t\t\t\t>\n\t\t\t\t\t@if (nodeAriaLabel(node); as title) {\n\t\t\t\t\t\t<title>{{ title }}</title>\n\t\t\t\t\t}\n\t\t\t\t\t@if (asCircle(node); as c) {\n\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t[attr.cx]=\"c.cx\"\n\t\t\t\t\t\t\t[attr.cy]=\"c.cy\"\n\t\t\t\t\t\t\t[attr.r]=\"c.r\"\n\t\t\t\t\t\t\t[attr.fill]=\"c.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"c.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"c.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"c.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"c.cx\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"c.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(c.text, c.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"c.cx\" [attr.y]=\"c.cy + line.y\">{{ line.text }}</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asPolygon(node); as p) {\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t[attr.points]=\"p.points\"\n\t\t\t\t\t\t\t[attr.fill]=\"p.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"p.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"p.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"p.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"p.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"p.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(p.text, p.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"p.textX\" [attr.y]=\"p.textY + line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t} @else if (asRect(node); as r) {\n\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t[attr.x]=\"r.x\"\n\t\t\t\t\t\t\t[attr.y]=\"r.y\"\n\t\t\t\t\t\t\t[attr.width]=\"r.width\"\n\t\t\t\t\t\t\t[attr.height]=\"r.height\"\n\t\t\t\t\t\t\t[attr.rx]=\"r.rx\"\n\t\t\t\t\t\t\t[attr.fill]=\"r.fill\"\n\t\t\t\t\t\t\t[attr.stroke]=\"r.stroke\"\n\t\t\t\t\t\t\t[attr.stroke-width]=\"r.strokeWidth\"\n\t\t\t\t\t\t\t[attr.opacity]=\"r.opacity\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t[attr.x]=\"r.textX\"\n\t\t\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\t\t\tdominant-baseline=\"central\"\n\t\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t\t\t[attr.font-size]=\"r.fontSize\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t@for (line of textLines(r.text, r.fontSize); track $index) {\n\t\t\t\t\t\t\t\t<tspan [attr.x]=\"r.textX\" [attr.y]=\"r.textY + line.y\">\n\t\t\t\t\t\t\t\t\t{{ line.text }}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t}\n\t\t\t\t</g>\n\t\t\t}\n\t\t</svg>\n\t} @else {\n\t\t<div class=\"pptx-ng-smartart-placeholder\">\n\t\t\t{{ 'pptx.smartArt.placeholder' | translate }}\n\t\t</div>\n\t}\n\n\t@if (canEditNodes() && hoveredNodeId() && !editState() && styleBarStyle()) {\n\t\t<div\n\t\t\t#styleBar\n\t\t\tclass=\"pptx-ng-smartart-style-bar\"\n\t\t\t[ngStyle]=\"styleBarStyle()!\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t>\n\t\t\t@for (color of palette().slice(0, 6); track color) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"pptx-ng-smartart-swatch\"\n\t\t\t\t\tdata-pptx-compact\n\t\t\t\t\t[attr.aria-label]=\"'pptx.smartArt.setFill' | translate: { color: color }\"\n\t\t\t\t\t[style.background]=\"color\"\n\t\t\t\t\t(click)=\"handleChangeNodeStyle(hoveredNodeId()!, color)\"\n\t\t\t\t></button>\n\t\t\t}\n\t\t</div>\n\t}\n\n\t<!--\n\t\tInline node-text editor. Positioned in element-local px (== viewBox\n\t\tunits, since the SVG viewBox matches the element pixel size and the\n\t\tsvg fills the chrome) over the double-clicked node. Commits via the\n\t\tshared EditorStateService.updateElement path on Enter / blur.\n\t-->\n\t@if (editState(); as edit) {\n\t\t<textarea\n\t\t\t#nodeEditor\n\t\t\tclass=\"pptx-ng-smartart-node-editor\"\n\t\t\t[style.left.px]=\"edit.box.x\"\n\t\t\t[style.top.px]=\"edit.box.y\"\n\t\t\t[style.width.px]=\"edit.box.width\"\n\t\t\t[style.height.px]=\"edit.box.height\"\n\t\t\t[value]=\"edit.text\"\n\t\t\t(pointerdown)=\"$event.stopPropagation()\"\n\t\t\t(mousedown)=\"$event.stopPropagation()\"\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t\t(dblclick)=\"$event.stopPropagation()\"\n\t\t\t(blur)=\"commitEdit($event)\"\n\t\t\t(keydown)=\"onEditorKeydown($event)\"\n\t\t></textarea>\n\t}\n\n\t<!-- Polite live region: announces node-text edit commits to AT. -->\n\t<span class=\"pptx-ng-sr-only\" aria-live=\"polite\" role=\"status\">{{ liveMessage() }}</span>\n</div>\n", styles: [".pptx-ng-smartart-chrome{box-sizing:border-box;overflow:hidden;position:relative}.pptx-ng-smartart-svg{width:100%;height:100%;pointer-events:none}.pptx-ng-smartart-node--editable{pointer-events:auto;cursor:text}.pptx-ng-smartart-node--editable:hover{filter:drop-shadow(0 0 2px rgba(96,165,250,.8))}.pptx-ng-smartart-node-editor{position:absolute;box-sizing:border-box;margin:0;padding:1px 2px;border:1px solid var(--pptx-inspector-active, #0078d4);border-radius:2px;background:#fff;color:#111;font-size:11px;line-height:1.1;text-align:center;resize:none;overflow:hidden;z-index:2}.pptx-ng-smartart-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fffc;pointer-events:none}.pptx-ng-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pptx-ng-smartart-style-bar{position:absolute;pointer-events:auto;display:flex;gap:6px;padding:6px 8px;background:#ffffffe6;border:1px solid var(--border, #e2e8f0);border-radius:9999px;box-shadow:0 1px 2px #0000001a}.pptx-ng-smartart-swatch{width:20px;height:20px;border-radius:50%;border:1px solid rgba(0,0,0,.1);cursor:pointer;transition:transform .1s}.pptx-ng-smartart-swatch:hover{transform:scale(1.25)}\n"] }]
|
|
73088
73189
|
}], ctorParameters: () => [], propDecorators: { element: [{ type: i0.Input, args: [{ isSignal: true, alias: "element", required: true }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], animationState: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationState", required: false }] }], nodeEditor: [{ type: i0.ViewChild, args: ['nodeEditor', { isSignal: true }] }], smartartContainer: [{ type: i0.ViewChild, args: ['smartartContainer', { isSignal: true }] }], styleBar: [{ type: i0.ViewChild, args: ['styleBar', { isSignal: true }] }] } });
|
|
73089
73190
|
|
|
73090
73191
|
/**
|
|
@@ -76960,79 +77061,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
76960
77061
|
*/
|
|
76961
77062
|
|
|
76962
77063
|
/**
|
|
76963
|
-
*
|
|
77064
|
+
* Pressure-circle sizing for an ink stroke of `baseWidth`.
|
|
76964
77065
|
*
|
|
76965
|
-
*
|
|
76966
|
-
*
|
|
76967
|
-
* gets a circle overlay.
|
|
77066
|
+
* Every binding uses the same envelope (0.5px minimum, 1.5x the stroke width at
|
|
77067
|
+
* full pressure); spelling it once here keeps Angular from drifting off it.
|
|
76968
77068
|
*/
|
|
76969
|
-
function
|
|
76970
|
-
|
|
76971
|
-
const numberRegex = /-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/giu;
|
|
76972
|
-
const numbers = [];
|
|
76973
|
-
let match;
|
|
76974
|
-
while ((match = numberRegex.exec(d)) !== null) {
|
|
76975
|
-
numbers.push(Number.parseFloat(match[0]));
|
|
76976
|
-
}
|
|
76977
|
-
for (let i = 0; i < numbers.length - 1; i += 2) {
|
|
76978
|
-
points.push({ x: numbers[i], y: numbers[i + 1] });
|
|
76979
|
-
}
|
|
76980
|
-
return points;
|
|
76981
|
-
}
|
|
76982
|
-
/**
|
|
76983
|
-
* Linearly interpolate a width value at normalised position `t` (0..1) along a
|
|
76984
|
-
* stroke, given a list of width samples.
|
|
76985
|
-
*/
|
|
76986
|
-
function interpolateWidth(widths, t) {
|
|
76987
|
-
if (widths.length === 0) {
|
|
76988
|
-
return 1;
|
|
76989
|
-
}
|
|
76990
|
-
if (widths.length === 1) {
|
|
76991
|
-
return widths[0];
|
|
76992
|
-
}
|
|
76993
|
-
const clampedT = Math.max(0, Math.min(1, t));
|
|
76994
|
-
const index = clampedT * (widths.length - 1);
|
|
76995
|
-
const lower = Math.floor(index);
|
|
76996
|
-
const upper = Math.min(lower + 1, widths.length - 1);
|
|
76997
|
-
const frac = index - lower;
|
|
76998
|
-
return widths[lower] * (1 - frac) + widths[upper] * frac;
|
|
76999
|
-
}
|
|
77000
|
-
/**
|
|
77001
|
-
* Whether a width/pressure array has meaningful variation (i.e. is not uniform).
|
|
77002
|
-
*/
|
|
77003
|
-
function hasPressureVariation(values) {
|
|
77004
|
-
if (values.length <= 1) {
|
|
77005
|
-
return false;
|
|
77006
|
-
}
|
|
77007
|
-
const first = values[0];
|
|
77008
|
-
return values.some((v) => Math.abs(v - first) > 0.01);
|
|
77009
|
-
}
|
|
77010
|
-
/**
|
|
77011
|
-
* Convert per-point pressure values (0-1, e.g. `PointerEvent.pressure`) to
|
|
77012
|
-
* per-point width values. Zero pressure maps to `baseWidth * minScale`, full
|
|
77013
|
-
* pressure to `baseWidth * maxScale`.
|
|
77014
|
-
*/
|
|
77015
|
-
function pressuresToWidths(pressures, baseWidth, minScale = 0.3, maxScale = 1.8) {
|
|
77016
|
-
return pressures.map((p) => {
|
|
77017
|
-
const clamped = Math.max(0, Math.min(1, p));
|
|
77018
|
-
return baseWidth * (minScale + clamped * (maxScale - minScale));
|
|
77019
|
-
});
|
|
77020
|
-
}
|
|
77021
|
-
/**
|
|
77022
|
-
* Generate pressure circles for a stroke's path points using per-point width
|
|
77023
|
-
* data. Widths shorter than the point list are interpolated linearly.
|
|
77024
|
-
*/
|
|
77025
|
-
function generatePressureCircles(points, widths, baseWidth, minRadius = 0.5, maxRadius = baseWidth * 1.5) {
|
|
77026
|
-
if (points.length === 0) {
|
|
77027
|
-
return [];
|
|
77028
|
-
}
|
|
77029
|
-
return points.map((pt, i) => {
|
|
77030
|
-
const t = points.length === 1 ? 0.5 : i / (points.length - 1);
|
|
77031
|
-
const w = interpolateWidth(widths, t);
|
|
77032
|
-
const ratio = baseWidth > 0 ? w / baseWidth : 1;
|
|
77033
|
-
const r = Math.max(minRadius, Math.min(maxRadius, (baseWidth / 2) * ratio));
|
|
77034
|
-
return { cx: pt.x, cy: pt.y, r };
|
|
77035
|
-
});
|
|
77069
|
+
function pressureConfig(baseWidth) {
|
|
77070
|
+
return { baseWidth, minRadius: 0.5, maxRadius: baseWidth * 1.5 };
|
|
77036
77071
|
}
|
|
77037
77072
|
/**
|
|
77038
77073
|
* Compute pressure circles for stroke `i`, or `undefined` when the stroke has
|
|
@@ -77045,10 +77080,10 @@ function pressureCirclesForStroke(el, index, d, baseWidth) {
|
|
|
77045
77080
|
const pointPressures = el.inkPointPressures?.[index];
|
|
77046
77081
|
if (pointPressures && pointPressures.length > 1 && hasPressureVariation(pointPressures)) {
|
|
77047
77082
|
const widths = pressuresToWidths(pointPressures, baseWidth);
|
|
77048
|
-
return generatePressureCircles(extractPathPoints(d), widths, baseWidth);
|
|
77083
|
+
return generatePressureCircles(extractPathPoints(d), widths, pressureConfig(baseWidth));
|
|
77049
77084
|
}
|
|
77050
77085
|
if (el.inkWidths && el.inkWidths.length > 1 && hasPressureVariation(el.inkWidths)) {
|
|
77051
|
-
return generatePressureCircles(extractPathPoints(d), el.inkWidths, baseWidth);
|
|
77086
|
+
return generatePressureCircles(extractPathPoints(d), el.inkWidths, pressureConfig(baseWidth));
|
|
77052
77087
|
}
|
|
77053
77088
|
return undefined;
|
|
77054
77089
|
}
|
|
@@ -79006,35 +79041,6 @@ function resolveAngularParagraphBullet(segment, baseFontSize, fontScale = 1) {
|
|
|
79006
79041
|
};
|
|
79007
79042
|
}
|
|
79008
79043
|
|
|
79009
|
-
/**
|
|
79010
|
-
* Resolve a paragraph's own line-height + space-before/after from its parsed
|
|
79011
|
-
* `paragraphProperties` (the first segment's per-paragraph `a:pPr`). Only keys
|
|
79012
|
-
* the paragraph explicitly overrides are set, so a paragraph without its own
|
|
79013
|
-
* spacing inherits the body-level defaults the binding already applies. Exact
|
|
79014
|
-
* `lineSpacingExactPt` (`a:spcPts`) wins over the proportional multiplier.
|
|
79015
|
-
*/
|
|
79016
|
-
function resolveParagraphSpacing(pPr) {
|
|
79017
|
-
const out = {};
|
|
79018
|
-
if (!pPr) {
|
|
79019
|
-
return out;
|
|
79020
|
-
}
|
|
79021
|
-
if (typeof pPr.lineSpacingExactPt === 'number' && pPr.lineSpacingExactPt > 0) {
|
|
79022
|
-
out.lineHeight = `${pPr.lineSpacingExactPt}pt`;
|
|
79023
|
-
}
|
|
79024
|
-
else if (typeof pPr.lineSpacing === 'number' && pPr.lineSpacing > 0) {
|
|
79025
|
-
// `a:spcPct` stacks on the 1.2 single-spacing base (see
|
|
79026
|
-
// `proportionalLineHeight` in the shared text-style-helpers).
|
|
79027
|
-
out.lineHeight = proportionalLineHeight(pPr.lineSpacing);
|
|
79028
|
-
}
|
|
79029
|
-
if (typeof pPr.paragraphSpacingBefore === 'number') {
|
|
79030
|
-
out.spaceBeforePx = pPr.paragraphSpacingBefore;
|
|
79031
|
-
}
|
|
79032
|
-
if (typeof pPr.paragraphSpacingAfter === 'number') {
|
|
79033
|
-
out.spaceAfterPx = pPr.paragraphSpacingAfter;
|
|
79034
|
-
}
|
|
79035
|
-
return out;
|
|
79036
|
-
}
|
|
79037
|
-
|
|
79038
79044
|
/**
|
|
79039
79045
|
* Presets that the Angular renderer draws with SVG `<textPath>` along a
|
|
79040
79046
|
* curved/circular path. Envelope (inflate/deflate/can) and simple (slant/fade/
|
|
@@ -79756,7 +79762,10 @@ class ElementRendererComponent {
|
|
|
79756
79762
|
* but left the element itself indistinguishable from an interactive one to
|
|
79757
79763
|
* anything reading its computed style (e.g. `e2e/template-editing.spec.ts`).
|
|
79758
79764
|
*/
|
|
79759
|
-
rootPointerEvents = computed(() => (
|
|
79765
|
+
rootPointerEvents = computed(() => inlineElementPointerEvents({
|
|
79766
|
+
interactive: this.interactive(),
|
|
79767
|
+
presenting: this.presenting(),
|
|
79768
|
+
}) ?? null, /* @ts-ignore */
|
|
79760
79769
|
...(ngDevMode ? [{ debugName: "rootPointerEvents" }] : /* istanbul ignore next */ []));
|
|
79761
79770
|
/**
|
|
79762
79771
|
* True only on the live presentation stage; threaded to the media renderer so
|
|
@@ -79996,6 +80005,11 @@ class ElementRendererComponent {
|
|
|
79996
80005
|
const paragraphIndents = el.paragraphIndents;
|
|
79997
80006
|
const out = [{ runs: [], bulletStyle: {}, indentPx: 0 }];
|
|
79998
80007
|
let paraStarted = false;
|
|
80008
|
+
// `a:bodyPr/@spcFirstLastPara`; the shared resolver owns what it means.
|
|
80009
|
+
const spaceFirstLast = el.textStyle?.spaceFirstLastParagraph !== false;
|
|
80010
|
+
// Paragraphs are built in one forward pass, so the last one's own props are
|
|
80011
|
+
// kept to re-resolve its spacing once the end of the body is known.
|
|
80012
|
+
let lastParagraphProps;
|
|
79999
80013
|
for (const seg of segments) {
|
|
80000
80014
|
// A bare `"\n"` segment is the slide-LOAD path's paragraph separator;
|
|
80001
80015
|
// `isParagraphBreak` is only set by the edit remap. Matching on the
|
|
@@ -80016,7 +80030,12 @@ class ElementRendererComponent {
|
|
|
80016
80030
|
if (typeof endParaSize === 'number' && endParaSize > 0) {
|
|
80017
80031
|
closing.strutFontSizePx = endParaSize;
|
|
80018
80032
|
}
|
|
80019
|
-
const endSpacing = resolveParagraphSpacing(
|
|
80033
|
+
const endSpacing = resolveParagraphSpacing({
|
|
80034
|
+
paraProps: seg.paragraphProperties,
|
|
80035
|
+
bodyStyle: el.textStyle,
|
|
80036
|
+
isFirst: out.length === 1,
|
|
80037
|
+
spaceFirstLast,
|
|
80038
|
+
});
|
|
80020
80039
|
if (endSpacing.lineHeight !== undefined) {
|
|
80021
80040
|
closing.lineHeight = endSpacing.lineHeight;
|
|
80022
80041
|
}
|
|
@@ -80038,9 +80057,16 @@ class ElementRendererComponent {
|
|
|
80038
80057
|
const indent = resolveParagraphIndent(paragraphIndents?.[out.length - 1], seg.paragraphLevel);
|
|
80039
80058
|
current.indentPx = indent.marginLeftPx ?? 0;
|
|
80040
80059
|
current.textIndentPx = indent.textIndentPx;
|
|
80041
|
-
// Per-paragraph line-height / space-before / space-after
|
|
80042
|
-
//
|
|
80043
|
-
|
|
80060
|
+
// Per-paragraph line-height / space-before / space-after, resolved by
|
|
80061
|
+
// the shared resolver `buildParagraphs` uses (body-level inheritance
|
|
80062
|
+
// and the first/last edge rule included).
|
|
80063
|
+
lastParagraphProps = seg.paragraphProperties;
|
|
80064
|
+
const spacing = resolveParagraphSpacing({
|
|
80065
|
+
paraProps: seg.paragraphProperties,
|
|
80066
|
+
bodyStyle: el.textStyle,
|
|
80067
|
+
isFirst: out.length === 1,
|
|
80068
|
+
spaceFirstLast,
|
|
80069
|
+
});
|
|
80044
80070
|
if (spacing.lineHeight !== undefined) {
|
|
80045
80071
|
current.lineHeight = spacing.lineHeight;
|
|
80046
80072
|
}
|
|
@@ -80150,12 +80176,27 @@ class ElementRendererComponent {
|
|
|
80150
80176
|
if (lastContent < 0) {
|
|
80151
80177
|
return out.length === 1 ? out : [];
|
|
80152
80178
|
}
|
|
80153
|
-
|
|
80179
|
+
const kept = out.slice(0, lastContent + 1).map((p) => {
|
|
80154
80180
|
if (!hasContent(p)) {
|
|
80155
80181
|
p.isEmpty = true;
|
|
80156
80182
|
}
|
|
80157
80183
|
return p;
|
|
80158
80184
|
});
|
|
80185
|
+
// The last paragraph's after-spacing depends on it BEING last, which is only
|
|
80186
|
+
// known now that the body has ended. Re-resolving through the same shared
|
|
80187
|
+
// resolver keeps the edge rule in one place.
|
|
80188
|
+
const finalParagraph = kept[kept.length - 1];
|
|
80189
|
+
if (finalParagraph) {
|
|
80190
|
+
const finalSpacing = resolveParagraphSpacing({
|
|
80191
|
+
paraProps: lastParagraphProps,
|
|
80192
|
+
bodyStyle: el.textStyle,
|
|
80193
|
+
isFirst: kept.length === 1,
|
|
80194
|
+
isLast: true,
|
|
80195
|
+
spaceFirstLast,
|
|
80196
|
+
});
|
|
80197
|
+
finalParagraph.spaceAfterPx = finalSpacing.spaceAfterPx;
|
|
80198
|
+
}
|
|
80199
|
+
return kept;
|
|
80159
80200
|
}, /* @ts-ignore */
|
|
80160
80201
|
...(ngDevMode ? [{ debugName: "paragraphs" }] : /* istanbul ignore next */ []));
|
|
80161
80202
|
hasText = computed(() => this.paragraphs().some((p) => p.runs.length > 0 || p.bulletMarker !== undefined || p.bulletPicture !== undefined), /* @ts-ignore */
|
|
@@ -97032,7 +97073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
97032
97073
|
}], propDecorators: { canEdit: [{ type: i0.Input, args: [{ isSignal: true, alias: "canEdit", required: false }] }], slideIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideIndex", required: false }] }] } });
|
|
97033
97074
|
|
|
97034
97075
|
// Generated by scripts/inline-shared.mjs from package.json. Do not edit.
|
|
97035
|
-
const PPTX_ANGULAR_VIEWER_VERSION = "2.17.
|
|
97076
|
+
const PPTX_ANGULAR_VIEWER_VERSION = "2.17.7";
|
|
97036
97077
|
|
|
97037
97078
|
/**
|
|
97038
97079
|
* account-page.component.ts: File > Account content.
|
|
@@ -120135,29 +120176,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
120135
120176
|
* so callers with access to one get translated text; callers without one
|
|
120136
120177
|
* (e.g. plain unit tests) still get the English fallback.
|
|
120137
120178
|
*/
|
|
120138
|
-
|
|
120139
|
-
|
|
120140
|
-
if (!password) {
|
|
120141
|
-
return 0;
|
|
120142
|
-
}
|
|
120143
|
-
let score = 0;
|
|
120144
|
-
if (password.length >= 8) {
|
|
120145
|
-
score++;
|
|
120146
|
-
}
|
|
120147
|
-
if (password.length >= 12) {
|
|
120148
|
-
score++;
|
|
120149
|
-
}
|
|
120150
|
-
if (/[A-Z]/u.test(password) && /[a-z]/u.test(password)) {
|
|
120151
|
-
score++;
|
|
120152
|
-
}
|
|
120153
|
-
if (/\d/u.test(password)) {
|
|
120154
|
-
score++;
|
|
120155
|
-
}
|
|
120156
|
-
if (/[^A-Za-z0-9]/u.test(password)) {
|
|
120157
|
-
score++;
|
|
120158
|
-
}
|
|
120159
|
-
return Math.min(score, 4);
|
|
120160
|
-
}
|
|
120179
|
+
// Password strength scoring is shared, so every binding grades a password the
|
|
120180
|
+
// same way.
|
|
120161
120181
|
/** Bar colours indexed by strength score (0-4). */
|
|
120162
120182
|
const STRENGTH_COLORS = ['#ef4444', '#f97316', '#eab308', '#84cc16', '#22c55e'];
|
|
120163
120183
|
/** English fallback labels indexed by strength score (0-4), used when no `translate` is passed. */
|
|
@@ -129036,5 +129056,5 @@ function cn(...values) {
|
|
|
129036
129056
|
* Generated bundle index. Do not edit.
|
|
129037
129057
|
*/
|
|
129038
129058
|
|
|
129039
|
-
export { CommentsService as $, ALIGN_OPTIONS as A, AnimationPlaybackService as B, AutosaveService as C, BroadcastDialogComponent as D, CHART_EDITOR_STYLES as E, CURSOR_PALETTE as F, CanvasFitService as G, ChartAxisOptionsComponent as H, ChartAxisStyleOptionsComponent as I, ChartComboTypeOptionsComponent as J, ChartDataEditorComponent as K, ChartDataLabelOptionsComponent as L, ChartDatapointMarkerOptionsComponent as M, ChartDatapointOptionsComponent as N, ChartDisplayOptionsComponent as O, ChartElementViewComponent as P, ChartErrorBarOptionsComponent as Q, ChartMarkerOptionsComponent as R, ChartPartSelectionService as S, ChartPrimitivesComponent as T, ChartRendererComponent as U, ChartTrendlineOptionsComponent as V, CollaborationCursorsComponent as W, CollaborationService as X, ColorChangedImageComponent as Y, CommentMarkersOverlayComponent as Z, CommentsPanelComponent as _, ANIMATION_PRESET_CATEGORIES as a, IsMobileService as a$, ComparePanelComponent as a0, ConnectorRendererComponent as a1, ConnectorTextOverlayComponent as a2, CustomShowsComponent as a3, DATA_TABLE_HEADER_H as a4, DATA_TABLE_KEY_W as a5, DATA_TABLE_PADDING as a6, DATA_TABLE_ROW_H as a7, DEFAULT_BOUNDS as a8, DEFAULT_BROADCAST_SERVER_URL as a9, EffectsPanelComponent as aA, ElementRendererComponent as aB, EmbeddedFontsService as aC, EncryptedFileDialogComponent as aD, EquationEditorDialogComponent as aE, EquationRendererComponent as aF, EquationTemplateGalleryComponent as aG, ExportProgressModalComponent as aH, ExportService as aI, FieldContextService as aJ, FindBarComponent as aK, FindReplaceBarComponent as aL, FollowModeBarComponent as aM, FontEmbeddingListComponent as aN, FontEmbeddingPanelComponent as aO, GALLERY_THEME_PRESETS as aP, GRIDLINE_COLOR as aQ, GradientPickerComponent as aR, HANDOUT_OPTIONS as aS, HeaderFooterDialogComponent as aT, HyperlinkDialogComponent as aU, ImagePropertiesPanelComponent as aV, InkDrawingService as aW, InkRendererComponent as aX, InsertSmartArtDialogComponent as aY, InspectorPaneHeaderComponent as aZ, InspectorPanelComponent as a_, DEFAULT_CANVAS_HEIGHT as aa, DEFAULT_CANVAS_WIDTH as ab, DEFAULT_COLOR_SCHEME as ac, DEFAULT_FILL_COLOR as ad, DEFAULT_LAYOUT as ae, DEFAULT_PALETTE$1 as af, DEFAULT_PATTERN_FILL_PRESET as ag, DEFAULT_PRINT_SETTINGS as ah, DEFAULT_SLIDE_BACKGROUND as ai, DEFAULT_STROKE_COLOR as aj, DEFAULT_STYLE as ak, DEFAULT_TABLE_ROW_HEIGHT as al, DEFAULT_TEXT_COLOR$1 as am, DEFAULT_VIEWER_PROFILE as an, DIRECTIONAL_PRESETS as ao, DIRECTION_OPTIONS as ap, DocumentPropertiesCardComponent as aq, EMBEDDED_FONTS_STYLE_ID as ar, EMPHASIS_PRESETS as as, ENTRANCE_PRESETS as at, TEMPLATES as au, EXIT_PRESETS as av, EditorContextMenuComponent as aw, EditorHistory as ax, EditorStateService as ay, EditorToolbarComponent as az, AUDIENCE_HASH as b, RibbonDrawingGroupComponent as b$, KeepAnnotationsDialogComponent as b0, LOCALE_CATALOG as b1, LONG_PRESS_DURATION_MS as b2, LONG_PRESS_MOVE_TOLERANCE_PX as b3, LoadContentService as b4, LocalPresencePublisher as b5, MAX_ZOOM_SCALE as b6, MIN_ZOOM_SCALE as b7, MOTION_PATH_COLUMNS as b8, MediaPreviewComponent as b9, PresentationAnnotationOverlayComponent as bA, PresentationAnnotationsService as bB, PresentationOverlayComponent as bC, PresentationPropertiesPanelComponent as bD, PresentationSettingsCardComponent as bE, PresentationSubtitleBarComponent as bF, PresentationToolbarComponent as bG, PresentationTransitionOverlayComponent as bH, PresenterViewComponent as bI, PresenterWindowService as bJ, PrintDialogComponent as bK, PrintService as bL, PrintSettingsPanelComponent as bM, PropertiesDialogComponent as bN, REPEAT_MODE_OPTIONS as bO, RESIZE_HANDLES as bP, RULER_FONT_SIZE as bQ, RULER_THICKNESS as bR, ReadingViewOverlayComponent as bS, RemoteSelectionOverlayComponent as bT, RibbonAnimationGalleryComponent as bU, RibbonAnimationsSectionComponent as bV, RibbonArrangeSectionComponent as bW, RibbonColorPopoverComponent as bX, RibbonComponent as bY, RibbonDesignSectionComponent as bZ, RibbonDrawSectionComponent as b_, MediaPropertiesPanelComponent as ba, MediaRendererComponent as bb, MediaTrimTimelineComponent as bc, MobileBottomBarComponent as bd, MobileMenuSheetComponent as be, MobilePresenterViewComponent as bf, MobileSheetComponent as bg, MobileSlidesSheetComponent as bh, MobileToolbarComponent as bi, ModalDialogComponent as bj, Model3DRendererComponent as bk, NotesHandoutCardComponent as bl, NotesPanelComponent as bm, NotesToolbarComponent as bn, OleRendererComponent as bo, OutlineViewOverlayComponent as bp, POWER_POINT_VIEWER_PROVIDERS as bq, PRESENTER_CHANNEL_NAME as br, PRESENTER_MSG_ORIGIN as bs, PRESENTER_TIMER_SEGMENT_MS as bt, PX_PER_CM as bu, PX_PER_INCH as bv, PasswordProtectionDialogComponent as bw, PasswordStrengthMeterComponent as bx, PowerPointViewerComponent as by, PresentToolbarAutoHide as bz, AUDIENCE_NONCE_KEY as c, TIMING_CURVE_OPTIONS as c$, RibbonEditingSectionComponent as c0, RibbonFileSectionComponent as c1, RibbonFontControlsComponent as c2, RibbonHomeSectionComponent as c3, RibbonHyperlinkButtonComponent as c4, RibbonInsertFieldsComponent as c5, RibbonInsertSectionComponent as c6, RibbonMotionPathGalleryComponent as c7, RibbonParagraphControlsComponent as c8, RibbonPrimaryRowComponent as c9, ShowOptionsFieldsetComponent as cA, ShowSlidesFieldsetComponent as cB, SignatureStrippedDialogComponent as cC, SignaturesPanelComponent as cD, SignaturesService as cE, SlideBackgroundCardComponent as cF, SlideCanvasComponent as cG, SlideDefaultInspectorComponent as cH, SlideDiffChangesComponent as cI, SlideDiffRowComponent as cJ, SlideDiffThumbnailsComponent as cK, SlideSizeCardComponent as cL, SlideSorterOverlayComponent as cM, SlideThemeOverridePanelComponent as cN, SlideTransitionCardComponent as cO, SlidesPanelComponent as cP, SmartArt3DRendererComponent as cQ, SmartArt3DService as cR, SmartArtPreviewComponent as cS, SmartArtPropertiesComponent as cT, SmartArtRendererComponent as cU, StatusBarComponent as cV, TABLE_STRUCTURE_TOGGLES as cW, TEXT_3D_BOTTOM_BEVEL_KEYS as cX, TEXT_3D_TOP_BEVEL_KEYS as cY, TEXT_DIRECTION_OPTIONS$1 as cZ, THEME_CATALOG as c_, RibbonReviewSectionComponent as ca, RibbonShapeExtrasComponent as cb, RibbonSlideshowSectionComponent as cc, RibbonTransitionsSectionComponent as cd, RibbonViewSectionComponent as ce, RulerGuidesService as cf, SEQUENCE_OPTIONS as cg, SEVERITY_GROUPS as ch, SEVERITY_LABELS as ci, SHORTCUT_REFERENCE_ITEMS as cj, SLIDE_TRANSITION_KEYFRAMES as ck, DEFAULT_PALETTE as cl, PALETTES$1 as cm, SMART_ART_COLOR_SCHEMES as cn, SMART_ART_STYLE_OPTIONS as co, SUB_ITEM_LABEL as cp, SVG_WARP_PRESETS as cq, SWIPE_MAX_VERTICAL_PX as cr, SWIPE_THRESHOLD_PX as cs, SelectionPaneComponent as ct, SetUpSlideShowDialogComponent as cu, SettingsAppearanceTabComponent as cv, SettingsDialogComponent as cw, SettingsLanguageTabComponent as cx, ShareDialogComponent as cy, ShortcutPanelComponent as cz, AVATAR_COLOR_SWATCHES as d, applyAnimationPreset as d$, TRIGGER_OPTIONS as d0, TYPE_LABELS as d1, TableCellAdvancedFillComponent as d2, TableCellFormattingComponent as d3, TableDataEditorComponent as d4, TablePropertiesComponent as d5, TableRendererComponent as d6, TableResizeOverlayComponent as d7, TableSelectionService as d8, TagsCardComponent as d9, ViewerInspectorPanelService as dA, ViewerKeyboardService as dB, ViewerMobileSheetService as dC, ViewerPresentationModeService as dD, ViewerThemeGalleryService as dE, ViewerTouchGesturesService as dF, ViewerZoomService as dG, WEBM_MIME_CANDIDATES as dH, WriteBackScheduler as dI, ZERO_LINE_COLOR as dJ, ZoomNavigationService as dK, ZoomRendererComponent as dL, ZoomTargetService as dM, addCategory as dN, addCommentToList as dO, addGradientStopPatch as dP, addItem as dQ, addSeries as dR, addSubItem as dS, advanceStep as dT, affordanceElements as dU, aiToggleVisible as dV, alignPatch as dW, animationFor as dX, animationPresetLabelKey as dY, annotationMapToInkInserts as dZ, applyAcceptedDiff as d_, Text3DBevelSectionComponent as da, Text3DPanelComponent as db, TextAdvancedPanelComponent as dc, ThemeEditorFieldsComponent as dd, ThemeGalleryComponent as de, ThemeSelectorCardComponent as df, TitleBarComponent as dg, TitleBarSearchComponent as dh, TransitionDirectionPickerComponent as di, TransitionPreviewComponent as dj, VALIGN_OPTIONS as dk, VIEWER_THEME as dl, VersionHistoryPanelComponent as dm, ViewerCanvasEditingService as dn, ViewerCollabCursorService as dp, ViewerCollaborationSessionService as dq, ViewerCompareService as dr, ViewerCustomShowsService as ds, ViewerDialogsService as dt, ViewerDocumentPropertiesService as du, ViewerExportService as dv, ViewerExtraDialogsComponent as dw, ViewerFileIOService as dx, ViewerFindReplaceService as dy, ViewerFormatPainterService as dz, AXIS_LABEL_COLOR as e, buildZoomViewModel as e$, applyFindReplacements as e0, applyFormatToElement as e1, applyMove as e2, applyResize as e3, applyTableStylePreset as e4, asMediaElement as e5, assignUserColor as e6, attachShowVisibilityPause as e7, attachTouchGestures as e8, axisTickValues as e9, buildFontFaceRule as eA, buildGradientFillCss as eB, buildGridlinesAndLabels as eC, buildHyperlinkPatch as eD, buildInkContainerStyle as eE, buildInkStrokes as eF, buildLegend as eG, buildModel3DContainerStyle as eH, buildModel3DViewModel as eI, buildOleActionModel as eJ, buildOleInfoRows as eK, buildPatternFillCss as eL, buildPrintHtmlDocument as eM, buildPropertiesPatch as eN, buildRegionMapViewModel as eO, buildSaveSlides as eP, buildShareUrl as eQ, buildSmartArtInsertElement as eR, buildSmartArtNodes as eS, buildStockViewModel as eT, buildSurfaceViewModel as eU, buildTableViewModel as eV, buildTreemapViewModel as eW, buildTrimFragment as eX, buildWaterfallViewModel as eY, buildZeroLine as eZ, buildZoomContainerStyle as e_, beginNodeEdit as ea, bevelSizePatch as eb, boolFromEvent as ec, bringForward as ed, bringToFront as ee, buildBarActions as ef, buildBroadcastConfig as eg, buildBroadcastViewerUrl as eh, buildCategoryLabels as ei, buildCellParagraphs as ej, buildChartViewModel as ek, buildChatLogExport as el, buildChatLogMarkdown as em, buildChromeStyle as en, buildClearHyperlinkPatch as eo, buildClickGroups as ep, buildColStyles as eq, buildCollaborationConfig as er, buildComboViewModel as es, buildCssGradientFromShapeStyle as et, buildDuotoneFilter as eu, buildDuotoneFilterId as ev, buildEmbeddedFontStyles as ew, buildEquationElement as ex, buildEquationSegment as ey, buildFallbackViewModel as ez, AccessibilityPanelComponent as f, computeTextLines as f$, bulletIndentPx as f0, canAddTopLevelNode as f1, canGroupSelection as f2, canRemoveTopLevelNode as f3, canSetStrokeWidth as f4, canStartBroadcast as f5, canStartShare as f6, canUngroupSelection as f7, canUseClipboard as f8, captionDisplayText as f9, computeBubbleRadius as fA, computeCornerHandle as fB, computeDataTablePrimitives as fC, computeDistribute as fD, computeDrawingViewBox as fE, computeErrorBarPrimitives as fF, computeFocusTargets as fG, computeHandleBoxes as fH, computeHandoutLayout as fI, computeIsMobile as fJ, computeIsTablet as fK, computeLinePoints as fL, computeLinearRegression as fM, computePageCount as fN, computePieLayout as fO, computePieSlicePath as fP, computePieSlices as fQ, computePlotLayout as fR, computeRSquared as fS, computeRadarPoints as fT, computeScatterDots as fU, computeSelectionBoxes as fV, computeSingleSelected as fW, computeSlideIndices as fX, computeSnap as fY, computeStackedBarRects as fZ, computeStackedValueRange as f_, cellRunStyle as fa, cellStyleToStyleMap as fb, cellTdStyle as fc, changeCountLabel as fd, changeIcon as fe, characterSpacingPatch as ff, checkFontAvailable as fg, clampCursorPosition as fh, clampGifDimensions as fi, clampIndex as fj, clampNotesFontSize as fk, clampScale as fl, clampStep as fm, clearAllLocalViewerData as fn, clearAudienceContent as fo, cn as fp, collectAccessibilityIssues as fq, collectElementText as fr, collectSlideText as fs, collectStoredChats as ft, collectUsedFontFamilies as fu, columnWidthStyle as fv, commitNodeText as fw, computeAlign as fx, computeAxisTitlePrimitives as fy, computeBarRects as fz, AccessibilityService as g, formatPropertyDate as g$, computeTrendlinePrimitives as g0, computeValueRange as g1, convertOmmlToMathMl as g2, copyFormatFromElement as g3, countAccessibilityIssues as g4, countAnnotationStrokes as g5, createAngularAiBridge as g6, createCustomShow as g7, createSwipeDismissDrag as g8, createWebrtcBundle as g9, enableSoftEdgePatch as gA, encodeGif as gB, endShowMediaCleanup as gC, estimatePageCount as gD, evenColumnWidths as gE, evenRowHeights as gF, exitPresentationFullscreen as gG, exportAiChatLogs as gH, extractPathPoints as gI, eyedropperAvailable as gJ, fillColorOf as gK, findInSlides as gL, findOwningSlideIndex as gM, findSlideIndexByElementId as gN, firstVisibleIndex as gO, fitPolynomial as gP, fitZoom as gQ, focusTargetChips as gR, fontMimeForFormat as gS, fontSizeOf as gT, forgetSessionDeck as gU, formatAutoNumber as gV, formatAxisValue as gW, formatBytes as gX, formatCursorLabel as gY, formatElapsed as gZ, formatFileSize as g_, createWebsocketBundle as ga, cssObjectToStyleMap as gb, currentColorScheme as gc, currentLayout as gd, currentStyle as ge, defaultCssVars as gf, defaultRadius as gg, defaultThemeColors as gh, deleteElementsByIds as gi, deleteVersion as gj, demoteNode as gk, deriveModel3DBlobUrl as gl, derivePresenceList as gm, describeSmartArtBounds as gn, disableGlowPatch as go, disableInnerShadowPatch as gp, disableOuterShadowPatch as gq, disableReflectionPatch as gr, disableSoftEdgePatch as gs, duplicateElementById as gt, durationOf as gu, effectsStateOf as gv, enableGlowPatch as gw, enableInnerShadowPatch as gx, enableOuterShadowPatch as gy, enableReflectionPatch as gz, AccountPageComponent as h, isSigned as h$, formatTime as h0, fpsToFrameIntervalMs as h1, generateBroadcastRoomId as h2, generateCommentId as h3, generateCustomShowId as h4, generatePressureCircles as h5, generateTicks as h6, getClrChangeParams as h7, getContainerStyle as h8, getDuotoneFilterDef as h9, gradientStateOf as hA, gradientStatePatch as hB, gridColumns as hC, groupElements as hD, groupIssuesBySeverity as hE, hasAnimation as hF, hasCopyableFormat as hG, hasExistingLink as hH, hasExitedFullscreen as hI, hasGradientFill as hJ, hasPressureVariation as hK, hasVisibleSlideAfter as hL, headerLabel as hM, imageDimensions as hN, inkViewBox as hO, insertTableElementColumn as hP, insertTableElementRow as hQ, interpolateWidth as hR, isAudienceTab as hS, isBold as hT, isBrowserOpenableMime as hU, isChildNode as hV, isElementInteractive as hW, isInjectableUrl as hX, isItalic as hY, isPpactionUrl as hZ, isPresenterMessage as h_, getImageSrc as ha, getLocalStorageUsageSummary as hb, getOleAriaLabel as hc, getOleBadgeLabel as hd, getOleDisplayName as he, getOleDownloadFileName as hf, getOleTypeColor as hg, getOleTypeLabel as hh, getPasswordStrength as hi, getPatternSvg as hj, getPlaceholderStyle as hk, getVersions as hl, getResolvedShapeClipPath as hm, getResolvedShapeClipPathFor as hn, getSessionTabId as ho, getShapeFillStrokeStyle as hp, getSlideBackgroundStyle as hq, getSlideTransitionAnimations as hr, getSmartArtNodeBounds as hs, getSpeechRecognitionCtor as ht, getTextBlockStyle as hu, getTextWarp as hv, getTouchDistance as hw, getWarpCategory as hx, getWarpPath as hy, gradientStateFromStyle as hz, ActionSettingsPanelComponent as i, pendingElementStyles as i$, isTextElement as i0, isTwoTableFocus as i1, isUnderline as i2, isUrlSafe as i3, isValidRoomId as i4, isViewportBackgroundPressTarget as i5, isZoomActivationKey as i6, issueTrackKey as i7, issueTypeLabel as i8, keyToLabel as i9, newTableElement as iA, newTextElement as iB, nextVisibleIndex as iC, nodeBold as iD, nodeEditBox as iE, nodeFillColor as iF, nodeFontColor as iG, nodeIdFromKey as iH, nodeItalic as iI, nodeStyle as iJ, normalizeFontFormat as iK, normalizeSlidesPerPage as iL, normalizeValue as iM, numFromEvent as iN, ommlToMathml as iO, ooxmlDashToCssBorderStyle as iP, openNativeEyeDropper as iQ, overallStatus as iR, paletteColor as iS, parseAudienceNonce as iT, parseNodeTextarea as iU, partitionSlides as iV, patchChartData as iW, patchChartStyle as iX, patchTableData as iY, patchTextStyle as iZ, patternPresetOptions as i_, lastVisibleIndex as ia, latexToMathml as ib, linePointsToSvgString as ic, lineSpacingPatch as id, loadAudienceContent as ie, loadSessionDeck as ig, mediaFallbackFor as ih, mediaSurfaceFor as ii, mergeCaptionResults as ij, mergeDown as ik, mergeRight as il, mergeSelection as im, moveElementBy as io, moveNodeDown as ip, moveNodeUp as iq, msToFrameDelayCs as ir, narrowToCircle as is, narrowToPolygon as it, narrowToRect as iu, newChartElement as iv, newEquationElement as iw, newPresetShapeElement as ix, newShapeElement as iy, newSmartArtElement as iz, AdvancedChartEditorComponent as j, sanitizeSlideIndex as j$, pickColorByClickFallback as j0, pickFile as j1, pickSupportedMimeType as j2, planGifFrames as j3, planVideoSegments as j4, pointsToSvgPathD as j5, presenceToCursors as j6, presentationStageStyle as j7, presenterTimerProgress as j8, presetByLayout as j9, replaceMatch as jA, requestPresentationFullscreen as jB, resizeElement as jC, resolveCaptionTracks as jD, resolveChartKind as jE, resolveFontVariant as jF, resolveHyperlinkHref as jG, resolveInteractiveElementId as jH, resolveMediaSrc as jI, resolveOleType as jJ, resolveParagraphBullet as jK, resolvePresenterNotes as jL, resolveProfileInitial as jM, resolveRegionCode as jN, resolveSlideAutoAdvanceMs as jO, resolvePalette as jP, resolveThemeCatalogEntry as jQ, resolveTransitionDuration as jR, restoreSessionDeck as jS, revealedElementStyles as jT, routeOrthogonalConnector as jU, rowStyle as jV, rulerDragToGuidePosition as jW, rulerHighlight as jX, rulerStripTicks as jY, sampleColorFromSlide as jZ, sanitizeColor as j_, presetsForCategory as ja, pressuresToWidths as jb, prevVisibleIndex as jc, projectDrawingShapes as jd, promoteNode as je, provideViewerTheme as jf, radarAngle as jg, radarRingPoints as jh, readAsDataUrl as ji, recordWebm as jj, redistributeColumnWidth as jk, registerCrossSlideAudio as jl, rememberSessionDeck as jm, removeAnimation as jn, removeCategory as jo, removeTableElementColumn as jp, removeCommentFromList as jq, removeElementAnimation as jr, removeGradientStopPatch as js, removeNode as jt, removeTableElementRow as ju, removeSeries as jv, renderToCanvas as jw, reorderAnimationDown as jx, reorderAnimationUp as jy, replaceInSlides as jz, AiChangeOverlayComponent as k, statusLabel as k$, sanitizeUserName as k0, saveViewerProfile as k1, scanAvailableFonts as k2, searchSlides as k3, seedBroadcastFields as k4, seedHyperlinkDraft as k5, seedPropertiesDraft as k6, seedShareFields as k7, segmentFrameCount as k8, selectValue$2 as k9, setNodeStyle as kA, setNodeText as kB, setRepeatCount as kC, setRepeatMode as kD, setSequence as kE, setSeriesChartType as kF, setSeriesColor as kG, setSeriesErrorBars as kH, setSeriesMarker as kI, setSeriesName as kJ, setSeriesTrendline as kK, setSeriesValue as kL, setStyle as kM, setTimingCurve as kN, setTitle as kO, setTrigger as kP, setTriggerShapeId as kQ, shapeStylePatch as kR, sheetAfterNavigate as kS, shouldBlockClickAdvance as kT, shouldUseSvgWarp as kU, showDirectionPicker as kV, showsTemplateAffordance as kW, signatureCountLabel as kX, signatureKey as kY, signatureTimestamp as kZ, signerName as k_, sendBackward as ka, sendToBack as kb, sequentialColorScale as kc, serializeWriteBack as kd, seriesColor as ke, setAnimationEmphasis as kf, setAnimationEntrance as kg, setAnimationExit as kh, setAxis as ki, setAxisLogScale as kj, setAxisTitleStyle as kk, setCategoryLabel as kl, setCellText as km, setColorScheme as kn, setDataLabels as ko, setDataPointExplosion as kp, setDataPointFill as kq, setDataPointLabel as kr, setDataPointMarker as ks, setDelay as kt, setDirection as ku, setDuration as kv, setElementPosition as kw, setGridlineStyle as kx, setLayout as ky, setLegend as kz, AiChatPanelComponent as l, slideNumberOf as l0, slidesWithReappliedLayout as l1, smartArtNodes as l2, paletteColour as l3, snapToGridStep as l4, splitCursorCell as l5, splitMergedCell as l6, statusKind as l7, statusLabel$1 as l8, storeAudienceContent as l9, updateGradientStopPatch as lA, updateInnerShadowPatch as lB, updateOuterShadowPatch as lC, updateReflectionPatch as lD, vAlignPatch as lE, validatePassword as lF, validatePrintSettings as lG, validateRoomId as lH, valueToY as lI, vermilionDarkColors as lJ, vermilionDarkTheme as lK, vermilionLightColors as lL, vermilionLightTheme as lM, vermilionRadius as lN, waypointsToPathD as lO, worstStatus as lP, zoomTargetSlideIndex as lQ, stringFromEvent$5 as la, strokeColorOf as lb, strokeToInkElement as lc, strokeWidthOf as ld, styleShadowFilter as le, textAdvancedPatch as lf, textAdvancedStateFromStyle as lg, textAdvancedStateOf as lh, textColorOf as li, textDirectionPatch as lj, textStyleOf as lk, textStylePatch as ll, themeStyle as lm, themeToCssVars as ln, thumbnailHeight as lo, thumbnailZoom as lp, toggleCommentResolvedInList as lq, toggleNodeBold as lr, toggleNodeItalic as ls, toggleSheet as lt, topLevelNodeCount as lu, transformSelectedTextCase as lv, translationsEn as lw, ungroupElements as lx, updateElementById as ly, updateGlowPatch as lz, AiChatService as m, AiComposerComponent as n, AiFocusBarComponent as o, AiFocusHighlightOverlayComponent as p, AiHistoryMenuComponent as q, AiHistoryService as r, AiMessageListComponent as s, toChatSummary as t, AiPanelStore as u, AiProposalCardComponent as v, AiSettingsSectionComponent as w, AiToolCallCardComponent as x, AnimationAuthorPanelComponent as y, AnimationPanelComponent as z };
|
|
129040
|
-
//# sourceMappingURL=pptx-angular-viewer-pptx-angular-viewer-
|
|
129059
|
+
export { CommentsService as $, ALIGN_OPTIONS as A, AnimationPlaybackService as B, AutosaveService as C, BroadcastDialogComponent as D, CHART_EDITOR_STYLES as E, CURSOR_PALETTE as F, CanvasFitService as G, ChartAxisOptionsComponent as H, ChartAxisStyleOptionsComponent as I, ChartComboTypeOptionsComponent as J, ChartDataEditorComponent as K, ChartDataLabelOptionsComponent as L, ChartDatapointMarkerOptionsComponent as M, ChartDatapointOptionsComponent as N, ChartDisplayOptionsComponent as O, ChartElementViewComponent as P, ChartErrorBarOptionsComponent as Q, ChartMarkerOptionsComponent as R, ChartPartSelectionService as S, ChartPrimitivesComponent as T, ChartRendererComponent as U, ChartTrendlineOptionsComponent as V, CollaborationCursorsComponent as W, CollaborationService as X, ColorChangedImageComponent as Y, CommentMarkersOverlayComponent as Z, CommentsPanelComponent as _, ANIMATION_PRESET_CATEGORIES as a, IsMobileService as a$, ComparePanelComponent as a0, ConnectorRendererComponent as a1, ConnectorTextOverlayComponent as a2, CustomShowsComponent as a3, DATA_TABLE_HEADER_H as a4, DATA_TABLE_KEY_W as a5, DATA_TABLE_PADDING as a6, DATA_TABLE_ROW_H as a7, DEFAULT_BOUNDS as a8, DEFAULT_BROADCAST_SERVER_URL as a9, EffectsPanelComponent as aA, ElementRendererComponent as aB, EmbeddedFontsService as aC, EncryptedFileDialogComponent as aD, EquationEditorDialogComponent as aE, EquationRendererComponent as aF, EquationTemplateGalleryComponent as aG, ExportProgressModalComponent as aH, ExportService as aI, FieldContextService as aJ, FindBarComponent as aK, FindReplaceBarComponent as aL, FollowModeBarComponent as aM, FontEmbeddingListComponent as aN, FontEmbeddingPanelComponent as aO, GALLERY_THEME_PRESETS as aP, GRIDLINE_COLOR as aQ, GradientPickerComponent as aR, HANDOUT_OPTIONS as aS, HeaderFooterDialogComponent as aT, HyperlinkDialogComponent as aU, ImagePropertiesPanelComponent as aV, InkDrawingService as aW, InkRendererComponent as aX, InsertSmartArtDialogComponent as aY, InspectorPaneHeaderComponent as aZ, InspectorPanelComponent as a_, DEFAULT_CANVAS_HEIGHT as aa, DEFAULT_CANVAS_WIDTH as ab, DEFAULT_COLOR_SCHEME as ac, DEFAULT_FILL_COLOR as ad, DEFAULT_LAYOUT as ae, DEFAULT_PALETTE$1 as af, DEFAULT_PATTERN_FILL_PRESET as ag, DEFAULT_PRINT_SETTINGS as ah, DEFAULT_SLIDE_BACKGROUND as ai, DEFAULT_STROKE_COLOR as aj, DEFAULT_STYLE as ak, DEFAULT_TABLE_ROW_HEIGHT as al, DEFAULT_TEXT_COLOR$1 as am, DEFAULT_VIEWER_PROFILE as an, DIRECTIONAL_PRESETS as ao, DIRECTION_OPTIONS as ap, DocumentPropertiesCardComponent as aq, EMBEDDED_FONTS_STYLE_ID as ar, EMPHASIS_PRESETS as as, ENTRANCE_PRESETS as at, TEMPLATES as au, EXIT_PRESETS as av, EditorContextMenuComponent as aw, EditorHistory as ax, EditorStateService as ay, EditorToolbarComponent as az, AUDIENCE_HASH as b, RibbonDrawingGroupComponent as b$, KeepAnnotationsDialogComponent as b0, LOCALE_CATALOG as b1, LONG_PRESS_DURATION_MS as b2, LONG_PRESS_MOVE_TOLERANCE_PX as b3, LoadContentService as b4, LocalPresencePublisher as b5, MAX_ZOOM_SCALE as b6, MIN_ZOOM_SCALE as b7, MOTION_PATH_COLUMNS as b8, MediaPreviewComponent as b9, PresentationAnnotationOverlayComponent as bA, PresentationAnnotationsService as bB, PresentationOverlayComponent as bC, PresentationPropertiesPanelComponent as bD, PresentationSettingsCardComponent as bE, PresentationSubtitleBarComponent as bF, PresentationToolbarComponent as bG, PresentationTransitionOverlayComponent as bH, PresenterViewComponent as bI, PresenterWindowService as bJ, PrintDialogComponent as bK, PrintService as bL, PrintSettingsPanelComponent as bM, PropertiesDialogComponent as bN, REPEAT_MODE_OPTIONS as bO, RESIZE_HANDLES as bP, RULER_FONT_SIZE as bQ, RULER_THICKNESS as bR, ReadingViewOverlayComponent as bS, RemoteSelectionOverlayComponent as bT, RibbonAnimationGalleryComponent as bU, RibbonAnimationsSectionComponent as bV, RibbonArrangeSectionComponent as bW, RibbonColorPopoverComponent as bX, RibbonComponent as bY, RibbonDesignSectionComponent as bZ, RibbonDrawSectionComponent as b_, MediaPropertiesPanelComponent as ba, MediaRendererComponent as bb, MediaTrimTimelineComponent as bc, MobileBottomBarComponent as bd, MobileMenuSheetComponent as be, MobilePresenterViewComponent as bf, MobileSheetComponent as bg, MobileSlidesSheetComponent as bh, MobileToolbarComponent as bi, ModalDialogComponent as bj, Model3DRendererComponent as bk, NotesHandoutCardComponent as bl, NotesPanelComponent as bm, NotesToolbarComponent as bn, OleRendererComponent as bo, OutlineViewOverlayComponent as bp, POWER_POINT_VIEWER_PROVIDERS as bq, PRESENTER_CHANNEL_NAME as br, PRESENTER_MSG_ORIGIN as bs, PRESENTER_TIMER_SEGMENT_MS as bt, PX_PER_CM as bu, PX_PER_INCH as bv, PasswordProtectionDialogComponent as bw, PasswordStrengthMeterComponent as bx, PowerPointViewerComponent as by, PresentToolbarAutoHide as bz, AUDIENCE_NONCE_KEY as c, TIMING_CURVE_OPTIONS as c$, RibbonEditingSectionComponent as c0, RibbonFileSectionComponent as c1, RibbonFontControlsComponent as c2, RibbonHomeSectionComponent as c3, RibbonHyperlinkButtonComponent as c4, RibbonInsertFieldsComponent as c5, RibbonInsertSectionComponent as c6, RibbonMotionPathGalleryComponent as c7, RibbonParagraphControlsComponent as c8, RibbonPrimaryRowComponent as c9, ShowOptionsFieldsetComponent as cA, ShowSlidesFieldsetComponent as cB, SignatureStrippedDialogComponent as cC, SignaturesPanelComponent as cD, SignaturesService as cE, SlideBackgroundCardComponent as cF, SlideCanvasComponent as cG, SlideDefaultInspectorComponent as cH, SlideDiffChangesComponent as cI, SlideDiffRowComponent as cJ, SlideDiffThumbnailsComponent as cK, SlideSizeCardComponent as cL, SlideSorterOverlayComponent as cM, SlideThemeOverridePanelComponent as cN, SlideTransitionCardComponent as cO, SlidesPanelComponent as cP, SmartArt3DRendererComponent as cQ, SmartArt3DService as cR, SmartArtPreviewComponent as cS, SmartArtPropertiesComponent as cT, SmartArtRendererComponent as cU, StatusBarComponent as cV, TABLE_STRUCTURE_TOGGLES as cW, TEXT_3D_BOTTOM_BEVEL_KEYS as cX, TEXT_3D_TOP_BEVEL_KEYS as cY, TEXT_DIRECTION_OPTIONS$1 as cZ, THEME_CATALOG as c_, RibbonReviewSectionComponent as ca, RibbonShapeExtrasComponent as cb, RibbonSlideshowSectionComponent as cc, RibbonTransitionsSectionComponent as cd, RibbonViewSectionComponent as ce, RulerGuidesService as cf, SEQUENCE_OPTIONS as cg, SEVERITY_GROUPS as ch, SEVERITY_LABELS as ci, SHORTCUT_REFERENCE_ITEMS as cj, SLIDE_TRANSITION_KEYFRAMES as ck, DEFAULT_PALETTE as cl, PALETTES$1 as cm, SMART_ART_COLOR_SCHEMES as cn, SMART_ART_STYLE_OPTIONS as co, SUB_ITEM_LABEL as cp, SVG_WARP_PRESETS as cq, SWIPE_MAX_VERTICAL_PX as cr, SWIPE_THRESHOLD_PX as cs, SelectionPaneComponent as ct, SetUpSlideShowDialogComponent as cu, SettingsAppearanceTabComponent as cv, SettingsDialogComponent as cw, SettingsLanguageTabComponent as cx, ShareDialogComponent as cy, ShortcutPanelComponent as cz, AVATAR_COLOR_SWATCHES as d, applyAnimationPreset as d$, TRIGGER_OPTIONS as d0, TYPE_LABELS as d1, TableCellAdvancedFillComponent as d2, TableCellFormattingComponent as d3, TableDataEditorComponent as d4, TablePropertiesComponent as d5, TableRendererComponent as d6, TableResizeOverlayComponent as d7, TableSelectionService as d8, TagsCardComponent as d9, ViewerInspectorPanelService as dA, ViewerKeyboardService as dB, ViewerMobileSheetService as dC, ViewerPresentationModeService as dD, ViewerThemeGalleryService as dE, ViewerTouchGesturesService as dF, ViewerZoomService as dG, WEBM_MIME_CANDIDATES as dH, WriteBackScheduler as dI, ZERO_LINE_COLOR as dJ, ZoomNavigationService as dK, ZoomRendererComponent as dL, ZoomTargetService as dM, addCategory as dN, addCommentToList as dO, addGradientStopPatch as dP, addItem as dQ, addSeries as dR, addSubItem as dS, advanceStep as dT, affordanceElements as dU, aiToggleVisible as dV, alignPatch as dW, animationFor as dX, animationPresetLabelKey as dY, annotationMapToInkInserts as dZ, applyAcceptedDiff as d_, Text3DBevelSectionComponent as da, Text3DPanelComponent as db, TextAdvancedPanelComponent as dc, ThemeEditorFieldsComponent as dd, ThemeGalleryComponent as de, ThemeSelectorCardComponent as df, TitleBarComponent as dg, TitleBarSearchComponent as dh, TransitionDirectionPickerComponent as di, TransitionPreviewComponent as dj, VALIGN_OPTIONS as dk, VIEWER_THEME as dl, VersionHistoryPanelComponent as dm, ViewerCanvasEditingService as dn, ViewerCollabCursorService as dp, ViewerCollaborationSessionService as dq, ViewerCompareService as dr, ViewerCustomShowsService as ds, ViewerDialogsService as dt, ViewerDocumentPropertiesService as du, ViewerExportService as dv, ViewerExtraDialogsComponent as dw, ViewerFileIOService as dx, ViewerFindReplaceService as dy, ViewerFormatPainterService as dz, AXIS_LABEL_COLOR as e, buildZoomViewModel as e$, applyFindReplacements as e0, applyFormatToElement as e1, applyMove as e2, applyResize as e3, applyTableStylePreset as e4, asMediaElement as e5, assignUserColor as e6, attachShowVisibilityPause as e7, attachTouchGestures as e8, axisTickValues as e9, buildFontFaceRule as eA, buildGradientFillCss as eB, buildGridlinesAndLabels as eC, buildHyperlinkPatch as eD, buildInkContainerStyle as eE, buildInkStrokes as eF, buildLegend as eG, buildModel3DContainerStyle as eH, buildModel3DViewModel as eI, buildOleActionModel as eJ, buildOleInfoRows as eK, buildPatternFillCss as eL, buildPrintHtmlDocument as eM, buildPropertiesPatch as eN, buildRegionMapViewModel as eO, buildSaveSlides as eP, buildShareUrl as eQ, buildSmartArtInsertElement as eR, buildSmartArtNodes as eS, buildStockViewModel as eT, buildSurfaceViewModel as eU, buildTableViewModel as eV, buildTreemapViewModel as eW, buildTrimFragment as eX, buildWaterfallViewModel as eY, buildZeroLine as eZ, buildZoomContainerStyle as e_, beginNodeEdit as ea, bevelSizePatch as eb, boolFromEvent as ec, bringForward as ed, bringToFront as ee, buildBarActions as ef, buildBroadcastConfig as eg, buildBroadcastViewerUrl as eh, buildCategoryLabels as ei, buildCellParagraphs as ej, buildChartViewModel as ek, buildChatLogExport as el, buildChatLogMarkdown as em, buildChromeStyle as en, buildClearHyperlinkPatch as eo, buildClickGroups as ep, buildColStyles as eq, buildCollaborationConfig as er, buildComboViewModel as es, buildCssGradientFromShapeStyle as et, buildDuotoneFilter as eu, buildDuotoneFilterId as ev, buildEmbeddedFontStyles as ew, buildEquationElement as ex, buildEquationSegment as ey, buildFallbackViewModel as ez, AccessibilityPanelComponent as f, computeTrendlinePrimitives as f$, bulletIndentPx as f0, canAddTopLevelNode as f1, canGroupSelection as f2, canRemoveTopLevelNode as f3, canSetStrokeWidth as f4, canStartBroadcast as f5, canStartShare as f6, canUngroupSelection as f7, canUseClipboard as f8, captionDisplayText as f9, computeBubbleRadius as fA, computeCornerHandle as fB, computeDataTablePrimitives as fC, computeDistribute as fD, computeDrawingViewBox as fE, computeErrorBarPrimitives as fF, computeFocusTargets as fG, computeHandleBoxes as fH, computeHandoutLayout as fI, computeIsMobile as fJ, computeIsTablet as fK, computeLinePoints as fL, computeLinearRegression as fM, computePageCount as fN, computePieLayout as fO, computePieSlicePath as fP, computePieSlices as fQ, computePlotLayout as fR, computeRSquared as fS, computeRadarPoints as fT, computeScatterDots as fU, computeSelectionBoxes as fV, computeSingleSelected as fW, computeSlideIndices as fX, computeSnap as fY, computeStackedBarRects as fZ, computeStackedValueRange as f_, cellRunStyle as fa, cellStyleToStyleMap as fb, cellTdStyle as fc, changeCountLabel as fd, changeIcon as fe, characterSpacingPatch as ff, checkFontAvailable as fg, clampCursorPosition as fh, clampGifDimensions as fi, clampIndex as fj, clampNotesFontSize as fk, clampScale as fl, clampStep as fm, clearAllLocalViewerData as fn, clearAudienceContent as fo, cn as fp, collectAccessibilityIssues as fq, collectElementText as fr, collectSlideText as fs, collectStoredChats as ft, collectUsedFontFamilies as fu, columnWidthStyle as fv, commitNodeText as fw, computeAlign as fx, computeAxisTitlePrimitives as fy, computeBarRects as fz, AccessibilityService as g, formatTime as g$, computeValueRange as g0, convertOmmlToMathMl as g1, copyFormatFromElement as g2, countAccessibilityIssues as g3, countAnnotationStrokes as g4, createAngularAiBridge as g5, createCustomShow as g6, createSwipeDismissDrag as g7, createWebrtcBundle as g8, createWebsocketBundle as g9, encodeGif as gA, endShowMediaCleanup as gB, estimatePageCount as gC, evenColumnWidths as gD, evenRowHeights as gE, exitPresentationFullscreen as gF, exportAiChatLogs as gG, extractPathPoints as gH, eyedropperAvailable as gI, fillColorOf as gJ, findInSlides as gK, findOwningSlideIndex as gL, findSlideIndexByElementId as gM, firstVisibleIndex as gN, fitPolynomial as gO, fitZoom as gP, focusTargetChips as gQ, fontMimeForFormat as gR, fontSizeOf as gS, forgetSessionDeck as gT, formatAutoNumber as gU, formatAxisValue as gV, formatBytes as gW, formatCursorLabel as gX, formatElapsed as gY, formatFileSize as gZ, formatPropertyDate as g_, cssObjectToStyleMap as ga, currentColorScheme as gb, currentLayout as gc, currentStyle as gd, defaultCssVars as ge, defaultRadius as gf, defaultThemeColors as gg, deleteElementsByIds as gh, deleteVersion as gi, demoteNode as gj, deriveModel3DBlobUrl as gk, derivePresenceList as gl, describeSmartArtBounds as gm, disableGlowPatch as gn, disableInnerShadowPatch as go, disableOuterShadowPatch as gp, disableReflectionPatch as gq, disableSoftEdgePatch as gr, duplicateElementById as gs, durationOf as gt, effectsStateOf as gu, enableGlowPatch as gv, enableInnerShadowPatch as gw, enableOuterShadowPatch as gx, enableReflectionPatch as gy, enableSoftEdgePatch as gz, AccountPageComponent as h, isTextElement as h$, fpsToFrameIntervalMs as h0, generateBroadcastRoomId as h1, generateCommentId as h2, generateCustomShowId as h3, generatePressureCircles as h4, generateTicks as h5, getClrChangeParams as h6, getContainerStyle as h7, getDuotoneFilterDef as h8, getImageSrc as h9, gradientStatePatch as hA, gridColumns as hB, groupElements as hC, groupIssuesBySeverity as hD, hasAnimation as hE, hasCopyableFormat as hF, hasExistingLink as hG, hasExitedFullscreen as hH, hasGradientFill as hI, hasPressureVariation as hJ, hasVisibleSlideAfter as hK, headerLabel as hL, imageDimensions as hM, inkViewBox as hN, insertTableElementColumn as hO, insertTableElementRow as hP, interpolateWidth as hQ, isAudienceTab as hR, isBold as hS, isBrowserOpenableMime as hT, isChildNode as hU, isElementInteractive as hV, isInjectableUrl as hW, isItalic as hX, isPpactionUrl as hY, isPresenterMessage as hZ, isSigned as h_, getLocalStorageUsageSummary as ha, getOleAriaLabel as hb, getOleBadgeLabel as hc, getOleDisplayName as hd, getOleDownloadFileName as he, getOleTypeColor as hf, getOleTypeLabel as hg, getPasswordStrength as hh, getPatternSvg as hi, getPlaceholderStyle as hj, getVersions as hk, getResolvedShapeClipPath as hl, getResolvedShapeClipPathFor as hm, getSessionTabId as hn, getShapeFillStrokeStyle as ho, getSlideBackgroundStyle as hp, getSlideTransitionAnimations as hq, getSmartArtNodeBounds as hr, getSpeechRecognitionCtor as hs, getTextBlockStyle as ht, getTextWarp as hu, getTouchDistance as hv, getWarpCategory as hw, getWarpPath as hx, gradientStateFromStyle as hy, gradientStateOf as hz, ActionSettingsPanelComponent as i, pickColorByClickFallback as i$, isTwoTableFocus as i0, isUnderline as i1, isUrlSafe as i2, isValidRoomId as i3, isViewportBackgroundPressTarget as i4, isZoomActivationKey as i5, issueTrackKey as i6, issueTypeLabel as i7, keyToLabel as i8, lastVisibleIndex as i9, newTextElement as iA, nextVisibleIndex as iB, nodeBold as iC, nodeEditBox as iD, nodeFillColor as iE, nodeFontColor as iF, nodeIdFromKey as iG, nodeItalic as iH, nodeStyle as iI, normalizeFontFormat as iJ, normalizeSlidesPerPage as iK, normalizeValue as iL, numFromEvent as iM, ommlToMathml as iN, ooxmlDashToCssBorderStyle as iO, openNativeEyeDropper as iP, overallStatus as iQ, paletteColor as iR, parseAudienceNonce as iS, parseNodeTextarea as iT, partitionSlides as iU, patchChartData as iV, patchChartStyle as iW, patchTableData as iX, patchTextStyle as iY, patternPresetOptions as iZ, pendingElementStyles as i_, latexToMathml as ia, linePointsToSvgString as ib, lineSpacingPatch as ic, loadAudienceContent as id, loadSessionDeck as ie, mediaFallbackFor as ig, mediaSurfaceFor as ih, mergeCaptionResults as ii, mergeDown as ij, mergeRight as ik, mergeSelection as il, moveElementBy as im, moveNodeDown as io, moveNodeUp as ip, msToFrameDelayCs as iq, narrowToCircle as ir, narrowToPolygon as is, narrowToRect as it, newChartElement as iu, newEquationElement as iv, newPresetShapeElement as iw, newShapeElement as ix, newSmartArtElement as iy, newTableElement as iz, AdvancedChartEditorComponent as j, sanitizeUserName as j$, pickFile as j0, pickSupportedMimeType as j1, planGifFrames as j2, planVideoSegments as j3, pointsToSvgPathD as j4, presenceToCursors as j5, presentationStageStyle as j6, presenterTimerProgress as j7, presetByLayout as j8, presetsForCategory as j9, requestPresentationFullscreen as jA, resizeElement as jB, resolveCaptionTracks as jC, resolveChartKind as jD, resolveFontVariant as jE, resolveHyperlinkHref as jF, resolveInteractiveElementId as jG, resolveMediaSrc as jH, resolveOleType as jI, resolveParagraphBullet as jJ, resolvePresenterNotes as jK, resolveProfileInitial as jL, resolveRegionCode as jM, resolveSlideAutoAdvanceMs as jN, resolvePalette as jO, resolveThemeCatalogEntry as jP, resolveTransitionDuration as jQ, restoreSessionDeck as jR, revealedElementStyles as jS, routeOrthogonalConnector as jT, rowStyle as jU, rulerDragToGuidePosition as jV, rulerHighlight as jW, rulerStripTicks as jX, sampleColorFromSlide as jY, sanitizeColor as jZ, sanitizeSlideIndex as j_, pressuresToWidths as ja, prevVisibleIndex as jb, projectDrawingShapes as jc, promoteNode as jd, provideViewerTheme as je, radarAngle as jf, radarRingPoints as jg, readAsDataUrl as jh, recordWebm as ji, redistributeColumnWidth as jj, registerCrossSlideAudio as jk, rememberSessionDeck as jl, removeAnimation as jm, removeCategory as jn, removeTableElementColumn as jo, removeCommentFromList as jp, removeElementAnimation as jq, removeGradientStopPatch as jr, removeNode as js, removeTableElementRow as jt, removeSeries as ju, renderToCanvas as jv, reorderAnimationDown as jw, reorderAnimationUp as jx, replaceInSlides as jy, replaceMatch as jz, AiChangeOverlayComponent as k, slideNumberOf as k$, saveViewerProfile as k0, scanAvailableFonts as k1, searchSlides as k2, seedBroadcastFields as k3, seedHyperlinkDraft as k4, seedPropertiesDraft as k5, seedShareFields as k6, segmentFrameCount as k7, selectValue$2 as k8, sendBackward as k9, setNodeText as kA, setRepeatCount as kB, setRepeatMode as kC, setSequence as kD, setSeriesChartType as kE, setSeriesColor as kF, setSeriesErrorBars as kG, setSeriesMarker as kH, setSeriesName as kI, setSeriesTrendline as kJ, setSeriesValue as kK, setStyle as kL, setTimingCurve as kM, setTitle as kN, setTrigger as kO, setTriggerShapeId as kP, shapeStylePatch as kQ, sheetAfterNavigate as kR, shouldBlockClickAdvance as kS, shouldUseSvgWarp as kT, showDirectionPicker as kU, showsTemplateAffordance as kV, signatureCountLabel as kW, signatureKey as kX, signatureTimestamp as kY, signerName as kZ, statusLabel as k_, sendToBack as ka, sequentialColorScale as kb, serializeWriteBack as kc, seriesColor as kd, setAnimationEmphasis as ke, setAnimationEntrance as kf, setAnimationExit as kg, setAxis as kh, setAxisLogScale as ki, setAxisTitleStyle as kj, setCategoryLabel as kk, setCellText as kl, setColorScheme as km, setDataLabels as kn, setDataPointExplosion as ko, setDataPointFill as kp, setDataPointLabel as kq, setDataPointMarker as kr, setDelay as ks, setDirection as kt, setDuration as ku, setElementPosition as kv, setGridlineStyle as kw, setLayout as kx, setLegend as ky, setNodeStyle as kz, AiChatPanelComponent as l, slidesWithReappliedLayout as l0, smartArtNodes as l1, paletteColour as l2, snapToGridStep as l3, splitCursorCell as l4, splitMergedCell as l5, statusKind as l6, statusLabel$1 as l7, storeAudienceContent as l8, stringFromEvent$5 as l9, updateInnerShadowPatch as lA, updateOuterShadowPatch as lB, updateReflectionPatch as lC, vAlignPatch as lD, validatePassword as lE, validatePrintSettings as lF, validateRoomId as lG, valueToY as lH, vermilionDarkColors as lI, vermilionDarkTheme as lJ, vermilionLightColors as lK, vermilionLightTheme as lL, vermilionRadius as lM, waypointsToPathD as lN, worstStatus as lO, zoomTargetSlideIndex as lP, strokeColorOf as la, strokeToInkElement as lb, strokeWidthOf as lc, styleShadowFilter as ld, textAdvancedPatch as le, textAdvancedStateFromStyle as lf, textAdvancedStateOf as lg, textColorOf as lh, textDirectionPatch as li, textStyleOf as lj, textStylePatch as lk, themeStyle as ll, themeToCssVars as lm, thumbnailHeight as ln, thumbnailZoom as lo, toggleCommentResolvedInList as lp, toggleNodeBold as lq, toggleNodeItalic as lr, toggleSheet as ls, topLevelNodeCount as lt, transformSelectedTextCase as lu, translationsEn as lv, ungroupElements as lw, updateElementById as lx, updateGlowPatch as ly, updateGradientStopPatch as lz, AiChatService as m, AiComposerComponent as n, AiFocusBarComponent as o, AiFocusHighlightOverlayComponent as p, AiHistoryMenuComponent as q, AiHistoryService as r, AiMessageListComponent as s, toChatSummary as t, AiPanelStore as u, AiProposalCardComponent as v, AiSettingsSectionComponent as w, AiToolCallCardComponent as x, AnimationAuthorPanelComponent as y, AnimationPanelComponent as z };
|
|
129060
|
+
//# sourceMappingURL=pptx-angular-viewer-pptx-angular-viewer-CfxrOZVN.mjs.map
|