pptx-react-viewer 4.8.0 → 4.9.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 +78 -0
- package/dist/{AiChatPanel-4LMJIJUU.js → AiChatPanel-WJ64Q6KO.js} +28 -28
- package/dist/AiChatPanel-WJ64Q6KO.js.br +0 -0
- package/dist/AiChatPanel-WJ64Q6KO.js.gz +0 -0
- package/dist/{AiChatPanel-XWYLYN26.mjs → AiChatPanel-YRWC7C3B.mjs} +4 -4
- package/dist/AiChatPanel-YRWC7C3B.mjs.br +0 -0
- package/dist/AiChatPanel-YRWC7C3B.mjs.gz +0 -0
- package/dist/{Model3DScene-N6IZ7Q57.mjs → Model3DScene-DS6AQWFV.mjs} +1 -1
- package/dist/{Model3DScene-N6IZ7Q57.mjs.br → Model3DScene-DS6AQWFV.mjs.br} +0 -0
- package/dist/Model3DScene-DS6AQWFV.mjs.gz +0 -0
- package/dist/{Model3DScene-YAPQ5BCI.js → Model3DScene-VHDYCHO5.js} +2 -2
- package/dist/{Model3DScene-YAPQ5BCI.js.br → Model3DScene-VHDYCHO5.js.br} +0 -0
- package/dist/Model3DScene-VHDYCHO5.js.gz +0 -0
- package/dist/{chunk-SAYZSUNQ.js → chunk-7NTNFOPT.js} +221 -203
- package/dist/chunk-7NTNFOPT.js.br +0 -0
- package/dist/chunk-7NTNFOPT.js.gz +0 -0
- package/dist/{chunk-YPDPSXPK.mjs → chunk-HDH4KFDK.mjs} +259 -0
- package/dist/chunk-HDH4KFDK.mjs.br +0 -0
- package/dist/chunk-HDH4KFDK.mjs.gz +0 -0
- package/dist/{chunk-KHEJXP4I.mjs → chunk-K5HZD63F.mjs} +2547 -1856
- package/dist/chunk-K5HZD63F.mjs.br +0 -0
- package/dist/chunk-K5HZD63F.mjs.gz +0 -0
- package/dist/{chunk-LTBTG2QB.js → chunk-KPKO2ELT.js} +259 -0
- package/dist/chunk-KPKO2ELT.js.br +0 -0
- package/dist/chunk-KPKO2ELT.js.gz +0 -0
- package/dist/{chunk-SOMUGI3Y.mjs → chunk-M6KW27TZ.mjs} +4 -4
- package/dist/chunk-M6KW27TZ.mjs.br +0 -0
- package/dist/chunk-M6KW27TZ.mjs.gz +0 -0
- package/dist/{chunk-NV2H57Q4.js → chunk-NMXIX7E4.js} +4565 -3874
- package/dist/chunk-NMXIX7E4.js.br +0 -0
- package/dist/chunk-NMXIX7E4.js.gz +0 -0
- package/dist/{chunk-NPZOVIHG.mjs → chunk-PJT2DTOS.mjs} +11183 -3957
- package/dist/chunk-PJT2DTOS.mjs.br +0 -0
- package/dist/chunk-PJT2DTOS.mjs.gz +0 -0
- package/dist/{chunk-UTP22QYH.js → chunk-PSJTZIIK.js} +5 -5
- package/dist/chunk-PSJTZIIK.js.br +0 -0
- package/dist/chunk-PSJTZIIK.js.gz +0 -0
- package/dist/{chunk-SSXGPYBF.mjs → chunk-Y7RTQOD6.mjs} +34 -16
- package/dist/chunk-Y7RTQOD6.mjs.br +0 -0
- package/dist/chunk-Y7RTQOD6.mjs.gz +0 -0
- package/dist/{chunk-YF2BQIW3.js → chunk-YWAFJZ23.js} +11204 -3957
- package/dist/chunk-YWAFJZ23.js.br +0 -0
- package/dist/chunk-YWAFJZ23.js.gz +0 -0
- package/dist/{chunk-Q7NWWIPQ.js → chunk-ZZ6IPWOP.js} +816 -816
- package/dist/chunk-ZZ6IPWOP.js.br +0 -0
- package/dist/chunk-ZZ6IPWOP.js.gz +0 -0
- package/dist/{chunk-Q4XJSJYI.mjs → chunk-ZZY24BB7.mjs} +1 -1
- package/dist/chunk-ZZY24BB7.mjs.br +0 -0
- package/dist/{chunk-Q4XJSJYI.mjs.gz → chunk-ZZY24BB7.mjs.gz} +0 -0
- package/dist/i18n/de.cjs +276 -9
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +276 -9
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +276 -9
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +276 -9
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +276 -9
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +276 -9
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +279 -12
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +279 -12
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- 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.ts +663 -19
- package/dist/index.js +63 -63
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +655 -8
- package/dist/internals.js +105 -105
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.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/viewer/index.d.ts +657 -19
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -2
- package/dist/AiChatPanel-4LMJIJUU.js.br +0 -0
- package/dist/AiChatPanel-4LMJIJUU.js.gz +0 -0
- package/dist/AiChatPanel-XWYLYN26.mjs.br +0 -0
- package/dist/AiChatPanel-XWYLYN26.mjs.gz +0 -0
- package/dist/Model3DScene-N6IZ7Q57.mjs.gz +0 -0
- package/dist/Model3DScene-YAPQ5BCI.js.gz +0 -0
- package/dist/chunk-KHEJXP4I.mjs.br +0 -0
- package/dist/chunk-KHEJXP4I.mjs.gz +0 -0
- package/dist/chunk-LTBTG2QB.js.br +0 -0
- package/dist/chunk-LTBTG2QB.js.gz +0 -0
- package/dist/chunk-NPZOVIHG.mjs.br +0 -0
- package/dist/chunk-NPZOVIHG.mjs.gz +0 -0
- package/dist/chunk-NV2H57Q4.js.br +0 -0
- package/dist/chunk-NV2H57Q4.js.gz +0 -0
- package/dist/chunk-Q4XJSJYI.mjs.br +0 -0
- package/dist/chunk-Q7NWWIPQ.js.br +0 -0
- package/dist/chunk-Q7NWWIPQ.js.gz +0 -0
- package/dist/chunk-SAYZSUNQ.js.br +0 -0
- package/dist/chunk-SAYZSUNQ.js.gz +0 -0
- package/dist/chunk-SOMUGI3Y.mjs.br +0 -0
- package/dist/chunk-SOMUGI3Y.mjs.gz +0 -0
- package/dist/chunk-SSXGPYBF.mjs.br +0 -0
- package/dist/chunk-SSXGPYBF.mjs.gz +0 -0
- package/dist/chunk-UTP22QYH.js.br +0 -0
- package/dist/chunk-UTP22QYH.js.gz +0 -0
- package/dist/chunk-YF2BQIW3.js.br +0 -0
- package/dist/chunk-YF2BQIW3.js.gz +0 -0
- package/dist/chunk-YPDPSXPK.mjs.br +0 -0
- package/dist/chunk-YPDPSXPK.mjs.gz +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1971,6 +1971,16 @@ interface TextStyle {
|
|
|
1971
1971
|
textReflectionEndOpacity?: number;
|
|
1972
1972
|
/** Text reflection offset distance in px. */
|
|
1973
1973
|
textReflectionOffset?: number;
|
|
1974
|
+
/**
|
|
1975
|
+
* Text reflection end position (`@endPos`) as a 0-1 fraction of the text
|
|
1976
|
+
* height the fade reaches. Mirrors `ShapeStyle.reflectionEndPosition`.
|
|
1977
|
+
*/
|
|
1978
|
+
textReflectionEndPosition?: number;
|
|
1979
|
+
/**
|
|
1980
|
+
* Text reflection offset direction (`@dir`) in degrees. Mirrors
|
|
1981
|
+
* `ShapeStyle.reflectionDirection`.
|
|
1982
|
+
*/
|
|
1983
|
+
textReflectionDirection?: number;
|
|
1974
1984
|
/**
|
|
1975
1985
|
* Text reflection fade direction (`a:rPr/a:effectLst/a:reflection/@fadeDir`)
|
|
1976
1986
|
* in degrees. Mirrors `ShapeStyle.reflectionFadeDirection`.
|
|
@@ -2289,6 +2299,21 @@ interface TextSegment {
|
|
|
2289
2299
|
* populated; unrelated fields fall back to the shape-level style.
|
|
2290
2300
|
*/
|
|
2291
2301
|
paragraphProperties?: TextStyle;
|
|
2302
|
+
/**
|
|
2303
|
+
* The paragraph this segment starts authored an EMPTY `<a:pPr/>`. Only
|
|
2304
|
+
* meaningful on the first segment of a paragraph. The writer re-emits the
|
|
2305
|
+
* empty element when it has no paragraph property of its own to write, so
|
|
2306
|
+
* a rewritten slide keeps the markup PowerPoint wrote.
|
|
2307
|
+
*/
|
|
2308
|
+
emptyParagraphPropertiesAuthored?: boolean;
|
|
2309
|
+
/**
|
|
2310
|
+
* The paragraph this segment starts has no run content and authored no
|
|
2311
|
+
* `a:endParaRPr` (a bare `<a:p/>`, possibly with an `a:pPr`). Only
|
|
2312
|
+
* meaningful on the first segment of a paragraph. It stops the writer
|
|
2313
|
+
* inventing an empty run or an `<a:endParaRPr lang="en-US"/>` stub for a
|
|
2314
|
+
* paragraph that still has no content when saved.
|
|
2315
|
+
*/
|
|
2316
|
+
bareParagraph?: boolean;
|
|
2292
2317
|
/**
|
|
2293
2318
|
* Phonetic annotation text from `a:ruby > a:rt` (e.g. furigana, pinyin).
|
|
2294
2319
|
* When present, the renderer should wrap the base text with an HTML `<ruby>` tag.
|
|
@@ -7883,6 +7908,84 @@ interface PptxThemeOption {
|
|
|
7883
7908
|
name?: string;
|
|
7884
7909
|
}
|
|
7885
7910
|
//#endregion
|
|
7911
|
+
//#region src/core/types/animation-behavior.d.ts
|
|
7912
|
+
/** Timing of one behaviour, from its own `p:cBhvr/p:cTn`. */
|
|
7913
|
+
interface PptxAnimationBehaviorTiming {
|
|
7914
|
+
/** `p:cTn/@dur` in ms; absent when `indefinite` or unset. */
|
|
7915
|
+
durationMs?: number;
|
|
7916
|
+
/** Start offset in ms from `p:stCondLst/p:cond/@delay`, relative to the effect start. */
|
|
7917
|
+
delayMs?: number;
|
|
7918
|
+
/** `p:cTn/@accel` as a 0..1 fraction of the behaviour's duration. */
|
|
7919
|
+
accel?: number;
|
|
7920
|
+
/** `p:cTn/@decel` as a 0..1 fraction of the behaviour's duration. */
|
|
7921
|
+
decel?: number;
|
|
7922
|
+
/** `p:cTn/@autoRev`: play forward, then backward, doubling the active time. */
|
|
7923
|
+
autoReverse?: boolean;
|
|
7924
|
+
/** `p:cTn/@repeatCount` in plain iterations (OOXML stores thousandths). */
|
|
7925
|
+
repeatCount?: number;
|
|
7926
|
+
/** `p:cTn/@tmFilter`: the raw `"t,v; t,v; ..."` time remapping list. */
|
|
7927
|
+
tmFilter?: string;
|
|
7928
|
+
}
|
|
7929
|
+
interface BehaviorBase {
|
|
7930
|
+
/** Lower-cased `p:attrNameLst` entries, in document order. */
|
|
7931
|
+
attrNames: string[];
|
|
7932
|
+
/** `p:cBhvr/@additive` (`base`, `sum`, `repl`, `mult`, `none`). */
|
|
7933
|
+
additive?: string;
|
|
7934
|
+
timing: PptxAnimationBehaviorTiming;
|
|
7935
|
+
}
|
|
7936
|
+
/** `p:set`: a discrete value held from the behaviour's start. */
|
|
7937
|
+
interface PptxSetBehavior extends BehaviorBase {
|
|
7938
|
+
kind: 'set';
|
|
7939
|
+
value: string | number | boolean;
|
|
7940
|
+
}
|
|
7941
|
+
/** `p:anim`: a `p:tavLst` ramp or a `from`/`to`/`by` formula ramp. */
|
|
7942
|
+
interface PptxAnimBehavior extends BehaviorBase {
|
|
7943
|
+
kind: 'anim';
|
|
7944
|
+
calcMode?: 'discrete' | 'lin' | 'fmla';
|
|
7945
|
+
valueType?: string;
|
|
7946
|
+
from?: string;
|
|
7947
|
+
to?: string;
|
|
7948
|
+
by?: string;
|
|
7949
|
+
keyframes: PptxAnimationKeyframe[];
|
|
7950
|
+
}
|
|
7951
|
+
/** `p:animEffect`: a filter transition (`fade`, `wipe(down)`...). */
|
|
7952
|
+
interface PptxAnimEffectBehavior extends BehaviorBase {
|
|
7953
|
+
kind: 'animEffect';
|
|
7954
|
+
filter?: string;
|
|
7955
|
+
transition?: 'in' | 'out' | 'none';
|
|
7956
|
+
}
|
|
7957
|
+
/** A `p:animScale` factor pair (1 = unscaled) or a `p:animMotion` offset (slide fractions). */
|
|
7958
|
+
interface PptxBehaviorPoint {
|
|
7959
|
+
x: number;
|
|
7960
|
+
y: number;
|
|
7961
|
+
}
|
|
7962
|
+
/** `p:animScale`: scale factors as fractions (OOXML stores percent*1000, so `100000` = 1). */
|
|
7963
|
+
interface PptxAnimScaleBehavior extends BehaviorBase {
|
|
7964
|
+
kind: 'animScale';
|
|
7965
|
+
from?: PptxBehaviorPoint;
|
|
7966
|
+
to?: PptxBehaviorPoint;
|
|
7967
|
+
by?: PptxBehaviorPoint;
|
|
7968
|
+
zoomContents?: boolean;
|
|
7969
|
+
}
|
|
7970
|
+
/** `p:animRot`: rotation in degrees (OOXML stores 60000ths). */
|
|
7971
|
+
interface PptxAnimRotBehavior extends BehaviorBase {
|
|
7972
|
+
kind: 'animRot';
|
|
7973
|
+
from?: number;
|
|
7974
|
+
to?: number;
|
|
7975
|
+
by?: number;
|
|
7976
|
+
}
|
|
7977
|
+
/** `p:animMotion`: a path (slide fractions) or a `from`/`to`/`by` offset. */
|
|
7978
|
+
interface PptxAnimMotionBehavior extends BehaviorBase {
|
|
7979
|
+
kind: 'animMotion';
|
|
7980
|
+
path?: string;
|
|
7981
|
+
origin?: string;
|
|
7982
|
+
from?: PptxBehaviorPoint;
|
|
7983
|
+
to?: PptxBehaviorPoint;
|
|
7984
|
+
by?: PptxBehaviorPoint;
|
|
7985
|
+
}
|
|
7986
|
+
/** One behaviour child of an effect, tagged by its OOXML element. */
|
|
7987
|
+
type PptxAnimationBehavior = PptxSetBehavior | PptxAnimBehavior | PptxAnimEffectBehavior | PptxAnimScaleBehavior | PptxAnimRotBehavior | PptxAnimMotionBehavior;
|
|
7988
|
+
//#endregion
|
|
7886
7989
|
//#region src/core/types/animation.d.ts
|
|
7887
7990
|
/**
|
|
7888
7991
|
* Built-in animation preset names used for entrance, exit, and emphasis effects.
|
|
@@ -8434,6 +8537,14 @@ interface PptxNativeAnimation {
|
|
|
8434
8537
|
* shared playback (round-trip/typed-model only so far).
|
|
8435
8538
|
*/
|
|
8436
8539
|
setAnimations?: PptxSetAnimation[];
|
|
8540
|
+
/**
|
|
8541
|
+
* Every behaviour child of this effect (`p:set`, `p:anim`, `p:animEffect`,
|
|
8542
|
+
* `p:animScale`, `p:animRot`, `p:animMotion`) with its own timing, as
|
|
8543
|
+
* authored. The single-valued fields above flatten a composed preset;
|
|
8544
|
+
* this keeps the whole tree so playback can follow what PowerPoint wrote
|
|
8545
|
+
* (see `animation-behavior-player` in `pptx-viewer-shared`).
|
|
8546
|
+
*/
|
|
8547
|
+
behaviors?: PptxAnimationBehavior[];
|
|
8437
8548
|
}
|
|
8438
8549
|
/**
|
|
8439
8550
|
* One `p:set` discrete (non-interpolated) attribute assignment composed
|
|
@@ -13580,6 +13691,13 @@ type ToolbarButtonId = 'share' | 'broadcast' | 'export' | 'undo' | 'redo' | 'rec
|
|
|
13580
13691
|
/** A top-level ribbon tab. `record` intentionally shares its id with the quick-access Record button above: both surface the same recording feature, so hiding one hides the other. */
|
|
13581
13692
|
type ToolbarTabId = 'file' | 'home' | 'insert' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
|
|
13582
13693
|
type ToolbarActionId = ToolbarButtonId | ToolbarTabId;
|
|
13694
|
+
/**
|
|
13695
|
+
* PowerPoint's contextual tabs: they join the tab row only while the
|
|
13696
|
+
* selection is of their kind (see `contextualTabsForElement` in
|
|
13697
|
+
* `ribbon-galleries/`). Kept apart from `ToolbarTabId` because they are not
|
|
13698
|
+
* part of the fixed tab order every binding renders.
|
|
13699
|
+
*/
|
|
13700
|
+
type RibbonContextualTabId = 'shapeFormat' | 'pictureFormat' | 'tableDesign' | 'chartDesign' | 'smartArtDesign';
|
|
13583
13701
|
//#endregion
|
|
13584
13702
|
//#region src/render/options/viewer-options.d.ts
|
|
13585
13703
|
/**
|
|
@@ -13783,6 +13901,511 @@ type FreeformToolKind = 'freeformShape' | 'curve';
|
|
|
13783
13901
|
*/
|
|
13784
13902
|
type ViewerOptionsTabId = 'general' | 'proofing' | 'save' | 'language' | 'accessibility' | 'advanced' | 'ribbon' | 'quickAccess' | 'addIns' | 'trust';
|
|
13785
13903
|
//#endregion
|
|
13904
|
+
//#region src/render/customization/ribbon-control-catalog.d.ts
|
|
13905
|
+
declare const RIBBON_CONTROL_CATALOG: {
|
|
13906
|
+
readonly home: {
|
|
13907
|
+
readonly clipboard: {
|
|
13908
|
+
readonly label: 'Clipboard';
|
|
13909
|
+
readonly controls: {
|
|
13910
|
+
readonly paste: 'Paste';
|
|
13911
|
+
readonly cut: 'Cut';
|
|
13912
|
+
readonly copy: 'Copy';
|
|
13913
|
+
readonly formatPainter: 'Format Painter';
|
|
13914
|
+
};
|
|
13915
|
+
};
|
|
13916
|
+
readonly slides: {
|
|
13917
|
+
readonly label: 'Slides';
|
|
13918
|
+
readonly controls: {
|
|
13919
|
+
readonly newSlide: 'New Slide';
|
|
13920
|
+
readonly layout: 'Layout';
|
|
13921
|
+
readonly reset: 'Reset';
|
|
13922
|
+
readonly section: 'Section';
|
|
13923
|
+
readonly slideTemplates: 'Slide templates';
|
|
13924
|
+
};
|
|
13925
|
+
};
|
|
13926
|
+
readonly font: {
|
|
13927
|
+
readonly label: 'Font';
|
|
13928
|
+
readonly controls: {
|
|
13929
|
+
readonly fontFamily: 'Font';
|
|
13930
|
+
readonly fontSize: 'Font Size';
|
|
13931
|
+
readonly increaseFontSize: 'Increase Font Size';
|
|
13932
|
+
readonly decreaseFontSize: 'Decrease Font Size';
|
|
13933
|
+
readonly clearFormatting: 'Clear All Formatting';
|
|
13934
|
+
readonly bold: 'Bold';
|
|
13935
|
+
readonly italic: 'Italic';
|
|
13936
|
+
readonly underline: 'Underline';
|
|
13937
|
+
readonly strikethrough: 'Strikethrough';
|
|
13938
|
+
readonly shadow: 'Text Shadow';
|
|
13939
|
+
readonly characterSpacing: 'Character Spacing';
|
|
13940
|
+
readonly changeCase: 'Change Case';
|
|
13941
|
+
readonly fontColor: 'Font Color';
|
|
13942
|
+
readonly highlightColor: 'Text Highlight Color';
|
|
13943
|
+
readonly superscript: 'Superscript';
|
|
13944
|
+
readonly subscript: 'Subscript';
|
|
13945
|
+
};
|
|
13946
|
+
};
|
|
13947
|
+
readonly paragraph: {
|
|
13948
|
+
readonly label: 'Paragraph';
|
|
13949
|
+
readonly controls: {
|
|
13950
|
+
readonly bullets: 'Bullets (toggle and gallery)';
|
|
13951
|
+
readonly numbering: 'Numbering (toggle and gallery)';
|
|
13952
|
+
readonly decreaseIndent: 'Decrease List Level';
|
|
13953
|
+
readonly increaseIndent: 'Increase List Level';
|
|
13954
|
+
readonly lineSpacing: 'Line Spacing';
|
|
13955
|
+
readonly alignLeft: 'Align Left';
|
|
13956
|
+
readonly alignCenter: 'Center';
|
|
13957
|
+
readonly alignRight: 'Align Right';
|
|
13958
|
+
readonly justify: 'Justify';
|
|
13959
|
+
readonly columns: 'Columns';
|
|
13960
|
+
readonly textDirection: 'Text Direction';
|
|
13961
|
+
readonly alignText: 'Align Text';
|
|
13962
|
+
};
|
|
13963
|
+
};
|
|
13964
|
+
readonly drawing: {
|
|
13965
|
+
readonly label: 'Drawing';
|
|
13966
|
+
readonly controls: {
|
|
13967
|
+
readonly shapes: 'Shapes';
|
|
13968
|
+
readonly arrange: 'Arrange';
|
|
13969
|
+
readonly quickStyles: 'Quick Styles (Shape Styles gallery)';
|
|
13970
|
+
readonly shapeFill: 'Shape Fill';
|
|
13971
|
+
readonly shapeOutline: 'Shape Outline';
|
|
13972
|
+
readonly shapeEffects: 'Shape Effects gallery';
|
|
13973
|
+
};
|
|
13974
|
+
};
|
|
13975
|
+
readonly arrange: {
|
|
13976
|
+
readonly label: 'Arrange';
|
|
13977
|
+
readonly controls: {
|
|
13978
|
+
readonly bringForward: 'Bring Forward';
|
|
13979
|
+
readonly sendBackward: 'Send Backward';
|
|
13980
|
+
readonly bringToFront: 'Bring to Front';
|
|
13981
|
+
readonly sendToBack: 'Send to Back';
|
|
13982
|
+
readonly flipHorizontal: 'Flip Horizontal';
|
|
13983
|
+
readonly flipVertical: 'Flip Vertical';
|
|
13984
|
+
readonly duplicate: 'Duplicate';
|
|
13985
|
+
readonly delete: 'Delete';
|
|
13986
|
+
readonly group: 'Group';
|
|
13987
|
+
readonly ungroup: 'Ungroup';
|
|
13988
|
+
readonly align: 'Align';
|
|
13989
|
+
readonly mergeShapes: 'Merge Shapes';
|
|
13990
|
+
readonly crop: 'Crop';
|
|
13991
|
+
readonly outlineWidth: 'Outline width';
|
|
13992
|
+
};
|
|
13993
|
+
};
|
|
13994
|
+
readonly editing: {
|
|
13995
|
+
readonly label: 'Editing';
|
|
13996
|
+
readonly controls: {
|
|
13997
|
+
readonly find: 'Find';
|
|
13998
|
+
readonly replace: 'Replace';
|
|
13999
|
+
readonly select: 'Select';
|
|
14000
|
+
};
|
|
14001
|
+
};
|
|
14002
|
+
};
|
|
14003
|
+
readonly insert: {
|
|
14004
|
+
readonly slides: {
|
|
14005
|
+
readonly label: 'Slides';
|
|
14006
|
+
readonly controls: {
|
|
14007
|
+
readonly newSlide: 'New Slide';
|
|
14008
|
+
};
|
|
14009
|
+
};
|
|
14010
|
+
readonly tables: {
|
|
14011
|
+
readonly label: 'Tables';
|
|
14012
|
+
readonly controls: {
|
|
14013
|
+
readonly table: 'Table';
|
|
14014
|
+
};
|
|
14015
|
+
};
|
|
14016
|
+
readonly images: {
|
|
14017
|
+
readonly label: 'Images';
|
|
14018
|
+
readonly controls: {
|
|
14019
|
+
readonly pictures: 'Pictures';
|
|
14020
|
+
};
|
|
14021
|
+
};
|
|
14022
|
+
readonly illustrations: {
|
|
14023
|
+
readonly label: 'Illustrations';
|
|
14024
|
+
readonly controls: {
|
|
14025
|
+
readonly shapes: 'Shapes';
|
|
14026
|
+
readonly smartArt: 'SmartArt';
|
|
14027
|
+
readonly chart: 'Chart';
|
|
14028
|
+
};
|
|
14029
|
+
};
|
|
14030
|
+
readonly links: {
|
|
14031
|
+
readonly label: 'Links';
|
|
14032
|
+
readonly controls: {
|
|
14033
|
+
readonly link: 'Link';
|
|
14034
|
+
readonly action: 'Action button';
|
|
14035
|
+
};
|
|
14036
|
+
};
|
|
14037
|
+
readonly comments: {
|
|
14038
|
+
readonly label: 'Comments';
|
|
14039
|
+
readonly controls: {
|
|
14040
|
+
readonly comment: 'Comment';
|
|
14041
|
+
};
|
|
14042
|
+
};
|
|
14043
|
+
readonly text: {
|
|
14044
|
+
readonly label: 'Text';
|
|
14045
|
+
readonly controls: {
|
|
14046
|
+
readonly textBox: 'Text Box';
|
|
14047
|
+
readonly field: 'Header, date, slide number field';
|
|
14048
|
+
};
|
|
14049
|
+
};
|
|
14050
|
+
readonly symbols: {
|
|
14051
|
+
readonly label: 'Symbols';
|
|
14052
|
+
readonly controls: {
|
|
14053
|
+
readonly equation: 'Equation';
|
|
14054
|
+
readonly symbol: 'Symbol';
|
|
14055
|
+
};
|
|
14056
|
+
};
|
|
14057
|
+
readonly media: {
|
|
14058
|
+
readonly label: 'Media';
|
|
14059
|
+
readonly controls: {
|
|
14060
|
+
readonly media: 'Video / Audio';
|
|
14061
|
+
};
|
|
14062
|
+
};
|
|
14063
|
+
};
|
|
14064
|
+
readonly draw: {
|
|
14065
|
+
readonly tools: {
|
|
14066
|
+
readonly label: 'Drawing Tools';
|
|
14067
|
+
readonly controls: {
|
|
14068
|
+
readonly select: 'Select';
|
|
14069
|
+
readonly pen: 'Pen';
|
|
14070
|
+
readonly highlighter: 'Highlighter';
|
|
14071
|
+
readonly eraser: 'Eraser';
|
|
14072
|
+
readonly penColor: 'Pen colour';
|
|
14073
|
+
readonly penWidth: 'Pen width';
|
|
14074
|
+
};
|
|
14075
|
+
};
|
|
14076
|
+
readonly convert: {
|
|
14077
|
+
readonly label: 'Convert';
|
|
14078
|
+
readonly controls: {
|
|
14079
|
+
readonly inkToShape: 'Ink to Shape';
|
|
14080
|
+
};
|
|
14081
|
+
};
|
|
14082
|
+
};
|
|
14083
|
+
readonly design: {
|
|
14084
|
+
readonly themes: {
|
|
14085
|
+
readonly label: 'Themes';
|
|
14086
|
+
readonly controls: {
|
|
14087
|
+
readonly browseThemes: 'Themes gallery';
|
|
14088
|
+
readonly editTheme: 'Edit theme';
|
|
14089
|
+
};
|
|
14090
|
+
};
|
|
14091
|
+
readonly variants: {
|
|
14092
|
+
readonly label: 'Variants';
|
|
14093
|
+
readonly controls: {
|
|
14094
|
+
readonly colors: 'Variants: Colors gallery';
|
|
14095
|
+
readonly fonts: 'Variants: Fonts gallery';
|
|
14096
|
+
};
|
|
14097
|
+
};
|
|
14098
|
+
readonly customize: {
|
|
14099
|
+
readonly label: 'Customize';
|
|
14100
|
+
readonly controls: {
|
|
14101
|
+
readonly slideSize: 'Slide Size';
|
|
14102
|
+
readonly formatBackground: 'Format Background';
|
|
14103
|
+
};
|
|
14104
|
+
};
|
|
14105
|
+
};
|
|
14106
|
+
readonly transitions: {
|
|
14107
|
+
readonly preview: {
|
|
14108
|
+
readonly label: 'Preview';
|
|
14109
|
+
readonly controls: {
|
|
14110
|
+
readonly preview: 'Preview';
|
|
14111
|
+
};
|
|
14112
|
+
};
|
|
14113
|
+
readonly transitionToThisSlide: {
|
|
14114
|
+
readonly label: 'Transition to This Slide';
|
|
14115
|
+
readonly controls: {
|
|
14116
|
+
readonly gallery: 'Transition gallery';
|
|
14117
|
+
readonly effectOptions: 'Effect Options';
|
|
14118
|
+
};
|
|
14119
|
+
};
|
|
14120
|
+
readonly timing: {
|
|
14121
|
+
readonly label: 'Timing';
|
|
14122
|
+
readonly controls: {
|
|
14123
|
+
readonly sound: 'Sound';
|
|
14124
|
+
readonly duration: 'Duration';
|
|
14125
|
+
readonly applyToAll: 'Apply To All';
|
|
14126
|
+
readonly advanceOnClick: 'On Mouse Click';
|
|
14127
|
+
readonly advanceAfter: 'After';
|
|
14128
|
+
};
|
|
14129
|
+
};
|
|
14130
|
+
};
|
|
14131
|
+
readonly animations: {
|
|
14132
|
+
readonly preview: {
|
|
14133
|
+
readonly label: 'Preview';
|
|
14134
|
+
readonly controls: {
|
|
14135
|
+
readonly preview: 'Preview';
|
|
14136
|
+
};
|
|
14137
|
+
};
|
|
14138
|
+
readonly animation: {
|
|
14139
|
+
readonly label: 'Animation';
|
|
14140
|
+
readonly controls: {
|
|
14141
|
+
readonly gallery: 'Animation gallery';
|
|
14142
|
+
readonly effectOptions: 'Effect Options';
|
|
14143
|
+
};
|
|
14144
|
+
};
|
|
14145
|
+
readonly motionPath: {
|
|
14146
|
+
readonly label: 'Motion Paths';
|
|
14147
|
+
readonly controls: {
|
|
14148
|
+
readonly gallery: 'Motion path gallery';
|
|
14149
|
+
};
|
|
14150
|
+
};
|
|
14151
|
+
readonly advancedAnimation: {
|
|
14152
|
+
readonly label: 'Advanced Animation';
|
|
14153
|
+
readonly controls: {
|
|
14154
|
+
readonly addAnimation: 'Add Animation';
|
|
14155
|
+
readonly animationPane: 'Animation Pane';
|
|
14156
|
+
readonly trigger: 'Trigger';
|
|
14157
|
+
readonly animationPainter: 'Animation Painter';
|
|
14158
|
+
readonly remove: 'Remove animation';
|
|
14159
|
+
};
|
|
14160
|
+
};
|
|
14161
|
+
readonly timing: {
|
|
14162
|
+
readonly label: 'Timing';
|
|
14163
|
+
readonly controls: {
|
|
14164
|
+
readonly start: 'Start';
|
|
14165
|
+
readonly duration: 'Duration';
|
|
14166
|
+
readonly delay: 'Delay';
|
|
14167
|
+
readonly reorder: 'Reorder';
|
|
14168
|
+
};
|
|
14169
|
+
};
|
|
14170
|
+
};
|
|
14171
|
+
readonly slideShow: {
|
|
14172
|
+
readonly startSlideShow: {
|
|
14173
|
+
readonly label: 'Start Slide Show';
|
|
14174
|
+
readonly controls: {
|
|
14175
|
+
readonly fromBeginning: 'From Beginning';
|
|
14176
|
+
readonly fromCurrent: 'From Current Slide';
|
|
14177
|
+
readonly customShow: 'Custom Slide Show';
|
|
14178
|
+
};
|
|
14179
|
+
};
|
|
14180
|
+
readonly present: {
|
|
14181
|
+
readonly label: 'Present';
|
|
14182
|
+
readonly controls: {
|
|
14183
|
+
readonly presenterView: 'Presenter View';
|
|
14184
|
+
readonly broadcast: 'Present Online';
|
|
14185
|
+
};
|
|
14186
|
+
};
|
|
14187
|
+
readonly setUp: {
|
|
14188
|
+
readonly label: 'Set Up';
|
|
14189
|
+
readonly controls: {
|
|
14190
|
+
readonly setUpSlideShow: 'Set Up Slide Show';
|
|
14191
|
+
readonly hideSlide: 'Hide Slide';
|
|
14192
|
+
readonly rehearseTimings: 'Rehearse Timings';
|
|
14193
|
+
readonly record: 'Record';
|
|
14194
|
+
readonly rehearseWithCoach: 'Rehearse with Coach';
|
|
14195
|
+
};
|
|
14196
|
+
};
|
|
14197
|
+
readonly captions: {
|
|
14198
|
+
readonly label: 'Captions & Subtitles';
|
|
14199
|
+
readonly controls: {
|
|
14200
|
+
readonly subtitles: 'Always Use Subtitles';
|
|
14201
|
+
readonly subtitleSettings: 'Subtitle Settings';
|
|
14202
|
+
};
|
|
14203
|
+
};
|
|
14204
|
+
};
|
|
14205
|
+
readonly record: {
|
|
14206
|
+
readonly camera: {
|
|
14207
|
+
readonly label: 'Camera';
|
|
14208
|
+
readonly controls: {
|
|
14209
|
+
readonly cameo: 'Cameo';
|
|
14210
|
+
};
|
|
14211
|
+
};
|
|
14212
|
+
readonly record: {
|
|
14213
|
+
readonly label: 'Record';
|
|
14214
|
+
readonly controls: {
|
|
14215
|
+
readonly fromBeginning: 'From Beginning';
|
|
14216
|
+
readonly fromCurrent: 'From Current Slide';
|
|
14217
|
+
};
|
|
14218
|
+
};
|
|
14219
|
+
readonly manage: {
|
|
14220
|
+
readonly label: 'Manage';
|
|
14221
|
+
readonly controls: {
|
|
14222
|
+
readonly clear: 'Clear';
|
|
14223
|
+
readonly reset: 'Reset to Cameo';
|
|
14224
|
+
};
|
|
14225
|
+
};
|
|
14226
|
+
readonly help: {
|
|
14227
|
+
readonly label: 'Help';
|
|
14228
|
+
readonly controls: {
|
|
14229
|
+
readonly learnMore: 'Learn more';
|
|
14230
|
+
};
|
|
14231
|
+
};
|
|
14232
|
+
};
|
|
14233
|
+
readonly review: {
|
|
14234
|
+
readonly proofing: {
|
|
14235
|
+
readonly label: 'Proofing';
|
|
14236
|
+
readonly controls: {
|
|
14237
|
+
readonly spelling: 'Spelling';
|
|
14238
|
+
readonly thesaurus: 'Thesaurus';
|
|
14239
|
+
};
|
|
14240
|
+
};
|
|
14241
|
+
readonly accessibility: {
|
|
14242
|
+
readonly label: 'Accessibility';
|
|
14243
|
+
readonly controls: {
|
|
14244
|
+
readonly check: 'Check Accessibility';
|
|
14245
|
+
};
|
|
14246
|
+
};
|
|
14247
|
+
readonly language: {
|
|
14248
|
+
readonly label: 'Language';
|
|
14249
|
+
readonly controls: {
|
|
14250
|
+
readonly translate: 'Translate';
|
|
14251
|
+
};
|
|
14252
|
+
};
|
|
14253
|
+
readonly comments: {
|
|
14254
|
+
readonly label: 'Comments';
|
|
14255
|
+
readonly controls: {
|
|
14256
|
+
readonly newComment: 'New Comment';
|
|
14257
|
+
readonly delete: 'Delete';
|
|
14258
|
+
readonly previous: 'Previous';
|
|
14259
|
+
readonly next: 'Next';
|
|
14260
|
+
readonly showComments: 'Show Comments';
|
|
14261
|
+
};
|
|
14262
|
+
};
|
|
14263
|
+
readonly compare: {
|
|
14264
|
+
readonly label: 'Compare';
|
|
14265
|
+
readonly controls: {
|
|
14266
|
+
readonly compare: 'Compare';
|
|
14267
|
+
readonly markAllRead: 'Mark all read';
|
|
14268
|
+
};
|
|
14269
|
+
};
|
|
14270
|
+
readonly protect: {
|
|
14271
|
+
readonly label: 'Protect';
|
|
14272
|
+
readonly controls: {
|
|
14273
|
+
readonly readOnly: 'Read-only';
|
|
14274
|
+
readonly restrictPermission: 'Restrict Permission';
|
|
14275
|
+
};
|
|
14276
|
+
};
|
|
14277
|
+
readonly ink: {
|
|
14278
|
+
readonly label: 'Ink';
|
|
14279
|
+
readonly controls: {
|
|
14280
|
+
readonly hideInk: 'Hide Ink';
|
|
14281
|
+
};
|
|
14282
|
+
};
|
|
14283
|
+
};
|
|
14284
|
+
readonly view: {
|
|
14285
|
+
readonly presentationViews: {
|
|
14286
|
+
readonly label: 'Presentation Views';
|
|
14287
|
+
readonly controls: {
|
|
14288
|
+
readonly normal: 'Normal';
|
|
14289
|
+
readonly outline: 'Outline View';
|
|
14290
|
+
readonly slideSorter: 'Slide Sorter';
|
|
14291
|
+
readonly notesPage: 'Notes Page';
|
|
14292
|
+
readonly readingView: 'Reading View';
|
|
14293
|
+
};
|
|
14294
|
+
};
|
|
14295
|
+
readonly masterViews: {
|
|
14296
|
+
readonly label: 'Master Views';
|
|
14297
|
+
readonly controls: {
|
|
14298
|
+
readonly slideMaster: 'Slide Master';
|
|
14299
|
+
readonly handoutMaster: 'Handout Master';
|
|
14300
|
+
readonly notesMaster: 'Notes Master';
|
|
14301
|
+
};
|
|
14302
|
+
};
|
|
14303
|
+
readonly show: {
|
|
14304
|
+
readonly label: 'Show';
|
|
14305
|
+
readonly controls: {
|
|
14306
|
+
readonly ruler: 'Ruler';
|
|
14307
|
+
readonly gridlines: 'Gridlines';
|
|
14308
|
+
readonly guides: 'Guides';
|
|
14309
|
+
readonly snapToGrid: 'Snap to Grid';
|
|
14310
|
+
readonly snapToShape: 'Snap to Shape';
|
|
14311
|
+
readonly addGuide: 'Add horizontal / vertical guide';
|
|
14312
|
+
readonly selectionPane: 'Selection Pane';
|
|
14313
|
+
readonly eyedropper: 'Eyedropper';
|
|
14314
|
+
readonly notes: 'Notes';
|
|
14315
|
+
};
|
|
14316
|
+
};
|
|
14317
|
+
readonly zoom: {
|
|
14318
|
+
readonly label: 'Zoom';
|
|
14319
|
+
readonly controls: {
|
|
14320
|
+
readonly zoom: 'Zoom';
|
|
14321
|
+
readonly fitToWindow: 'Fit to Window';
|
|
14322
|
+
};
|
|
14323
|
+
};
|
|
14324
|
+
readonly window: {
|
|
14325
|
+
readonly label: 'Window';
|
|
14326
|
+
readonly controls: {
|
|
14327
|
+
readonly templateEditing: 'Edit template elements';
|
|
14328
|
+
readonly macros: 'Macros';
|
|
14329
|
+
};
|
|
14330
|
+
};
|
|
14331
|
+
};
|
|
14332
|
+
readonly help: {
|
|
14333
|
+
readonly help: {
|
|
14334
|
+
readonly label: 'Help';
|
|
14335
|
+
readonly controls: {
|
|
14336
|
+
readonly options: 'Options';
|
|
14337
|
+
readonly keyboardShortcuts: 'Keyboard shortcuts';
|
|
14338
|
+
readonly accessibility: 'Accessibility checker';
|
|
14339
|
+
};
|
|
14340
|
+
};
|
|
14341
|
+
};
|
|
14342
|
+
readonly shapeFormat: {
|
|
14343
|
+
readonly shapeStyles: {
|
|
14344
|
+
readonly label: 'Shape Styles';
|
|
14345
|
+
readonly controls: {
|
|
14346
|
+
readonly gallery: 'Shape Styles gallery';
|
|
14347
|
+
readonly shapeEffects: 'Shape Effects gallery';
|
|
14348
|
+
};
|
|
14349
|
+
};
|
|
14350
|
+
readonly wordArtStyles: {
|
|
14351
|
+
readonly label: 'WordArt Styles';
|
|
14352
|
+
readonly controls: {
|
|
14353
|
+
readonly gallery: 'WordArt Styles gallery';
|
|
14354
|
+
};
|
|
14355
|
+
};
|
|
14356
|
+
};
|
|
14357
|
+
readonly pictureFormat: {
|
|
14358
|
+
readonly pictureStyles: {
|
|
14359
|
+
readonly label: 'Picture Styles';
|
|
14360
|
+
readonly controls: {
|
|
14361
|
+
readonly gallery: 'Picture Styles gallery';
|
|
14362
|
+
readonly pictureEffects: 'Picture Effects gallery';
|
|
14363
|
+
};
|
|
14364
|
+
};
|
|
14365
|
+
};
|
|
14366
|
+
readonly tableDesign: {
|
|
14367
|
+
readonly tableStyles: {
|
|
14368
|
+
readonly label: 'Table Styles';
|
|
14369
|
+
readonly controls: {
|
|
14370
|
+
readonly gallery: 'Table Styles gallery';
|
|
14371
|
+
};
|
|
14372
|
+
};
|
|
14373
|
+
};
|
|
14374
|
+
readonly chartDesign: {
|
|
14375
|
+
readonly chartLayouts: {
|
|
14376
|
+
readonly label: 'Chart Layouts';
|
|
14377
|
+
readonly controls: {
|
|
14378
|
+
readonly quickLayout: 'Quick Layout gallery';
|
|
14379
|
+
};
|
|
14380
|
+
};
|
|
14381
|
+
readonly chartStyles: {
|
|
14382
|
+
readonly label: 'Chart Styles';
|
|
14383
|
+
readonly controls: {
|
|
14384
|
+
readonly changeColors: 'Change Colors gallery';
|
|
14385
|
+
readonly gallery: 'Chart Styles gallery';
|
|
14386
|
+
};
|
|
14387
|
+
};
|
|
14388
|
+
};
|
|
14389
|
+
readonly smartArtDesign: {
|
|
14390
|
+
readonly smartArtStyles: {
|
|
14391
|
+
readonly label: 'SmartArt Styles';
|
|
14392
|
+
readonly controls: {
|
|
14393
|
+
readonly changeColors: 'Change Colors gallery';
|
|
14394
|
+
readonly gallery: 'SmartArt Styles gallery';
|
|
14395
|
+
};
|
|
14396
|
+
};
|
|
14397
|
+
};
|
|
14398
|
+
};
|
|
14399
|
+
//#endregion
|
|
14400
|
+
//#region src/render/customization/ribbon-control-ids.d.ts
|
|
14401
|
+
type Catalog = typeof RIBBON_CONTROL_CATALOG;
|
|
14402
|
+
/** `<tab>.<group>`, for example `home.font`. */
|
|
14403
|
+
type RibbonGroupId = { [T in keyof Catalog]: { [G in keyof Catalog[T]]: `${T & string}.${G & string}`; }[keyof Catalog[T]]; }[keyof Catalog];
|
|
14404
|
+
/** `<tab>.<group>.<control>`, for example `home.font.bold`. */
|
|
14405
|
+
type RibbonControlId = { [T in keyof Catalog]: { [G in keyof Catalog[T]]: Catalog[T][G] extends {
|
|
14406
|
+
controls: infer C;
|
|
14407
|
+
} ? `${T & string}.${G & string}.${keyof C & string}` : never; }[keyof Catalog[T]]; }[keyof Catalog];
|
|
14408
|
+
//#endregion
|
|
13786
14409
|
//#region src/render/customization/customization-types.d.ts
|
|
13787
14410
|
/** Keys of an options group whose value is a primitive (not an array). */
|
|
13788
14411
|
type PrimitiveKeys<T> = { [K in keyof T]: T[K] extends ViewerOptionPrimitive ? K : never; }[keyof T] & string;
|
|
@@ -13807,10 +14430,20 @@ type OptionsSectionId = `${ViewerOptionsTabId}.${string}`;
|
|
|
13807
14430
|
type OptionsSettingValues = Partial<Record<OptionsSettingId, ViewerOptionPrimitive>>;
|
|
13808
14431
|
/** Ribbon and toolbar customisation. */
|
|
13809
14432
|
interface RibbonCustomization {
|
|
13810
|
-
/**
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
14433
|
+
/**
|
|
14434
|
+
* Ribbon tabs to remove (the File tab included, unlike Customize Ribbon),
|
|
14435
|
+
* and contextual tabs (`shapeFormat`, `pictureFormat`, ...) that should
|
|
14436
|
+
* never appear.
|
|
14437
|
+
*/
|
|
14438
|
+
hiddenTabs?: readonly (ToolbarTabId | RibbonContextualTabId)[];
|
|
14439
|
+
/** Groups inside a tab to remove, as `<tab>.<group>` (`home.font`). */
|
|
14440
|
+
hiddenGroups?: readonly RibbonGroupId[];
|
|
14441
|
+
/**
|
|
14442
|
+
* Controls to remove: a top-level toolbar button / control cluster
|
|
14443
|
+
* (`share`, `zoom`, ...) or any ribbon control as
|
|
14444
|
+
* `<tab>.<group>.<control>` (`home.font.bold`).
|
|
14445
|
+
*/
|
|
14446
|
+
hiddenButtons?: readonly (ToolbarButtonId | RibbonControlId)[];
|
|
13814
14447
|
}
|
|
13815
14448
|
/** File > Options (the Settings dialog) customisation. */
|
|
13816
14449
|
interface OptionsCustomization {
|
|
@@ -13948,6 +14581,12 @@ interface ResolvedKeyboardCustomization {
|
|
|
13948
14581
|
/** The normalised, set-based view of a customisation. Treat as immutable. */
|
|
13949
14582
|
interface ResolvedCustomization {
|
|
13950
14583
|
hiddenActions: ReadonlySet<ToolbarActionId>;
|
|
14584
|
+
/** Contextual tabs (`shapeFormat`, ...) the host never wants shown. */
|
|
14585
|
+
hiddenContextualTabs: ReadonlySet<RibbonContextualTabId>;
|
|
14586
|
+
/** Catalogued ribbon groups to hide (`ribbon.hiddenGroups`). */
|
|
14587
|
+
hiddenRibbonGroups: ReadonlySet<RibbonGroupId>;
|
|
14588
|
+
/** Catalogued ribbon controls to hide (the `<tab>.<group>.<control>` part of `ribbon.hiddenButtons`). */
|
|
14589
|
+
hiddenRibbonControls: ReadonlySet<RibbonControlId>;
|
|
13951
14590
|
hiddenOptionsPages: ReadonlySet<OptionsPageId>;
|
|
13952
14591
|
hiddenOptionsSections: ReadonlySet<OptionsSectionId>;
|
|
13953
14592
|
hiddenSettings: ReadonlySet<OptionsSettingId>;
|
|
@@ -13978,10 +14617,18 @@ interface ViewerCustomizationApi {
|
|
|
13978
14617
|
updateCustomization(patch: ViewerCustomization): void;
|
|
13979
14618
|
/** Drop every customisation, back to the stock UI. */
|
|
13980
14619
|
resetCustomization(): void;
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
14620
|
+
/** Hide a fixed tab, or stop a contextual tab (`shapeFormat`, ...) from appearing. */
|
|
14621
|
+
hideRibbonTab(tab: ToolbarTabId | RibbonContextualTabId): void;
|
|
14622
|
+
showRibbonTab(tab: ToolbarTabId | RibbonContextualTabId): void;
|
|
14623
|
+
/** Hide a group inside a tab (`home.font`). */
|
|
14624
|
+
hideRibbonGroup(group: RibbonGroupId): void;
|
|
14625
|
+
showRibbonGroup(group: RibbonGroupId): void;
|
|
14626
|
+
/** Hide a top-level toolbar button or any ribbon control (`home.font.bold`). */
|
|
14627
|
+
hideToolbarButton(button: ToolbarButtonId | RibbonControlId): void;
|
|
14628
|
+
showToolbarButton(button: ToolbarButtonId | RibbonControlId): void;
|
|
14629
|
+
/** Alias of `hideToolbarButton` for a ribbon control id. */
|
|
14630
|
+
hideRibbonControl(control: RibbonControlId): void;
|
|
14631
|
+
showRibbonControl(control: RibbonControlId): void;
|
|
13985
14632
|
hideOptionsPage(page: OptionsPageId): void;
|
|
13986
14633
|
showOptionsPage(page: OptionsPageId): void;
|
|
13987
14634
|
hideOptionsSection(section: OptionsSectionId): void;
|
|
@@ -14580,8 +15227,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
14580
15227
|
smartArt3D?: boolean;
|
|
14581
15228
|
/**
|
|
14582
15229
|
* Opt in to the interactive Three.js surface-chart renderer. When `true`,
|
|
14583
|
-
* `surface`/`surface3D` charts render as a
|
|
14584
|
-
*
|
|
15230
|
+
* `surface`/`surface3D` charts render as a WebGL mesh
|
|
15231
|
+
* instead of the static SVG isometric
|
|
14585
15232
|
* projection. Chart marks are not selectable/draggable in this mode.
|
|
14586
15233
|
* Requires the optional `three` peer dependency; when it is not installed
|
|
14587
15234
|
* (or the chart has no plottable grid), the viewer transparently falls back
|
|
@@ -14590,8 +15237,7 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
14590
15237
|
surfaceChart3D?: boolean;
|
|
14591
15238
|
/**
|
|
14592
15239
|
* Opt in to the interactive Three.js bar3D-chart renderer. When `true`,
|
|
14593
|
-
* `bar3D` charts render as
|
|
14594
|
-
* rotate, scroll to zoom) instead of the flat SVG oblique-projection
|
|
15240
|
+
* `bar3D` charts render as real box meshes instead of the flat SVG oblique-projection
|
|
14595
15241
|
* illusion. Chart marks are not selectable/draggable in this mode.
|
|
14596
15242
|
* Requires the optional `three` peer dependency; when it is not installed
|
|
14597
15243
|
* (or the chart has no plottable grid, or it is a horizontal 3-D Bar), the
|
|
@@ -14601,8 +15247,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
14601
15247
|
barChart3D?: boolean;
|
|
14602
15248
|
/**
|
|
14603
15249
|
* Opt in to the interactive Three.js line3D-chart renderer. When `true`,
|
|
14604
|
-
* `line3D` charts render as a
|
|
14605
|
-
* series, one per depth ("series") plane
|
|
15250
|
+
* `line3D` charts render as a real tube-path mesh per
|
|
15251
|
+
* series, one per depth ("series") plane,
|
|
14606
15252
|
* instead of the flat SVG oblique-projection illusion. Chart marks are not
|
|
14607
15253
|
* selectable/draggable in this mode. Requires the optional `three` peer
|
|
14608
15254
|
* dependency; when it is not installed (or the chart has no plottable
|
|
@@ -14612,9 +15258,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
14612
15258
|
lineChart3D?: boolean;
|
|
14613
15259
|
/**
|
|
14614
15260
|
* Opt in to the interactive Three.js area3D-chart renderer. When `true`,
|
|
14615
|
-
* `area3D` charts render as a
|
|
14616
|
-
* ribbon mesh per series, one per depth ("series") plane
|
|
14617
|
-
* scroll to zoom), instead of the flat SVG oblique-projection illusion.
|
|
15261
|
+
* `area3D` charts render as a real tube path + filled
|
|
15262
|
+
* ribbon mesh per series, one per depth ("series") plane, instead of the flat SVG oblique-projection illusion.
|
|
14618
15263
|
* Chart marks are not selectable/draggable in this mode. Requires the
|
|
14619
15264
|
* optional `three` peer dependency; when it is not installed (or the chart
|
|
14620
15265
|
* has no plottable grid), the viewer transparently falls back to the flat
|
|
@@ -14623,8 +15268,7 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
14623
15268
|
areaChart3D?: boolean;
|
|
14624
15269
|
/**
|
|
14625
15270
|
* Opt in to the interactive Three.js pie3D-chart renderer. When `true`,
|
|
14626
|
-
* `pie3D` charts render as
|
|
14627
|
-
* rotate, scroll to zoom) instead of the flat SVG oblique-projection
|
|
15271
|
+
* `pie3D` charts render as real wedge meshes instead of the flat SVG oblique-projection
|
|
14628
15272
|
* illusion. Chart marks are not selectable/draggable in this mode.
|
|
14629
15273
|
* Requires the optional `three` peer dependency; when it is not installed
|
|
14630
15274
|
* (or the chart has no plottable series), the viewer transparently falls
|