document-schema 4.0.0 → 4.2.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 +95 -6
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/construct-D5pdDPqM.d.cts +204 -0
- package/dist/construct-D5pdDPqM.d.ts +204 -0
- package/dist/construct.cjs +106 -0
- package/dist/construct.d.cts +2 -0
- package/dist/construct.d.ts +2 -0
- package/dist/construct.js +93 -0
- package/dist/{content-CiZf6Fqn.d.ts → content-D3C14yyb.d.ts} +97 -9
- package/dist/content-json-schema-defs.cjs +256 -4
- package/dist/content-json-schema-defs.js +256 -4
- package/dist/{content-BN0PWqpt.d.cts → content-oSmH1_zP.d.cts} +97 -9
- package/dist/content.cjs +32 -0
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +28 -1
- package/dist/definitions.d.cts +1 -1
- package/dist/definitions.d.ts +1 -1
- package/dist/index.cjs +25 -0
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/{math-B7gZJeND.d.cts → math-BlG8Tjk-.d.cts} +3 -3
- package/dist/{math-B7gZJeND.d.ts → math-BlG8Tjk-.d.ts} +3 -3
- package/dist/math.d.cts +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/{package-node-DDPSNOvy.d.cts → package-node-B9qLyhk5.d.ts} +73 -55
- package/dist/{package-node-QVFHQcm8.d.ts → package-node-DUKZHgAg.d.cts} +73 -55
- package/dist/package-node.cjs +32 -12
- package/dist/package-node.d.cts +2 -2
- package/dist/package-node.d.ts +2 -2
- package/dist/package-node.js +28 -14
- package/dist/package.cjs +4 -1
- package/dist/package.d.cts +52 -7
- package/dist/package.d.ts +52 -7
- package/dist/package.js +4 -1
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/style.d.cts +2 -2
- package/dist/style.d.ts +2 -2
- package/package.json +1 -1
- package/schemas/content-document.schema.json +399 -7
- package/schemas/document-package.schema.json +534 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.js";
|
|
2
2
|
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-B1oTCtzc.js";
|
|
3
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
3
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.js";
|
|
4
4
|
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.js";
|
|
5
5
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.js";
|
|
6
|
-
import { $ as
|
|
6
|
+
import { $ as ContentSheetPrintRangeSchema, A as ContentPageBreakSchema, At as isContentConstructEnd, B as ContentSectionSchema, C as ContentFormula, Ct as DecimalString, D as ContentListMembership, Dt as contentDocumentSharedFields, E as ContentImageBlockSchema, Et as clampHeadingLevel, F as ContentPathSegment, G as ContentSheetCellComment, H as ContentShapeSchema, I as ContentPathSegmentSchema, J as ContentSheetColumn, K as ContentSheetCellCommentSchema, L as ContentRun, M as ContentParagraphSchema, N as ContentPathPoint, O as ContentListMembershipSchema, Ot as findConstructMarkerImbalance, P as ContentPathPointSchema, Q as ContentSheetPrintRange, R as ContentRunSchema, S as ContentEmbeddedObjectSchema, St as ContentVectorSchema, T as ContentImageBlock, Tt as FusedNode, U as ContentSheet, V as ContentShape, W as ContentSheetCell, X as ContentSheetImage, Y as ContentSheetColumnSchema, Z as ContentSheetImageSchema, _ as ContentDrawPageSchema, _t as ContentTableCellSchema, a as ContentBorderSchema, at as ContentSheetRowSchema, b as ContentEmbeddedObjectBlockSchema, bt as ContentTableSchema, c as ContentCellValue, ct as ContentSlideSchema, d as ContentConstructEndSchema, dt as ContentStrokeStyle, et as ContentSheetPrintSettings, f as ContentConstructStart, ft as ContentStrokeStyleSchema, g as ContentDrawPage, gt as ContentTableCell, h as ContentDocumentSchema, ht as ContentTable, i as ContentBorder, it as ContentSheetRow, j as ContentParagraph, jt as isContentConstructStart, k as ContentPageBreak, kt as isContentBlock, l as ContentCellValueSchema, lt as ContentStroke, m as ContentDocument, mt as ContentSubpathSchema, n as ContentBlock, nt as ContentSheetRepeatRange, o as ContentCellBorders, ot as ContentSheetSchema, p as ContentConstructStartSchema, pt as ContentSubpath, q as ContentSheetCellSchema, r as ContentBlockSchema, rt as ContentSheetRepeatRangeSchema, s as ContentCellBordersSchema, st as ContentSlide, t as ConstructMarkerImbalance, tt as ContentSheetPrintSettingsSchema, u as ContentConstructEnd, ut as ContentStrokeSchema, v as ContentEmbeddedObject, vt as ContentTableRow, w as ContentFormulaSchema, wt as DecimalStringSchema, x as ContentEmbeddedObjectKind, xt as ContentVector, y as ContentEmbeddedObjectBlock, yt as ContentTableRowSchema, z as ContentSection } from "./content-D3C14yyb.js";
|
|
7
7
|
import { ContentCodec } from "./codec.js";
|
|
8
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-D5pdDPqM.js";
|
|
8
9
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
|
|
9
10
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
|
|
10
11
|
import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.js";
|
|
11
12
|
import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.js";
|
|
12
13
|
import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.js";
|
|
13
|
-
import { A as
|
|
14
|
+
import { $ as isSectionConstructGroupNode, A as ShapeChild, B as SheetGroupNode, C as SectionChild, D as SectionDescriptorSchema, E as SectionDescriptor, F as ShapeGroupNode, G as SlideGroupSchema, H as SlideDescriptor, I as ShapeGroupSchema, J as isListGroupNode, K as isDrawPageGroupNode, L as SheetChild, M as ShapeConstructGroupSchema, N as ShapeDescriptor, O as SectionGroupNode, P as ShapeDescriptorSchema, Q as isPackageNode, R as SheetDescriptor, S as PackageNodeSchema, T as SectionConstructGroupSchema, U as SlideDescriptorSchema, V as SheetGroupSchema, W as SlideGroupNode, X as isPackageGroup, Y as isPackageBlockLeaf, Z as isPackageLeaf, _ as PackageGroup, a as DrawPageGroupSchema, b as PackageLeafSchema, c as HeadingParagraph, d as ListGroupNode, et as isSectionGroupNode, f as ListGroupSchema, g as PackageBlockLeafSchema, h as PackageBlockLeaf, i as DrawPageGroupNode, it as isSlideGroupNode, j as ShapeConstructGroupNode, k as SectionGroupSchema, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isShapeGroupNode, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isSheetGroupNode, s as HeadingGroupSchema, t as DrawPageChild, tt as isShapeConstructGroupNode, u as ListChild, v as PackageGroupSchema, w as SectionConstructGroupNode, x as PackageNode, y as PackageLeaf, z as SheetDescriptorSchema } from "./package-node-B9qLyhk5.js";
|
|
14
15
|
import { DocumentPackage, DocumentPackageSchema } from "./package.js";
|
|
15
16
|
import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
|
|
16
17
|
import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.js";
|
|
17
18
|
import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.js";
|
|
18
|
-
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize, PageSizeSchema, Point, PositionedFormula, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
|
|
19
|
+
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageBlockLeaf, PackageBlockLeafSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.js";
|
|
2
2
|
import "./codec.js";
|
|
3
3
|
import { COLOR_BLACK, ColorSchema, colorToRgbHex, rgbHexToColor } from "./color.js";
|
|
4
|
+
import { AnchorDescriptorSchema, AnchorTypeSchema, ConstructDescriptorSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, DivisionDescriptorSchema, DivisionSourceSchema, FieldDescriptorSchema, LinkDescriptorSchema, LinkTargetSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema } from "./construct.js";
|
|
4
5
|
import { DimensionVectorSchema, ExactRationalSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, SI_BASE_DIMENSIONS, SymbolTableSchema, isMathExpression } from "./math.js";
|
|
5
6
|
import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "./geometry.js";
|
|
6
7
|
import { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, isMathMlNode } from "./mathml.js";
|
|
7
8
|
import { LayoutMetadataSchema } from "./metadata.js";
|
|
8
9
|
import { AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFontSchema } from "./style.js";
|
|
9
|
-
import { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, isContentBlock } from "./content.js";
|
|
10
|
+
import { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart } from "./content.js";
|
|
10
11
|
import { DefinitionEntrySchema, DefinitionsTableSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
|
|
11
|
-
import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode } from "./package-node.js";
|
|
12
|
+
import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageBlockLeafSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode } from "./package-node.js";
|
|
12
13
|
import { DocumentPackageSchema } from "./package.js";
|
|
13
14
|
import { LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
|
|
14
15
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
|
|
15
16
|
import "./font-port.js";
|
|
16
17
|
import "./text-layout.js";
|
|
17
18
|
import "./math-layout.js";
|
|
18
|
-
export { AlignmentSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DocumentPackageSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRationalSchema, HeadingGroupSchema, HeadingParagraphSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, PageSizeSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionDescriptorSchema, SectionGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
|
|
19
|
+
export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema, DocumentPackageSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRationalSchema, FieldDescriptorSchema, HeadingGroupSchema, HeadingParagraphSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageBlockLeafSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
|
|
@@ -8,9 +8,9 @@ type ExactRational = z.infer<typeof ExactRationalSchema>;
|
|
|
8
8
|
declare const SI_BASE_DIMENSIONS: readonly ["length", "mass", "time", "electricCurrent", "thermodynamicTemperature", "amountOfSubstance", "luminousIntensity"];
|
|
9
9
|
type SiBaseDimension = (typeof SI_BASE_DIMENSIONS)[number];
|
|
10
10
|
declare const DimensionVectorSchema: z.ZodRecord<z.ZodEnum<{
|
|
11
|
-
time: "time";
|
|
12
11
|
length: "length";
|
|
13
12
|
mass: "mass";
|
|
13
|
+
time: "time";
|
|
14
14
|
electricCurrent: "electricCurrent";
|
|
15
15
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
16
16
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -22,9 +22,9 @@ declare const MathUnitSchema: z.ZodObject<{
|
|
|
22
22
|
symbol: z.ZodString;
|
|
23
23
|
name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
25
|
-
time: "time";
|
|
26
25
|
length: "length";
|
|
27
26
|
mass: "mass";
|
|
27
|
+
time: "time";
|
|
28
28
|
electricCurrent: "electricCurrent";
|
|
29
29
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
30
30
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -75,9 +75,9 @@ declare const SymbolTableSchema: z.ZodObject<{
|
|
|
75
75
|
symbol: z.ZodString;
|
|
76
76
|
name: z.ZodOptional<z.ZodString>;
|
|
77
77
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
78
|
-
time: "time";
|
|
79
78
|
length: "length";
|
|
80
79
|
mass: "mass";
|
|
80
|
+
time: "time";
|
|
81
81
|
electricCurrent: "electricCurrent";
|
|
82
82
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
83
83
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -8,9 +8,9 @@ type ExactRational = z.infer<typeof ExactRationalSchema>;
|
|
|
8
8
|
declare const SI_BASE_DIMENSIONS: readonly ["length", "mass", "time", "electricCurrent", "thermodynamicTemperature", "amountOfSubstance", "luminousIntensity"];
|
|
9
9
|
type SiBaseDimension = (typeof SI_BASE_DIMENSIONS)[number];
|
|
10
10
|
declare const DimensionVectorSchema: z.ZodRecord<z.ZodEnum<{
|
|
11
|
-
time: "time";
|
|
12
11
|
length: "length";
|
|
13
12
|
mass: "mass";
|
|
13
|
+
time: "time";
|
|
14
14
|
electricCurrent: "electricCurrent";
|
|
15
15
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
16
16
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -22,9 +22,9 @@ declare const MathUnitSchema: z.ZodObject<{
|
|
|
22
22
|
symbol: z.ZodString;
|
|
23
23
|
name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
25
|
-
time: "time";
|
|
26
25
|
length: "length";
|
|
27
26
|
mass: "mass";
|
|
27
|
+
time: "time";
|
|
28
28
|
electricCurrent: "electricCurrent";
|
|
29
29
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
30
30
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -75,9 +75,9 @@ declare const SymbolTableSchema: z.ZodObject<{
|
|
|
75
75
|
symbol: z.ZodString;
|
|
76
76
|
name: z.ZodOptional<z.ZodString>;
|
|
77
77
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
78
|
-
time: "time";
|
|
79
78
|
length: "length";
|
|
80
79
|
mass: "mass";
|
|
80
|
+
time: "time";
|
|
81
81
|
electricCurrent: "electricCurrent";
|
|
82
82
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
83
83
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/math.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
1
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.cjs";
|
|
2
2
|
export { DimensionVector, DimensionVectorSchema, ExactRational, ExactRationalSchema, MathApp, MathAppSchema, MathExpression, MathExpressionSchema, MathMatrix, MathMatrixSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, SI_BASE_DIMENSIONS, SiBaseDimension, SymbolTable, SymbolTableSchema, isMathExpression };
|
package/dist/math.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
1
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.js";
|
|
2
2
|
export { DimensionVector, DimensionVectorSchema, ExactRational, ExactRationalSchema, MathApp, MathAppSchema, MathExpression, MathExpressionSchema, MathMatrix, MathMatrixSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, SI_BASE_DIMENSIONS, SiBaseDimension, SymbolTable, SymbolTableSchema, isMathExpression };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ContentFormula, X as ContentSheetImage, f as ContentConstructStart, n as ContentBlock, u as ContentConstructEnd, v as ContentEmbeddedObject, xt as ContentVector } from "./content-D3C14yyb.js";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-D5pdDPqM.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
//#region src/package-node.d.ts
|
|
4
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -25,6 +26,53 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
25
26
|
}, z.core.$strict>;
|
|
26
27
|
type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
|
|
27
28
|
declare const SheetDescriptorSchema: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
31
|
+
index: z.ZodNumber;
|
|
32
|
+
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
printSettings: z.ZodObject<{
|
|
36
|
+
pageSize: z.ZodObject<{
|
|
37
|
+
widthPt: z.ZodNumber;
|
|
38
|
+
heightPt: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
margins: z.ZodObject<{
|
|
41
|
+
topPt: z.ZodNumber;
|
|
42
|
+
rightPt: z.ZodNumber;
|
|
43
|
+
bottomPt: z.ZodNumber;
|
|
44
|
+
leftPt: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
printRange: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
startRow: z.ZodNumber;
|
|
48
|
+
startColumn: z.ZodNumber;
|
|
49
|
+
endRow: z.ZodNumber;
|
|
50
|
+
endColumn: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
scalePercent: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
fitToPages: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
width: z.ZodNumber;
|
|
55
|
+
height: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
repeatRows: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
start: z.ZodNumber;
|
|
59
|
+
end: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
repeatColumns: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
start: z.ZodNumber;
|
|
63
|
+
end: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
gridlines: z.ZodBoolean;
|
|
66
|
+
headers: z.ZodBoolean;
|
|
67
|
+
pageOrder: z.ZodEnum<{
|
|
68
|
+
downThenOver: "downThenOver";
|
|
69
|
+
overThenDown: "overThenDown";
|
|
70
|
+
}>;
|
|
71
|
+
manualBreaks: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
rows: z.ZodArray<z.ZodNumber>;
|
|
73
|
+
columns: z.ZodArray<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
28
76
|
cells: z.ZodArray<z.ZodObject<{
|
|
29
77
|
row: z.ZodNumber;
|
|
30
78
|
column: z.ZodNumber;
|
|
@@ -181,58 +229,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
181
229
|
heightPt: z.ZodNumber;
|
|
182
230
|
}, z.core.$strip>>>;
|
|
183
231
|
}, z.core.$strip>>;
|
|
184
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
185
|
-
index: z.ZodNumber;
|
|
186
|
-
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
187
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
-
}, z.core.$strip>>;
|
|
189
|
-
name: z.ZodString;
|
|
190
232
|
columns: z.ZodArray<z.ZodObject<{
|
|
191
233
|
index: z.ZodNumber;
|
|
192
234
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
193
235
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
194
236
|
}, z.core.$strip>>;
|
|
195
|
-
printSettings: z.ZodObject<{
|
|
196
|
-
pageSize: z.ZodObject<{
|
|
197
|
-
widthPt: z.ZodNumber;
|
|
198
|
-
heightPt: z.ZodNumber;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
margins: z.ZodObject<{
|
|
201
|
-
topPt: z.ZodNumber;
|
|
202
|
-
rightPt: z.ZodNumber;
|
|
203
|
-
bottomPt: z.ZodNumber;
|
|
204
|
-
leftPt: z.ZodNumber;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
printRange: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
startRow: z.ZodNumber;
|
|
208
|
-
startColumn: z.ZodNumber;
|
|
209
|
-
endRow: z.ZodNumber;
|
|
210
|
-
endColumn: z.ZodNumber;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
scalePercent: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
fitToPages: z.ZodOptional<z.ZodObject<{
|
|
214
|
-
width: z.ZodNumber;
|
|
215
|
-
height: z.ZodNumber;
|
|
216
|
-
}, z.core.$strip>>;
|
|
217
|
-
repeatRows: z.ZodOptional<z.ZodObject<{
|
|
218
|
-
start: z.ZodNumber;
|
|
219
|
-
end: z.ZodNumber;
|
|
220
|
-
}, z.core.$strip>>;
|
|
221
|
-
repeatColumns: z.ZodOptional<z.ZodObject<{
|
|
222
|
-
start: z.ZodNumber;
|
|
223
|
-
end: z.ZodNumber;
|
|
224
|
-
}, z.core.$strip>>;
|
|
225
|
-
gridlines: z.ZodBoolean;
|
|
226
|
-
headers: z.ZodBoolean;
|
|
227
|
-
pageOrder: z.ZodEnum<{
|
|
228
|
-
downThenOver: "downThenOver";
|
|
229
|
-
overThenDown: "overThenDown";
|
|
230
|
-
}>;
|
|
231
|
-
manualBreaks: z.ZodOptional<z.ZodObject<{
|
|
232
|
-
rows: z.ZodArray<z.ZodNumber>;
|
|
233
|
-
columns: z.ZodArray<z.ZodNumber>;
|
|
234
|
-
}, z.core.$strip>>;
|
|
235
|
-
}, z.core.$strip>;
|
|
236
237
|
kind: z.ZodLiteral<"sheet">;
|
|
237
238
|
}, z.core.$strict>;
|
|
238
239
|
type SheetDescriptor = z.infer<typeof SheetDescriptorSchema>;
|
|
@@ -245,6 +246,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
|
|
|
245
246
|
}, z.core.$strict>;
|
|
246
247
|
type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
|
|
247
248
|
declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
249
|
+
name: z.ZodOptional<z.ZodString>;
|
|
248
250
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
249
251
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
252
|
pageIndex: z.ZodNumber;
|
|
@@ -259,7 +261,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
259
261
|
widthPt: z.ZodNumber;
|
|
260
262
|
heightPt: z.ZodNumber;
|
|
261
263
|
}, z.core.$strip>;
|
|
262
|
-
name: z.ZodOptional<z.ZodString>;
|
|
263
264
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
264
265
|
insetLeftPt: z.ZodNumber;
|
|
265
266
|
insetTopPt: z.ZodNumber;
|
|
@@ -374,10 +375,11 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
374
375
|
}, z.core.$strip>;
|
|
375
376
|
}, z.core.$strip>;
|
|
376
377
|
type ListParagraph = z.infer<typeof ListParagraphSchema>;
|
|
377
|
-
type
|
|
378
|
-
type
|
|
379
|
-
type
|
|
380
|
-
type
|
|
378
|
+
type PackageBlockLeaf = Exclude<ContentBlock, ContentConstructStart | ContentConstructEnd>;
|
|
379
|
+
type PackageLeaf = PackageBlockLeaf | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
|
|
380
|
+
type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | PackageBlockLeaf;
|
|
381
|
+
type ShapeChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
|
|
382
|
+
type ListChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
|
|
381
383
|
type SheetChild = ContentSheetImage | ContentEmbeddedObject;
|
|
382
384
|
type DrawPageChild = ShapeGroupNode | ContentVector;
|
|
383
385
|
interface SectionGroupNode {
|
|
@@ -415,8 +417,20 @@ interface ListGroupNode {
|
|
|
415
417
|
style?: string;
|
|
416
418
|
children: ListChild[];
|
|
417
419
|
}
|
|
418
|
-
|
|
420
|
+
interface SectionConstructGroupNode {
|
|
421
|
+
readonly node: ConstructDescriptor;
|
|
422
|
+
style?: string;
|
|
423
|
+
children: SectionChild[];
|
|
424
|
+
}
|
|
425
|
+
interface ShapeConstructGroupNode {
|
|
426
|
+
readonly node: ConstructDescriptor;
|
|
427
|
+
style?: string;
|
|
428
|
+
children: ShapeChild[];
|
|
429
|
+
}
|
|
430
|
+
type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ShapeConstructGroupNode;
|
|
419
431
|
type PackageNode = PackageGroup | PackageLeaf;
|
|
432
|
+
declare function isPackageBlockLeaf(value: unknown): value is PackageBlockLeaf;
|
|
433
|
+
declare const PackageBlockLeafSchema: z.ZodCustom<PackageBlockLeaf, PackageBlockLeaf>;
|
|
420
434
|
declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
|
|
421
435
|
declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
|
|
422
436
|
declare function isSheetGroupNode(value: unknown): value is SheetGroupNode;
|
|
@@ -424,6 +438,8 @@ declare function isDrawPageGroupNode(value: unknown): value is DrawPageGroupNode
|
|
|
424
438
|
declare function isShapeGroupNode(value: unknown): value is ShapeGroupNode;
|
|
425
439
|
declare function isHeadingGroupNode(value: unknown): value is HeadingGroupNode;
|
|
426
440
|
declare function isListGroupNode(value: unknown): value is ListGroupNode;
|
|
441
|
+
declare function isSectionConstructGroupNode(value: unknown): value is SectionConstructGroupNode;
|
|
442
|
+
declare function isShapeConstructGroupNode(value: unknown): value is ShapeConstructGroupNode;
|
|
427
443
|
declare function isPackageLeaf(value: unknown): value is PackageLeaf;
|
|
428
444
|
declare function isPackageGroup(value: unknown): value is PackageGroup;
|
|
429
445
|
declare function isPackageNode(value: unknown): value is PackageNode;
|
|
@@ -434,8 +450,10 @@ declare const DrawPageGroupSchema: z.ZodCustom<DrawPageGroupNode, DrawPageGroupN
|
|
|
434
450
|
declare const ShapeGroupSchema: z.ZodCustom<ShapeGroupNode, ShapeGroupNode>;
|
|
435
451
|
declare const HeadingGroupSchema: z.ZodCustom<HeadingGroupNode, HeadingGroupNode>;
|
|
436
452
|
declare const ListGroupSchema: z.ZodCustom<ListGroupNode, ListGroupNode>;
|
|
453
|
+
declare const SectionConstructGroupSchema: z.ZodCustom<SectionConstructGroupNode, SectionConstructGroupNode>;
|
|
454
|
+
declare const ShapeConstructGroupSchema: z.ZodCustom<ShapeConstructGroupNode, ShapeConstructGroupNode>;
|
|
437
455
|
declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
|
|
438
456
|
declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
|
|
439
457
|
declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
|
|
440
458
|
//#endregion
|
|
441
|
-
export {
|
|
459
|
+
export { isSectionConstructGroupNode as $, ShapeChild as A, SheetGroupNode as B, SectionChild as C, SectionDescriptorSchema as D, SectionDescriptor as E, ShapeGroupNode as F, SlideGroupSchema as G, SlideDescriptor as H, ShapeGroupSchema as I, isListGroupNode as J, isDrawPageGroupNode as K, SheetChild as L, ShapeConstructGroupSchema as M, ShapeDescriptor as N, SectionGroupNode as O, ShapeDescriptorSchema as P, isPackageNode as Q, SheetDescriptor as R, PackageNodeSchema as S, SectionConstructGroupSchema as T, SlideDescriptorSchema as U, SheetGroupSchema as V, SlideGroupNode as W, isPackageGroup as X, isPackageBlockLeaf as Y, isPackageLeaf as Z, PackageGroup as _, DrawPageGroupSchema as a, PackageLeafSchema as b, HeadingParagraph as c, ListGroupNode as d, isSectionGroupNode as et, ListGroupSchema as f, PackageBlockLeafSchema as g, PackageBlockLeaf as h, DrawPageGroupNode as i, isSlideGroupNode as it, ShapeConstructGroupNode as j, SectionGroupSchema as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, isShapeGroupNode as nt, HeadingGroupNode as o, ListParagraph as p, isHeadingGroupNode as q, DrawPageDescriptorSchema as r, isSheetGroupNode as rt, HeadingGroupSchema as s, DrawPageChild as t, isShapeConstructGroupNode as tt, ListChild as u, PackageGroupSchema as v, SectionConstructGroupNode as w, PackageNode as x, PackageLeaf as y, SheetDescriptorSchema as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ContentFormula, X as ContentSheetImage, f as ContentConstructStart, n as ContentBlock, u as ContentConstructEnd, v as ContentEmbeddedObject, xt as ContentVector } from "./content-oSmH1_zP.cjs";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-D5pdDPqM.cjs";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
//#region src/package-node.d.ts
|
|
4
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -25,6 +26,53 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
25
26
|
}, z.core.$strict>;
|
|
26
27
|
type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
|
|
27
28
|
declare const SheetDescriptorSchema: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
31
|
+
index: z.ZodNumber;
|
|
32
|
+
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
printSettings: z.ZodObject<{
|
|
36
|
+
pageSize: z.ZodObject<{
|
|
37
|
+
widthPt: z.ZodNumber;
|
|
38
|
+
heightPt: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
margins: z.ZodObject<{
|
|
41
|
+
topPt: z.ZodNumber;
|
|
42
|
+
rightPt: z.ZodNumber;
|
|
43
|
+
bottomPt: z.ZodNumber;
|
|
44
|
+
leftPt: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
printRange: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
startRow: z.ZodNumber;
|
|
48
|
+
startColumn: z.ZodNumber;
|
|
49
|
+
endRow: z.ZodNumber;
|
|
50
|
+
endColumn: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
scalePercent: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
fitToPages: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
width: z.ZodNumber;
|
|
55
|
+
height: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
repeatRows: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
start: z.ZodNumber;
|
|
59
|
+
end: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
repeatColumns: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
start: z.ZodNumber;
|
|
63
|
+
end: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
gridlines: z.ZodBoolean;
|
|
66
|
+
headers: z.ZodBoolean;
|
|
67
|
+
pageOrder: z.ZodEnum<{
|
|
68
|
+
downThenOver: "downThenOver";
|
|
69
|
+
overThenDown: "overThenDown";
|
|
70
|
+
}>;
|
|
71
|
+
manualBreaks: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
rows: z.ZodArray<z.ZodNumber>;
|
|
73
|
+
columns: z.ZodArray<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
28
76
|
cells: z.ZodArray<z.ZodObject<{
|
|
29
77
|
row: z.ZodNumber;
|
|
30
78
|
column: z.ZodNumber;
|
|
@@ -181,58 +229,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
181
229
|
heightPt: z.ZodNumber;
|
|
182
230
|
}, z.core.$strip>>>;
|
|
183
231
|
}, z.core.$strip>>;
|
|
184
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
185
|
-
index: z.ZodNumber;
|
|
186
|
-
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
187
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
-
}, z.core.$strip>>;
|
|
189
|
-
name: z.ZodString;
|
|
190
232
|
columns: z.ZodArray<z.ZodObject<{
|
|
191
233
|
index: z.ZodNumber;
|
|
192
234
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
193
235
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
194
236
|
}, z.core.$strip>>;
|
|
195
|
-
printSettings: z.ZodObject<{
|
|
196
|
-
pageSize: z.ZodObject<{
|
|
197
|
-
widthPt: z.ZodNumber;
|
|
198
|
-
heightPt: z.ZodNumber;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
margins: z.ZodObject<{
|
|
201
|
-
topPt: z.ZodNumber;
|
|
202
|
-
rightPt: z.ZodNumber;
|
|
203
|
-
bottomPt: z.ZodNumber;
|
|
204
|
-
leftPt: z.ZodNumber;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
printRange: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
startRow: z.ZodNumber;
|
|
208
|
-
startColumn: z.ZodNumber;
|
|
209
|
-
endRow: z.ZodNumber;
|
|
210
|
-
endColumn: z.ZodNumber;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
scalePercent: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
fitToPages: z.ZodOptional<z.ZodObject<{
|
|
214
|
-
width: z.ZodNumber;
|
|
215
|
-
height: z.ZodNumber;
|
|
216
|
-
}, z.core.$strip>>;
|
|
217
|
-
repeatRows: z.ZodOptional<z.ZodObject<{
|
|
218
|
-
start: z.ZodNumber;
|
|
219
|
-
end: z.ZodNumber;
|
|
220
|
-
}, z.core.$strip>>;
|
|
221
|
-
repeatColumns: z.ZodOptional<z.ZodObject<{
|
|
222
|
-
start: z.ZodNumber;
|
|
223
|
-
end: z.ZodNumber;
|
|
224
|
-
}, z.core.$strip>>;
|
|
225
|
-
gridlines: z.ZodBoolean;
|
|
226
|
-
headers: z.ZodBoolean;
|
|
227
|
-
pageOrder: z.ZodEnum<{
|
|
228
|
-
downThenOver: "downThenOver";
|
|
229
|
-
overThenDown: "overThenDown";
|
|
230
|
-
}>;
|
|
231
|
-
manualBreaks: z.ZodOptional<z.ZodObject<{
|
|
232
|
-
rows: z.ZodArray<z.ZodNumber>;
|
|
233
|
-
columns: z.ZodArray<z.ZodNumber>;
|
|
234
|
-
}, z.core.$strip>>;
|
|
235
|
-
}, z.core.$strip>;
|
|
236
237
|
kind: z.ZodLiteral<"sheet">;
|
|
237
238
|
}, z.core.$strict>;
|
|
238
239
|
type SheetDescriptor = z.infer<typeof SheetDescriptorSchema>;
|
|
@@ -245,6 +246,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
|
|
|
245
246
|
}, z.core.$strict>;
|
|
246
247
|
type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
|
|
247
248
|
declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
249
|
+
name: z.ZodOptional<z.ZodString>;
|
|
248
250
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
249
251
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
252
|
pageIndex: z.ZodNumber;
|
|
@@ -259,7 +261,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
259
261
|
widthPt: z.ZodNumber;
|
|
260
262
|
heightPt: z.ZodNumber;
|
|
261
263
|
}, z.core.$strip>;
|
|
262
|
-
name: z.ZodOptional<z.ZodString>;
|
|
263
264
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
264
265
|
insetLeftPt: z.ZodNumber;
|
|
265
266
|
insetTopPt: z.ZodNumber;
|
|
@@ -374,10 +375,11 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
374
375
|
}, z.core.$strip>;
|
|
375
376
|
}, z.core.$strip>;
|
|
376
377
|
type ListParagraph = z.infer<typeof ListParagraphSchema>;
|
|
377
|
-
type
|
|
378
|
-
type
|
|
379
|
-
type
|
|
380
|
-
type
|
|
378
|
+
type PackageBlockLeaf = Exclude<ContentBlock, ContentConstructStart | ContentConstructEnd>;
|
|
379
|
+
type PackageLeaf = PackageBlockLeaf | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
|
|
380
|
+
type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | PackageBlockLeaf;
|
|
381
|
+
type ShapeChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
|
|
382
|
+
type ListChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
|
|
381
383
|
type SheetChild = ContentSheetImage | ContentEmbeddedObject;
|
|
382
384
|
type DrawPageChild = ShapeGroupNode | ContentVector;
|
|
383
385
|
interface SectionGroupNode {
|
|
@@ -415,8 +417,20 @@ interface ListGroupNode {
|
|
|
415
417
|
style?: string;
|
|
416
418
|
children: ListChild[];
|
|
417
419
|
}
|
|
418
|
-
|
|
420
|
+
interface SectionConstructGroupNode {
|
|
421
|
+
readonly node: ConstructDescriptor;
|
|
422
|
+
style?: string;
|
|
423
|
+
children: SectionChild[];
|
|
424
|
+
}
|
|
425
|
+
interface ShapeConstructGroupNode {
|
|
426
|
+
readonly node: ConstructDescriptor;
|
|
427
|
+
style?: string;
|
|
428
|
+
children: ShapeChild[];
|
|
429
|
+
}
|
|
430
|
+
type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ShapeConstructGroupNode;
|
|
419
431
|
type PackageNode = PackageGroup | PackageLeaf;
|
|
432
|
+
declare function isPackageBlockLeaf(value: unknown): value is PackageBlockLeaf;
|
|
433
|
+
declare const PackageBlockLeafSchema: z.ZodCustom<PackageBlockLeaf, PackageBlockLeaf>;
|
|
420
434
|
declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
|
|
421
435
|
declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
|
|
422
436
|
declare function isSheetGroupNode(value: unknown): value is SheetGroupNode;
|
|
@@ -424,6 +438,8 @@ declare function isDrawPageGroupNode(value: unknown): value is DrawPageGroupNode
|
|
|
424
438
|
declare function isShapeGroupNode(value: unknown): value is ShapeGroupNode;
|
|
425
439
|
declare function isHeadingGroupNode(value: unknown): value is HeadingGroupNode;
|
|
426
440
|
declare function isListGroupNode(value: unknown): value is ListGroupNode;
|
|
441
|
+
declare function isSectionConstructGroupNode(value: unknown): value is SectionConstructGroupNode;
|
|
442
|
+
declare function isShapeConstructGroupNode(value: unknown): value is ShapeConstructGroupNode;
|
|
427
443
|
declare function isPackageLeaf(value: unknown): value is PackageLeaf;
|
|
428
444
|
declare function isPackageGroup(value: unknown): value is PackageGroup;
|
|
429
445
|
declare function isPackageNode(value: unknown): value is PackageNode;
|
|
@@ -434,8 +450,10 @@ declare const DrawPageGroupSchema: z.ZodCustom<DrawPageGroupNode, DrawPageGroupN
|
|
|
434
450
|
declare const ShapeGroupSchema: z.ZodCustom<ShapeGroupNode, ShapeGroupNode>;
|
|
435
451
|
declare const HeadingGroupSchema: z.ZodCustom<HeadingGroupNode, HeadingGroupNode>;
|
|
436
452
|
declare const ListGroupSchema: z.ZodCustom<ListGroupNode, ListGroupNode>;
|
|
453
|
+
declare const SectionConstructGroupSchema: z.ZodCustom<SectionConstructGroupNode, SectionConstructGroupNode>;
|
|
454
|
+
declare const ShapeConstructGroupSchema: z.ZodCustom<ShapeConstructGroupNode, ShapeConstructGroupNode>;
|
|
437
455
|
declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
|
|
438
456
|
declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
|
|
439
457
|
declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
|
|
440
458
|
//#endregion
|
|
441
|
-
export {
|
|
459
|
+
export { isSectionConstructGroupNode as $, ShapeChild as A, SheetGroupNode as B, SectionChild as C, SectionDescriptorSchema as D, SectionDescriptor as E, ShapeGroupNode as F, SlideGroupSchema as G, SlideDescriptor as H, ShapeGroupSchema as I, isListGroupNode as J, isDrawPageGroupNode as K, SheetChild as L, ShapeConstructGroupSchema as M, ShapeDescriptor as N, SectionGroupNode as O, ShapeDescriptorSchema as P, isPackageNode as Q, SheetDescriptor as R, PackageNodeSchema as S, SectionConstructGroupSchema as T, SlideDescriptorSchema as U, SheetGroupSchema as V, SlideGroupNode as W, isPackageGroup as X, isPackageBlockLeaf as Y, isPackageLeaf as Z, PackageGroup as _, DrawPageGroupSchema as a, PackageLeafSchema as b, HeadingParagraph as c, ListGroupNode as d, isSectionGroupNode as et, ListGroupSchema as f, PackageBlockLeafSchema as g, PackageBlockLeaf as h, DrawPageGroupNode as i, isSlideGroupNode as it, ShapeConstructGroupNode as j, SectionGroupSchema as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, isShapeGroupNode as nt, HeadingGroupNode as o, ListParagraph as p, isHeadingGroupNode as q, DrawPageDescriptorSchema as r, isSheetGroupNode as rt, HeadingGroupSchema as s, DrawPageChild as t, isShapeConstructGroupNode as tt, ListChild as u, PackageGroupSchema as v, SectionConstructGroupNode as w, PackageNode as x, PackageLeaf as y, SheetDescriptorSchema as z };
|