pptx-react-viewer 1.14.0 → 1.15.0
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 +8 -0
- package/dist/{Model3DScene-DX7S3IM7.mjs → Model3DScene-EF72C34A.mjs} +1 -1
- package/dist/Model3DScene-EF72C34A.mjs.br +0 -0
- package/dist/Model3DScene-EF72C34A.mjs.gz +0 -0
- package/dist/{Model3DScene-2E4HO4RQ.js → Model3DScene-QIE7QZ7M.js} +2 -2
- package/dist/{Model3DScene-2E4HO4RQ.js.br → Model3DScene-QIE7QZ7M.js.br} +0 -0
- package/dist/Model3DScene-QIE7QZ7M.js.gz +0 -0
- package/dist/{PowerPointViewer-DCYB93o0.d.ts → PowerPointViewer-BsaUH3ZT.d.ts} +1 -1
- package/dist/{PowerPointViewer-Crgj0LoS.d.mts → PowerPointViewer-Nxku67uL.d.mts} +1 -1
- package/dist/{SurfaceChart3DScene-327DEJSK.js → SurfaceChart3DScene-CBUOCCEN.js} +2 -2
- package/dist/{SurfaceChart3DScene-327DEJSK.js.br → SurfaceChart3DScene-CBUOCCEN.js.br} +0 -0
- package/dist/SurfaceChart3DScene-CBUOCCEN.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-C3D3F2NN.mjs → SurfaceChart3DScene-JYCQ2DBR.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-C3D3F2NN.mjs.br → SurfaceChart3DScene-JYCQ2DBR.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-JYCQ2DBR.mjs.gz +0 -0
- package/dist/{chunk-FMB2AJD7.js → chunk-BZVYWFHS.js} +418 -573
- package/dist/chunk-BZVYWFHS.js.br +0 -0
- package/dist/chunk-BZVYWFHS.js.gz +0 -0
- package/dist/{chunk-JZP5LYN3.mjs → chunk-FHOZRWAD.mjs} +289 -1
- package/dist/chunk-FHOZRWAD.mjs.br +0 -0
- package/dist/chunk-FHOZRWAD.mjs.gz +0 -0
- package/dist/{chunk-H5KXQEQD.js → chunk-FQXZZBFJ.js} +295 -0
- package/dist/chunk-FQXZZBFJ.js.br +0 -0
- package/dist/chunk-FQXZZBFJ.js.gz +0 -0
- package/dist/{chunk-OSWE3VXS.mjs → chunk-HJQZJ3VE.mjs} +9 -0
- package/dist/chunk-HJQZJ3VE.mjs.br +0 -0
- package/dist/chunk-HJQZJ3VE.mjs.gz +0 -0
- package/dist/{chunk-TQD5XTOT.mjs → chunk-POP5TS5L.mjs} +64 -219
- package/dist/chunk-POP5TS5L.mjs.br +0 -0
- package/dist/chunk-POP5TS5L.mjs.gz +0 -0
- package/dist/{chunk-K74UOJ6P.js → chunk-WGLJ32FW.js} +9 -0
- package/dist/chunk-WGLJ32FW.js.br +0 -0
- package/dist/chunk-WGLJ32FW.js.gz +0 -0
- package/dist/{chunk-45JY7DOB.mjs → chunk-X2UMJTCM.mjs} +38 -18
- package/dist/chunk-X2UMJTCM.mjs.br +0 -0
- package/dist/chunk-X2UMJTCM.mjs.gz +0 -0
- package/dist/{chunk-55OTTA3H.js → chunk-ZDV7QRGB.js} +779 -759
- package/dist/chunk-ZDV7QRGB.js.br +0 -0
- package/dist/chunk-ZDV7QRGB.js.gz +0 -0
- package/dist/hooks-unstable.d.mts +10 -4
- package/dist/hooks-unstable.d.ts +10 -4
- package/dist/hooks-unstable.js +74 -74
- package/dist/hooks-unstable.js.br +0 -0
- package/dist/hooks-unstable.js.gz +0 -0
- package/dist/hooks-unstable.mjs +3 -3
- package/dist/hooks-unstable.mjs.br +0 -0
- package/dist/hooks-unstable.mjs.gz +0 -0
- package/dist/i18n.js +3 -3
- package/dist/i18n.js.br +1 -1
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -18
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.br +2 -1
- package/dist/index.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{types-ui-Bagu4aYj.d.mts → types-ui-NG29h55h.d.mts} +17 -6
- package/dist/{types-ui-Bagu4aYj.d.ts → types-ui-NG29h55h.d.ts} +17 -6
- package/dist/{usePresenterWindow-DxZUXXk_.d.ts → usePresenterWindow-DToCijGy.d.ts} +1 -1
- package/dist/{usePresenterWindow-BarXkdvr.d.mts → usePresenterWindow-DeTm-unp.d.mts} +1 -1
- package/dist/viewer/index.d.mts +5 -5
- package/dist/viewer/index.d.ts +5 -5
- package/dist/viewer/index.js +19 -19
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/Model3DScene-2E4HO4RQ.js.gz +0 -0
- package/dist/Model3DScene-DX7S3IM7.mjs.br +0 -0
- package/dist/Model3DScene-DX7S3IM7.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-327DEJSK.js.gz +0 -0
- package/dist/SurfaceChart3DScene-C3D3F2NN.mjs.gz +0 -0
- package/dist/chunk-45JY7DOB.mjs.br +0 -0
- package/dist/chunk-45JY7DOB.mjs.gz +0 -0
- package/dist/chunk-55OTTA3H.js.br +0 -0
- package/dist/chunk-55OTTA3H.js.gz +0 -0
- package/dist/chunk-FMB2AJD7.js.br +0 -0
- package/dist/chunk-FMB2AJD7.js.gz +0 -0
- package/dist/chunk-H5KXQEQD.js.br +0 -0
- package/dist/chunk-H5KXQEQD.js.gz +0 -0
- package/dist/chunk-JZP5LYN3.mjs.br +0 -0
- package/dist/chunk-JZP5LYN3.mjs.gz +0 -0
- package/dist/chunk-K74UOJ6P.js.br +0 -0
- package/dist/chunk-K74UOJ6P.js.gz +0 -0
- package/dist/chunk-OSWE3VXS.mjs.br +0 -0
- package/dist/chunk-OSWE3VXS.mjs.gz +0 -0
- package/dist/chunk-TQD5XTOT.mjs.br +0 -0
- package/dist/chunk-TQD5XTOT.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -11925,6 +11925,59 @@ function findTextPositionInSegment(editor, segIdx, charOffset) {
|
|
|
11925
11925
|
}
|
|
11926
11926
|
return null;
|
|
11927
11927
|
}
|
|
11928
|
+
var SENTENCE_END_RE = /([.!?]\s+)/u;
|
|
11929
|
+
function transformTextCase(text, mode) {
|
|
11930
|
+
switch (mode) {
|
|
11931
|
+
case "upper":
|
|
11932
|
+
return text.toUpperCase();
|
|
11933
|
+
case "lower":
|
|
11934
|
+
return text.toLowerCase();
|
|
11935
|
+
case "toggle":
|
|
11936
|
+
return Array.from(text).map((ch) => ch === ch.toUpperCase() ? ch.toLowerCase() : ch.toUpperCase()).join("");
|
|
11937
|
+
case "capitalize":
|
|
11938
|
+
return text.replace(
|
|
11939
|
+
/\p{L}[\p{L}\p{N}'’]*/gu,
|
|
11940
|
+
(word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
|
|
11941
|
+
);
|
|
11942
|
+
case "sentence":
|
|
11943
|
+
return text.toLowerCase().split(SENTENCE_END_RE).map((part) => {
|
|
11944
|
+
const firstLetter = part.search(/\p{L}/u);
|
|
11945
|
+
if (firstLetter === -1) {
|
|
11946
|
+
return part;
|
|
11947
|
+
}
|
|
11948
|
+
return part.slice(0, firstLetter) + part.charAt(firstLetter).toUpperCase() + part.slice(firstLetter + 1);
|
|
11949
|
+
}).join("");
|
|
11950
|
+
default:
|
|
11951
|
+
return text;
|
|
11952
|
+
}
|
|
11953
|
+
}
|
|
11954
|
+
function applyCaseTransformToSegments(segments, selection, mode) {
|
|
11955
|
+
if (!selection) {
|
|
11956
|
+
return segments.map(
|
|
11957
|
+
(seg) => seg.isParagraphBreak || seg.text === "\n" ? seg : { ...seg, text: transformTextCase(seg.text, mode) }
|
|
11958
|
+
);
|
|
11959
|
+
}
|
|
11960
|
+
const { startSegIdx, startOffset, endSegIdx, endOffset } = selection;
|
|
11961
|
+
const result = [];
|
|
11962
|
+
for (let i = 0; i < segments.length; i++) {
|
|
11963
|
+
const seg = segments[i];
|
|
11964
|
+
if (seg.isParagraphBreak || seg.text === "\n" || i < startSegIdx || i > endSegIdx) {
|
|
11965
|
+
result.push(seg);
|
|
11966
|
+
continue;
|
|
11967
|
+
}
|
|
11968
|
+
const from = i === startSegIdx ? startOffset : 0;
|
|
11969
|
+
const to = i === endSegIdx ? endOffset : seg.text.length;
|
|
11970
|
+
if (from >= to) {
|
|
11971
|
+
result.push(seg);
|
|
11972
|
+
continue;
|
|
11973
|
+
}
|
|
11974
|
+
const before = seg.text.slice(0, from);
|
|
11975
|
+
const selected = transformTextCase(seg.text.slice(from, to), mode);
|
|
11976
|
+
const after = seg.text.slice(to);
|
|
11977
|
+
result.push({ ...seg, text: before + selected + after });
|
|
11978
|
+
}
|
|
11979
|
+
return result;
|
|
11980
|
+
}
|
|
11928
11981
|
function getConnectionSites(width, height) {
|
|
11929
11982
|
return [
|
|
11930
11983
|
{ x: width / 2, y: 0, index: 0 },
|
|
@@ -16785,6 +16838,241 @@ var ARTISTIC_EFFECTS = [
|
|
|
16785
16838
|
["texturizer", "pptx.image.effectTexturizer", "contrast(110%) brightness(105%)"],
|
|
16786
16839
|
["crisscrossEtching", "pptx.image.effectCrisscross", "grayscale(60%) contrast(120%)"]
|
|
16787
16840
|
];
|
|
16841
|
+
var PASTE_OFFSET_PX = 20;
|
|
16842
|
+
function generateElementId() {
|
|
16843
|
+
return `el-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
16844
|
+
}
|
|
16845
|
+
function makeCloneId(intoTemplate, sourceId) {
|
|
16846
|
+
if (!intoTemplate) {
|
|
16847
|
+
return generateElementId();
|
|
16848
|
+
}
|
|
16849
|
+
if (sourceId.startsWith("master-")) {
|
|
16850
|
+
return `master-${generateElementId()}`;
|
|
16851
|
+
}
|
|
16852
|
+
return `layout-${generateElementId()}`;
|
|
16853
|
+
}
|
|
16854
|
+
function buildElementClipboardPayload(element, isTemplate) {
|
|
16855
|
+
return { element: structuredClone(element), isTemplate };
|
|
16856
|
+
}
|
|
16857
|
+
function cloneElementForPaste(element, options = {}) {
|
|
16858
|
+
const clone = structuredClone(element);
|
|
16859
|
+
clone.id = makeCloneId(options.intoTemplate ?? false, element.id);
|
|
16860
|
+
clone.x += options.offsetX ?? PASTE_OFFSET_PX;
|
|
16861
|
+
clone.y += options.offsetY ?? PASTE_OFFSET_PX;
|
|
16862
|
+
return clone;
|
|
16863
|
+
}
|
|
16864
|
+
var SHAPE_PRESET_DEFS = [
|
|
16865
|
+
{
|
|
16866
|
+
type: "rect",
|
|
16867
|
+
label: "Rectangle",
|
|
16868
|
+
i18nKey: "pptx.editorToolbar.shapeRectangle",
|
|
16869
|
+
glyph: "square",
|
|
16870
|
+
glyphClass: ""
|
|
16871
|
+
},
|
|
16872
|
+
{
|
|
16873
|
+
type: "roundRect",
|
|
16874
|
+
label: "Rounded",
|
|
16875
|
+
i18nKey: "pptx.shapePresets.rounded",
|
|
16876
|
+
glyph: "square",
|
|
16877
|
+
glyphClass: ""
|
|
16878
|
+
},
|
|
16879
|
+
{
|
|
16880
|
+
type: "ellipse",
|
|
16881
|
+
label: "Circle",
|
|
16882
|
+
i18nKey: "pptx.shapePresets.circle",
|
|
16883
|
+
glyph: "circle",
|
|
16884
|
+
glyphClass: ""
|
|
16885
|
+
},
|
|
16886
|
+
{
|
|
16887
|
+
type: "cylinder",
|
|
16888
|
+
label: "Cylinder",
|
|
16889
|
+
i18nKey: "pptx.shapePresets.cylinder",
|
|
16890
|
+
glyph: "database",
|
|
16891
|
+
glyphClass: ""
|
|
16892
|
+
},
|
|
16893
|
+
{
|
|
16894
|
+
type: "rtArrow",
|
|
16895
|
+
label: "Right Arrow",
|
|
16896
|
+
i18nKey: "pptx.shapePresets.rightArrow",
|
|
16897
|
+
glyph: "moveRight",
|
|
16898
|
+
glyphClass: ""
|
|
16899
|
+
},
|
|
16900
|
+
{
|
|
16901
|
+
type: "leftArrow",
|
|
16902
|
+
label: "Left Arrow",
|
|
16903
|
+
i18nKey: "pptx.shapePresets.leftArrow",
|
|
16904
|
+
glyph: "moveRight",
|
|
16905
|
+
glyphClass: "rotate-180"
|
|
16906
|
+
},
|
|
16907
|
+
{
|
|
16908
|
+
type: "upArrow",
|
|
16909
|
+
label: "Up Arrow",
|
|
16910
|
+
i18nKey: "pptx.shapePresets.upArrow",
|
|
16911
|
+
glyph: "moveRight",
|
|
16912
|
+
glyphClass: "-rotate-90"
|
|
16913
|
+
},
|
|
16914
|
+
{
|
|
16915
|
+
type: "downArrow",
|
|
16916
|
+
label: "Down Arrow",
|
|
16917
|
+
i18nKey: "pptx.shapePresets.downArrow",
|
|
16918
|
+
glyph: "moveRight",
|
|
16919
|
+
glyphClass: "rotate-90"
|
|
16920
|
+
},
|
|
16921
|
+
{
|
|
16922
|
+
type: "triangle",
|
|
16923
|
+
label: "Triangle",
|
|
16924
|
+
i18nKey: "pptx.editorToolbar.shapeTriangle",
|
|
16925
|
+
glyph: "triangle",
|
|
16926
|
+
glyphClass: ""
|
|
16927
|
+
},
|
|
16928
|
+
{
|
|
16929
|
+
type: "rtTriangle",
|
|
16930
|
+
label: "Right Triangle",
|
|
16931
|
+
i18nKey: "pptx.shapePresets.rightTriangle",
|
|
16932
|
+
glyph: "triangle",
|
|
16933
|
+
glyphClass: "rotate-90"
|
|
16934
|
+
},
|
|
16935
|
+
{
|
|
16936
|
+
type: "diamond",
|
|
16937
|
+
label: "Diamond",
|
|
16938
|
+
i18nKey: "pptx.shapePresets.diamond",
|
|
16939
|
+
glyph: "diamond",
|
|
16940
|
+
glyphClass: ""
|
|
16941
|
+
},
|
|
16942
|
+
{
|
|
16943
|
+
type: "parallelogram",
|
|
16944
|
+
label: "Parallelogram",
|
|
16945
|
+
i18nKey: "pptx.shapePresets.parallelogram",
|
|
16946
|
+
glyph: "square",
|
|
16947
|
+
glyphClass: "-skew-x-12"
|
|
16948
|
+
},
|
|
16949
|
+
{
|
|
16950
|
+
type: "trapezoid",
|
|
16951
|
+
label: "Trapezoid",
|
|
16952
|
+
i18nKey: "pptx.shapePresets.trapezoid",
|
|
16953
|
+
glyph: "square",
|
|
16954
|
+
glyphClass: ""
|
|
16955
|
+
},
|
|
16956
|
+
{
|
|
16957
|
+
type: "pentagon",
|
|
16958
|
+
label: "Pentagon",
|
|
16959
|
+
i18nKey: "pptx.shapePresets.pentagon",
|
|
16960
|
+
glyph: "diamond",
|
|
16961
|
+
glyphClass: ""
|
|
16962
|
+
},
|
|
16963
|
+
{
|
|
16964
|
+
type: "hexagon",
|
|
16965
|
+
label: "Hexagon",
|
|
16966
|
+
i18nKey: "pptx.shapePresets.hexagon",
|
|
16967
|
+
glyph: "diamond",
|
|
16968
|
+
glyphClass: ""
|
|
16969
|
+
},
|
|
16970
|
+
{
|
|
16971
|
+
type: "octagon",
|
|
16972
|
+
label: "Octagon",
|
|
16973
|
+
i18nKey: "pptx.shapePresets.octagon",
|
|
16974
|
+
glyph: "circle",
|
|
16975
|
+
glyphClass: ""
|
|
16976
|
+
},
|
|
16977
|
+
{
|
|
16978
|
+
type: "chevron",
|
|
16979
|
+
label: "Chevron",
|
|
16980
|
+
i18nKey: "pptx.shapePresets.chevron",
|
|
16981
|
+
glyph: "moveRight",
|
|
16982
|
+
glyphClass: ""
|
|
16983
|
+
},
|
|
16984
|
+
{
|
|
16985
|
+
type: "star5",
|
|
16986
|
+
label: "Star",
|
|
16987
|
+
i18nKey: "pptx.shapePresets.star",
|
|
16988
|
+
glyph: "diamond",
|
|
16989
|
+
glyphClass: "rotate-45"
|
|
16990
|
+
},
|
|
16991
|
+
{
|
|
16992
|
+
type: "star6",
|
|
16993
|
+
label: "Star 6",
|
|
16994
|
+
i18nKey: "pptx.shapePresets.star6",
|
|
16995
|
+
glyph: "diamond",
|
|
16996
|
+
glyphClass: ""
|
|
16997
|
+
},
|
|
16998
|
+
{
|
|
16999
|
+
type: "star8",
|
|
17000
|
+
label: "Star 8",
|
|
17001
|
+
i18nKey: "pptx.shapePresets.star8",
|
|
17002
|
+
glyph: "diamond",
|
|
17003
|
+
glyphClass: "rotate-45"
|
|
17004
|
+
},
|
|
17005
|
+
{
|
|
17006
|
+
type: "plus",
|
|
17007
|
+
label: "Plus",
|
|
17008
|
+
i18nKey: "pptx.shapePresets.plus",
|
|
17009
|
+
glyph: "plus",
|
|
17010
|
+
glyphClass: ""
|
|
17011
|
+
},
|
|
17012
|
+
{
|
|
17013
|
+
type: "heart",
|
|
17014
|
+
label: "Heart",
|
|
17015
|
+
i18nKey: "pptx.shapePresets.heart",
|
|
17016
|
+
glyph: "circle",
|
|
17017
|
+
glyphClass: ""
|
|
17018
|
+
},
|
|
17019
|
+
{
|
|
17020
|
+
type: "cloud",
|
|
17021
|
+
label: "Cloud",
|
|
17022
|
+
i18nKey: "pptx.shapePresets.cloud",
|
|
17023
|
+
glyph: "circle",
|
|
17024
|
+
glyphClass: ""
|
|
17025
|
+
},
|
|
17026
|
+
{
|
|
17027
|
+
type: "sun",
|
|
17028
|
+
label: "Sun",
|
|
17029
|
+
i18nKey: "pptx.shapePresets.sun",
|
|
17030
|
+
glyph: "circle",
|
|
17031
|
+
glyphClass: ""
|
|
17032
|
+
},
|
|
17033
|
+
{
|
|
17034
|
+
type: "moon",
|
|
17035
|
+
label: "Moon",
|
|
17036
|
+
i18nKey: "pptx.shapePresets.moon",
|
|
17037
|
+
glyph: "circle",
|
|
17038
|
+
glyphClass: ""
|
|
17039
|
+
},
|
|
17040
|
+
{
|
|
17041
|
+
type: "pie",
|
|
17042
|
+
label: "Pie",
|
|
17043
|
+
i18nKey: "pptx.shapePresets.pie",
|
|
17044
|
+
glyph: "circle",
|
|
17045
|
+
glyphClass: ""
|
|
17046
|
+
},
|
|
17047
|
+
{
|
|
17048
|
+
type: "plaque",
|
|
17049
|
+
label: "Plaque",
|
|
17050
|
+
i18nKey: "pptx.shapePresets.plaque",
|
|
17051
|
+
glyph: "square",
|
|
17052
|
+
glyphClass: ""
|
|
17053
|
+
},
|
|
17054
|
+
{
|
|
17055
|
+
type: "teardrop",
|
|
17056
|
+
label: "Teardrop",
|
|
17057
|
+
i18nKey: "pptx.shapePresets.teardrop",
|
|
17058
|
+
glyph: "circle",
|
|
17059
|
+
glyphClass: ""
|
|
17060
|
+
},
|
|
17061
|
+
{
|
|
17062
|
+
type: "line",
|
|
17063
|
+
label: "Line",
|
|
17064
|
+
i18nKey: "pptx.shapePresets.line",
|
|
17065
|
+
glyph: "minus",
|
|
17066
|
+
glyphClass: ""
|
|
17067
|
+
},
|
|
17068
|
+
{
|
|
17069
|
+
type: "connector",
|
|
17070
|
+
label: "Connector",
|
|
17071
|
+
i18nKey: "pptx.elementType.connector",
|
|
17072
|
+
glyph: "moveRight",
|
|
17073
|
+
glyphClass: ""
|
|
17074
|
+
}
|
|
17075
|
+
];
|
|
16788
17076
|
function resolveTitleBarStatusKey(input) {
|
|
16789
17077
|
const { autosaveState, isDirty, autosaveEnabled, disabledReason } = input;
|
|
16790
17078
|
if (autosaveState === "disabled") {
|
|
@@ -18716,4 +19004,4 @@ function segmentFrameCount(durationMs, fps) {
|
|
|
18716
19004
|
return Math.max(1, Math.ceil(durationMs / (1e3 / fps)));
|
|
18717
19005
|
}
|
|
18718
19006
|
|
|
18719
|
-
export { ACTION_BUTTON_PRESETS, ARTISTIC_EFFECTS, BROADCAST_THROTTLE_MS, CATEGORIES, CONNECTION_TIMEOUT_MS, DEFAULT_BROADCAST_SERVER_URL, DEFAULT_COLOR_CHANGE_TOLERANCE, DEFAULT_INSERT_CHART_TYPE, DEFAULT_ROW_HEIGHT, DIRECTIONAL_PRESETS, DUOTONE_PRESETS, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, FILL_MODE_OPTIONS, GRADIENT_TYPE_OPTIONS, HANDOUT_OPTIONS, INITIAL_SYNC_GRACE_MS, INK_REPLAY_KEYFRAMES, INSERT_CHART_TYPES, LBL, LOCAL_SYNC_ORIGIN, MOBILE_BREAKPOINT, NOTES_FONT_SIZE_DEFAULT, NOTES_FONT_SIZE_MAX, NOTES_FONT_SIZE_MIN, NOTES_FONT_SIZE_STEP, NUM, PATTERN_OPTIONS, PRESETS, RULER_FONT_SIZE, RULER_THICKNESS, SECTION_HEADING, SEL, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, TABLE_STYLE_PRESETS, TAB_ROW_ACTION_CLASSES, TEXT_BUILD_ID_SEP, THEME_COLOR_LABELS, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, TimelineEngine, WEBM_MIME_CANDIDATES, addSection, alignElements, apply3dEffects, applyColorChange, applyDuotone, applyFormatToElement, applyReroutedConnectors, applyResize, applyStyleToSelectedSegments, bringForward, bringToFront, build3DExtrusionData, buildBroadcastViewerUrl, buildCacheKey, buildChartViewModel, buildCssGradientFromShapeStyle, buildDuotoneCacheKey, buildGlowBoxShadow, buildHandoutsHtml, buildInitialGuides, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildNotesHtml, buildNotesPdfBytes, buildOutlineHtml, buildPatternFillCss, buildPreviewAnimation, buildPrintDocument, buildPrintHtmlDocument, buildReflectionCss, buildShadowCssFromShapeStyle, buildSlidesHtml, buildSlidesPdfBytes, buildSmartArt3DModel, buildSmartArtA11y, buildSmartArtPresetData, buildTextBody3DSceneStyle, buildTextFillCss, buildTextReflectionCss, buildTextRunFilterChain, buildTextShadowCss, buildThemeColorGrid, canvasToJpegData, chartPartToAttrs, clampCropValue, clampNotesFontSize, clampPercent, clampUnitInterval, cloneHistorySnapshot, cloneSlide, cloneTemplateElementsBySlideId, collectImagePaths, collectMediaElements, colorWithOpacity, comparePresentation, computeAllNotesPages, computeAutoFitTextStyle, computeColumnBoundaries, computeHandoutLayout, computeInlineEditorRect, computeKeyboardInset, computeLayout, computeLayoutOptions, computeMarqueeHitIds, computeMergeCellDown, computeMergeCellRight, computeResizedColumnWidths, computeResizedRowHeight, computeScrollDelta, computeSelectionRect, computeSmartArtLayout, computeSnapToShape, computeSplitCell, computeValueRange, computeValueRangeForChart, convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, copyFormatFromElement, countTextSegments, createBlankSlide, createDefaultChartElement, createTouchGestureRecognizer, defaultCssVars, defaultRadius, defaultThemeColors, deleteSection, deleteTableColumn, deleteTableRow, derivePresenceList, detectOrientation, detectTouchDevice, distributeElements, downloadBlob, downloadDataUrl, dragAnchorViewY, dragValueForPart, encodeGif, expandTextBuildAnimations, extractPathPoints, filterCommands, findChartPartTarget, findSmartArtNodeText, formatAxisValue, formatAxisValueWithUnits, formatBytes, formatCommentTimestamp, formatElapsed, formatMobileElapsed, formatRelativeTime, formatSlideCounter, formatTime, formatVersionTimestamp, fpsToFrameIntervalMs, generateBroadcastRoomId, generateLogTicks, generateNoteLineCount, generatePressureCircles, generateTicks, getAnimationInitialStyle, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getChartStylePalette, getCommentMarkerPosition, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineWidths, getConnectionSites, getContentPartReplayStyles, getCssBorderDashStyle, getDisplayUnitLabel, getDuotoneCachedResult, getEffectDagFilter, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getInlineEditorSelection, getKinsokuLineBreakStyles, getNotesPrintableArea, getOleBadgeLabel, getOleTypeColor, getOleTypeLabel, getPatternSvg, getPendingSelectionRestore, getPrintableArea, getResolvedShapeClipPath, getRoundRectRadiusPx, getSecondaryValueAxis, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, getSvgStrokeDasharray, getTextAlphaOpacity, getTextCompensationTransform, getWarpPath, groupElements, groupIntoParagraphs, hasCopyableFormat, hasDistinctScriptFonts, hasPressureVariation, insertTableColumn, insertTableRow, isBrowserOpenableMime, isCellInRect, isEditableTextElement, isExportAbortError, isFirstSlide, isKeyboardOpen, isLastSlide, isMixedContentBlocked, isMobileViewport, isPpactionUrl, isTemplateElement, isTemplateElementId, isUrlSafe, makeSlideId, mergeAdditiveSelection, mergeCells, mobileElapsedSince, mobileSlideCounter, mountModel3D, mountSurfaceChart3D, moveSectionDown, moveSectionUp, moveSlidesToSection, newTableElement, normalizeColorsForCapture, normalizeHexColor, normalizeStrokeDashType, normalizeValue, notesSegmentsToSpans, observeYDocSlides, ooxmlDashToCssBorderStyle, openPptxFile, openUrlInNewTab, paletteColor, parseDrawingColor, parseDrawingColorOpacity, parsePpactionUrl, pickSupportedMimeType, preprocessCssForCapture, pressuresToWidths, readSlidesFromYDoc, readViewportMetrics, rebuildDrawingShapesIfCleared, reconcileSlidesInYDoc, recordProgressPercent, rectToCells, remapTextToSegments, renameSection, rerouteConnectorsForMovedElements, resolveCssTextAlign, resolveDrawingShapeNodeId, resolveFontForScript, resolveInkColor, resolveInkOpacity, resolveInkWidth, resolveLineHeight, resolveOleType, resolveParagraphAlign, resolveParagraphRtl, resolveRegionCode, resolveTitleBarStatusKey, resolveTransitionDurationMs, resolveTransportForServerUrl, resolveUnderlineDecorationStyle, restoreSegmentSelection, safeOpenUrl, sanitizeColor, sanitizeDownloadFilename, sanitizeMathMl, saveAutosaveSnapshot, secureRandomUuid, segmentByScript, segmentFrameCount, sendBackward, sendToBack, sequentialColorScale, seriesColor, setCachedResult, setDuotoneCachedResult, setPendingSelectionRestore, shadeColor2, shouldCommitSmartArtNodeText, shouldUseSvgWarp, slideProgressPercent, slideStatusLabel, snapBoxToGrid, splitCell, splitSeriesByAxis, substituteFieldText, svgLineCap, themeToCssVars, tintColor2, toCssTextOrientation, toCssVerticalDirection, toCssWritingMode, validateRoomId, valueToY, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, withChartPointValue, withChartTitle };
|
|
19007
|
+
export { ACTION_BUTTON_PRESETS, ARTISTIC_EFFECTS, BROADCAST_THROTTLE_MS, CATEGORIES, CONNECTION_TIMEOUT_MS, DEFAULT_BROADCAST_SERVER_URL, DEFAULT_COLOR_CHANGE_TOLERANCE, DEFAULT_INSERT_CHART_TYPE, DEFAULT_ROW_HEIGHT, DIRECTIONAL_PRESETS, DUOTONE_PRESETS, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, FILL_MODE_OPTIONS, GRADIENT_TYPE_OPTIONS, HANDOUT_OPTIONS, INITIAL_SYNC_GRACE_MS, INK_REPLAY_KEYFRAMES, INSERT_CHART_TYPES, LBL, LOCAL_SYNC_ORIGIN, MOBILE_BREAKPOINT, NOTES_FONT_SIZE_DEFAULT, NOTES_FONT_SIZE_MAX, NOTES_FONT_SIZE_MIN, NOTES_FONT_SIZE_STEP, NUM, PATTERN_OPTIONS, PRESETS, RULER_FONT_SIZE, RULER_THICKNESS, SECTION_HEADING, SEL, SHAPE_PRESET_DEFS, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, TABLE_STYLE_PRESETS, TAB_ROW_ACTION_CLASSES, TEXT_BUILD_ID_SEP, THEME_COLOR_LABELS, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, TimelineEngine, WEBM_MIME_CANDIDATES, addSection, alignElements, apply3dEffects, applyCaseTransformToSegments, applyColorChange, applyDuotone, applyFormatToElement, applyReroutedConnectors, applyResize, applyStyleToSelectedSegments, bringForward, bringToFront, build3DExtrusionData, buildBroadcastViewerUrl, buildCacheKey, buildChartViewModel, buildCssGradientFromShapeStyle, buildDuotoneCacheKey, buildElementClipboardPayload, buildGlowBoxShadow, buildHandoutsHtml, buildInitialGuides, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildNotesHtml, buildNotesPdfBytes, buildOutlineHtml, buildPatternFillCss, buildPreviewAnimation, buildPrintDocument, buildPrintHtmlDocument, buildReflectionCss, buildShadowCssFromShapeStyle, buildSlidesHtml, buildSlidesPdfBytes, buildSmartArt3DModel, buildSmartArtA11y, buildSmartArtPresetData, buildTextBody3DSceneStyle, buildTextFillCss, buildTextReflectionCss, buildTextRunFilterChain, buildTextShadowCss, buildThemeColorGrid, canvasToJpegData, chartPartToAttrs, clampCropValue, clampNotesFontSize, clampPercent, clampUnitInterval, cloneElementForPaste, cloneHistorySnapshot, cloneSlide, cloneTemplateElementsBySlideId, collectImagePaths, collectMediaElements, colorWithOpacity, comparePresentation, computeAllNotesPages, computeAutoFitTextStyle, computeColumnBoundaries, computeHandoutLayout, computeInlineEditorRect, computeKeyboardInset, computeLayout, computeLayoutOptions, computeMarqueeHitIds, computeMergeCellDown, computeMergeCellRight, computeResizedColumnWidths, computeResizedRowHeight, computeScrollDelta, computeSelectionRect, computeSmartArtLayout, computeSnapToShape, computeSplitCell, computeValueRange, computeValueRangeForChart, convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, copyFormatFromElement, countTextSegments, createBlankSlide, createDefaultChartElement, createTouchGestureRecognizer, defaultCssVars, defaultRadius, defaultThemeColors, deleteSection, deleteTableColumn, deleteTableRow, derivePresenceList, detectOrientation, detectTouchDevice, distributeElements, downloadBlob, downloadDataUrl, dragAnchorViewY, dragValueForPart, encodeGif, expandTextBuildAnimations, extractPathPoints, filterCommands, findChartPartTarget, findSmartArtNodeText, formatAxisValue, formatAxisValueWithUnits, formatBytes, formatCommentTimestamp, formatElapsed, formatMobileElapsed, formatRelativeTime, formatSlideCounter, formatTime, formatVersionTimestamp, fpsToFrameIntervalMs, generateBroadcastRoomId, generateElementId, generateLogTicks, generateNoteLineCount, generatePressureCircles, generateTicks, getAnimationInitialStyle, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getChartStylePalette, getCommentMarkerPosition, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineWidths, getConnectionSites, getContentPartReplayStyles, getCssBorderDashStyle, getDisplayUnitLabel, getDuotoneCachedResult, getEffectDagFilter, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getInlineEditorSelection, getKinsokuLineBreakStyles, getNotesPrintableArea, getOleBadgeLabel, getOleTypeColor, getOleTypeLabel, getPatternSvg, getPendingSelectionRestore, getPrintableArea, getResolvedShapeClipPath, getRoundRectRadiusPx, getSecondaryValueAxis, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, getSvgStrokeDasharray, getTextAlphaOpacity, getTextCompensationTransform, getWarpPath, groupElements, groupIntoParagraphs, hasCopyableFormat, hasDistinctScriptFonts, hasPressureVariation, insertTableColumn, insertTableRow, isBrowserOpenableMime, isCellInRect, isEditableTextElement, isExportAbortError, isFirstSlide, isKeyboardOpen, isLastSlide, isMixedContentBlocked, isMobileViewport, isPpactionUrl, isTemplateElement, isTemplateElementId, isUrlSafe, makeCloneId, makeSlideId, mergeAdditiveSelection, mergeCells, mobileElapsedSince, mobileSlideCounter, mountModel3D, mountSurfaceChart3D, moveSectionDown, moveSectionUp, moveSlidesToSection, newTableElement, normalizeColorsForCapture, normalizeHexColor, normalizeStrokeDashType, normalizeValue, notesSegmentsToSpans, observeYDocSlides, ooxmlDashToCssBorderStyle, openPptxFile, openUrlInNewTab, paletteColor, parseDrawingColor, parseDrawingColorOpacity, parsePpactionUrl, pickSupportedMimeType, preprocessCssForCapture, pressuresToWidths, readSlidesFromYDoc, readViewportMetrics, rebuildDrawingShapesIfCleared, reconcileSlidesInYDoc, recordProgressPercent, rectToCells, remapTextToSegments, renameSection, rerouteConnectorsForMovedElements, resolveCssTextAlign, resolveDrawingShapeNodeId, resolveFontForScript, resolveInkColor, resolveInkOpacity, resolveInkWidth, resolveLineHeight, resolveOleType, resolveParagraphAlign, resolveParagraphRtl, resolveRegionCode, resolveTitleBarStatusKey, resolveTransitionDurationMs, resolveTransportForServerUrl, resolveUnderlineDecorationStyle, restoreSegmentSelection, safeOpenUrl, sanitizeColor, sanitizeDownloadFilename, sanitizeMathMl, saveAutosaveSnapshot, secureRandomUuid, segmentByScript, segmentFrameCount, sendBackward, sendToBack, sequentialColorScale, seriesColor, setCachedResult, setDuotoneCachedResult, setPendingSelectionRestore, shadeColor2, shouldCommitSmartArtNodeText, shouldUseSvgWarp, slideProgressPercent, slideStatusLabel, snapBoxToGrid, splitCell, splitSeriesByAxis, substituteFieldText, svgLineCap, themeToCssVars, tintColor2, toCssTextOrientation, toCssVerticalDirection, toCssWritingMode, transformTextCase, validateRoomId, valueToY, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, withChartPointValue, withChartTitle };
|
|
Binary file
|
|
Binary file
|
|
@@ -11931,6 +11931,59 @@ function findTextPositionInSegment(editor, segIdx, charOffset) {
|
|
|
11931
11931
|
}
|
|
11932
11932
|
return null;
|
|
11933
11933
|
}
|
|
11934
|
+
var SENTENCE_END_RE = /([.!?]\s+)/u;
|
|
11935
|
+
function transformTextCase(text, mode) {
|
|
11936
|
+
switch (mode) {
|
|
11937
|
+
case "upper":
|
|
11938
|
+
return text.toUpperCase();
|
|
11939
|
+
case "lower":
|
|
11940
|
+
return text.toLowerCase();
|
|
11941
|
+
case "toggle":
|
|
11942
|
+
return Array.from(text).map((ch) => ch === ch.toUpperCase() ? ch.toLowerCase() : ch.toUpperCase()).join("");
|
|
11943
|
+
case "capitalize":
|
|
11944
|
+
return text.replace(
|
|
11945
|
+
/\p{L}[\p{L}\p{N}'’]*/gu,
|
|
11946
|
+
(word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
|
|
11947
|
+
);
|
|
11948
|
+
case "sentence":
|
|
11949
|
+
return text.toLowerCase().split(SENTENCE_END_RE).map((part) => {
|
|
11950
|
+
const firstLetter = part.search(/\p{L}/u);
|
|
11951
|
+
if (firstLetter === -1) {
|
|
11952
|
+
return part;
|
|
11953
|
+
}
|
|
11954
|
+
return part.slice(0, firstLetter) + part.charAt(firstLetter).toUpperCase() + part.slice(firstLetter + 1);
|
|
11955
|
+
}).join("");
|
|
11956
|
+
default:
|
|
11957
|
+
return text;
|
|
11958
|
+
}
|
|
11959
|
+
}
|
|
11960
|
+
function applyCaseTransformToSegments(segments, selection, mode) {
|
|
11961
|
+
if (!selection) {
|
|
11962
|
+
return segments.map(
|
|
11963
|
+
(seg) => seg.isParagraphBreak || seg.text === "\n" ? seg : { ...seg, text: transformTextCase(seg.text, mode) }
|
|
11964
|
+
);
|
|
11965
|
+
}
|
|
11966
|
+
const { startSegIdx, startOffset, endSegIdx, endOffset } = selection;
|
|
11967
|
+
const result = [];
|
|
11968
|
+
for (let i = 0; i < segments.length; i++) {
|
|
11969
|
+
const seg = segments[i];
|
|
11970
|
+
if (seg.isParagraphBreak || seg.text === "\n" || i < startSegIdx || i > endSegIdx) {
|
|
11971
|
+
result.push(seg);
|
|
11972
|
+
continue;
|
|
11973
|
+
}
|
|
11974
|
+
const from = i === startSegIdx ? startOffset : 0;
|
|
11975
|
+
const to = i === endSegIdx ? endOffset : seg.text.length;
|
|
11976
|
+
if (from >= to) {
|
|
11977
|
+
result.push(seg);
|
|
11978
|
+
continue;
|
|
11979
|
+
}
|
|
11980
|
+
const before = seg.text.slice(0, from);
|
|
11981
|
+
const selected = transformTextCase(seg.text.slice(from, to), mode);
|
|
11982
|
+
const after = seg.text.slice(to);
|
|
11983
|
+
result.push({ ...seg, text: before + selected + after });
|
|
11984
|
+
}
|
|
11985
|
+
return result;
|
|
11986
|
+
}
|
|
11934
11987
|
function getConnectionSites(width, height) {
|
|
11935
11988
|
return [
|
|
11936
11989
|
{ x: width / 2, y: 0, index: 0 },
|
|
@@ -16791,6 +16844,241 @@ var ARTISTIC_EFFECTS = [
|
|
|
16791
16844
|
["texturizer", "pptx.image.effectTexturizer", "contrast(110%) brightness(105%)"],
|
|
16792
16845
|
["crisscrossEtching", "pptx.image.effectCrisscross", "grayscale(60%) contrast(120%)"]
|
|
16793
16846
|
];
|
|
16847
|
+
var PASTE_OFFSET_PX = 20;
|
|
16848
|
+
function generateElementId() {
|
|
16849
|
+
return `el-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
16850
|
+
}
|
|
16851
|
+
function makeCloneId(intoTemplate, sourceId) {
|
|
16852
|
+
if (!intoTemplate) {
|
|
16853
|
+
return generateElementId();
|
|
16854
|
+
}
|
|
16855
|
+
if (sourceId.startsWith("master-")) {
|
|
16856
|
+
return `master-${generateElementId()}`;
|
|
16857
|
+
}
|
|
16858
|
+
return `layout-${generateElementId()}`;
|
|
16859
|
+
}
|
|
16860
|
+
function buildElementClipboardPayload(element, isTemplate) {
|
|
16861
|
+
return { element: structuredClone(element), isTemplate };
|
|
16862
|
+
}
|
|
16863
|
+
function cloneElementForPaste(element, options = {}) {
|
|
16864
|
+
const clone = structuredClone(element);
|
|
16865
|
+
clone.id = makeCloneId(options.intoTemplate ?? false, element.id);
|
|
16866
|
+
clone.x += options.offsetX ?? PASTE_OFFSET_PX;
|
|
16867
|
+
clone.y += options.offsetY ?? PASTE_OFFSET_PX;
|
|
16868
|
+
return clone;
|
|
16869
|
+
}
|
|
16870
|
+
var SHAPE_PRESET_DEFS = [
|
|
16871
|
+
{
|
|
16872
|
+
type: "rect",
|
|
16873
|
+
label: "Rectangle",
|
|
16874
|
+
i18nKey: "pptx.editorToolbar.shapeRectangle",
|
|
16875
|
+
glyph: "square",
|
|
16876
|
+
glyphClass: ""
|
|
16877
|
+
},
|
|
16878
|
+
{
|
|
16879
|
+
type: "roundRect",
|
|
16880
|
+
label: "Rounded",
|
|
16881
|
+
i18nKey: "pptx.shapePresets.rounded",
|
|
16882
|
+
glyph: "square",
|
|
16883
|
+
glyphClass: ""
|
|
16884
|
+
},
|
|
16885
|
+
{
|
|
16886
|
+
type: "ellipse",
|
|
16887
|
+
label: "Circle",
|
|
16888
|
+
i18nKey: "pptx.shapePresets.circle",
|
|
16889
|
+
glyph: "circle",
|
|
16890
|
+
glyphClass: ""
|
|
16891
|
+
},
|
|
16892
|
+
{
|
|
16893
|
+
type: "cylinder",
|
|
16894
|
+
label: "Cylinder",
|
|
16895
|
+
i18nKey: "pptx.shapePresets.cylinder",
|
|
16896
|
+
glyph: "database",
|
|
16897
|
+
glyphClass: ""
|
|
16898
|
+
},
|
|
16899
|
+
{
|
|
16900
|
+
type: "rtArrow",
|
|
16901
|
+
label: "Right Arrow",
|
|
16902
|
+
i18nKey: "pptx.shapePresets.rightArrow",
|
|
16903
|
+
glyph: "moveRight",
|
|
16904
|
+
glyphClass: ""
|
|
16905
|
+
},
|
|
16906
|
+
{
|
|
16907
|
+
type: "leftArrow",
|
|
16908
|
+
label: "Left Arrow",
|
|
16909
|
+
i18nKey: "pptx.shapePresets.leftArrow",
|
|
16910
|
+
glyph: "moveRight",
|
|
16911
|
+
glyphClass: "rotate-180"
|
|
16912
|
+
},
|
|
16913
|
+
{
|
|
16914
|
+
type: "upArrow",
|
|
16915
|
+
label: "Up Arrow",
|
|
16916
|
+
i18nKey: "pptx.shapePresets.upArrow",
|
|
16917
|
+
glyph: "moveRight",
|
|
16918
|
+
glyphClass: "-rotate-90"
|
|
16919
|
+
},
|
|
16920
|
+
{
|
|
16921
|
+
type: "downArrow",
|
|
16922
|
+
label: "Down Arrow",
|
|
16923
|
+
i18nKey: "pptx.shapePresets.downArrow",
|
|
16924
|
+
glyph: "moveRight",
|
|
16925
|
+
glyphClass: "rotate-90"
|
|
16926
|
+
},
|
|
16927
|
+
{
|
|
16928
|
+
type: "triangle",
|
|
16929
|
+
label: "Triangle",
|
|
16930
|
+
i18nKey: "pptx.editorToolbar.shapeTriangle",
|
|
16931
|
+
glyph: "triangle",
|
|
16932
|
+
glyphClass: ""
|
|
16933
|
+
},
|
|
16934
|
+
{
|
|
16935
|
+
type: "rtTriangle",
|
|
16936
|
+
label: "Right Triangle",
|
|
16937
|
+
i18nKey: "pptx.shapePresets.rightTriangle",
|
|
16938
|
+
glyph: "triangle",
|
|
16939
|
+
glyphClass: "rotate-90"
|
|
16940
|
+
},
|
|
16941
|
+
{
|
|
16942
|
+
type: "diamond",
|
|
16943
|
+
label: "Diamond",
|
|
16944
|
+
i18nKey: "pptx.shapePresets.diamond",
|
|
16945
|
+
glyph: "diamond",
|
|
16946
|
+
glyphClass: ""
|
|
16947
|
+
},
|
|
16948
|
+
{
|
|
16949
|
+
type: "parallelogram",
|
|
16950
|
+
label: "Parallelogram",
|
|
16951
|
+
i18nKey: "pptx.shapePresets.parallelogram",
|
|
16952
|
+
glyph: "square",
|
|
16953
|
+
glyphClass: "-skew-x-12"
|
|
16954
|
+
},
|
|
16955
|
+
{
|
|
16956
|
+
type: "trapezoid",
|
|
16957
|
+
label: "Trapezoid",
|
|
16958
|
+
i18nKey: "pptx.shapePresets.trapezoid",
|
|
16959
|
+
glyph: "square",
|
|
16960
|
+
glyphClass: ""
|
|
16961
|
+
},
|
|
16962
|
+
{
|
|
16963
|
+
type: "pentagon",
|
|
16964
|
+
label: "Pentagon",
|
|
16965
|
+
i18nKey: "pptx.shapePresets.pentagon",
|
|
16966
|
+
glyph: "diamond",
|
|
16967
|
+
glyphClass: ""
|
|
16968
|
+
},
|
|
16969
|
+
{
|
|
16970
|
+
type: "hexagon",
|
|
16971
|
+
label: "Hexagon",
|
|
16972
|
+
i18nKey: "pptx.shapePresets.hexagon",
|
|
16973
|
+
glyph: "diamond",
|
|
16974
|
+
glyphClass: ""
|
|
16975
|
+
},
|
|
16976
|
+
{
|
|
16977
|
+
type: "octagon",
|
|
16978
|
+
label: "Octagon",
|
|
16979
|
+
i18nKey: "pptx.shapePresets.octagon",
|
|
16980
|
+
glyph: "circle",
|
|
16981
|
+
glyphClass: ""
|
|
16982
|
+
},
|
|
16983
|
+
{
|
|
16984
|
+
type: "chevron",
|
|
16985
|
+
label: "Chevron",
|
|
16986
|
+
i18nKey: "pptx.shapePresets.chevron",
|
|
16987
|
+
glyph: "moveRight",
|
|
16988
|
+
glyphClass: ""
|
|
16989
|
+
},
|
|
16990
|
+
{
|
|
16991
|
+
type: "star5",
|
|
16992
|
+
label: "Star",
|
|
16993
|
+
i18nKey: "pptx.shapePresets.star",
|
|
16994
|
+
glyph: "diamond",
|
|
16995
|
+
glyphClass: "rotate-45"
|
|
16996
|
+
},
|
|
16997
|
+
{
|
|
16998
|
+
type: "star6",
|
|
16999
|
+
label: "Star 6",
|
|
17000
|
+
i18nKey: "pptx.shapePresets.star6",
|
|
17001
|
+
glyph: "diamond",
|
|
17002
|
+
glyphClass: ""
|
|
17003
|
+
},
|
|
17004
|
+
{
|
|
17005
|
+
type: "star8",
|
|
17006
|
+
label: "Star 8",
|
|
17007
|
+
i18nKey: "pptx.shapePresets.star8",
|
|
17008
|
+
glyph: "diamond",
|
|
17009
|
+
glyphClass: "rotate-45"
|
|
17010
|
+
},
|
|
17011
|
+
{
|
|
17012
|
+
type: "plus",
|
|
17013
|
+
label: "Plus",
|
|
17014
|
+
i18nKey: "pptx.shapePresets.plus",
|
|
17015
|
+
glyph: "plus",
|
|
17016
|
+
glyphClass: ""
|
|
17017
|
+
},
|
|
17018
|
+
{
|
|
17019
|
+
type: "heart",
|
|
17020
|
+
label: "Heart",
|
|
17021
|
+
i18nKey: "pptx.shapePresets.heart",
|
|
17022
|
+
glyph: "circle",
|
|
17023
|
+
glyphClass: ""
|
|
17024
|
+
},
|
|
17025
|
+
{
|
|
17026
|
+
type: "cloud",
|
|
17027
|
+
label: "Cloud",
|
|
17028
|
+
i18nKey: "pptx.shapePresets.cloud",
|
|
17029
|
+
glyph: "circle",
|
|
17030
|
+
glyphClass: ""
|
|
17031
|
+
},
|
|
17032
|
+
{
|
|
17033
|
+
type: "sun",
|
|
17034
|
+
label: "Sun",
|
|
17035
|
+
i18nKey: "pptx.shapePresets.sun",
|
|
17036
|
+
glyph: "circle",
|
|
17037
|
+
glyphClass: ""
|
|
17038
|
+
},
|
|
17039
|
+
{
|
|
17040
|
+
type: "moon",
|
|
17041
|
+
label: "Moon",
|
|
17042
|
+
i18nKey: "pptx.shapePresets.moon",
|
|
17043
|
+
glyph: "circle",
|
|
17044
|
+
glyphClass: ""
|
|
17045
|
+
},
|
|
17046
|
+
{
|
|
17047
|
+
type: "pie",
|
|
17048
|
+
label: "Pie",
|
|
17049
|
+
i18nKey: "pptx.shapePresets.pie",
|
|
17050
|
+
glyph: "circle",
|
|
17051
|
+
glyphClass: ""
|
|
17052
|
+
},
|
|
17053
|
+
{
|
|
17054
|
+
type: "plaque",
|
|
17055
|
+
label: "Plaque",
|
|
17056
|
+
i18nKey: "pptx.shapePresets.plaque",
|
|
17057
|
+
glyph: "square",
|
|
17058
|
+
glyphClass: ""
|
|
17059
|
+
},
|
|
17060
|
+
{
|
|
17061
|
+
type: "teardrop",
|
|
17062
|
+
label: "Teardrop",
|
|
17063
|
+
i18nKey: "pptx.shapePresets.teardrop",
|
|
17064
|
+
glyph: "circle",
|
|
17065
|
+
glyphClass: ""
|
|
17066
|
+
},
|
|
17067
|
+
{
|
|
17068
|
+
type: "line",
|
|
17069
|
+
label: "Line",
|
|
17070
|
+
i18nKey: "pptx.shapePresets.line",
|
|
17071
|
+
glyph: "minus",
|
|
17072
|
+
glyphClass: ""
|
|
17073
|
+
},
|
|
17074
|
+
{
|
|
17075
|
+
type: "connector",
|
|
17076
|
+
label: "Connector",
|
|
17077
|
+
i18nKey: "pptx.elementType.connector",
|
|
17078
|
+
glyph: "moveRight",
|
|
17079
|
+
glyphClass: ""
|
|
17080
|
+
}
|
|
17081
|
+
];
|
|
16794
17082
|
function resolveTitleBarStatusKey(input) {
|
|
16795
17083
|
const { autosaveState, isDirty, autosaveEnabled, disabledReason } = input;
|
|
16796
17084
|
if (autosaveState === "disabled") {
|
|
@@ -18755,6 +19043,7 @@ exports.RULER_FONT_SIZE = RULER_FONT_SIZE;
|
|
|
18755
19043
|
exports.RULER_THICKNESS = RULER_THICKNESS;
|
|
18756
19044
|
exports.SECTION_HEADING = SECTION_HEADING;
|
|
18757
19045
|
exports.SEL = SEL;
|
|
19046
|
+
exports.SHAPE_PRESET_DEFS = SHAPE_PRESET_DEFS;
|
|
18758
19047
|
exports.SLIDE_TRANSITION_KEYFRAMES = SLIDE_TRANSITION_KEYFRAMES;
|
|
18759
19048
|
exports.TABLET_BREAKPOINT = TABLET_BREAKPOINT;
|
|
18760
19049
|
exports.TABLE_STYLE_PRESETS = TABLE_STYLE_PRESETS;
|
|
@@ -18768,6 +19057,7 @@ exports.WEBM_MIME_CANDIDATES = WEBM_MIME_CANDIDATES;
|
|
|
18768
19057
|
exports.addSection = addSection;
|
|
18769
19058
|
exports.alignElements = alignElements;
|
|
18770
19059
|
exports.apply3dEffects = apply3dEffects;
|
|
19060
|
+
exports.applyCaseTransformToSegments = applyCaseTransformToSegments;
|
|
18771
19061
|
exports.applyColorChange = applyColorChange;
|
|
18772
19062
|
exports.applyDuotone = applyDuotone;
|
|
18773
19063
|
exports.applyFormatToElement = applyFormatToElement;
|
|
@@ -18782,6 +19072,7 @@ exports.buildCacheKey = buildCacheKey;
|
|
|
18782
19072
|
exports.buildChartViewModel = buildChartViewModel;
|
|
18783
19073
|
exports.buildCssGradientFromShapeStyle = buildCssGradientFromShapeStyle;
|
|
18784
19074
|
exports.buildDuotoneCacheKey = buildDuotoneCacheKey;
|
|
19075
|
+
exports.buildElementClipboardPayload = buildElementClipboardPayload;
|
|
18785
19076
|
exports.buildGlowBoxShadow = buildGlowBoxShadow;
|
|
18786
19077
|
exports.buildHandoutsHtml = buildHandoutsHtml;
|
|
18787
19078
|
exports.buildInitialGuides = buildInitialGuides;
|
|
@@ -18813,6 +19104,7 @@ exports.clampCropValue = clampCropValue;
|
|
|
18813
19104
|
exports.clampNotesFontSize = clampNotesFontSize;
|
|
18814
19105
|
exports.clampPercent = clampPercent;
|
|
18815
19106
|
exports.clampUnitInterval = clampUnitInterval;
|
|
19107
|
+
exports.cloneElementForPaste = cloneElementForPaste;
|
|
18816
19108
|
exports.cloneHistorySnapshot = cloneHistorySnapshot;
|
|
18817
19109
|
exports.cloneSlide = cloneSlide;
|
|
18818
19110
|
exports.cloneTemplateElementsBySlideId = cloneTemplateElementsBySlideId;
|
|
@@ -18880,6 +19172,7 @@ exports.formatTime = formatTime;
|
|
|
18880
19172
|
exports.formatVersionTimestamp = formatVersionTimestamp;
|
|
18881
19173
|
exports.fpsToFrameIntervalMs = fpsToFrameIntervalMs;
|
|
18882
19174
|
exports.generateBroadcastRoomId = generateBroadcastRoomId;
|
|
19175
|
+
exports.generateElementId = generateElementId;
|
|
18883
19176
|
exports.generateLogTicks = generateLogTicks;
|
|
18884
19177
|
exports.generateNoteLineCount = generateNoteLineCount;
|
|
18885
19178
|
exports.generatePressureCircles = generatePressureCircles;
|
|
@@ -18945,6 +19238,7 @@ exports.isPpactionUrl = isPpactionUrl;
|
|
|
18945
19238
|
exports.isTemplateElement = isTemplateElement;
|
|
18946
19239
|
exports.isTemplateElementId = isTemplateElementId;
|
|
18947
19240
|
exports.isUrlSafe = isUrlSafe;
|
|
19241
|
+
exports.makeCloneId = makeCloneId;
|
|
18948
19242
|
exports.makeSlideId = makeSlideId;
|
|
18949
19243
|
exports.mergeAdditiveSelection = mergeAdditiveSelection;
|
|
18950
19244
|
exports.mergeCells = mergeCells;
|
|
@@ -19027,6 +19321,7 @@ exports.tintColor2 = tintColor2;
|
|
|
19027
19321
|
exports.toCssTextOrientation = toCssTextOrientation;
|
|
19028
19322
|
exports.toCssVerticalDirection = toCssVerticalDirection;
|
|
19029
19323
|
exports.toCssWritingMode = toCssWritingMode;
|
|
19324
|
+
exports.transformTextCase = transformTextCase;
|
|
19030
19325
|
exports.validateRoomId = validateRoomId;
|
|
19031
19326
|
exports.valueToY = valueToY;
|
|
19032
19327
|
exports.vermilionDarkColors = vermilionDarkColors;
|
|
Binary file
|
|
Binary file
|