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/viewer/index.d.ts
CHANGED
|
@@ -1952,6 +1952,16 @@ interface TextStyle {
|
|
|
1952
1952
|
textReflectionEndOpacity?: number;
|
|
1953
1953
|
/** Text reflection offset distance in px. */
|
|
1954
1954
|
textReflectionOffset?: number;
|
|
1955
|
+
/**
|
|
1956
|
+
* Text reflection end position (`@endPos`) as a 0-1 fraction of the text
|
|
1957
|
+
* height the fade reaches. Mirrors `ShapeStyle.reflectionEndPosition`.
|
|
1958
|
+
*/
|
|
1959
|
+
textReflectionEndPosition?: number;
|
|
1960
|
+
/**
|
|
1961
|
+
* Text reflection offset direction (`@dir`) in degrees. Mirrors
|
|
1962
|
+
* `ShapeStyle.reflectionDirection`.
|
|
1963
|
+
*/
|
|
1964
|
+
textReflectionDirection?: number;
|
|
1955
1965
|
/**
|
|
1956
1966
|
* Text reflection fade direction (`a:rPr/a:effectLst/a:reflection/@fadeDir`)
|
|
1957
1967
|
* in degrees. Mirrors `ShapeStyle.reflectionFadeDirection`.
|
|
@@ -2270,6 +2280,21 @@ interface TextSegment {
|
|
|
2270
2280
|
* populated; unrelated fields fall back to the shape-level style.
|
|
2271
2281
|
*/
|
|
2272
2282
|
paragraphProperties?: TextStyle;
|
|
2283
|
+
/**
|
|
2284
|
+
* The paragraph this segment starts authored an EMPTY `<a:pPr/>`. Only
|
|
2285
|
+
* meaningful on the first segment of a paragraph. The writer re-emits the
|
|
2286
|
+
* empty element when it has no paragraph property of its own to write, so
|
|
2287
|
+
* a rewritten slide keeps the markup PowerPoint wrote.
|
|
2288
|
+
*/
|
|
2289
|
+
emptyParagraphPropertiesAuthored?: boolean;
|
|
2290
|
+
/**
|
|
2291
|
+
* The paragraph this segment starts has no run content and authored no
|
|
2292
|
+
* `a:endParaRPr` (a bare `<a:p/>`, possibly with an `a:pPr`). Only
|
|
2293
|
+
* meaningful on the first segment of a paragraph. It stops the writer
|
|
2294
|
+
* inventing an empty run or an `<a:endParaRPr lang="en-US"/>` stub for a
|
|
2295
|
+
* paragraph that still has no content when saved.
|
|
2296
|
+
*/
|
|
2297
|
+
bareParagraph?: boolean;
|
|
2273
2298
|
/**
|
|
2274
2299
|
* Phonetic annotation text from `a:ruby > a:rt` (e.g. furigana, pinyin).
|
|
2275
2300
|
* When present, the renderer should wrap the base text with an HTML `<ruby>` tag.
|
|
@@ -7864,6 +7889,84 @@ interface PptxThemeOption {
|
|
|
7864
7889
|
name?: string;
|
|
7865
7890
|
}
|
|
7866
7891
|
//#endregion
|
|
7892
|
+
//#region src/core/types/animation-behavior.d.ts
|
|
7893
|
+
/** Timing of one behaviour, from its own `p:cBhvr/p:cTn`. */
|
|
7894
|
+
interface PptxAnimationBehaviorTiming {
|
|
7895
|
+
/** `p:cTn/@dur` in ms; absent when `indefinite` or unset. */
|
|
7896
|
+
durationMs?: number;
|
|
7897
|
+
/** Start offset in ms from `p:stCondLst/p:cond/@delay`, relative to the effect start. */
|
|
7898
|
+
delayMs?: number;
|
|
7899
|
+
/** `p:cTn/@accel` as a 0..1 fraction of the behaviour's duration. */
|
|
7900
|
+
accel?: number;
|
|
7901
|
+
/** `p:cTn/@decel` as a 0..1 fraction of the behaviour's duration. */
|
|
7902
|
+
decel?: number;
|
|
7903
|
+
/** `p:cTn/@autoRev`: play forward, then backward, doubling the active time. */
|
|
7904
|
+
autoReverse?: boolean;
|
|
7905
|
+
/** `p:cTn/@repeatCount` in plain iterations (OOXML stores thousandths). */
|
|
7906
|
+
repeatCount?: number;
|
|
7907
|
+
/** `p:cTn/@tmFilter`: the raw `"t,v; t,v; ..."` time remapping list. */
|
|
7908
|
+
tmFilter?: string;
|
|
7909
|
+
}
|
|
7910
|
+
interface BehaviorBase {
|
|
7911
|
+
/** Lower-cased `p:attrNameLst` entries, in document order. */
|
|
7912
|
+
attrNames: string[];
|
|
7913
|
+
/** `p:cBhvr/@additive` (`base`, `sum`, `repl`, `mult`, `none`). */
|
|
7914
|
+
additive?: string;
|
|
7915
|
+
timing: PptxAnimationBehaviorTiming;
|
|
7916
|
+
}
|
|
7917
|
+
/** `p:set`: a discrete value held from the behaviour's start. */
|
|
7918
|
+
interface PptxSetBehavior extends BehaviorBase {
|
|
7919
|
+
kind: 'set';
|
|
7920
|
+
value: string | number | boolean;
|
|
7921
|
+
}
|
|
7922
|
+
/** `p:anim`: a `p:tavLst` ramp or a `from`/`to`/`by` formula ramp. */
|
|
7923
|
+
interface PptxAnimBehavior extends BehaviorBase {
|
|
7924
|
+
kind: 'anim';
|
|
7925
|
+
calcMode?: 'discrete' | 'lin' | 'fmla';
|
|
7926
|
+
valueType?: string;
|
|
7927
|
+
from?: string;
|
|
7928
|
+
to?: string;
|
|
7929
|
+
by?: string;
|
|
7930
|
+
keyframes: PptxAnimationKeyframe[];
|
|
7931
|
+
}
|
|
7932
|
+
/** `p:animEffect`: a filter transition (`fade`, `wipe(down)`...). */
|
|
7933
|
+
interface PptxAnimEffectBehavior extends BehaviorBase {
|
|
7934
|
+
kind: 'animEffect';
|
|
7935
|
+
filter?: string;
|
|
7936
|
+
transition?: 'in' | 'out' | 'none';
|
|
7937
|
+
}
|
|
7938
|
+
/** A `p:animScale` factor pair (1 = unscaled) or a `p:animMotion` offset (slide fractions). */
|
|
7939
|
+
interface PptxBehaviorPoint {
|
|
7940
|
+
x: number;
|
|
7941
|
+
y: number;
|
|
7942
|
+
}
|
|
7943
|
+
/** `p:animScale`: scale factors as fractions (OOXML stores percent*1000, so `100000` = 1). */
|
|
7944
|
+
interface PptxAnimScaleBehavior extends BehaviorBase {
|
|
7945
|
+
kind: 'animScale';
|
|
7946
|
+
from?: PptxBehaviorPoint;
|
|
7947
|
+
to?: PptxBehaviorPoint;
|
|
7948
|
+
by?: PptxBehaviorPoint;
|
|
7949
|
+
zoomContents?: boolean;
|
|
7950
|
+
}
|
|
7951
|
+
/** `p:animRot`: rotation in degrees (OOXML stores 60000ths). */
|
|
7952
|
+
interface PptxAnimRotBehavior extends BehaviorBase {
|
|
7953
|
+
kind: 'animRot';
|
|
7954
|
+
from?: number;
|
|
7955
|
+
to?: number;
|
|
7956
|
+
by?: number;
|
|
7957
|
+
}
|
|
7958
|
+
/** `p:animMotion`: a path (slide fractions) or a `from`/`to`/`by` offset. */
|
|
7959
|
+
interface PptxAnimMotionBehavior extends BehaviorBase {
|
|
7960
|
+
kind: 'animMotion';
|
|
7961
|
+
path?: string;
|
|
7962
|
+
origin?: string;
|
|
7963
|
+
from?: PptxBehaviorPoint;
|
|
7964
|
+
to?: PptxBehaviorPoint;
|
|
7965
|
+
by?: PptxBehaviorPoint;
|
|
7966
|
+
}
|
|
7967
|
+
/** One behaviour child of an effect, tagged by its OOXML element. */
|
|
7968
|
+
type PptxAnimationBehavior = PptxSetBehavior | PptxAnimBehavior | PptxAnimEffectBehavior | PptxAnimScaleBehavior | PptxAnimRotBehavior | PptxAnimMotionBehavior;
|
|
7969
|
+
//#endregion
|
|
7867
7970
|
//#region src/core/types/animation.d.ts
|
|
7868
7971
|
/**
|
|
7869
7972
|
* Built-in animation preset names used for entrance, exit, and emphasis effects.
|
|
@@ -8415,6 +8518,14 @@ interface PptxNativeAnimation {
|
|
|
8415
8518
|
* shared playback (round-trip/typed-model only so far).
|
|
8416
8519
|
*/
|
|
8417
8520
|
setAnimations?: PptxSetAnimation[];
|
|
8521
|
+
/**
|
|
8522
|
+
* Every behaviour child of this effect (`p:set`, `p:anim`, `p:animEffect`,
|
|
8523
|
+
* `p:animScale`, `p:animRot`, `p:animMotion`) with its own timing, as
|
|
8524
|
+
* authored. The single-valued fields above flatten a composed preset;
|
|
8525
|
+
* this keeps the whole tree so playback can follow what PowerPoint wrote
|
|
8526
|
+
* (see `animation-behavior-player` in `pptx-viewer-shared`).
|
|
8527
|
+
*/
|
|
8528
|
+
behaviors?: PptxAnimationBehavior[];
|
|
8418
8529
|
}
|
|
8419
8530
|
/**
|
|
8420
8531
|
* One `p:set` discrete (non-interpolated) attribute assignment composed
|
|
@@ -12592,6 +12703,13 @@ type ToolbarButtonId = 'share' | 'broadcast' | 'export' | 'undo' | 'redo' | 'rec
|
|
|
12592
12703
|
/** 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. */
|
|
12593
12704
|
type ToolbarTabId = 'file' | 'home' | 'insert' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
|
|
12594
12705
|
type ToolbarActionId = ToolbarButtonId | ToolbarTabId;
|
|
12706
|
+
/**
|
|
12707
|
+
* PowerPoint's contextual tabs: they join the tab row only while the
|
|
12708
|
+
* selection is of their kind (see `contextualTabsForElement` in
|
|
12709
|
+
* `ribbon-galleries/`). Kept apart from `ToolbarTabId` because they are not
|
|
12710
|
+
* part of the fixed tab order every binding renders.
|
|
12711
|
+
*/
|
|
12712
|
+
type RibbonContextualTabId = 'shapeFormat' | 'pictureFormat' | 'tableDesign' | 'chartDesign' | 'smartArtDesign';
|
|
12595
12713
|
//#endregion
|
|
12596
12714
|
//#region src/render/options/viewer-options.d.ts
|
|
12597
12715
|
/**
|
|
@@ -12765,6 +12883,511 @@ type FreeformToolKind = 'freeformShape' | 'curve';
|
|
|
12765
12883
|
*/
|
|
12766
12884
|
type ViewerOptionsTabId = 'general' | 'proofing' | 'save' | 'language' | 'accessibility' | 'advanced' | 'ribbon' | 'quickAccess' | 'addIns' | 'trust';
|
|
12767
12885
|
//#endregion
|
|
12886
|
+
//#region src/render/customization/ribbon-control-catalog.d.ts
|
|
12887
|
+
declare const RIBBON_CONTROL_CATALOG: {
|
|
12888
|
+
readonly home: {
|
|
12889
|
+
readonly clipboard: {
|
|
12890
|
+
readonly label: 'Clipboard';
|
|
12891
|
+
readonly controls: {
|
|
12892
|
+
readonly paste: 'Paste';
|
|
12893
|
+
readonly cut: 'Cut';
|
|
12894
|
+
readonly copy: 'Copy';
|
|
12895
|
+
readonly formatPainter: 'Format Painter';
|
|
12896
|
+
};
|
|
12897
|
+
};
|
|
12898
|
+
readonly slides: {
|
|
12899
|
+
readonly label: 'Slides';
|
|
12900
|
+
readonly controls: {
|
|
12901
|
+
readonly newSlide: 'New Slide';
|
|
12902
|
+
readonly layout: 'Layout';
|
|
12903
|
+
readonly reset: 'Reset';
|
|
12904
|
+
readonly section: 'Section';
|
|
12905
|
+
readonly slideTemplates: 'Slide templates';
|
|
12906
|
+
};
|
|
12907
|
+
};
|
|
12908
|
+
readonly font: {
|
|
12909
|
+
readonly label: 'Font';
|
|
12910
|
+
readonly controls: {
|
|
12911
|
+
readonly fontFamily: 'Font';
|
|
12912
|
+
readonly fontSize: 'Font Size';
|
|
12913
|
+
readonly increaseFontSize: 'Increase Font Size';
|
|
12914
|
+
readonly decreaseFontSize: 'Decrease Font Size';
|
|
12915
|
+
readonly clearFormatting: 'Clear All Formatting';
|
|
12916
|
+
readonly bold: 'Bold';
|
|
12917
|
+
readonly italic: 'Italic';
|
|
12918
|
+
readonly underline: 'Underline';
|
|
12919
|
+
readonly strikethrough: 'Strikethrough';
|
|
12920
|
+
readonly shadow: 'Text Shadow';
|
|
12921
|
+
readonly characterSpacing: 'Character Spacing';
|
|
12922
|
+
readonly changeCase: 'Change Case';
|
|
12923
|
+
readonly fontColor: 'Font Color';
|
|
12924
|
+
readonly highlightColor: 'Text Highlight Color';
|
|
12925
|
+
readonly superscript: 'Superscript';
|
|
12926
|
+
readonly subscript: 'Subscript';
|
|
12927
|
+
};
|
|
12928
|
+
};
|
|
12929
|
+
readonly paragraph: {
|
|
12930
|
+
readonly label: 'Paragraph';
|
|
12931
|
+
readonly controls: {
|
|
12932
|
+
readonly bullets: 'Bullets (toggle and gallery)';
|
|
12933
|
+
readonly numbering: 'Numbering (toggle and gallery)';
|
|
12934
|
+
readonly decreaseIndent: 'Decrease List Level';
|
|
12935
|
+
readonly increaseIndent: 'Increase List Level';
|
|
12936
|
+
readonly lineSpacing: 'Line Spacing';
|
|
12937
|
+
readonly alignLeft: 'Align Left';
|
|
12938
|
+
readonly alignCenter: 'Center';
|
|
12939
|
+
readonly alignRight: 'Align Right';
|
|
12940
|
+
readonly justify: 'Justify';
|
|
12941
|
+
readonly columns: 'Columns';
|
|
12942
|
+
readonly textDirection: 'Text Direction';
|
|
12943
|
+
readonly alignText: 'Align Text';
|
|
12944
|
+
};
|
|
12945
|
+
};
|
|
12946
|
+
readonly drawing: {
|
|
12947
|
+
readonly label: 'Drawing';
|
|
12948
|
+
readonly controls: {
|
|
12949
|
+
readonly shapes: 'Shapes';
|
|
12950
|
+
readonly arrange: 'Arrange';
|
|
12951
|
+
readonly quickStyles: 'Quick Styles (Shape Styles gallery)';
|
|
12952
|
+
readonly shapeFill: 'Shape Fill';
|
|
12953
|
+
readonly shapeOutline: 'Shape Outline';
|
|
12954
|
+
readonly shapeEffects: 'Shape Effects gallery';
|
|
12955
|
+
};
|
|
12956
|
+
};
|
|
12957
|
+
readonly arrange: {
|
|
12958
|
+
readonly label: 'Arrange';
|
|
12959
|
+
readonly controls: {
|
|
12960
|
+
readonly bringForward: 'Bring Forward';
|
|
12961
|
+
readonly sendBackward: 'Send Backward';
|
|
12962
|
+
readonly bringToFront: 'Bring to Front';
|
|
12963
|
+
readonly sendToBack: 'Send to Back';
|
|
12964
|
+
readonly flipHorizontal: 'Flip Horizontal';
|
|
12965
|
+
readonly flipVertical: 'Flip Vertical';
|
|
12966
|
+
readonly duplicate: 'Duplicate';
|
|
12967
|
+
readonly delete: 'Delete';
|
|
12968
|
+
readonly group: 'Group';
|
|
12969
|
+
readonly ungroup: 'Ungroup';
|
|
12970
|
+
readonly align: 'Align';
|
|
12971
|
+
readonly mergeShapes: 'Merge Shapes';
|
|
12972
|
+
readonly crop: 'Crop';
|
|
12973
|
+
readonly outlineWidth: 'Outline width';
|
|
12974
|
+
};
|
|
12975
|
+
};
|
|
12976
|
+
readonly editing: {
|
|
12977
|
+
readonly label: 'Editing';
|
|
12978
|
+
readonly controls: {
|
|
12979
|
+
readonly find: 'Find';
|
|
12980
|
+
readonly replace: 'Replace';
|
|
12981
|
+
readonly select: 'Select';
|
|
12982
|
+
};
|
|
12983
|
+
};
|
|
12984
|
+
};
|
|
12985
|
+
readonly insert: {
|
|
12986
|
+
readonly slides: {
|
|
12987
|
+
readonly label: 'Slides';
|
|
12988
|
+
readonly controls: {
|
|
12989
|
+
readonly newSlide: 'New Slide';
|
|
12990
|
+
};
|
|
12991
|
+
};
|
|
12992
|
+
readonly tables: {
|
|
12993
|
+
readonly label: 'Tables';
|
|
12994
|
+
readonly controls: {
|
|
12995
|
+
readonly table: 'Table';
|
|
12996
|
+
};
|
|
12997
|
+
};
|
|
12998
|
+
readonly images: {
|
|
12999
|
+
readonly label: 'Images';
|
|
13000
|
+
readonly controls: {
|
|
13001
|
+
readonly pictures: 'Pictures';
|
|
13002
|
+
};
|
|
13003
|
+
};
|
|
13004
|
+
readonly illustrations: {
|
|
13005
|
+
readonly label: 'Illustrations';
|
|
13006
|
+
readonly controls: {
|
|
13007
|
+
readonly shapes: 'Shapes';
|
|
13008
|
+
readonly smartArt: 'SmartArt';
|
|
13009
|
+
readonly chart: 'Chart';
|
|
13010
|
+
};
|
|
13011
|
+
};
|
|
13012
|
+
readonly links: {
|
|
13013
|
+
readonly label: 'Links';
|
|
13014
|
+
readonly controls: {
|
|
13015
|
+
readonly link: 'Link';
|
|
13016
|
+
readonly action: 'Action button';
|
|
13017
|
+
};
|
|
13018
|
+
};
|
|
13019
|
+
readonly comments: {
|
|
13020
|
+
readonly label: 'Comments';
|
|
13021
|
+
readonly controls: {
|
|
13022
|
+
readonly comment: 'Comment';
|
|
13023
|
+
};
|
|
13024
|
+
};
|
|
13025
|
+
readonly text: {
|
|
13026
|
+
readonly label: 'Text';
|
|
13027
|
+
readonly controls: {
|
|
13028
|
+
readonly textBox: 'Text Box';
|
|
13029
|
+
readonly field: 'Header, date, slide number field';
|
|
13030
|
+
};
|
|
13031
|
+
};
|
|
13032
|
+
readonly symbols: {
|
|
13033
|
+
readonly label: 'Symbols';
|
|
13034
|
+
readonly controls: {
|
|
13035
|
+
readonly equation: 'Equation';
|
|
13036
|
+
readonly symbol: 'Symbol';
|
|
13037
|
+
};
|
|
13038
|
+
};
|
|
13039
|
+
readonly media: {
|
|
13040
|
+
readonly label: 'Media';
|
|
13041
|
+
readonly controls: {
|
|
13042
|
+
readonly media: 'Video / Audio';
|
|
13043
|
+
};
|
|
13044
|
+
};
|
|
13045
|
+
};
|
|
13046
|
+
readonly draw: {
|
|
13047
|
+
readonly tools: {
|
|
13048
|
+
readonly label: 'Drawing Tools';
|
|
13049
|
+
readonly controls: {
|
|
13050
|
+
readonly select: 'Select';
|
|
13051
|
+
readonly pen: 'Pen';
|
|
13052
|
+
readonly highlighter: 'Highlighter';
|
|
13053
|
+
readonly eraser: 'Eraser';
|
|
13054
|
+
readonly penColor: 'Pen colour';
|
|
13055
|
+
readonly penWidth: 'Pen width';
|
|
13056
|
+
};
|
|
13057
|
+
};
|
|
13058
|
+
readonly convert: {
|
|
13059
|
+
readonly label: 'Convert';
|
|
13060
|
+
readonly controls: {
|
|
13061
|
+
readonly inkToShape: 'Ink to Shape';
|
|
13062
|
+
};
|
|
13063
|
+
};
|
|
13064
|
+
};
|
|
13065
|
+
readonly design: {
|
|
13066
|
+
readonly themes: {
|
|
13067
|
+
readonly label: 'Themes';
|
|
13068
|
+
readonly controls: {
|
|
13069
|
+
readonly browseThemes: 'Themes gallery';
|
|
13070
|
+
readonly editTheme: 'Edit theme';
|
|
13071
|
+
};
|
|
13072
|
+
};
|
|
13073
|
+
readonly variants: {
|
|
13074
|
+
readonly label: 'Variants';
|
|
13075
|
+
readonly controls: {
|
|
13076
|
+
readonly colors: 'Variants: Colors gallery';
|
|
13077
|
+
readonly fonts: 'Variants: Fonts gallery';
|
|
13078
|
+
};
|
|
13079
|
+
};
|
|
13080
|
+
readonly customize: {
|
|
13081
|
+
readonly label: 'Customize';
|
|
13082
|
+
readonly controls: {
|
|
13083
|
+
readonly slideSize: 'Slide Size';
|
|
13084
|
+
readonly formatBackground: 'Format Background';
|
|
13085
|
+
};
|
|
13086
|
+
};
|
|
13087
|
+
};
|
|
13088
|
+
readonly transitions: {
|
|
13089
|
+
readonly preview: {
|
|
13090
|
+
readonly label: 'Preview';
|
|
13091
|
+
readonly controls: {
|
|
13092
|
+
readonly preview: 'Preview';
|
|
13093
|
+
};
|
|
13094
|
+
};
|
|
13095
|
+
readonly transitionToThisSlide: {
|
|
13096
|
+
readonly label: 'Transition to This Slide';
|
|
13097
|
+
readonly controls: {
|
|
13098
|
+
readonly gallery: 'Transition gallery';
|
|
13099
|
+
readonly effectOptions: 'Effect Options';
|
|
13100
|
+
};
|
|
13101
|
+
};
|
|
13102
|
+
readonly timing: {
|
|
13103
|
+
readonly label: 'Timing';
|
|
13104
|
+
readonly controls: {
|
|
13105
|
+
readonly sound: 'Sound';
|
|
13106
|
+
readonly duration: 'Duration';
|
|
13107
|
+
readonly applyToAll: 'Apply To All';
|
|
13108
|
+
readonly advanceOnClick: 'On Mouse Click';
|
|
13109
|
+
readonly advanceAfter: 'After';
|
|
13110
|
+
};
|
|
13111
|
+
};
|
|
13112
|
+
};
|
|
13113
|
+
readonly animations: {
|
|
13114
|
+
readonly preview: {
|
|
13115
|
+
readonly label: 'Preview';
|
|
13116
|
+
readonly controls: {
|
|
13117
|
+
readonly preview: 'Preview';
|
|
13118
|
+
};
|
|
13119
|
+
};
|
|
13120
|
+
readonly animation: {
|
|
13121
|
+
readonly label: 'Animation';
|
|
13122
|
+
readonly controls: {
|
|
13123
|
+
readonly gallery: 'Animation gallery';
|
|
13124
|
+
readonly effectOptions: 'Effect Options';
|
|
13125
|
+
};
|
|
13126
|
+
};
|
|
13127
|
+
readonly motionPath: {
|
|
13128
|
+
readonly label: 'Motion Paths';
|
|
13129
|
+
readonly controls: {
|
|
13130
|
+
readonly gallery: 'Motion path gallery';
|
|
13131
|
+
};
|
|
13132
|
+
};
|
|
13133
|
+
readonly advancedAnimation: {
|
|
13134
|
+
readonly label: 'Advanced Animation';
|
|
13135
|
+
readonly controls: {
|
|
13136
|
+
readonly addAnimation: 'Add Animation';
|
|
13137
|
+
readonly animationPane: 'Animation Pane';
|
|
13138
|
+
readonly trigger: 'Trigger';
|
|
13139
|
+
readonly animationPainter: 'Animation Painter';
|
|
13140
|
+
readonly remove: 'Remove animation';
|
|
13141
|
+
};
|
|
13142
|
+
};
|
|
13143
|
+
readonly timing: {
|
|
13144
|
+
readonly label: 'Timing';
|
|
13145
|
+
readonly controls: {
|
|
13146
|
+
readonly start: 'Start';
|
|
13147
|
+
readonly duration: 'Duration';
|
|
13148
|
+
readonly delay: 'Delay';
|
|
13149
|
+
readonly reorder: 'Reorder';
|
|
13150
|
+
};
|
|
13151
|
+
};
|
|
13152
|
+
};
|
|
13153
|
+
readonly slideShow: {
|
|
13154
|
+
readonly startSlideShow: {
|
|
13155
|
+
readonly label: 'Start Slide Show';
|
|
13156
|
+
readonly controls: {
|
|
13157
|
+
readonly fromBeginning: 'From Beginning';
|
|
13158
|
+
readonly fromCurrent: 'From Current Slide';
|
|
13159
|
+
readonly customShow: 'Custom Slide Show';
|
|
13160
|
+
};
|
|
13161
|
+
};
|
|
13162
|
+
readonly present: {
|
|
13163
|
+
readonly label: 'Present';
|
|
13164
|
+
readonly controls: {
|
|
13165
|
+
readonly presenterView: 'Presenter View';
|
|
13166
|
+
readonly broadcast: 'Present Online';
|
|
13167
|
+
};
|
|
13168
|
+
};
|
|
13169
|
+
readonly setUp: {
|
|
13170
|
+
readonly label: 'Set Up';
|
|
13171
|
+
readonly controls: {
|
|
13172
|
+
readonly setUpSlideShow: 'Set Up Slide Show';
|
|
13173
|
+
readonly hideSlide: 'Hide Slide';
|
|
13174
|
+
readonly rehearseTimings: 'Rehearse Timings';
|
|
13175
|
+
readonly record: 'Record';
|
|
13176
|
+
readonly rehearseWithCoach: 'Rehearse with Coach';
|
|
13177
|
+
};
|
|
13178
|
+
};
|
|
13179
|
+
readonly captions: {
|
|
13180
|
+
readonly label: 'Captions & Subtitles';
|
|
13181
|
+
readonly controls: {
|
|
13182
|
+
readonly subtitles: 'Always Use Subtitles';
|
|
13183
|
+
readonly subtitleSettings: 'Subtitle Settings';
|
|
13184
|
+
};
|
|
13185
|
+
};
|
|
13186
|
+
};
|
|
13187
|
+
readonly record: {
|
|
13188
|
+
readonly camera: {
|
|
13189
|
+
readonly label: 'Camera';
|
|
13190
|
+
readonly controls: {
|
|
13191
|
+
readonly cameo: 'Cameo';
|
|
13192
|
+
};
|
|
13193
|
+
};
|
|
13194
|
+
readonly record: {
|
|
13195
|
+
readonly label: 'Record';
|
|
13196
|
+
readonly controls: {
|
|
13197
|
+
readonly fromBeginning: 'From Beginning';
|
|
13198
|
+
readonly fromCurrent: 'From Current Slide';
|
|
13199
|
+
};
|
|
13200
|
+
};
|
|
13201
|
+
readonly manage: {
|
|
13202
|
+
readonly label: 'Manage';
|
|
13203
|
+
readonly controls: {
|
|
13204
|
+
readonly clear: 'Clear';
|
|
13205
|
+
readonly reset: 'Reset to Cameo';
|
|
13206
|
+
};
|
|
13207
|
+
};
|
|
13208
|
+
readonly help: {
|
|
13209
|
+
readonly label: 'Help';
|
|
13210
|
+
readonly controls: {
|
|
13211
|
+
readonly learnMore: 'Learn more';
|
|
13212
|
+
};
|
|
13213
|
+
};
|
|
13214
|
+
};
|
|
13215
|
+
readonly review: {
|
|
13216
|
+
readonly proofing: {
|
|
13217
|
+
readonly label: 'Proofing';
|
|
13218
|
+
readonly controls: {
|
|
13219
|
+
readonly spelling: 'Spelling';
|
|
13220
|
+
readonly thesaurus: 'Thesaurus';
|
|
13221
|
+
};
|
|
13222
|
+
};
|
|
13223
|
+
readonly accessibility: {
|
|
13224
|
+
readonly label: 'Accessibility';
|
|
13225
|
+
readonly controls: {
|
|
13226
|
+
readonly check: 'Check Accessibility';
|
|
13227
|
+
};
|
|
13228
|
+
};
|
|
13229
|
+
readonly language: {
|
|
13230
|
+
readonly label: 'Language';
|
|
13231
|
+
readonly controls: {
|
|
13232
|
+
readonly translate: 'Translate';
|
|
13233
|
+
};
|
|
13234
|
+
};
|
|
13235
|
+
readonly comments: {
|
|
13236
|
+
readonly label: 'Comments';
|
|
13237
|
+
readonly controls: {
|
|
13238
|
+
readonly newComment: 'New Comment';
|
|
13239
|
+
readonly delete: 'Delete';
|
|
13240
|
+
readonly previous: 'Previous';
|
|
13241
|
+
readonly next: 'Next';
|
|
13242
|
+
readonly showComments: 'Show Comments';
|
|
13243
|
+
};
|
|
13244
|
+
};
|
|
13245
|
+
readonly compare: {
|
|
13246
|
+
readonly label: 'Compare';
|
|
13247
|
+
readonly controls: {
|
|
13248
|
+
readonly compare: 'Compare';
|
|
13249
|
+
readonly markAllRead: 'Mark all read';
|
|
13250
|
+
};
|
|
13251
|
+
};
|
|
13252
|
+
readonly protect: {
|
|
13253
|
+
readonly label: 'Protect';
|
|
13254
|
+
readonly controls: {
|
|
13255
|
+
readonly readOnly: 'Read-only';
|
|
13256
|
+
readonly restrictPermission: 'Restrict Permission';
|
|
13257
|
+
};
|
|
13258
|
+
};
|
|
13259
|
+
readonly ink: {
|
|
13260
|
+
readonly label: 'Ink';
|
|
13261
|
+
readonly controls: {
|
|
13262
|
+
readonly hideInk: 'Hide Ink';
|
|
13263
|
+
};
|
|
13264
|
+
};
|
|
13265
|
+
};
|
|
13266
|
+
readonly view: {
|
|
13267
|
+
readonly presentationViews: {
|
|
13268
|
+
readonly label: 'Presentation Views';
|
|
13269
|
+
readonly controls: {
|
|
13270
|
+
readonly normal: 'Normal';
|
|
13271
|
+
readonly outline: 'Outline View';
|
|
13272
|
+
readonly slideSorter: 'Slide Sorter';
|
|
13273
|
+
readonly notesPage: 'Notes Page';
|
|
13274
|
+
readonly readingView: 'Reading View';
|
|
13275
|
+
};
|
|
13276
|
+
};
|
|
13277
|
+
readonly masterViews: {
|
|
13278
|
+
readonly label: 'Master Views';
|
|
13279
|
+
readonly controls: {
|
|
13280
|
+
readonly slideMaster: 'Slide Master';
|
|
13281
|
+
readonly handoutMaster: 'Handout Master';
|
|
13282
|
+
readonly notesMaster: 'Notes Master';
|
|
13283
|
+
};
|
|
13284
|
+
};
|
|
13285
|
+
readonly show: {
|
|
13286
|
+
readonly label: 'Show';
|
|
13287
|
+
readonly controls: {
|
|
13288
|
+
readonly ruler: 'Ruler';
|
|
13289
|
+
readonly gridlines: 'Gridlines';
|
|
13290
|
+
readonly guides: 'Guides';
|
|
13291
|
+
readonly snapToGrid: 'Snap to Grid';
|
|
13292
|
+
readonly snapToShape: 'Snap to Shape';
|
|
13293
|
+
readonly addGuide: 'Add horizontal / vertical guide';
|
|
13294
|
+
readonly selectionPane: 'Selection Pane';
|
|
13295
|
+
readonly eyedropper: 'Eyedropper';
|
|
13296
|
+
readonly notes: 'Notes';
|
|
13297
|
+
};
|
|
13298
|
+
};
|
|
13299
|
+
readonly zoom: {
|
|
13300
|
+
readonly label: 'Zoom';
|
|
13301
|
+
readonly controls: {
|
|
13302
|
+
readonly zoom: 'Zoom';
|
|
13303
|
+
readonly fitToWindow: 'Fit to Window';
|
|
13304
|
+
};
|
|
13305
|
+
};
|
|
13306
|
+
readonly window: {
|
|
13307
|
+
readonly label: 'Window';
|
|
13308
|
+
readonly controls: {
|
|
13309
|
+
readonly templateEditing: 'Edit template elements';
|
|
13310
|
+
readonly macros: 'Macros';
|
|
13311
|
+
};
|
|
13312
|
+
};
|
|
13313
|
+
};
|
|
13314
|
+
readonly help: {
|
|
13315
|
+
readonly help: {
|
|
13316
|
+
readonly label: 'Help';
|
|
13317
|
+
readonly controls: {
|
|
13318
|
+
readonly options: 'Options';
|
|
13319
|
+
readonly keyboardShortcuts: 'Keyboard shortcuts';
|
|
13320
|
+
readonly accessibility: 'Accessibility checker';
|
|
13321
|
+
};
|
|
13322
|
+
};
|
|
13323
|
+
};
|
|
13324
|
+
readonly shapeFormat: {
|
|
13325
|
+
readonly shapeStyles: {
|
|
13326
|
+
readonly label: 'Shape Styles';
|
|
13327
|
+
readonly controls: {
|
|
13328
|
+
readonly gallery: 'Shape Styles gallery';
|
|
13329
|
+
readonly shapeEffects: 'Shape Effects gallery';
|
|
13330
|
+
};
|
|
13331
|
+
};
|
|
13332
|
+
readonly wordArtStyles: {
|
|
13333
|
+
readonly label: 'WordArt Styles';
|
|
13334
|
+
readonly controls: {
|
|
13335
|
+
readonly gallery: 'WordArt Styles gallery';
|
|
13336
|
+
};
|
|
13337
|
+
};
|
|
13338
|
+
};
|
|
13339
|
+
readonly pictureFormat: {
|
|
13340
|
+
readonly pictureStyles: {
|
|
13341
|
+
readonly label: 'Picture Styles';
|
|
13342
|
+
readonly controls: {
|
|
13343
|
+
readonly gallery: 'Picture Styles gallery';
|
|
13344
|
+
readonly pictureEffects: 'Picture Effects gallery';
|
|
13345
|
+
};
|
|
13346
|
+
};
|
|
13347
|
+
};
|
|
13348
|
+
readonly tableDesign: {
|
|
13349
|
+
readonly tableStyles: {
|
|
13350
|
+
readonly label: 'Table Styles';
|
|
13351
|
+
readonly controls: {
|
|
13352
|
+
readonly gallery: 'Table Styles gallery';
|
|
13353
|
+
};
|
|
13354
|
+
};
|
|
13355
|
+
};
|
|
13356
|
+
readonly chartDesign: {
|
|
13357
|
+
readonly chartLayouts: {
|
|
13358
|
+
readonly label: 'Chart Layouts';
|
|
13359
|
+
readonly controls: {
|
|
13360
|
+
readonly quickLayout: 'Quick Layout gallery';
|
|
13361
|
+
};
|
|
13362
|
+
};
|
|
13363
|
+
readonly chartStyles: {
|
|
13364
|
+
readonly label: 'Chart Styles';
|
|
13365
|
+
readonly controls: {
|
|
13366
|
+
readonly changeColors: 'Change Colors gallery';
|
|
13367
|
+
readonly gallery: 'Chart Styles gallery';
|
|
13368
|
+
};
|
|
13369
|
+
};
|
|
13370
|
+
};
|
|
13371
|
+
readonly smartArtDesign: {
|
|
13372
|
+
readonly smartArtStyles: {
|
|
13373
|
+
readonly label: 'SmartArt Styles';
|
|
13374
|
+
readonly controls: {
|
|
13375
|
+
readonly changeColors: 'Change Colors gallery';
|
|
13376
|
+
readonly gallery: 'SmartArt Styles gallery';
|
|
13377
|
+
};
|
|
13378
|
+
};
|
|
13379
|
+
};
|
|
13380
|
+
};
|
|
13381
|
+
//#endregion
|
|
13382
|
+
//#region src/render/customization/ribbon-control-ids.d.ts
|
|
13383
|
+
type Catalog = typeof RIBBON_CONTROL_CATALOG;
|
|
13384
|
+
/** `<tab>.<group>`, for example `home.font`. */
|
|
13385
|
+
type RibbonGroupId = { [T in keyof Catalog]: { [G in keyof Catalog[T]]: `${T & string}.${G & string}`; }[keyof Catalog[T]]; }[keyof Catalog];
|
|
13386
|
+
/** `<tab>.<group>.<control>`, for example `home.font.bold`. */
|
|
13387
|
+
type RibbonControlId = { [T in keyof Catalog]: { [G in keyof Catalog[T]]: Catalog[T][G] extends {
|
|
13388
|
+
controls: infer C;
|
|
13389
|
+
} ? `${T & string}.${G & string}.${keyof C & string}` : never; }[keyof Catalog[T]]; }[keyof Catalog];
|
|
13390
|
+
//#endregion
|
|
12768
13391
|
//#region src/render/customization/customization-types.d.ts
|
|
12769
13392
|
/** Keys of an options group whose value is a primitive (not an array). */
|
|
12770
13393
|
type PrimitiveKeys<T> = { [K in keyof T]: T[K] extends ViewerOptionPrimitive ? K : never; }[keyof T] & string;
|
|
@@ -12789,10 +13412,20 @@ type OptionsSectionId = `${ViewerOptionsTabId}.${string}`;
|
|
|
12789
13412
|
type OptionsSettingValues = Partial<Record<OptionsSettingId, ViewerOptionPrimitive>>;
|
|
12790
13413
|
/** Ribbon and toolbar customisation. */
|
|
12791
13414
|
interface RibbonCustomization {
|
|
12792
|
-
/**
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
13415
|
+
/**
|
|
13416
|
+
* Ribbon tabs to remove (the File tab included, unlike Customize Ribbon),
|
|
13417
|
+
* and contextual tabs (`shapeFormat`, `pictureFormat`, ...) that should
|
|
13418
|
+
* never appear.
|
|
13419
|
+
*/
|
|
13420
|
+
hiddenTabs?: readonly (ToolbarTabId | RibbonContextualTabId)[];
|
|
13421
|
+
/** Groups inside a tab to remove, as `<tab>.<group>` (`home.font`). */
|
|
13422
|
+
hiddenGroups?: readonly RibbonGroupId[];
|
|
13423
|
+
/**
|
|
13424
|
+
* Controls to remove: a top-level toolbar button / control cluster
|
|
13425
|
+
* (`share`, `zoom`, ...) or any ribbon control as
|
|
13426
|
+
* `<tab>.<group>.<control>` (`home.font.bold`).
|
|
13427
|
+
*/
|
|
13428
|
+
hiddenButtons?: readonly (ToolbarButtonId | RibbonControlId)[];
|
|
12796
13429
|
}
|
|
12797
13430
|
/** File > Options (the Settings dialog) customisation. */
|
|
12798
13431
|
interface OptionsCustomization {
|
|
@@ -12904,10 +13537,18 @@ interface ViewerCustomizationApi {
|
|
|
12904
13537
|
updateCustomization(patch: ViewerCustomization): void;
|
|
12905
13538
|
/** Drop every customisation, back to the stock UI. */
|
|
12906
13539
|
resetCustomization(): void;
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
13540
|
+
/** Hide a fixed tab, or stop a contextual tab (`shapeFormat`, ...) from appearing. */
|
|
13541
|
+
hideRibbonTab(tab: ToolbarTabId | RibbonContextualTabId): void;
|
|
13542
|
+
showRibbonTab(tab: ToolbarTabId | RibbonContextualTabId): void;
|
|
13543
|
+
/** Hide a group inside a tab (`home.font`). */
|
|
13544
|
+
hideRibbonGroup(group: RibbonGroupId): void;
|
|
13545
|
+
showRibbonGroup(group: RibbonGroupId): void;
|
|
13546
|
+
/** Hide a top-level toolbar button or any ribbon control (`home.font.bold`). */
|
|
13547
|
+
hideToolbarButton(button: ToolbarButtonId | RibbonControlId): void;
|
|
13548
|
+
showToolbarButton(button: ToolbarButtonId | RibbonControlId): void;
|
|
13549
|
+
/** Alias of `hideToolbarButton` for a ribbon control id. */
|
|
13550
|
+
hideRibbonControl(control: RibbonControlId): void;
|
|
13551
|
+
showRibbonControl(control: RibbonControlId): void;
|
|
12911
13552
|
hideOptionsPage(page: OptionsPageId): void;
|
|
12912
13553
|
showOptionsPage(page: OptionsPageId): void;
|
|
12913
13554
|
hideOptionsSection(section: OptionsSectionId): void;
|
|
@@ -13695,8 +14336,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
13695
14336
|
smartArt3D?: boolean;
|
|
13696
14337
|
/**
|
|
13697
14338
|
* Opt in to the interactive Three.js surface-chart renderer. When `true`,
|
|
13698
|
-
* `surface`/`surface3D` charts render as a
|
|
13699
|
-
*
|
|
14339
|
+
* `surface`/`surface3D` charts render as a WebGL mesh
|
|
14340
|
+
* instead of the static SVG isometric
|
|
13700
14341
|
* projection. Chart marks are not selectable/draggable in this mode.
|
|
13701
14342
|
* Requires the optional `three` peer dependency; when it is not installed
|
|
13702
14343
|
* (or the chart has no plottable grid), the viewer transparently falls back
|
|
@@ -13705,8 +14346,7 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
13705
14346
|
surfaceChart3D?: boolean;
|
|
13706
14347
|
/**
|
|
13707
14348
|
* Opt in to the interactive Three.js bar3D-chart renderer. When `true`,
|
|
13708
|
-
* `bar3D` charts render as
|
|
13709
|
-
* rotate, scroll to zoom) instead of the flat SVG oblique-projection
|
|
14349
|
+
* `bar3D` charts render as real box meshes instead of the flat SVG oblique-projection
|
|
13710
14350
|
* illusion. Chart marks are not selectable/draggable in this mode.
|
|
13711
14351
|
* Requires the optional `three` peer dependency; when it is not installed
|
|
13712
14352
|
* (or the chart has no plottable grid, or it is a horizontal 3-D Bar), the
|
|
@@ -13716,8 +14356,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
13716
14356
|
barChart3D?: boolean;
|
|
13717
14357
|
/**
|
|
13718
14358
|
* Opt in to the interactive Three.js line3D-chart renderer. When `true`,
|
|
13719
|
-
* `line3D` charts render as a
|
|
13720
|
-
* series, one per depth ("series") plane
|
|
14359
|
+
* `line3D` charts render as a real tube-path mesh per
|
|
14360
|
+
* series, one per depth ("series") plane,
|
|
13721
14361
|
* instead of the flat SVG oblique-projection illusion. Chart marks are not
|
|
13722
14362
|
* selectable/draggable in this mode. Requires the optional `three` peer
|
|
13723
14363
|
* dependency; when it is not installed (or the chart has no plottable
|
|
@@ -13727,9 +14367,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
13727
14367
|
lineChart3D?: boolean;
|
|
13728
14368
|
/**
|
|
13729
14369
|
* Opt in to the interactive Three.js area3D-chart renderer. When `true`,
|
|
13730
|
-
* `area3D` charts render as a
|
|
13731
|
-
* ribbon mesh per series, one per depth ("series") plane
|
|
13732
|
-
* scroll to zoom), instead of the flat SVG oblique-projection illusion.
|
|
14370
|
+
* `area3D` charts render as a real tube path + filled
|
|
14371
|
+
* ribbon mesh per series, one per depth ("series") plane, instead of the flat SVG oblique-projection illusion.
|
|
13733
14372
|
* Chart marks are not selectable/draggable in this mode. Requires the
|
|
13734
14373
|
* optional `three` peer dependency; when it is not installed (or the chart
|
|
13735
14374
|
* has no plottable grid), the viewer transparently falls back to the flat
|
|
@@ -13738,8 +14377,7 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
13738
14377
|
areaChart3D?: boolean;
|
|
13739
14378
|
/**
|
|
13740
14379
|
* Opt in to the interactive Three.js pie3D-chart renderer. When `true`,
|
|
13741
|
-
* `pie3D` charts render as
|
|
13742
|
-
* rotate, scroll to zoom) instead of the flat SVG oblique-projection
|
|
14380
|
+
* `pie3D` charts render as real wedge meshes instead of the flat SVG oblique-projection
|
|
13743
14381
|
* illusion. Chart marks are not selectable/draggable in this mode.
|
|
13744
14382
|
* Requires the optional `three` peer dependency; when it is not installed
|
|
13745
14383
|
* (or the chart has no plottable series), the viewer transparently falls
|