@openpresentation/opf 0.16.0 → 0.17.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/README.md +16 -2
- package/dist/{catalog-refs-_anZs-Qz.d.ts → catalog-refs-C4K4y-vh.d.ts} +1 -1
- package/dist/{catalog-schemas-BZCjgAxu.d.ts → catalog-schemas-g7RFQBdc.d.ts} +1 -1
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +3 -23712
- package/dist/{chart-data-BnNqgnC-.d.ts → chart-data-DTxdRRT1.d.ts} +1 -1
- package/dist/{chunk-FQSIIADJ.js → chunk-BIC3SWPK.js} +4 -4
- package/dist/{chunk-5PDN7BN6.js → chunk-CW7GEAV3.js} +151 -49
- package/dist/{chunk-NAWQR7MN.js → chunk-ESRYBYLY.js} +1 -1
- package/dist/chunk-IPW5BS3X.js +973 -0
- package/dist/{chunk-5UEUAW57.js → chunk-IS5H5JKH.js} +1 -1
- package/dist/{chunk-UM24JFUE.js → chunk-M4UR3NPN.js} +2 -2
- package/dist/{chunk-KINQFU6X.js → chunk-N4EVOFEA.js} +19 -12
- package/dist/{chunk-PX5AWL7Y.js → chunk-NLNYNBTS.js} +79 -10
- package/dist/{chunk-SMLMI6IZ.js → chunk-O263APNI.js} +1 -1
- package/dist/{chunk-BSYQDWT4.js → chunk-O2CX5NEH.js} +26 -14
- package/dist/{chunk-3XDRQYWZ.js → chunk-O3CVNJTL.js} +1 -1
- package/dist/{chunk-5TO6I3GB.js → chunk-PPROJP2E.js} +1 -1
- package/dist/{chunk-WEDGVC5W.js → chunk-RA64UQKI.js} +18 -42
- package/dist/{chunk-K4DQQIT4.js → chunk-TCD2FB2K.js} +5 -5
- package/dist/chunk-WCG3THTD.js +23712 -0
- package/dist/chunk-WWYWFVOI.js +793 -0
- package/dist/{chunk-6OR326EA.js → chunk-YT7FMQER.js} +1 -1
- package/dist/{composition-D4ADF5c-.d.ts → composition-BbZ_9C-c.d.ts} +152 -132
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +1 -1
- package/dist/conversion-SBpTOwdg.d.ts +444 -0
- package/dist/convert.d.ts +4 -4
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +2 -2
- package/dist/data.js +2 -2
- package/dist/deck-report-Bx3naFlF.d.ts +40 -0
- package/dist/deck.d.ts +23 -53
- package/dist/deck.js +10 -10
- package/dist/diff.d.ts +1 -1
- package/dist/diff.js +5 -5
- package/dist/docs.js +29 -23
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +237 -237
- package/dist/{finding-CT_f_vbD.d.ts → finding-CDQ_wH8j.d.ts} +1 -1
- package/dist/format.js +2 -2
- package/dist/index.d.ts +42 -12
- package/dist/index.js +15 -807
- package/dist/markdown.d.ts +6 -6
- package/dist/markdown.js +7 -7
- package/dist/node-engine.d.ts +94 -0
- package/dist/node-engine.js +21 -0
- package/dist/node.d.ts +60 -0
- package/dist/node.js +54 -0
- package/dist/{pagination-DzZPFheM.d.ts → pagination-BhX4M48Y.d.ts} +21 -7
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +1 -1
- package/dist/patch.js +4 -4
- package/dist/{presentation-COrFuj2g.d.ts → presentation-fb8CZmRq.d.ts} +12 -75
- package/dist/repo-readme.js +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/catalogs/manifest.json +1 -1
- package/dist/spec/schemas/opf.schema.json +16 -37
- package/dist/types.d.ts +3 -3
- package/dist/{validation-types-HxIgJfKx.d.ts → validation-types-iZbXfES6.d.ts} +19 -8
- package/dist/validator.d.ts +8 -8
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +6 -6
- package/dist/yaml.js +7 -7
- package/package.json +34 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './chart-data-
|
|
1
|
+
import { d as CatalogOptions } from './catalog-refs-C4K4y-vh.js';
|
|
2
|
+
import './chart-data-DTxdRRT1.js';
|
|
3
3
|
|
|
4
4
|
/** Canonical table grid. No renderer, fonts, DOM or network dependencies. */
|
|
5
5
|
interface TableBorder {
|
|
@@ -232,6 +232,141 @@ declare function physicalAlignment(alignment: PhysicalAlignment | undefined, dir
|
|
|
232
232
|
*/
|
|
233
233
|
declare function paragraphDirectionAt(text: string, deckDirection: TextDirection | string | undefined): (offset: number) => TextDirection;
|
|
234
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Language/script font model (font-fidelity-everywhere FF-18).
|
|
237
|
+
*
|
|
238
|
+
* Resolves, for a presentation's language and effective font scheme, the font
|
|
239
|
+
* family for each OOXML script slot (`a:latin`, `a:ea`, `a:cs`) of the major
|
|
240
|
+
* (heading) and minor (body) theme fonts, plus the language tags and base
|
|
241
|
+
* direction. Pure: no DOM, fonts, network or mutation. Font-scheme references
|
|
242
|
+
* resolve like every content reference (the document's catalogs groups, then the
|
|
243
|
+
* registered catalogs); nothing is fetched.
|
|
244
|
+
*
|
|
245
|
+
* The language is an engine vocabulary: tags the vocabulary knows resolve
|
|
246
|
+
* deterministically from vendored tables. Only a tag outside it may consult the
|
|
247
|
+
* runtime's ICU likely subtags (`Intl.Locale#maximize`) to find its script.
|
|
248
|
+
*
|
|
249
|
+
* Design: docs/programs/font-fidelity-everywhere/script-font-model.md.
|
|
250
|
+
*/
|
|
251
|
+
/** OOXML script slot a writing system uses: `a:latin`, `a:ea` or `a:cs`. */
|
|
252
|
+
type ScriptRole = "latin" | "eastAsian" | "complexScript";
|
|
253
|
+
/** FontScheme.languageFamily as written: the short OOXML names and the long slot names are one value. */
|
|
254
|
+
type LanguageFamilyName = "latin" | "ea" | "cs" | "eastAsian" | "complexScript";
|
|
255
|
+
/**
|
|
256
|
+
* Read a FontScheme `languageFamily` as one of three values. `eastAsian` is `ea` and `complexScript` is
|
|
257
|
+
* `cs`; anything that is not one of the five names returns undefined.
|
|
258
|
+
*/
|
|
259
|
+
declare function normalizeLanguageFamily(value: unknown): "latin" | "ea" | "cs" | undefined;
|
|
260
|
+
/** Target application whose language font-scheme defaults apply. */
|
|
261
|
+
type ScriptFontApp = "powerpoint" | "google-slides";
|
|
262
|
+
/** Font family per OOXML script slot for one theme font (major or minor). */
|
|
263
|
+
interface ScriptFontSlots {
|
|
264
|
+
latin: string;
|
|
265
|
+
eastAsian: string;
|
|
266
|
+
complexScript: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Where a resolved eastAsian/complexScript family came from:
|
|
270
|
+
* - `fontScheme`: an explicit `eastAsian`/`complexScript` slot on the effective design font scheme.
|
|
271
|
+
* - `schemeFamily`: the design font scheme's own major/minor, because its `languageFamily` names this
|
|
272
|
+
* slot and its `languages` list is empty or names the presentation language.
|
|
273
|
+
* - `language`: the presentation language's font scheme (`fontScheme`, or `googleFontScheme` for Google Slides).
|
|
274
|
+
* - `latin`: no script-specific choice exists, so the slot repeats the latin family.
|
|
275
|
+
*/
|
|
276
|
+
type ScriptFontSource = "fontScheme" | "schemeFamily" | "language" | "latin";
|
|
277
|
+
/** A per-script supplemental theme font, as in OOXML `<a:font script="Jpan" typeface="..."/>`. */
|
|
278
|
+
interface ScriptFontSupplement {
|
|
279
|
+
/** OOXML theme script tag (ISO 15924, except Korean uses `Hang`). */
|
|
280
|
+
script: string;
|
|
281
|
+
heading: string;
|
|
282
|
+
body: string;
|
|
283
|
+
}
|
|
284
|
+
interface ResolveScriptFontsOptions extends CatalogOptions {
|
|
285
|
+
/** Which language font default applies. Defaults to `powerpoint` (`language.fontScheme`, else the vocabulary default); `google-slides` prefers `language.googleFontScheme`. */
|
|
286
|
+
app?: ScriptFontApp;
|
|
287
|
+
/** Merge `slides[slideIndex].design` over the deck design, per field, before resolving the font scheme. */
|
|
288
|
+
slideIndex?: number;
|
|
289
|
+
/** Language to resolve instead of the document's `language` (a BCP-47 tag or a Language object). */
|
|
290
|
+
language?: unknown;
|
|
291
|
+
/** Language tag used when neither the document nor `options.language` names a resolvable language. Defaults to `en-US`. */
|
|
292
|
+
defaultLanguage?: string;
|
|
293
|
+
}
|
|
294
|
+
interface ResolvedScriptFonts extends ScriptFontSlots {
|
|
295
|
+
/**
|
|
296
|
+
* Tag for OOXML `a:rPr/@lang` (and `a:endParaRPr/@lang`): an authored tag that carries a region,
|
|
297
|
+
* else the curated `ooxmlLang` of the language vocabulary, else the canonical BCP-47 tag.
|
|
298
|
+
*/
|
|
299
|
+
lang: string;
|
|
300
|
+
/** Canonically cased BCP-47 tag for HTML/SVG `lang`: the authored tag. */
|
|
301
|
+
bcp47: string;
|
|
302
|
+
/** `default` when the tag came from `defaultLanguage` because no language resolved. */
|
|
303
|
+
languageSource: "document" | "option" | "default";
|
|
304
|
+
/** ISO 15924 script (`Zzzz` when it cannot be determined). */
|
|
305
|
+
script: string;
|
|
306
|
+
/** Script slot the language's own text uses. */
|
|
307
|
+
scriptRole: ScriptRole;
|
|
308
|
+
direction: "ltr" | "rtl";
|
|
309
|
+
rtl: boolean;
|
|
310
|
+
/** Major (heading) theme font slots. */
|
|
311
|
+
heading: ScriptFontSlots;
|
|
312
|
+
/** Minor (body) theme font slots. The top-level latin/eastAsian/complexScript repeat these. */
|
|
313
|
+
body: ScriptFontSlots;
|
|
314
|
+
/**
|
|
315
|
+
* Supplemental theme font for the language's script. Present only when an explicit slot, the
|
|
316
|
+
* design scheme's own script family or the language's font scheme supplies one; absent for
|
|
317
|
+
* Latin, Cyrillic, Greek and for scripts with no script font. For Armenian, Georgian and
|
|
318
|
+
* Ethiopic (latin slot) an explicit `complexScript` slot or a design `cs` scheme that serves the
|
|
319
|
+
* language replaces the language's own font scheme.
|
|
320
|
+
*/
|
|
321
|
+
supplement?: ScriptFontSupplement;
|
|
322
|
+
sources: {
|
|
323
|
+
eastAsian: ScriptFontSource;
|
|
324
|
+
complexScript: ScriptFontSource;
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* One slide's script profile, as a host's script planner reads it (`TextMeasurement.forScripts`): the heading and
|
|
329
|
+
* body families per script slot, where a slot whose `resolveScriptFonts` source is `latin` or `schemeFamily` names
|
|
330
|
+
* the slide's latin role family, and the language fields of `resolveScriptFonts`. Without a resolvable language
|
|
331
|
+
* only the slots (all latin), `script: "Zzzz"`, `rtl` and `serif` are present.
|
|
332
|
+
*/
|
|
333
|
+
interface ScriptMeasurementProfile {
|
|
334
|
+
heading: ScriptFontSlots;
|
|
335
|
+
body: ScriptFontSlots;
|
|
336
|
+
supplement?: ScriptFontSupplement;
|
|
337
|
+
script: string;
|
|
338
|
+
scriptRole?: ScriptRole;
|
|
339
|
+
bcp47?: string;
|
|
340
|
+
lang?: string;
|
|
341
|
+
languageSource?: ResolvedScriptFonts["languageSource"];
|
|
342
|
+
direction?: "ltr" | "rtl";
|
|
343
|
+
rtl: boolean;
|
|
344
|
+
/** The slide's font scheme is a serif scheme (`type: "serif"`): script runs prefer serif replacements. */
|
|
345
|
+
serif: boolean;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/** The OOXML script slot for an ISO 15924 script code. Unknown scripts use the latin slot. */
|
|
349
|
+
declare function scriptFontRole(script: string): ScriptRole;
|
|
350
|
+
/**
|
|
351
|
+
* Resolve the per-script theme fonts, language tags and direction for a
|
|
352
|
+
* presentation (or a `{ design, language, catalogs }` subset of one).
|
|
353
|
+
*
|
|
354
|
+
* The latin slot follows the effective design font scheme exactly as
|
|
355
|
+
* `resolveFontFamilies` does; when nothing names a font scheme it falls back to
|
|
356
|
+
* the engine default font scheme. Each of the eastAsian and complexScript slots
|
|
357
|
+
* takes, in order: the design font scheme's explicit slot; the scheme's own
|
|
358
|
+
* families when its `languageFamily` names the slot and its `languages` list
|
|
359
|
+
* is empty or names the language; the language's font scheme when the
|
|
360
|
+
* language's script uses the slot; otherwise the latin family.
|
|
361
|
+
*/
|
|
362
|
+
declare function resolveScriptFonts(input: unknown, options?: ResolveScriptFontsOptions): ResolvedScriptFonts;
|
|
363
|
+
/**
|
|
364
|
+
* The deck base direction composition lays a slide out in: the direction of the presentation language's script
|
|
365
|
+
* (`rtl` for Arabic, Hebrew and the other right-to-left scripts), `ltr` when the document names no language or
|
|
366
|
+
* the language does not resolve. Layout, preview and export all read this one value (RR-05).
|
|
367
|
+
*/
|
|
368
|
+
declare function resolveSlideDirection(presentation: unknown, slideIndex?: number): "ltr" | "rtl";
|
|
369
|
+
|
|
235
370
|
/**
|
|
236
371
|
* Engine defaults and engine vocabularies (OPF 0.15, FA-20/21). Small tables of values every engine must know to
|
|
237
372
|
* draw, compiled from spec/reference/engine-defaults.json and spec/reference/engine-vocabularies.json. None of
|
|
@@ -381,20 +516,12 @@ interface FurnitureField {
|
|
|
381
516
|
}
|
|
382
517
|
/** PowerPoint's first Insert > Date and Time choice for en-US (`datetime1`). */
|
|
383
518
|
declare const DEFAULT_FURNITURE_DATE_FORMAT = "M/d/yyyy";
|
|
384
|
-
declare const DEFAULT_SLIDE_NUMBER_FORMAT = "{current}";
|
|
385
519
|
/** Format an ISO calendar date with an LDML-style pattern. Returns an error message when either input is unsupported. */
|
|
386
520
|
declare function formatFurnitureDate(iso: string, pattern: string): {
|
|
387
521
|
text: string;
|
|
388
522
|
} | {
|
|
389
523
|
error: string;
|
|
390
524
|
};
|
|
391
|
-
/** Resolve a slide-number template. `{current}` becomes a live field; `{total}` is fixed text. */
|
|
392
|
-
declare function formatSlideNumber(format: string, current: number, total: number | undefined): {
|
|
393
|
-
text: string;
|
|
394
|
-
fields: FurnitureField[];
|
|
395
|
-
} | {
|
|
396
|
-
error: string;
|
|
397
|
-
};
|
|
398
525
|
|
|
399
526
|
/** Normalize a literal hex color to uppercase #RRGGBB. */
|
|
400
527
|
declare function normalizeHexColor(value: unknown): string | undefined;
|
|
@@ -537,121 +664,6 @@ declare const SURFACE_ALT_MIN_CONTRAST = 1.1;
|
|
|
537
664
|
*/
|
|
538
665
|
declare function surfaceAltColor(surface: string, text: string): string;
|
|
539
666
|
|
|
540
|
-
/**
|
|
541
|
-
* Language/script font model (font-fidelity-everywhere FF-18).
|
|
542
|
-
*
|
|
543
|
-
* Resolves, for a presentation's language and effective font scheme, the font
|
|
544
|
-
* family for each OOXML script slot (`a:latin`, `a:ea`, `a:cs`) of the major
|
|
545
|
-
* (heading) and minor (body) theme fonts, plus the language tags and base
|
|
546
|
-
* direction. Pure: no DOM, fonts, network or mutation. Font-scheme references
|
|
547
|
-
* resolve like every content reference (the document's catalogs groups, then the
|
|
548
|
-
* registered catalogs); nothing is fetched.
|
|
549
|
-
*
|
|
550
|
-
* The language is an engine vocabulary: tags the vocabulary knows resolve
|
|
551
|
-
* deterministically from vendored tables. Only a tag outside it may consult the
|
|
552
|
-
* runtime's ICU likely subtags (`Intl.Locale#maximize`) to find its script.
|
|
553
|
-
*
|
|
554
|
-
* Design: docs/programs/font-fidelity-everywhere/script-font-model.md.
|
|
555
|
-
*/
|
|
556
|
-
/** OOXML script slot a writing system uses: `a:latin`, `a:ea` or `a:cs`. */
|
|
557
|
-
type ScriptRole = "latin" | "eastAsian" | "complexScript";
|
|
558
|
-
/** FontScheme.languageFamily as written: the short OOXML names and the long slot names are one value. */
|
|
559
|
-
type LanguageFamilyName = "latin" | "ea" | "cs" | "eastAsian" | "complexScript";
|
|
560
|
-
/**
|
|
561
|
-
* Read a FontScheme `languageFamily` as one of three values. `eastAsian` is `ea` and `complexScript` is
|
|
562
|
-
* `cs`; anything that is not one of the five names returns undefined.
|
|
563
|
-
*/
|
|
564
|
-
declare function normalizeLanguageFamily(value: unknown): "latin" | "ea" | "cs" | undefined;
|
|
565
|
-
/** Target application whose language font-scheme defaults apply. */
|
|
566
|
-
type ScriptFontApp = "powerpoint" | "google-slides";
|
|
567
|
-
/** Font family per OOXML script slot for one theme font (major or minor). */
|
|
568
|
-
interface ScriptFontSlots {
|
|
569
|
-
latin: string;
|
|
570
|
-
eastAsian: string;
|
|
571
|
-
complexScript: string;
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* Where a resolved eastAsian/complexScript family came from:
|
|
575
|
-
* - `fontScheme`: an explicit `eastAsian`/`complexScript` slot on the effective design font scheme.
|
|
576
|
-
* - `schemeFamily`: the design font scheme's own major/minor, because its `languageFamily` names this
|
|
577
|
-
* slot and its `languages` list is empty or names the presentation language.
|
|
578
|
-
* - `language`: the presentation language's font scheme (`fontScheme`, or `googleFontScheme` for Google Slides).
|
|
579
|
-
* - `latin`: no script-specific choice exists, so the slot repeats the latin family.
|
|
580
|
-
*/
|
|
581
|
-
type ScriptFontSource = "fontScheme" | "schemeFamily" | "language" | "latin";
|
|
582
|
-
/** A per-script supplemental theme font, as in OOXML `<a:font script="Jpan" typeface="..."/>`. */
|
|
583
|
-
interface ScriptFontSupplement {
|
|
584
|
-
/** OOXML theme script tag (ISO 15924, except Korean uses `Hang`). */
|
|
585
|
-
script: string;
|
|
586
|
-
heading: string;
|
|
587
|
-
body: string;
|
|
588
|
-
}
|
|
589
|
-
interface ResolveScriptFontsOptions extends CatalogOptions {
|
|
590
|
-
/** Which language font default applies. Defaults to `powerpoint` (`language.fontScheme`, else the vocabulary default); `google-slides` prefers `language.googleFontScheme`. */
|
|
591
|
-
app?: ScriptFontApp;
|
|
592
|
-
/** Merge `slides[slideIndex].design` over the deck design, per field, before resolving the font scheme. */
|
|
593
|
-
slideIndex?: number;
|
|
594
|
-
/** Language to resolve instead of the document's `language` (a BCP-47 tag or a Language object). */
|
|
595
|
-
language?: unknown;
|
|
596
|
-
/** Language tag used when neither the document nor `options.language` names a resolvable language. Defaults to `en-US`. */
|
|
597
|
-
defaultLanguage?: string;
|
|
598
|
-
}
|
|
599
|
-
interface ResolvedScriptFonts extends ScriptFontSlots {
|
|
600
|
-
/**
|
|
601
|
-
* Tag for OOXML `a:rPr/@lang` (and `a:endParaRPr/@lang`): an authored tag that carries a region,
|
|
602
|
-
* else the curated `ooxmlLang` of the language vocabulary, else the canonical BCP-47 tag.
|
|
603
|
-
*/
|
|
604
|
-
lang: string;
|
|
605
|
-
/** Canonically cased BCP-47 tag for HTML/SVG `lang`: the authored tag. */
|
|
606
|
-
bcp47: string;
|
|
607
|
-
/** `default` when the tag came from `defaultLanguage` because no language resolved. */
|
|
608
|
-
languageSource: "document" | "option" | "default";
|
|
609
|
-
/** ISO 15924 script (`Zzzz` when it cannot be determined). */
|
|
610
|
-
script: string;
|
|
611
|
-
/** Script slot the language's own text uses. */
|
|
612
|
-
scriptRole: ScriptRole;
|
|
613
|
-
direction: "ltr" | "rtl";
|
|
614
|
-
rtl: boolean;
|
|
615
|
-
/** Major (heading) theme font slots. */
|
|
616
|
-
heading: ScriptFontSlots;
|
|
617
|
-
/** Minor (body) theme font slots. The top-level latin/eastAsian/complexScript repeat these. */
|
|
618
|
-
body: ScriptFontSlots;
|
|
619
|
-
/**
|
|
620
|
-
* Supplemental theme font for the language's script. Present only when an explicit slot, the
|
|
621
|
-
* design scheme's own script family or the language's font scheme supplies one; absent for
|
|
622
|
-
* Latin, Cyrillic, Greek and for scripts with no script font. For Armenian, Georgian and
|
|
623
|
-
* Ethiopic (latin slot) an explicit `complexScript` slot or a design `cs` scheme that serves the
|
|
624
|
-
* language replaces the language's own font scheme.
|
|
625
|
-
*/
|
|
626
|
-
supplement?: ScriptFontSupplement;
|
|
627
|
-
sources: {
|
|
628
|
-
eastAsian: ScriptFontSource;
|
|
629
|
-
complexScript: ScriptFontSource;
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
/** The OOXML script slot for an ISO 15924 script code. Unknown scripts use the latin slot. */
|
|
634
|
-
declare function scriptFontRole(script: string): ScriptRole;
|
|
635
|
-
/**
|
|
636
|
-
* Resolve the per-script theme fonts, language tags and direction for a
|
|
637
|
-
* presentation (or a `{ design, language, catalogs }` subset of one).
|
|
638
|
-
*
|
|
639
|
-
* The latin slot follows the effective design font scheme exactly as
|
|
640
|
-
* `resolveFontFamilies` does; when nothing names a font scheme it falls back to
|
|
641
|
-
* the engine default font scheme. Each of the eastAsian and complexScript slots
|
|
642
|
-
* takes, in order: the design font scheme's explicit slot; the scheme's own
|
|
643
|
-
* families when its `languageFamily` names the slot and its `languages` list
|
|
644
|
-
* is empty or names the language; the language's font scheme when the
|
|
645
|
-
* language's script uses the slot; otherwise the latin family.
|
|
646
|
-
*/
|
|
647
|
-
declare function resolveScriptFonts(input: unknown, options?: ResolveScriptFontsOptions): ResolvedScriptFonts;
|
|
648
|
-
/**
|
|
649
|
-
* The deck base direction composition lays a slide out in: the direction of the presentation language's script
|
|
650
|
-
* (`rtl` for Arabic, Hebrew and the other right-to-left scripts), `ltr` when the document names no language or
|
|
651
|
-
* the language does not resolve. Layout, preview and export all read this one value (RR-05).
|
|
652
|
-
*/
|
|
653
|
-
declare function resolveSlideDirection(presentation: unknown, slideIndex?: number): "ltr" | "rtl";
|
|
654
|
-
|
|
655
667
|
/**
|
|
656
668
|
* Deterministic syntax highlighting shared by the SVG preview and the PPTX export (RR-07).
|
|
657
669
|
*
|
|
@@ -1380,6 +1392,13 @@ interface TextMeasurement {
|
|
|
1380
1392
|
/** Shaped vector ink relative to the left baseline origin (positive y down).
|
|
1381
1393
|
* Null means no outline. These are not hinted/antialiased raster bounds. */
|
|
1382
1394
|
outlineBounds?: (text: string, fontSize: number, style: TextStyle) => LayoutBox | null;
|
|
1395
|
+
/**
|
|
1396
|
+
* Script planning: a measurement that measures each script run of a string with the face of its script slot in
|
|
1397
|
+
* `profile` (and the host's glyph fallback), as the host's engines draw it. The renderer's `loadFonts()` measurement
|
|
1398
|
+
* provides it with its script planner. `validate` and `paginate` call it with each slide's profile, and with a run language's own
|
|
1399
|
+
* profile for a run that names one, so they measure script text the way preview and export do.
|
|
1400
|
+
*/
|
|
1401
|
+
forScripts?: (profile: ScriptMeasurementProfile) => TextMeasurement;
|
|
1383
1402
|
}
|
|
1384
1403
|
/**
|
|
1385
1404
|
* The fonts handle every deck-level verb takes as `{ fonts }`. Core reads only `textMeasurement`: how wide the
|
|
@@ -1776,9 +1795,9 @@ interface ComposeSlideOptions {
|
|
|
1776
1795
|
* `resolveSlideContext` passes it.
|
|
1777
1796
|
*/
|
|
1778
1797
|
themeBackground?: unknown;
|
|
1779
|
-
/** One-based displayed number; source paths still use slideIndex. */
|
|
1798
|
+
/** One-based displayed number for `{{slide.number}}` in header/footer text; source paths still use slideIndex. */
|
|
1780
1799
|
slideNumber?: number;
|
|
1781
|
-
/** Displayed slide count for `{
|
|
1800
|
+
/** Displayed slide count for `{{deck.slideCount}}` in header/footer text. Defaults to `presentation.slides.length`. */
|
|
1782
1801
|
slideCount?: number;
|
|
1783
1802
|
/**
|
|
1784
1803
|
* Host-supplied current calendar date (ISO YYYY-MM-DD) for `date: true` furniture. Core never
|
|
@@ -1860,7 +1879,7 @@ declare function resolveLogo(presentation: unknown, slide: unknown, options?: Re
|
|
|
1860
1879
|
interface FurniturePartBase {
|
|
1861
1880
|
kind: 'header' | 'footer';
|
|
1862
1881
|
zone: 'left' | 'center' | 'right';
|
|
1863
|
-
field: 'text' | 'image' | 'logo' | '
|
|
1882
|
+
field: 'text' | 'image' | 'logo' | 'socials' | 'date';
|
|
1864
1883
|
/** Literal field or controlling flag, with the actual inherited/local path. */
|
|
1865
1884
|
path: string;
|
|
1866
1885
|
/** String/asset source, when different from a generated field's flag. */
|
|
@@ -1877,9 +1896,10 @@ interface FurnitureTextPart extends FurniturePartBase {
|
|
|
1877
1896
|
minFontSize: number;
|
|
1878
1897
|
fit: SourceTextFit;
|
|
1879
1898
|
/**
|
|
1880
|
-
* Live values inside `text`: every `{
|
|
1881
|
-
* (`date: true`) date
|
|
1882
|
-
*
|
|
1899
|
+
* Live values inside `text`: every substituted `{{slide.number}}` of a `text` part (type
|
|
1900
|
+
* `slideNumber`), and a whole current (`date: true`) date (type `date`), as half-open UTF-16
|
|
1901
|
+
* offsets into `text`. Hosts such as PPTX may emit them as native fields; all other text,
|
|
1902
|
+
* including `{{deck.slideCount}}`, `{{slide.section}}` and formatted fixed dates, is fixed.
|
|
1883
1903
|
*/
|
|
1884
1904
|
fields?: FurnitureField[];
|
|
1885
1905
|
/**
|
|
@@ -2442,4 +2462,4 @@ declare function resolveCanvasDimensions(input: unknown): {
|
|
|
2442
2462
|
height: number;
|
|
2443
2463
|
};
|
|
2444
2464
|
|
|
2445
|
-
export { type CodeHighlightColors as $, type AnnotatedRun as A, type BackgroundImageFit as B,
|
|
2465
|
+
export { type CodeHighlightColors as $, type AnnotatedRun as A, type BackgroundImageFit as B, CHART_TYPES as C, CODE_SYNTAX_MIN_CONTRAST as D, ENGINE_DEFAULT_CHART_TYPES as E, type FontFamilies as F, type Caption as G, type CaptionAlignment as H, type CaptionObject as I, type CaptionPosition as J, type CaptionSettings as K, LANGUAGES as L, type MeasureTextWidth as M, type ChartHighlightMarks as N, type ChartLabelContent as O, type ChartLabelPosition as P, type ChartLegendPosition as Q, type ChartOptionDiagnostic as R, SOCIAL_PLATFORMS as S, type TextMeasurement as T, type ChartOptionKind as U, type ChartOptionSupport as V, type ChartOptionTarget as W, type CitationMarker as X, type CitationNote as Y, type CodeContent as Z, type CodeHighlightBand as _, type ComposeSlideOptions as a, type LayoutLeaf as a$, type CodeHighlightEntry as a0, type CodeHighlightIssue as a1, type CodeHighlightLines as a2, type CodeLayout as a3, type CodeLayoutDiagnostic as a4, type CodeLayoutOptions as a5, type CodeLineSegment as a6, type CodeLineSource as a7, type CodeRun as a8, type CodeSyntaxPalette as a9, DEFAULT_FURNITURE_DATE_FORMAT as aA, DESIGN_HINT_KEYS as aB, type DeckCitations as aC, type DesignHintKey as aD, type DesignHintSource as aE, type DesignHints as aF, FONT_SIZE_GRID_PER_PX as aG, FOOTNOTE_MAX_RATIO as aH, type FontFaceSelection as aI, type FootnoteLayoutOptions as aJ, type FurnitureField as aK, type FurnitureImagePart as aL, type FurnitureLayout as aM, type FurniturePart as aN, type FurniturePartBase as aO, type FurnitureSocialLink as aP, type FurnitureTextExtras as aQ, type FurnitureTextPart as aR, type ImageEdge as aS, type ImageFit as aT, type ImageFitPlacement as aU, type ImageFocus as aV, type ImageShape as aW, LAYOUT_BODY_KINDS as aX, type LayoutBodyKind as aY, type LayoutBox as aZ, type LayoutContent as a_, type CodeSyntaxPaletteOptions as aa, type CodeSyntaxPaletteTheme as ab, type CodeTextFit as ac, type CodeTextPart as ad, type CodeToken as ae, type CodeTokenKind as af, type ComposedBackgroundImage as ag, type ComposedCaption as ah, type ComposedFlow as ai, type ComposedFootnoteEntry as aj, type ComposedFootnotes as ak, type ComposedGroup as al, type ComposedImage as am, type ComposedItem as an, type ComposedLogo as ao, type ComposedOverlay as ap, type ComposedPlacement as aq, type ComposedSlot as ar, type Composition as as, type CompositionCandidate as at, type CompositionDecision as au, type CompositionExplanation as av, type CompositionPenalties as aw, type CompositionTrack as ax, DARK_BACKGROUND_LUMINANCE as ay, DEFAULT_CHART_LABEL_SEPARATOR as az, ENGINE_DEFAULT_COLOR_SCHEME as b, type RichTextFit as b$, type LayoutSlot as b0, type ListBulletImage as b1, type ListEntryLayout as b2, type ListFit as b3, type ListFitOptions as b4, type ListNumber as b5, type ListText as b6, type ListValue as b7, type LogoSlot as b8, MAX_COMPOSITION_DEPTH as b9, PICTURE_BULLET_SCALE as bA, type PhysicalAlignment as bB, type QuoteContent as bC, type QuoteLayout as bD, type QuoteLayoutDiagnostic as bE, type QuoteLayoutOptions as bF, type QuotePhoto as bG, type QuoteTextPart as bH, type QuoteTextSource as bI, type ReadingBox as bJ, type Reference as bK, type ReferencesSlideOptions as bL, type ResolveColorRefOptions as bM, type ResolveColorRefRoles as bN, type ResolveColorRolesOptions as bO, type ResolveDesignHintsOptions as bP, type ResolveLogoOptions as bQ, type ResolveScriptFontsOptions as bR, type ResolvedChartDataLabels as bS, type ResolvedChartHighlight as bT, type ResolvedChartOptions as bU, type ResolvedColorRoles as bV, type ResolvedDesignHints as bW, type ResolvedLogo as bX, type ResolvedNumbering as bY, type ResolvedScriptFonts as bZ, type RichText as b_, MAX_NUMBERING_LEVELS as ba, MAX_NUMBERING_VALUE as bb, MAX_PLACEHOLDER_GROUP_DEPTH as bc, MAX_ROMAN_VALUE as bd, METRIC_TREND_MIN_CONTRAST as be, METRIC_TREND_SHAPES as bf, type MetricContent as bg, type MetricLayout as bh, type MetricLayoutDiagnostic as bi, type MetricLayoutOptions as bj, type MetricSentiment as bk, type MetricTextPart as bl, type MetricTextSource as bm, type MetricTrend as bn, type MetricTrendColorOptions as bo, type MetricTrendMark as bp, NUMBERING_STYLES as bq, NUMBERING_SUFFIXES as br, type Numbering as bs, type NumberingInput as bt, type NumberingStyleName as bu, type NumberingSuffix as bv, OPFCompositionError as bw, PATTERN_PRESETS as bx, PATTERN_PRESET_ALIASES as by, PATTERN_TILE_SIZE as bz, ENGINE_DEFAULT_FONT_SCHEME as c, codeSyntaxPaletteForScheme as c$, type RichTextFragment as c0, type RichTextLine as c1, type RichTextOptions as c2, type RichTextRun as c3, SURFACE_ALT_MIN_CONTRAST as c4, SURFACE_ALT_MIX as c5, type ScriptFontApp as c6, type ScriptFontSlots as c7, type ScriptFontSource as c8, type ScriptFontSupplement as c9, type TimelineEvent as cA, type TimelineLayout as cB, type TimelineLayoutDiagnostic as cC, type TimelineLayoutOptions as cD, type TimelineMarkerShape as cE, type TimelineStatus as cF, type TimelineStatusColors as cG, type TimelineTextPart as cH, type WatermarkTextLayout as cI, type WatermarkTextOptions as cJ, annotationText as cK, captionSettings as cL, chartColorForFill as cM, chartHighlightColors as cN, chartHighlightMarks as cO, chartLabelText as cP, chartOptionSupport as cQ, chartOptionTarget as cR, chartPaletteForFill as cS, chartPrimaryLayout as cT, citationMarkerText as cU, codeHighlightBands as cV, codeHighlightColors as cW, codeHighlightLines as cX, codeLineNumbers as cY, codeLineRuns as cZ, codeSyntaxPalette as c_, type ScriptMeasurementProfile as ca, type ScriptRole as cb, type SlideCitations as cc, type SlideComposition as cd, type SocialProfile as ce, type SourceTextFit as cf, TIMELINE_OUTLINE_MIN_CONTRAST as cg, TIMELINE_STATUSES as ch, TIMELINE_TEXT_MIN_CONTRAST as ci, type TableBorder as cj, type TableCellLayout as ck, type TableCellStyle as cl, type TableGrid as cm, type TableGridCell as cn, type TableGridIssue as co, type TableLayout as cp, type TableLayoutOptions as cq, type TableRowLayout as cr, type TextDirection as cs, type TextFit as ct, type TextLineInk as cu, type TextLineSegment as cv, type TextLineSource as cw, type TextPlacement as cx, type TextPlacementLine as cy, type TimelineContent as cz, ENGINE_DEFAULT_THEME as d, scriptFontRole as d$, collectCitations as d0, colorContrast as d1, composeSlide as d2, defaultSlideBackground as d3, fitImage as d4, fitList as d5, fitRichText as d6, fitText as d7, formatChartLabelNumber as d8, formatChartLabelPercent as d9, metricTrendColor as dA, metricTrendMark as dB, metricTrendPoints as dC, normalizeHexColor as dD, numberingAtLevel as dE, numberingStyleDraws as dF, paragraphDirection as dG, paragraphDirectionAt as dH, patternBitmap as dI, patternRuns as dJ, physicalAlignment as dK, placeTextLines as dL, referencesSlide as dM, resolveCanvasDimensions as dN, resolveChartOptions as dO, resolveCodeLanguage as dP, resolveColorRef as dQ, resolveColorRoles as dR, resolveDesignHints as dS, resolveFontFamilies as dT, resolveLogo as dU, resolveNumbering as dV, resolvePatternPreset as dW, resolveScriptFonts as dX, resolveSlideDirection as dY, resolveSocialProfile as dZ, resolveTextStyle as d_, formatFurnitureDate as da, formatListNumber as db, hasPlaceholderGroups as dc, imageBackground as dd, imageShape as de, intrinsicImageAspect as df, intrinsicImageSize as dg, isDarkColor as dh, isPlaceholderGroup as di, layoutCaption as dj, layoutCode as dk, layoutContent as dl, layoutFootnotes as dm, layoutFurniture as dn, layoutLeaves as dp, layoutMetric as dq, layoutQuote as dr, layoutSlots as ds, layoutStructure as dt, layoutTable as du, layoutTimeline as dv, layoutWatermark as dw, listNumbers as dx, measureText as dy, measureTextOutline as dz, type Fonts as e, sliceNumberedItems as e0, slideCitations as e1, snapFontSizeDown as e2, snapFontSizeUp as e3, surfaceAltColor as e4, tableGrid as e5, tableRowBoundaries as e6, textColorForFill as e7, textWidthMeasurer as e8, timelineMarkerShapes as e9, timelineTextColor as ea, tokenizeCode as eb, visualReadingOrder as ec, walkCitationRuns as ed, wrapText as ee, type LanguageFamilyName as f, type LanguageVocabulary as g, type LayoutDiagnostic as h, type SocialPlatformVocabulary as i, type TextStyle as j, type AnnotationFitter as k, type AnnotationLayoutOptions as l, CAPTIONABLE_FIELDS as m, normalizeLanguageFamily as n, CAPTION_FONT_RATIO as o, CAPTION_MAX_RATIO as p, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST as q, CHART_HIGHLIGHT_MUTED_MIX as r, CHART_SERIES_MIN_DIFFERENCE as s, CHART_SERIES_MIN_LIGHTNESS_STEP as t, CITATION_MARKER_RAISE as u, CITATION_MARKER_SCALE as v, CODE_HIGHLIGHT_LANGUAGES as w, CODE_HIGHLIGHT_MAX_LENGTH as x, CODE_PANEL_BACKGROUND as y, CODE_PANEL_FOREGROUND as z };
|
package/dist/composition.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AnnotatedRun, k as AnnotationFitter, l as AnnotationLayoutOptions, B as BackgroundImageFit, m as CAPTIONABLE_FIELDS, o as CAPTION_FONT_RATIO, p as CAPTION_MAX_RATIO, q as CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, r as CHART_HIGHLIGHT_MUTED_MIX, s as CHART_SERIES_MIN_DIFFERENCE, t as CHART_SERIES_MIN_LIGHTNESS_STEP,
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { A as AnnotatedRun, k as AnnotationFitter, l as AnnotationLayoutOptions, B as BackgroundImageFit, m as CAPTIONABLE_FIELDS, o as CAPTION_FONT_RATIO, p as CAPTION_MAX_RATIO, q as CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, r as CHART_HIGHLIGHT_MUTED_MIX, s as CHART_SERIES_MIN_DIFFERENCE, t as CHART_SERIES_MIN_LIGHTNESS_STEP, C as CHART_TYPES, u as CITATION_MARKER_RAISE, v as CITATION_MARKER_SCALE, w as CODE_HIGHLIGHT_LANGUAGES, x as CODE_HIGHLIGHT_MAX_LENGTH, y as CODE_PANEL_BACKGROUND, z as CODE_PANEL_FOREGROUND, D as CODE_SYNTAX_MIN_CONTRAST, G as Caption, H as CaptionAlignment, I as CaptionObject, J as CaptionPosition, K as CaptionSettings, N as ChartHighlightMarks, O as ChartLabelContent, P as ChartLabelPosition, Q as ChartLegendPosition, R as ChartOptionDiagnostic, U as ChartOptionKind, V as ChartOptionSupport, W as ChartOptionTarget, X as CitationMarker, Y as CitationNote, Z as CodeContent, _ as CodeHighlightBand, $ as CodeHighlightColors, a0 as CodeHighlightEntry, a1 as CodeHighlightIssue, a2 as CodeHighlightLines, a3 as CodeLayout, a4 as CodeLayoutDiagnostic, a5 as CodeLayoutOptions, a6 as CodeLineSegment, a7 as CodeLineSource, a8 as CodeRun, a9 as CodeSyntaxPalette, aa as CodeSyntaxPaletteOptions, ab as CodeSyntaxPaletteTheme, ac as CodeTextFit, ad as CodeTextPart, ae as CodeToken, af as CodeTokenKind, a as ComposeSlideOptions, ag as ComposedBackgroundImage, ah as ComposedCaption, ai as ComposedFlow, aj as ComposedFootnoteEntry, ak as ComposedFootnotes, al as ComposedGroup, am as ComposedImage, an as ComposedItem, ao as ComposedLogo, ap as ComposedOverlay, aq as ComposedPlacement, ar as ComposedSlot, as as Composition, at as CompositionCandidate, au as CompositionDecision, av as CompositionExplanation, aw as CompositionPenalties, ax as CompositionTrack, ay as DARK_BACKGROUND_LUMINANCE, az as DEFAULT_CHART_LABEL_SEPARATOR, aA as DEFAULT_FURNITURE_DATE_FORMAT, aB as DESIGN_HINT_KEYS, aC as DeckCitations, aD as DesignHintKey, aE as DesignHintSource, aF as DesignHints, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, aG as FONT_SIZE_GRID_PER_PX, aH as FOOTNOTE_MAX_RATIO, aI as FontFaceSelection, F as FontFamilies, e as Fonts, aJ as FootnoteLayoutOptions, aK as FurnitureField, aL as FurnitureImagePart, aM as FurnitureLayout, aN as FurniturePart, aO as FurniturePartBase, aP as FurnitureSocialLink, aQ as FurnitureTextExtras, aR as FurnitureTextPart, aS as ImageEdge, aT as ImageFit, aU as ImageFitPlacement, aV as ImageFocus, aW as ImageShape, L as LANGUAGES, aX as LAYOUT_BODY_KINDS, g as LanguageVocabulary, aY as LayoutBodyKind, aZ as LayoutBox, a_ as LayoutContent, h as LayoutDiagnostic, a$ as LayoutLeaf, b0 as LayoutSlot, b1 as ListBulletImage, b2 as ListEntryLayout, b3 as ListFit, b4 as ListFitOptions, b5 as ListNumber, b6 as ListText, b7 as ListValue, b8 as LogoSlot, b9 as MAX_COMPOSITION_DEPTH, ba as MAX_NUMBERING_LEVELS, bb as MAX_NUMBERING_VALUE, bc as MAX_PLACEHOLDER_GROUP_DEPTH, bd as MAX_ROMAN_VALUE, be as METRIC_TREND_MIN_CONTRAST, bf as METRIC_TREND_SHAPES, M as MeasureTextWidth, bg as MetricContent, bh as MetricLayout, bi as MetricLayoutDiagnostic, bj as MetricLayoutOptions, bk as MetricSentiment, bl as MetricTextPart, bm as MetricTextSource, bn as MetricTrend, bo as MetricTrendColorOptions, bp as MetricTrendMark, bq as NUMBERING_STYLES, br as NUMBERING_SUFFIXES, bs as Numbering, bt as NumberingInput, bu as NumberingStyleName, bv as NumberingSuffix, bw as OPFCompositionError, bx as PATTERN_PRESETS, by as PATTERN_PRESET_ALIASES, bz as PATTERN_TILE_SIZE, bA as PICTURE_BULLET_SCALE, bB as PhysicalAlignment, bC as QuoteContent, bD as QuoteLayout, bE as QuoteLayoutDiagnostic, bF as QuoteLayoutOptions, bG as QuotePhoto, bH as QuoteTextPart, bI as QuoteTextSource, bJ as ReadingBox, bK as Reference, bL as ReferencesSlideOptions, bM as ResolveColorRefOptions, bN as ResolveColorRefRoles, bO as ResolveColorRolesOptions, bP as ResolveDesignHintsOptions, bQ as ResolveLogoOptions, bR as ResolveScriptFontsOptions, bS as ResolvedChartDataLabels, bT as ResolvedChartHighlight, bU as ResolvedChartOptions, bV as ResolvedColorRoles, bW as ResolvedDesignHints, bX as ResolvedLogo, bY as ResolvedNumbering, bZ as ResolvedScriptFonts, b_ as RichText, b$ as RichTextFit, c0 as RichTextFragment, c1 as RichTextLine, c2 as RichTextOptions, c3 as RichTextRun, S as SOCIAL_PLATFORMS, c4 as SURFACE_ALT_MIN_CONTRAST, c5 as SURFACE_ALT_MIX, c6 as ScriptFontApp, c7 as ScriptFontSlots, c8 as ScriptFontSource, c9 as ScriptFontSupplement, ca as ScriptMeasurementProfile, cb as ScriptRole, cc as SlideCitations, cd as SlideComposition, i as SocialPlatformVocabulary, ce as SocialProfile, cf as SourceTextFit, cg as TIMELINE_OUTLINE_MIN_CONTRAST, ch as TIMELINE_STATUSES, ci as TIMELINE_TEXT_MIN_CONTRAST, cj as TableBorder, ck as TableCellLayout, cl as TableCellStyle, cm as TableGrid, cn as TableGridCell, co as TableGridIssue, cp as TableLayout, cq as TableLayoutOptions, cr as TableRowLayout, cs as TextDirection, ct as TextFit, cu as TextLineInk, cv as TextLineSegment, cw as TextLineSource, T as TextMeasurement, cx as TextPlacement, cy as TextPlacementLine, j as TextStyle, cz as TimelineContent, cA as TimelineEvent, cB as TimelineLayout, cC as TimelineLayoutDiagnostic, cD as TimelineLayoutOptions, cE as TimelineMarkerShape, cF as TimelineStatus, cG as TimelineStatusColors, cH as TimelineTextPart, cI as WatermarkTextLayout, cJ as WatermarkTextOptions, cK as annotationText, cL as captionSettings, cM as chartColorForFill, cN as chartHighlightColors, cO as chartHighlightMarks, cP as chartLabelText, cQ as chartOptionSupport, cR as chartOptionTarget, cS as chartPaletteForFill, cT as chartPrimaryLayout, cU as citationMarkerText, cV as codeHighlightBands, cW as codeHighlightColors, cX as codeHighlightLines, cY as codeLineNumbers, cZ as codeLineRuns, c_ as codeSyntaxPalette, c$ as codeSyntaxPaletteForScheme, d0 as collectCitations, d1 as colorContrast, d2 as composeSlide, d3 as defaultSlideBackground, d4 as fitImage, d5 as fitList, d6 as fitRichText, d7 as fitText, d8 as formatChartLabelNumber, d9 as formatChartLabelPercent, da as formatFurnitureDate, db as formatListNumber, dc as hasPlaceholderGroups, dd as imageBackground, de as imageShape, df as intrinsicImageAspect, dg as intrinsicImageSize, dh as isDarkColor, di as isPlaceholderGroup, dj as layoutCaption, dk as layoutCode, dl as layoutContent, dm as layoutFootnotes, dn as layoutFurniture, dp as layoutLeaves, dq as layoutMetric, dr as layoutQuote, ds as layoutSlots, dt as layoutStructure, du as layoutTable, dv as layoutTimeline, dw as layoutWatermark, dx as listNumbers, dy as measureText, dz as measureTextOutline, dA as metricTrendColor, dB as metricTrendMark, dC as metricTrendPoints, dD as normalizeHexColor, dE as numberingAtLevel, dF as numberingStyleDraws, dG as paragraphDirection, dH as paragraphDirectionAt, dI as patternBitmap, dJ as patternRuns, dK as physicalAlignment, dL as placeTextLines, dM as referencesSlide, dN as resolveCanvasDimensions, dO as resolveChartOptions, dP as resolveCodeLanguage, dQ as resolveColorRef, dR as resolveColorRoles, dS as resolveDesignHints, dT as resolveFontFamilies, dU as resolveLogo, dV as resolveNumbering, dW as resolvePatternPreset, dX as resolveScriptFonts, dY as resolveSlideDirection, dZ as resolveSocialProfile, d_ as resolveTextStyle, d$ as scriptFontRole, e0 as sliceNumberedItems, e1 as slideCitations, e2 as snapFontSizeDown, e3 as snapFontSizeUp, e4 as surfaceAltColor, e5 as tableGrid, e6 as tableRowBoundaries, e7 as textColorForFill, e8 as textWidthMeasurer, e9 as timelineMarkerShapes, ea as timelineTextColor, eb as tokenizeCode, ec as visualReadingOrder, ed as walkCitationRuns, ee as wrapText } from './composition-BbZ_9C-c.js';
|
|
2
|
+
export { a as CATALOG_REFERENCE_PATTERN, b as Catalog, c as CatalogKind, d as CatalogOptions, f as CatalogRecords, g as CatalogReferenceSite, O as OPFCatalogsOptionError, h as OPFUnresolvedReferenceError, R as RecordProvenance, i as ResolvedReference, U as UnresolvedReferenceDiagnostic, j as catalogGroupSource, k as catalogKinds, l as catalogRecords, m as catalogReferenceSites, p as parseReference, r as resolveReference, u as unresolvedReference } from './catalog-refs-C4K4y-vh.js';
|
|
3
|
+
export { C as ChartComboSeries, a as ChartMapping, D as DataCellValue, e as DataColumn, f as DataDiagnostic, i as DataSourceRef, k as DataTableCell, l as DataTableHeader, o as Dataset, p as DatasetRef, R as ResolvedChartData, q as ResolvedTableData, r as chartNumber, t as formatDataNumber, u as fromExcelNumberFormat, v as inlineChartData, w as inlineDatasets, x as inlineTableData, y as isDatasetRef, z as isXYChartType, A as numberFormatError, B as resolveChartData, E as resolveTableData, G as tableCellDisplayValue, H as toExcelNumberFormat } from './chart-data-DTxdRRT1.js';
|
package/dist/composition.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_PANEL_BACKGROUND, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT,
|
|
1
|
+
export { CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_PANEL_BACKGROUND, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DESIGN_HINT_KEYS, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, LANGUAGES, LAYOUT_BODY_KINDS, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_PLACEHOLDER_GROUP_DEPTH, MAX_ROMAN_VALUE, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCompositionError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, annotationText, captionSettings, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartLabelText, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, chartPrimaryLayout, citationMarkerText, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForScheme, collectCitations, colorContrast, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, fromExcelNumberFormat, hasPlaceholderGroups, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isDarkColor, isDatasetRef, isPlaceholderGroup, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutFootnotes, layoutFurniture, layoutLeaves, layoutMetric, layoutQuote, layoutSlots, layoutStructure, layoutTable, layoutTimeline, layoutWatermark, listNumbers, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, patternBitmap, patternRuns, physicalAlignment, placeTextLines, referencesSlide, resolveCanvasDimensions, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, scriptFontRole, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-CW7GEAV3.js';
|
|
2
2
|
export { CATALOG_REFERENCE_PATTERN, OPFCatalogsOptionError, OPFUnresolvedReferenceError, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, parseReference, resolveReference, unresolvedReference } from './chunk-SPFV27O5.js';
|