@adobe/ccweb-add-on-sdk-types 1.28.0 → 1.30.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/ccweb-add-on-sdk-types",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "author": "Adobe",
5
5
  "license": "MIT",
6
6
  "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
@@ -88,7 +88,8 @@ declare namespace ApiConstants {
88
88
  VisualEffectType,
89
89
  TextStyleSource,
90
90
  ParagraphListType,
91
- OrderedListNumbering
91
+ OrderedListNumbering,
92
+ CreateRenditionFormat
92
93
  };
93
94
  }
94
95
 
@@ -171,6 +172,23 @@ export declare class ArtboardNode extends VisualNode implements Readonly<IRectan
171
172
  * The children of an Artboard are all subclasses of Node (not just the more minimal BaseNode or VisualNode).
172
173
  */
173
174
  get allChildren(): Readonly<Iterable<Node>>;
175
+ /**
176
+ * <InlineAlert slots="text" variant="warning"/>
177
+ *
178
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
179
+ *
180
+ * @experimental
181
+ * Helper to recursively traverse *all* the exposed scenegraph content within the subtree of this node.
182
+ * Every container node and every leaf node will be visited via a pre-order tree traversal.
183
+ * Although once called the list of direct descendants is static, changes to further descendants may appear while
184
+ * iterating depending on when the operation occurs relative to the parent being yielded.
185
+ * Note that the root node (i.e. what this API was called on) is not visited.
186
+ *
187
+ * The descendants of an Artboard are all subclasses of Node (not just the more minimal BaseNode or VisualNode).
188
+ *
189
+ * Warning: Processing text content via this API can be error-prone. Use {@link VisualNode.allTextContent}
190
+ */
191
+ get allDescendants(): Readonly<Iterable<Node>>;
174
192
  /**
175
193
  * The artboards's regular children (does not include any "background layer" content if present; use {@link allChildren}
176
194
  * for a read-only view that includes background content). Use the methods on this `children` ItemList object to get,
@@ -393,7 +411,7 @@ export declare class BitmapImage {
393
411
  * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
394
412
  *
395
413
  * @experimental
396
- * Fetches the bitmap data as a Blob. This will wait for the bitmap to be available if necessary.
414
+ * Fetches the bitmap data as a Blob. Waits up to 1 minute for the bitmap to be available if necessary.
397
415
  */
398
416
  data(): Promise<Blob>;
399
417
  }
@@ -647,6 +665,60 @@ export declare class Context {
647
665
  get insertionParent(): ContainerNode;
648
666
  }
649
667
 
668
+ /**
669
+ * <InlineAlert slots="text" variant="warning"/>
670
+ *
671
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
672
+ *
673
+ * @experimental
674
+ * The format of the rendition output.
675
+ */
676
+ export declare enum CreateRenditionFormat {
677
+ png = "png",
678
+ jpeg = "jpeg"
679
+ }
680
+
681
+ /**
682
+ * <InlineAlert slots="text" variant="warning"/>
683
+ *
684
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
685
+ *
686
+ * @experimental
687
+ * An interface for configuring {@link VisualNode.createRendition}.
688
+ */
689
+ export declare interface CreateRenditionOptions {
690
+ /**
691
+ * Whether to output in PNG or JPEG format. Defaults to PNG.
692
+ */
693
+ format?: CreateRenditionFormat;
694
+ /**
695
+ * The scale factor to apply to the content before it is rendered.
696
+ */
697
+ scale?: number;
698
+ }
699
+
700
+ /**
701
+ * <InlineAlert slots="text" variant="warning"/>
702
+ *
703
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
704
+ *
705
+ * @experimental
706
+ * An interface for the result of {@link VisualNode.createRendition}.
707
+ */
708
+ export declare interface CreateRenditionResult {
709
+ /**
710
+ * The PNG or JPEG data for the rendition.
711
+ */
712
+ blob?: Blob;
713
+ /**
714
+ * The bounds of the rendition in the global coordinate space.
715
+ * This may be larger than the {@link VisualNode.boundsLocal} due to rotations, borders, filters, or other effects.
716
+ * Only provided if the {@link VisualNode} is not orphaned.
717
+ *
718
+ */
719
+ drawBoundsGlobal?: Rect;
720
+ }
721
+
650
722
  /**
651
723
  * Entry point for APIs that read or modify the document's content.
652
724
  */
@@ -707,10 +779,6 @@ export declare class Editor {
707
779
  * User's current selection context
708
780
  */
709
781
  get context(): Context;
710
- /**
711
- * @returns the root of the document.
712
- */
713
- get documentRoot(): BaseNode;
714
782
  /**
715
783
  * @returns an ellipse node with default x/y radii, a black fill, and no initial stroke.
716
784
  * Transform values default to 0.
@@ -788,6 +856,25 @@ export declare class Editor {
788
856
  * @returns a stroke configured with the given options.
789
857
  */
790
858
  makeStroke(options?: Partial<SolidColorStroke>): SolidColorStroke;
859
+ /**
860
+ * <InlineAlert slots="text" variant="warning"/>
861
+ *
862
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
863
+ *
864
+ * @experimental
865
+ * @param parentNode - The parent node that will contain the threaded text node. This must be a container node (e.g., ArtboardNode, GroupNode) that is attached to the document.
866
+ * @param textContent - The initial text content for the threaded text node.
867
+ * @param geometry - The geometry of the threaded text node.
868
+ * @returns A new ThreadedTextNode that is part of a threaded text flow.
869
+ *
870
+ * @throws if parentNode is not provided or is not a valid container node.
871
+ * @throws if textContent is empty or invalid.
872
+ */
873
+ createThreadedText(
874
+ parentNode: ContainerNode,
875
+ textContent: string,
876
+ geometry?: TextFrameAreaGeometry
877
+ ): ThreadedTextNode;
791
878
  /**
792
879
  * @returns a path node with a default stroke and no initial fill.
793
880
  * @param path - a string representing any [SVG path element](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths).
@@ -867,6 +954,9 @@ export declare class ExpressContext extends Context {
867
954
  */
868
955
  export declare class ExpressEditor extends Editor {
869
956
  get context(): ExpressContext;
957
+ /**
958
+ * @returns the root of the document.
959
+ */
870
960
  get documentRoot(): ExpressRootNode;
871
961
  }
872
962
 
@@ -1409,6 +1499,23 @@ declare class Node extends VisualNode implements INodeBounds {
1409
1499
  * The children of a Node are always other Node classes (never the more minimal BaseNode).
1410
1500
  */
1411
1501
  get allChildren(): Readonly<Iterable<Node>>;
1502
+ /**
1503
+ * <InlineAlert slots="text" variant="warning"/>
1504
+ *
1505
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1506
+ *
1507
+ * @experimental
1508
+ * Helper to recursively traverse *all* the exposed scenegraph content within the subtree of this node.
1509
+ * Every container node and every leaf node will be visited via a pre-order tree traversal.
1510
+ * Although once called the list of direct descendants is static, changes to further descendants may appear while
1511
+ * iterating depending on when the operation occurs relative to the parent being yielded.
1512
+ * Note that the root node (i.e. what this API was called on) is not visited.
1513
+ *
1514
+ * The descendants of a Node are always other Node classes (never the more minimal BaseNode).
1515
+ *
1516
+ * Warning: Processing text content via this API can be error-prone. Use {@link VisualNode.allTextContent}
1517
+ */
1518
+ get allDescendants(): Readonly<Iterable<Node>>;
1412
1519
  get boundsInParent(): Readonly<Rect>;
1413
1520
  boundsInNode(targetNode: VisualNode): Readonly<Rect>;
1414
1521
  get translation(): Readonly<Point>;
@@ -1553,6 +1660,37 @@ export declare class PageNode extends BaseNode implements IRectangularNode {
1553
1660
  * To create new artboards, see {@link ArtboardList.addArtboard}.
1554
1661
  */
1555
1662
  get artboards(): ArtboardList;
1663
+ /**
1664
+ * <InlineAlert slots="text" variant="warning"/>
1665
+ *
1666
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1667
+ *
1668
+ * @experimental
1669
+ * Helper to recursively traverse *all* the exposed scenegraph content within the subtree of this node.
1670
+ * Every container node and every leaf node will be visited via a pre-order tree traversal.
1671
+ * Although once called the list of direct descendants is static, changes to further descendants may appear while
1672
+ * iterating depending on when the operation occurs relative to the parent being yielded.
1673
+ * Note that the root node (i.e. what this API was called on) is not visited.
1674
+ *
1675
+ * Warning: Processing text content via this API can be error-prone. Use {@link VisualNode.allTextContent}
1676
+ */
1677
+ get allDescendants(): Readonly<Iterable<VisualNode>>;
1678
+ /**
1679
+ * <InlineAlert slots="text" variant="warning"/>
1680
+ *
1681
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1682
+ *
1683
+ * @experimental
1684
+ * Helper to process all text content that is found as part of or within this node. This can be hard to do correctly
1685
+ * via manual tree traversal since multiple {@link ThreadedTextNode} can share a single {@link TextContentModel}.
1686
+ *
1687
+ * This iterator returns a single result per TextContentModel that is at least partially displayed within this node,
1688
+ * even if that content is split across several separate TextNode "frames". If this node is or contains some but not
1689
+ * all of the display frames of an overall TextContentModel, that model is still included as a result.
1690
+ *
1691
+ * Note that visibleRanges and visibleText may not be sorted as TextNode "frames" can appear in any order in the scenegraph.
1692
+ */
1693
+ get allTextContent(): Readonly<Iterable<TextContent>>;
1556
1694
  /**
1557
1695
  * The width of the node.
1558
1696
  *
@@ -2171,6 +2309,32 @@ declare enum TextAlignment {
2171
2309
  justifyLeft = 4
2172
2310
  }
2173
2311
 
2312
+ /**
2313
+ * <InlineAlert slots="text" variant="warning"/>
2314
+ *
2315
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2316
+ *
2317
+ * @experimental
2318
+ * The values yielded by {@link VisualNode.allTextContent} and {@link PageNode.allTextContent}.
2319
+ */
2320
+ export declare interface TextContent {
2321
+ textContentModel: TextContentModel;
2322
+ /**
2323
+ * An unsorted list of the subranges of the related text content model that are visible within the node.
2324
+ *
2325
+ * Since a single text content model can be displayed across multiple TextNode "frames", any of which could be
2326
+ * outside of the node, the union of all the subranges in this value may still be a subset of the total range.
2327
+ */
2328
+ visibleRanges: TextRange[];
2329
+ /**
2330
+ * An unsorted list of the parts of the related text content model that are visible within the node.
2331
+ *
2332
+ * Since a single text content model can be displayed across multiple TextNode "frames", any of which could be
2333
+ * outside of the node, the union of all the text in this value may still be a subset of the total text.
2334
+ */
2335
+ visibleText: string[];
2336
+ }
2337
+
2174
2338
  /**
2175
2339
  * TextContentModel is an abstract base class representing a complete piece of text content.
2176
2340
  * Use this model to get or modify the text string and the style ranges applied to it.
@@ -2334,6 +2498,15 @@ export declare abstract class TextContentModel {
2334
2498
  hasUnavailableFonts(): boolean;
2335
2499
  }
2336
2500
 
2501
+ /**
2502
+ * Geometry for an area text frame in pixels.
2503
+ * @experimental
2504
+ */
2505
+ export declare interface TextFrameAreaGeometry {
2506
+ width: number;
2507
+ height: number;
2508
+ }
2509
+
2337
2510
  /**
2338
2511
  * <InlineAlert slots="text" variant="warning"/>
2339
2512
  *
@@ -2558,12 +2731,23 @@ export declare enum TextStyleSource {
2558
2731
  * ThreadedTextContentModel represents a complete piece of text content that is split across multiple
2559
2732
  * {@link ThreadedTextNode} frames for display. This subclass provides a mutable {@link allFrames} list
2560
2733
  * that supports adding, removing, and reordering text frames.
2561
- *
2562
- * The append and insert operations will automatically parent the new frame to the same parent as the
2563
- * reference frame and place it in the correct z-order.
2564
2734
  */
2565
2735
  export declare class ThreadedTextContentModel extends TextNodeContentModel {
2566
2736
  get allTextNodes(): Readonly<Iterable<ThreadedTextNode>>;
2737
+ get frames(): ThreadedTextList;
2738
+ }
2739
+
2740
+ export declare class ThreadedTextList extends ReadOnlyItemList<ThreadedTextNode> {
2741
+ /**
2742
+ * <InlineAlert slots="text" variant="warning"/>
2743
+ *
2744
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2745
+ *
2746
+ * @experimental
2747
+ * @param geometry - The geometry of the threaded text node in pixels (width and height).
2748
+ * @returns A new ThreadedTextNode that is part of a threaded text flow.
2749
+ */
2750
+ addFrame(geometry?: TextFrameAreaGeometry): ThreadedTextNode;
2567
2751
  }
2568
2752
 
2569
2753
  /**
@@ -2572,8 +2756,6 @@ export declare class ThreadedTextContentModel extends TextNodeContentModel {
2572
2756
  * instead it refers to a {@link TextNodeContentModel}, which may be shared across multiple ThreadedTextNode frames.
2573
2757
  *
2574
2758
  * All linked ThreadedTextNodes that share a single TextContentModel must remain together within the same artboard.
2575
- *
2576
- * APIs are not yet available to create multi-frame text flows. To create *non*-threaded text, use {@link Editor.createText}.
2577
2759
  */
2578
2760
  export declare class ThreadedTextNode extends TextNode {
2579
2761
  /**
@@ -2669,6 +2851,15 @@ declare enum VisualEffectType {
2669
2851
  * Some VisualNodes might have a non-visual parent such as a PageNode.
2670
2852
  */
2671
2853
  export declare class VisualNode extends BaseNode implements IVisualNodeBounds {
2854
+ /**
2855
+ * Returns a read-only list of all children of the node. General-purpose content containers such as ArtboardNode or
2856
+ * GroupNode also provide a mutable {@link ContainerNode.children} list. Other nodes with a more specific structure can
2857
+ * hold children in various discrete "slots"; this `allChildren` list includes *all* such children and reflects their
2858
+ * overall display z-order.
2859
+ *
2860
+ * The children of a VisualNode are always other VisualNode classes (never the more minimal BaseNode).
2861
+ */
2862
+ get allChildren(): Readonly<Iterable<VisualNode>>;
2672
2863
  /**
2673
2864
  * The highest ancestor that still has visual presence in the document. Typically an Artboard, but for orphaned
2674
2865
  * content, it will be the root of the deleted content (which might be this node itself).
@@ -2678,10 +2869,54 @@ export declare class VisualNode extends BaseNode implements IVisualNodeBounds {
2678
2869
  * meaningful comparison or conversion between the bounds or coordinate spaces of such nodes.
2679
2870
  */
2680
2871
  get visualRoot(): VisualNode;
2872
+ /**
2873
+ * <InlineAlert slots="text" variant="warning"/>
2874
+ *
2875
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2876
+ *
2877
+ * @experimental
2878
+ * Helper to recursively traverse *all* the exposed scenegraph content within the subtree of this node.
2879
+ * Every container node and every leaf node will be visited via a pre-order tree traversal.
2880
+ * Although once called the list of direct descendants is static, changes to further descendants may appear while
2881
+ * iterating depending on when the operation occurs relative to the parent being yielded.
2882
+ * Note that the root node (i.e. what this API was called on) is not visited.
2883
+ *
2884
+ * Warning: Processing text content via this API can be error-prone. Use {@link VisualNode.allTextContent}
2885
+ */
2886
+ get allDescendants(): Readonly<Iterable<VisualNode>>;
2887
+ /**
2888
+ * <InlineAlert slots="text" variant="warning"/>
2889
+ *
2890
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2891
+ *
2892
+ * @experimental
2893
+ * Helper to process all text content that is found as part of or within this node. This can be hard to do correctly
2894
+ * via manual tree traversal since multiple {@link ThreadedTextNode} can share a single {@link TextContentModel}.
2895
+ *
2896
+ * This iterator returns a single result per TextContentModel that is at least partially displayed within this node,
2897
+ * even if that content is split across several separate TextNode "frames". If this node is or contains some but not
2898
+ * all of the display frames of an overall TextContentModel, that model is still included as a result.
2899
+ *
2900
+ * Note that visibleRanges and visibleText may not be sorted as TextNode "frames" can appear in any order in the scenegraph.
2901
+ */
2902
+ get allTextContent(): Readonly<Iterable<TextContent>>;
2681
2903
  get boundsLocal(): Readonly<Rect>;
2682
2904
  get centerPointLocal(): Readonly<Point>;
2683
2905
  get topLeftLocal(): Readonly<Point>;
2684
2906
  localPointInNode(localPoint: Point, targetNode: VisualNode): Readonly<Point>;
2907
+ /**
2908
+ * <InlineAlert slots="text" variant="warning"/>
2909
+ *
2910
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2911
+ *
2912
+ * @experimental
2913
+ * Generates a rendition of this node and its descendants.
2914
+ *
2915
+ * If this node contains images, it will wait for the best quality to be available before capturing.
2916
+ * As such, there is a 20s timeout before an error is thrown to prevent indefinite waiting.
2917
+ *
2918
+ */
2919
+ createRendition(options?: CreateRenditionOptions): Promise<CreateRenditionResult>;
2685
2920
  }
2686
2921
 
2687
2922
  export {};
package/ui/ui-sdk.d.ts CHANGED
@@ -421,7 +421,8 @@ export declare enum AuthorizationStatus {
421
421
  POPUP_CLOSED = "POPUP_CLOSED",
422
422
  POPUP_TIMEOUT = "POPUP_TIMEOUT",
423
423
  FAILED = "FAILED",
424
- IFRAME_LOAD_FAILED = "IFRAME_LOAD_FAILED"
424
+ IFRAME_LOAD_FAILED = "IFRAME_LOAD_FAILED",
425
+ RESTRICTED_CLIENT_ID = "RESTRICTED_CLIENT_ID"
425
426
  }
426
427
 
427
428
  /**
@@ -715,6 +716,7 @@ declare namespace Constants {
715
716
  PlatformType,
716
717
  ColorPickerPlacement,
717
718
  FileSizeLimitUnit,
719
+ SizeUnit,
718
720
  AuthorizationStatus
719
721
  };
720
722
  }
@@ -945,6 +947,11 @@ declare interface Document_2 {
945
947
  * Run print quality check
946
948
  */
947
949
  runPrintQualityCheck(options: PrintQualityCheckOptions): void;
950
+ /**
951
+ * @experimental - Experimental API
952
+ * @returns true if the document is a presentation document.
953
+ */
954
+ isPresentation(): Promise<boolean>;
948
955
  }
949
956
  export { Document_2 as Document };
950
957
 
@@ -1142,6 +1149,10 @@ export declare enum EntrypointType {
1142
1149
  * Mobile share entrypoint type.
1143
1150
  */
1144
1151
  MOBILE_SHARE = "mobile.share",
1152
+ /**
1153
+ * Review and approval entrypoint type.
1154
+ */
1155
+ REVIEW_AND_APPROVAL = "review-and-approval",
1145
1156
  /**
1146
1157
  * Schedule entrypoint type.
1147
1158
  */
@@ -1539,6 +1550,11 @@ export declare interface PageMetadata {
1539
1550
  * Whether the page contains animated content
1540
1551
  */
1541
1552
  hasAnimatedContent: boolean;
1553
+ /**
1554
+ * Page size in units
1555
+ * NOTE: This size is same as seen in UI in Resize Panel.
1556
+ */
1557
+ sizeInUnits: PageSizeInUnits;
1542
1558
  /**
1543
1559
  * The page's background color in ARGB format (32-bit integer)
1544
1560
  */
@@ -1581,6 +1597,25 @@ export declare interface PageRendition extends Rendition {
1581
1597
  metadata: PageMetadata;
1582
1598
  }
1583
1599
 
1600
+ /**
1601
+ * Represents the size of the page in units.
1602
+ * NOTE: This size is same as seen in UI in Resize Panel.
1603
+ */
1604
+ export declare interface PageSizeInUnits {
1605
+ /**
1606
+ * Width of the page in units
1607
+ */
1608
+ width: number;
1609
+ /**
1610
+ * Height of the page in units
1611
+ */
1612
+ height: number;
1613
+ /**
1614
+ * Unit of the page size
1615
+ */
1616
+ unit: SizeUnit;
1617
+ }
1618
+
1584
1619
  /**
1585
1620
  * Represents the action to be performed on opening an Editor panel.
1586
1621
  */
@@ -2030,6 +2065,28 @@ export declare interface SearchAction extends PanelAction {
2030
2065
 
2031
2066
  export declare type SimpleDialogOptions = AlertDialogOptions | InputDialogOptions;
2032
2067
 
2068
+ /**
2069
+ * Units for the page size
2070
+ */
2071
+ export declare enum SizeUnit {
2072
+ /**
2073
+ * Pixel
2074
+ */
2075
+ pixel = "px",
2076
+ /**
2077
+ * Centimeter
2078
+ */
2079
+ centimeter = "cm",
2080
+ /**
2081
+ * Millimeter
2082
+ */
2083
+ millimeter = "mm",
2084
+ /**
2085
+ * Inch
2086
+ */
2087
+ inch = "in"
2088
+ }
2089
+
2033
2090
  /**
2034
2091
  * Mime type details for importing media
2035
2092
  */