pptx-react-viewer 2.0.0 → 2.1.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 +24 -0
- package/README.md +1 -1
- package/dist/{AiChatPanel-BRGQCYZM.mjs → AiChatPanel-RFBZWMUE.mjs} +2 -2
- package/dist/AiChatPanel-RFBZWMUE.mjs.br +0 -0
- package/dist/AiChatPanel-RFBZWMUE.mjs.gz +0 -0
- package/dist/{AiChatPanel-PW5OT25Z.js → AiChatPanel-VCCVHAAI.js} +10 -10
- package/dist/AiChatPanel-VCCVHAAI.js.br +0 -0
- package/dist/AiChatPanel-VCCVHAAI.js.gz +0 -0
- package/dist/{Model3DScene-TEF362W2.mjs → Model3DScene-2M6HVWTE.mjs} +1 -1
- package/dist/{Model3DScene-TEF362W2.mjs.br → Model3DScene-2M6HVWTE.mjs.br} +0 -0
- package/dist/Model3DScene-2M6HVWTE.mjs.gz +0 -0
- package/dist/{Model3DScene-JCGYRKXM.js → Model3DScene-RQIGSYGQ.js} +2 -2
- package/dist/{Model3DScene-JCGYRKXM.js.br → Model3DScene-RQIGSYGQ.js.br} +0 -0
- package/dist/Model3DScene-RQIGSYGQ.js.gz +0 -0
- package/dist/PowerPointViewer-gmU5rc7K.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-2SHCYZVC.js → SurfaceChart3DScene-2FVASQGC.js} +2 -2
- package/dist/SurfaceChart3DScene-2FVASQGC.js.br +0 -0
- package/dist/SurfaceChart3DScene-2FVASQGC.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-UPDCIMJM.mjs → SurfaceChart3DScene-EGMWY4CZ.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-UPDCIMJM.mjs.br → SurfaceChart3DScene-EGMWY4CZ.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-EGMWY4CZ.mjs.gz +0 -0
- package/dist/{chunk-R2N2UYT7.mjs → chunk-27XBWVO5.mjs} +310 -3
- package/dist/chunk-27XBWVO5.mjs.br +0 -0
- package/dist/{chunk-R2N2UYT7.mjs.gz → chunk-27XBWVO5.mjs.gz} +0 -0
- package/dist/{chunk-OKOJVSKJ.js → chunk-46Z6MNRS.js} +315 -2
- package/dist/chunk-46Z6MNRS.js.br +0 -0
- package/dist/{chunk-OKOJVSKJ.js.gz → chunk-46Z6MNRS.js.gz} +0 -0
- package/dist/{chunk-B6NRDUHJ.mjs → chunk-7DQHWPIB.mjs} +2 -2
- package/dist/chunk-7DQHWPIB.mjs.br +0 -0
- package/dist/chunk-7DQHWPIB.mjs.gz +0 -0
- package/dist/{chunk-ZKDE3HJI.js → chunk-LDF77JJD.js} +208 -208
- package/dist/chunk-LDF77JJD.js.br +0 -0
- package/dist/chunk-LDF77JJD.js.gz +0 -0
- package/dist/{chunk-5XLLRPMV.mjs → chunk-NGE7YQTF.mjs} +110 -14
- package/dist/chunk-NGE7YQTF.mjs.br +0 -0
- package/dist/chunk-NGE7YQTF.mjs.gz +0 -0
- package/dist/{chunk-LFXG7SGG.js → chunk-VHO53ZXZ.js} +764 -756
- package/dist/chunk-VHO53ZXZ.js.br +0 -0
- package/dist/chunk-VHO53ZXZ.js.gz +0 -0
- package/dist/{chunk-L63RAVM7.mjs → chunk-Y4OSELBT.mjs} +16 -8
- package/dist/chunk-Y4OSELBT.mjs.br +0 -0
- package/dist/chunk-Y4OSELBT.mjs.gz +0 -0
- package/dist/{chunk-ZB4NZRCI.js → chunk-ZRY7NLKS.js} +354 -257
- package/dist/chunk-ZRY7NLKS.js.br +0 -0
- package/dist/chunk-ZRY7NLKS.js.gz +0 -0
- package/dist/{index-a8wcFjRJ.d.ts → index-nAyIdGqF.d.ts} +2 -2
- package/dist/{index-a8wcFjRJ.d.ts.map → index-nAyIdGqF.d.ts.map} +1 -1
- package/dist/index.js +33 -33
- 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 +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +100 -0
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.js +20 -20
- 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 +5 -3
- package/dist/AiChatPanel-BRGQCYZM.mjs.br +0 -0
- package/dist/AiChatPanel-BRGQCYZM.mjs.gz +0 -0
- package/dist/AiChatPanel-PW5OT25Z.js.br +0 -0
- package/dist/AiChatPanel-PW5OT25Z.js.gz +0 -0
- package/dist/Model3DScene-JCGYRKXM.js.gz +0 -0
- package/dist/Model3DScene-TEF362W2.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-2SHCYZVC.js.br +0 -0
- package/dist/SurfaceChart3DScene-2SHCYZVC.js.gz +0 -0
- package/dist/SurfaceChart3DScene-UPDCIMJM.mjs.gz +0 -0
- package/dist/chunk-5XLLRPMV.mjs.br +0 -0
- package/dist/chunk-5XLLRPMV.mjs.gz +0 -0
- package/dist/chunk-B6NRDUHJ.mjs.br +0 -0
- package/dist/chunk-B6NRDUHJ.mjs.gz +0 -0
- package/dist/chunk-L63RAVM7.mjs.br +0 -0
- package/dist/chunk-L63RAVM7.mjs.gz +0 -0
- package/dist/chunk-LFXG7SGG.js.br +0 -0
- package/dist/chunk-LFXG7SGG.js.gz +0 -0
- package/dist/chunk-OKOJVSKJ.js.br +0 -0
- package/dist/chunk-R2N2UYT7.mjs.br +0 -0
- package/dist/chunk-ZB4NZRCI.js.br +0 -0
- package/dist/chunk-ZB4NZRCI.js.gz +0 -0
- package/dist/chunk-ZKDE3HJI.js.br +0 -0
- package/dist/chunk-ZKDE3HJI.js.gz +0 -0
|
@@ -17591,7 +17591,7 @@ function reconcileComplexFields(ymap, rec, fields) {
|
|
|
17591
17591
|
}
|
|
17592
17592
|
}
|
|
17593
17593
|
}
|
|
17594
|
-
function
|
|
17594
|
+
function reconcileElementTextBody(ymap, rec, factories) {
|
|
17595
17595
|
const segments = rec.textSegments;
|
|
17596
17596
|
const current = ymap.get("textBody");
|
|
17597
17597
|
if (!Array.isArray(segments)) {
|
|
@@ -17617,7 +17617,7 @@ function reconcileElementYMap(ymap, element, factories, assets) {
|
|
|
17617
17617
|
const rec = element;
|
|
17618
17618
|
reconcileScalars(ymap, rec, SCALAR_ELEMENT_KEYS);
|
|
17619
17619
|
reconcileComplexFields(ymap, rec, COMPLEX_ELEMENT_FIELDS);
|
|
17620
|
-
|
|
17620
|
+
reconcileElementTextBody(ymap, rec, factories);
|
|
17621
17621
|
reconcileAssetFields(rec.id, rec, ymap, assets);
|
|
17622
17622
|
}
|
|
17623
17623
|
function mapIdAt(arr, index) {
|
|
@@ -17715,6 +17715,175 @@ function reconcileSlidesInYDoc(slides, ydoc, factories, origin = LOCAL_SYNC_ORIG
|
|
|
17715
17715
|
});
|
|
17716
17716
|
}, origin);
|
|
17717
17717
|
}
|
|
17718
|
+
var GEOMETRY_KEYS = ["x", "y", "width", "height", "rotation"];
|
|
17719
|
+
var MAX_LIVE_TEXT_LENGTH = 1e5;
|
|
17720
|
+
var asMap = (value) => typeof value === "object" && value !== null && typeof value.get === "function" ? value : void 0;
|
|
17721
|
+
var asArray = (value) => typeof value === "object" && value !== null && typeof value.get === "function" ? value : void 0;
|
|
17722
|
+
function findElementYMap(doc, slideId, elementId) {
|
|
17723
|
+
const slidesArr = doc.getArray(YDOC_SLIDES_KEY);
|
|
17724
|
+
for (let i = 0; i < slidesArr.length; i++) {
|
|
17725
|
+
const slideMap = asMap(slidesArr.get(i));
|
|
17726
|
+
if (!slideMap || slideId !== void 0 && slideMap.get("id") !== slideId) {
|
|
17727
|
+
continue;
|
|
17728
|
+
}
|
|
17729
|
+
const elements = asArray(slideMap.get("elements"));
|
|
17730
|
+
if (!elements) {
|
|
17731
|
+
continue;
|
|
17732
|
+
}
|
|
17733
|
+
for (let j = 0; j < elements.length; j++) {
|
|
17734
|
+
const elementMap = asMap(elements.get(j));
|
|
17735
|
+
if (elementMap && elementMap.get("id") === elementId) {
|
|
17736
|
+
return elementMap;
|
|
17737
|
+
}
|
|
17738
|
+
}
|
|
17739
|
+
}
|
|
17740
|
+
return void 0;
|
|
17741
|
+
}
|
|
17742
|
+
function applyLivePatch(doc, factories, patch, textPatchLimit) {
|
|
17743
|
+
const ymap = findElementYMap(doc, patch.slideId, patch.elementId);
|
|
17744
|
+
if (!ymap) {
|
|
17745
|
+
return;
|
|
17746
|
+
}
|
|
17747
|
+
if (patch.geometry) {
|
|
17748
|
+
for (const key of GEOMETRY_KEYS) {
|
|
17749
|
+
const next = patch.geometry[key];
|
|
17750
|
+
if (typeof next === "number" && ymap.get(key) !== next) {
|
|
17751
|
+
ymap.set(key, next);
|
|
17752
|
+
}
|
|
17753
|
+
}
|
|
17754
|
+
}
|
|
17755
|
+
if (patch.text) {
|
|
17756
|
+
const { value, source } = patch.text;
|
|
17757
|
+
if (value.length > textPatchLimit) {
|
|
17758
|
+
return;
|
|
17759
|
+
}
|
|
17760
|
+
if (ymap.get("text") !== value) {
|
|
17761
|
+
ymap.set("text", value);
|
|
17762
|
+
}
|
|
17763
|
+
const segments = remapTextToSegments(value, source.textSegments, source.textStyle);
|
|
17764
|
+
reconcileElementTextBody(ymap, { textSegments: segments }, factories);
|
|
17765
|
+
}
|
|
17766
|
+
}
|
|
17767
|
+
var LIVE_PATCH_THROTTLE_MS = 50;
|
|
17768
|
+
function createCollaborationLivePatcher(options = {}) {
|
|
17769
|
+
const throttleMs = options.throttleMs ?? LIVE_PATCH_THROTTLE_MS;
|
|
17770
|
+
const pending = /* @__PURE__ */ new Map();
|
|
17771
|
+
let doc = null;
|
|
17772
|
+
let factories = null;
|
|
17773
|
+
let timer = null;
|
|
17774
|
+
let lastWriteAt = Number.NEGATIVE_INFINITY;
|
|
17775
|
+
const cancelTimer = () => {
|
|
17776
|
+
if (timer !== null) {
|
|
17777
|
+
clearTimeout(timer);
|
|
17778
|
+
timer = null;
|
|
17779
|
+
}
|
|
17780
|
+
};
|
|
17781
|
+
const writePending = () => {
|
|
17782
|
+
const activeDoc = doc;
|
|
17783
|
+
const activeFactories = factories;
|
|
17784
|
+
if (!activeDoc || !activeFactories || pending.size === 0) {
|
|
17785
|
+
pending.clear();
|
|
17786
|
+
return;
|
|
17787
|
+
}
|
|
17788
|
+
const patches = [...pending.values()];
|
|
17789
|
+
pending.clear();
|
|
17790
|
+
lastWriteAt = Date.now();
|
|
17791
|
+
try {
|
|
17792
|
+
activeDoc.transact(() => {
|
|
17793
|
+
for (const patch of patches) {
|
|
17794
|
+
applyLivePatch(activeDoc, activeFactories, patch, MAX_LIVE_TEXT_LENGTH);
|
|
17795
|
+
}
|
|
17796
|
+
}, LOCAL_SYNC_ORIGIN);
|
|
17797
|
+
} catch {
|
|
17798
|
+
}
|
|
17799
|
+
};
|
|
17800
|
+
const schedule = () => {
|
|
17801
|
+
if (timer !== null) {
|
|
17802
|
+
return;
|
|
17803
|
+
}
|
|
17804
|
+
const elapsed = Date.now() - lastWriteAt;
|
|
17805
|
+
if (elapsed >= throttleMs) {
|
|
17806
|
+
writePending();
|
|
17807
|
+
return;
|
|
17808
|
+
}
|
|
17809
|
+
timer = setTimeout(() => {
|
|
17810
|
+
timer = null;
|
|
17811
|
+
writePending();
|
|
17812
|
+
}, throttleMs - elapsed);
|
|
17813
|
+
};
|
|
17814
|
+
const enqueue = (slideId, elementId) => {
|
|
17815
|
+
if (!doc || !factories || !elementId) {
|
|
17816
|
+
return null;
|
|
17817
|
+
}
|
|
17818
|
+
const key = `${slideId ?? ""}\0${elementId}`;
|
|
17819
|
+
let entry = pending.get(key);
|
|
17820
|
+
if (!entry) {
|
|
17821
|
+
entry = { slideId, elementId };
|
|
17822
|
+
pending.set(key, entry);
|
|
17823
|
+
}
|
|
17824
|
+
return entry;
|
|
17825
|
+
};
|
|
17826
|
+
return {
|
|
17827
|
+
configure(nextDoc, nextFactories) {
|
|
17828
|
+
if (nextDoc === doc && nextFactories === factories) {
|
|
17829
|
+
return;
|
|
17830
|
+
}
|
|
17831
|
+
cancelTimer();
|
|
17832
|
+
pending.clear();
|
|
17833
|
+
doc = nextDoc;
|
|
17834
|
+
factories = nextFactories;
|
|
17835
|
+
lastWriteAt = Number.NEGATIVE_INFINITY;
|
|
17836
|
+
},
|
|
17837
|
+
isActive() {
|
|
17838
|
+
return doc !== null && factories !== null;
|
|
17839
|
+
},
|
|
17840
|
+
patchGeometry(slideId, elementId, geometry) {
|
|
17841
|
+
const entry = enqueue(slideId, elementId);
|
|
17842
|
+
if (!entry) {
|
|
17843
|
+
return;
|
|
17844
|
+
}
|
|
17845
|
+
entry.geometry = { ...entry.geometry, ...geometry };
|
|
17846
|
+
schedule();
|
|
17847
|
+
},
|
|
17848
|
+
patchText(slideId, elementId, text, source) {
|
|
17849
|
+
const entry = enqueue(slideId, elementId);
|
|
17850
|
+
if (!entry) {
|
|
17851
|
+
return;
|
|
17852
|
+
}
|
|
17853
|
+
entry.text = { value: text, source: source ?? entry.text?.source ?? {} };
|
|
17854
|
+
schedule();
|
|
17855
|
+
},
|
|
17856
|
+
flush() {
|
|
17857
|
+
cancelTimer();
|
|
17858
|
+
writePending();
|
|
17859
|
+
},
|
|
17860
|
+
dispose() {
|
|
17861
|
+
cancelTimer();
|
|
17862
|
+
pending.clear();
|
|
17863
|
+
doc = null;
|
|
17864
|
+
factories = null;
|
|
17865
|
+
}
|
|
17866
|
+
};
|
|
17867
|
+
}
|
|
17868
|
+
function publishLiveInlineText(patcher, slide, elementId, text) {
|
|
17869
|
+
if (!patcher || !slide || !elementId || !patcher.isActive()) {
|
|
17870
|
+
return;
|
|
17871
|
+
}
|
|
17872
|
+
const element = slide.elements.find((el) => el.id === elementId);
|
|
17873
|
+
if (!element || !chunkCLNGAVNH_js.hasTextProperties(element)) {
|
|
17874
|
+
return;
|
|
17875
|
+
}
|
|
17876
|
+
patcher.patchText(slide.id, elementId, text, {
|
|
17877
|
+
textSegments: element.textSegments,
|
|
17878
|
+
textStyle: element.textStyle
|
|
17879
|
+
});
|
|
17880
|
+
}
|
|
17881
|
+
function publishLiveGeometry(patcher, slideId, elementId, geometry) {
|
|
17882
|
+
if (!patcher || !elementId || !patcher.isActive()) {
|
|
17883
|
+
return;
|
|
17884
|
+
}
|
|
17885
|
+
patcher.patchGeometry(slideId, elementId, geometry);
|
|
17886
|
+
}
|
|
17718
17887
|
function createSyncGate(onOpen, graceMs = INITIAL_SYNC_GRACE_MS) {
|
|
17719
17888
|
let opened = false;
|
|
17720
17889
|
let timer = null;
|
|
@@ -17747,6 +17916,144 @@ function createSyncGate(onOpen, graceMs = INITIAL_SYNC_GRACE_MS) {
|
|
|
17747
17916
|
}
|
|
17748
17917
|
};
|
|
17749
17918
|
}
|
|
17919
|
+
var COLLAB_LEAVE_MESSAGE = "pptx-viewer:collab-leave";
|
|
17920
|
+
function resolveTarget(target) {
|
|
17921
|
+
if (target) {
|
|
17922
|
+
return target;
|
|
17923
|
+
}
|
|
17924
|
+
const scope = globalThis;
|
|
17925
|
+
return scope.window ?? null;
|
|
17926
|
+
}
|
|
17927
|
+
function isLeaveMessage(data) {
|
|
17928
|
+
if (typeof data === "string") {
|
|
17929
|
+
return data === COLLAB_LEAVE_MESSAGE;
|
|
17930
|
+
}
|
|
17931
|
+
if (typeof data !== "object" || data === null) {
|
|
17932
|
+
return false;
|
|
17933
|
+
}
|
|
17934
|
+
return data.type === COLLAB_LEAVE_MESSAGE;
|
|
17935
|
+
}
|
|
17936
|
+
function registerCollaborationTeardown(options) {
|
|
17937
|
+
const target = resolveTarget(options.target);
|
|
17938
|
+
if (!target) {
|
|
17939
|
+
return () => {
|
|
17940
|
+
};
|
|
17941
|
+
}
|
|
17942
|
+
const { leave, rejoin } = options;
|
|
17943
|
+
let left = false;
|
|
17944
|
+
const doLeave = () => {
|
|
17945
|
+
if (left) {
|
|
17946
|
+
return;
|
|
17947
|
+
}
|
|
17948
|
+
left = true;
|
|
17949
|
+
leave();
|
|
17950
|
+
};
|
|
17951
|
+
const onPageHide = (event) => {
|
|
17952
|
+
if (event.persisted === true && !rejoin) {
|
|
17953
|
+
return;
|
|
17954
|
+
}
|
|
17955
|
+
doLeave();
|
|
17956
|
+
};
|
|
17957
|
+
const onBeforeUnload = () => {
|
|
17958
|
+
doLeave();
|
|
17959
|
+
};
|
|
17960
|
+
const onPageShow = (event) => {
|
|
17961
|
+
if (event.persisted !== true || !left || !rejoin) {
|
|
17962
|
+
return;
|
|
17963
|
+
}
|
|
17964
|
+
left = false;
|
|
17965
|
+
rejoin();
|
|
17966
|
+
};
|
|
17967
|
+
const onMessage = (event) => {
|
|
17968
|
+
if (isLeaveMessage(event.data)) {
|
|
17969
|
+
doLeave();
|
|
17970
|
+
}
|
|
17971
|
+
};
|
|
17972
|
+
target.addEventListener("pagehide", onPageHide);
|
|
17973
|
+
target.addEventListener("beforeunload", onBeforeUnload);
|
|
17974
|
+
target.addEventListener("pageshow", onPageShow);
|
|
17975
|
+
target.addEventListener("message", onMessage);
|
|
17976
|
+
return () => {
|
|
17977
|
+
target.removeEventListener("pagehide", onPageHide);
|
|
17978
|
+
target.removeEventListener("beforeunload", onBeforeUnload);
|
|
17979
|
+
target.removeEventListener("pageshow", onPageShow);
|
|
17980
|
+
target.removeEventListener("message", onMessage);
|
|
17981
|
+
};
|
|
17982
|
+
}
|
|
17983
|
+
function clearLocalAwareness(awareness) {
|
|
17984
|
+
awareness?.setLocalState?.(null);
|
|
17985
|
+
}
|
|
17986
|
+
var DEPARTURE_CHANNEL = "pptx-viewer:collab-departures";
|
|
17987
|
+
function removeAwarenessStatesLocally(awareness, clients) {
|
|
17988
|
+
const states = awareness?.states;
|
|
17989
|
+
if (!awareness || !states) {
|
|
17990
|
+
return [];
|
|
17991
|
+
}
|
|
17992
|
+
const removed = [];
|
|
17993
|
+
for (const clientId of clients) {
|
|
17994
|
+
if (states.delete(clientId)) {
|
|
17995
|
+
removed.push(clientId);
|
|
17996
|
+
}
|
|
17997
|
+
}
|
|
17998
|
+
if (removed.length > 0) {
|
|
17999
|
+
const change = { added: [], updated: [], removed };
|
|
18000
|
+
awareness.emit?.("change", [change, "peer-departed"]);
|
|
18001
|
+
awareness.emit?.("update", [change, "peer-departed"]);
|
|
18002
|
+
}
|
|
18003
|
+
return removed;
|
|
18004
|
+
}
|
|
18005
|
+
function readNotice(data, roomId, selfId) {
|
|
18006
|
+
if (typeof data !== "object" || data === null) {
|
|
18007
|
+
return null;
|
|
18008
|
+
}
|
|
18009
|
+
const notice = data;
|
|
18010
|
+
if (notice.channel !== DEPARTURE_CHANNEL || notice.roomId !== roomId) {
|
|
18011
|
+
return null;
|
|
18012
|
+
}
|
|
18013
|
+
if (typeof notice.clientId !== "number" || notice.clientId === selfId) {
|
|
18014
|
+
return null;
|
|
18015
|
+
}
|
|
18016
|
+
return notice.clientId;
|
|
18017
|
+
}
|
|
18018
|
+
function defaultFactory(name) {
|
|
18019
|
+
const scope = globalThis;
|
|
18020
|
+
if (!scope.BroadcastChannel) {
|
|
18021
|
+
return null;
|
|
18022
|
+
}
|
|
18023
|
+
return new scope.BroadcastChannel(name);
|
|
18024
|
+
}
|
|
18025
|
+
function createDepartureChannel(roomId, awareness, factory) {
|
|
18026
|
+
const channel = factory ? factory(DEPARTURE_CHANNEL) : defaultFactory(DEPARTURE_CHANNEL);
|
|
18027
|
+
if (!channel) {
|
|
18028
|
+
return { announce: () => {
|
|
18029
|
+
}, dispose: () => {
|
|
18030
|
+
} };
|
|
18031
|
+
}
|
|
18032
|
+
const selfId = awareness.clientID;
|
|
18033
|
+
channel.onmessage = (event) => {
|
|
18034
|
+
const departed = readNotice(event.data, roomId, selfId);
|
|
18035
|
+
if (departed !== null) {
|
|
18036
|
+
removeAwarenessStatesLocally(awareness, [departed]);
|
|
18037
|
+
}
|
|
18038
|
+
};
|
|
18039
|
+
let closed = false;
|
|
18040
|
+
return {
|
|
18041
|
+
announce: () => {
|
|
18042
|
+
if (closed || typeof selfId !== "number") {
|
|
18043
|
+
return;
|
|
18044
|
+
}
|
|
18045
|
+
channel.postMessage({ channel: DEPARTURE_CHANNEL, roomId, clientId: selfId });
|
|
18046
|
+
},
|
|
18047
|
+
dispose: () => {
|
|
18048
|
+
if (closed) {
|
|
18049
|
+
return;
|
|
18050
|
+
}
|
|
18051
|
+
closed = true;
|
|
18052
|
+
channel.onmessage = null;
|
|
18053
|
+
channel.close();
|
|
18054
|
+
}
|
|
18055
|
+
};
|
|
18056
|
+
}
|
|
17750
18057
|
var POSITION_THRESHOLD = 2;
|
|
17751
18058
|
var SIZE_THRESHOLD = 2;
|
|
17752
18059
|
function getElementText(element) {
|
|
@@ -27338,6 +27645,7 @@ exports.clampPercent = clampPercent;
|
|
|
27338
27645
|
exports.clampUnitInterval = clampUnitInterval;
|
|
27339
27646
|
exports.clearAllLocalViewerData = clearAllLocalViewerData;
|
|
27340
27647
|
exports.clearAudienceContent = clearAudienceContent;
|
|
27648
|
+
exports.clearLocalAwareness = clearLocalAwareness;
|
|
27341
27649
|
exports.clearStoredViewerPrefs = clearStoredViewerPrefs;
|
|
27342
27650
|
exports.cloneElementForPaste = cloneElementForPaste;
|
|
27343
27651
|
exports.cloneHistorySnapshot = cloneHistorySnapshot;
|
|
@@ -27376,7 +27684,9 @@ exports.convertOmmlToMathMl = convertOmmlToMathMl;
|
|
|
27376
27684
|
exports.copyFormatFromElement = copyFormatFromElement;
|
|
27377
27685
|
exports.createBackstagePresentation = createBackstagePresentation;
|
|
27378
27686
|
exports.createBlankSlide = createBlankSlide;
|
|
27687
|
+
exports.createCollaborationLivePatcher = createCollaborationLivePatcher;
|
|
27379
27688
|
exports.createDefaultChartElement = createDefaultChartElement;
|
|
27689
|
+
exports.createDepartureChannel = createDepartureChannel;
|
|
27380
27690
|
exports.createInitialPresentationSnapshot = createInitialPresentationSnapshot;
|
|
27381
27691
|
exports.createPresentationSessionId = createPresentationSessionId;
|
|
27382
27692
|
exports.createPresenterTimer = createPresenterTimer;
|
|
@@ -27538,6 +27848,8 @@ exports.presenterElapsed = presenterElapsed;
|
|
|
27538
27848
|
exports.pressuresToWidths = pressuresToWidths;
|
|
27539
27849
|
exports.printPropertiesFrameSlides = printPropertiesFrameSlides;
|
|
27540
27850
|
exports.printPropertiesSlidesPerPage = printPropertiesSlidesPerPage;
|
|
27851
|
+
exports.publishLiveGeometry = publishLiveGeometry;
|
|
27852
|
+
exports.publishLiveInlineText = publishLiveInlineText;
|
|
27541
27853
|
exports.readBackstageRecentFile = readBackstageRecentFile;
|
|
27542
27854
|
exports.readSlidesFromYDoc = readSlidesFromYDoc;
|
|
27543
27855
|
exports.readStoredViewerPrefs = readStoredViewerPrefs;
|
|
@@ -27546,6 +27858,7 @@ exports.rebuildDrawingShapesIfCleared = rebuildDrawingShapesIfCleared;
|
|
|
27546
27858
|
exports.reconcileSlidesInYDoc = reconcileSlidesInYDoc;
|
|
27547
27859
|
exports.recordProgressPercent = recordProgressPercent;
|
|
27548
27860
|
exports.rectToCells = rectToCells;
|
|
27861
|
+
exports.registerCollaborationTeardown = registerCollaborationTeardown;
|
|
27549
27862
|
exports.remapTextToSegments = remapTextToSegments;
|
|
27550
27863
|
exports.removeQuickAccessCommand = removeQuickAccessCommand;
|
|
27551
27864
|
exports.renameSection = renameSection;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, getAnimationInitialStyle, cloneHistorySnapshot, isTemplateElement, clampCropValue, parseMediaCommand, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, getRoundRectRadiusPx, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, getAnimationInitialStyle, cloneHistorySnapshot, isTemplateElement, clampCropValue, parseMediaCommand, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, getRoundRectRadiusPx, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-27XBWVO5.mjs';
|
|
2
2
|
import { translationsEn } from './chunk-2X72MOPZ.mjs';
|
|
3
3
|
import { hasShapeProperties, isImageLikeElement, hasTextProperties, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths } from './chunk-6YXLGMTN.mjs';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
@@ -6250,7 +6250,7 @@ function FailedToLoad() {
|
|
|
6250
6250
|
var LazySurfaceChart3DScene = React6.lazy(
|
|
6251
6251
|
async () => {
|
|
6252
6252
|
try {
|
|
6253
|
-
return await import('./SurfaceChart3DScene-
|
|
6253
|
+
return await import('./SurfaceChart3DScene-EGMWY4CZ.mjs');
|
|
6254
6254
|
} catch {
|
|
6255
6255
|
return { default: FailedToLoad };
|
|
6256
6256
|
}
|
|
Binary file
|
|
Binary file
|