@cesdk/cesdk-js 1.6.0-alpha.1 → 1.6.2

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="offscreencanvas" />
2
2
 
3
3
  /**
4
- * Generic asset informations
4
+ * Generic asset information
5
5
  * @public
6
6
  */
7
7
  export declare interface Asset {
@@ -280,7 +280,7 @@ export declare interface AssetsQueryResult {
280
280
  /** The current, requested page */
281
281
  currentPage: number;
282
282
  /** The next page to query if it exists */
283
- nextPage: number | undefined;
283
+ nextPage?: number;
284
284
  /** How many assets are there in total for the current query regardless of the page */
285
285
  total: number;
286
286
  }
@@ -295,11 +295,34 @@ declare interface AssetsQueryResult_2 {
295
295
  /** The current, requested page */
296
296
  currentPage: number;
297
297
  /** The next page to query if it exists */
298
- nextPage: number | undefined;
298
+ nextPage?: number;
299
299
  /** How many assets are there in total for the current query regardless of the page */
300
300
  total: number;
301
301
  }
302
302
 
303
+ /**
304
+ * @public
305
+ */
306
+ export declare type BlendMode =
307
+ | 'PassThrough'
308
+ | 'Normal'
309
+ | 'Darken'
310
+ | 'Multiply'
311
+ | 'ColorBurn'
312
+ | 'Lighten'
313
+ | 'Screen'
314
+ | 'ColorDodge'
315
+ | 'Overlay'
316
+ | 'SoftLight'
317
+ | 'HardLight'
318
+ | 'Difference'
319
+ | 'Exclusion'
320
+ | 'Hue'
321
+ | 'Saturation'
322
+ | 'Color'
323
+ | 'Luminosity';
324
+
325
+ /** @public */
303
326
  declare type Block = number;
304
327
 
305
328
  /**
@@ -337,12 +360,12 @@ export declare class BlockAPI {
337
360
  * @returns The created blocks handle.
338
361
  */
339
362
  create(type: DesignBlockType): DesignBlockId;
340
- /**
341
363
 
342
- * Get the type of the given block, fails if the block is invalid.
343
- * @param id - The block to query.
344
- * @returns The blocks type.
345
- */
364
+ /**
365
+ * Get the type of the given block, fails if the block is invalid.
366
+ * @param id - The block to query.
367
+ * @returns The blocks type.
368
+ */
346
369
  getType(id: DesignBlockId): DesignBlockType;
347
370
  /**
348
371
  * Update the selection state of a block.
@@ -526,13 +549,13 @@ export declare class BlockAPI {
526
549
  /**
527
550
  * Update a block's horizontal flip.
528
551
  * @param id - The block to update.
529
- * @param horizontal - Whether the block should be flipped along its x-axis.
552
+ * @param flip - If the flip should be enabled.
530
553
  */
531
554
  setFlipHorizontal(id: DesignBlockId, flip: boolean): void;
532
555
  /**
533
556
  * Update a block's vertical flip.
534
557
  * @param id - The block to update.
535
- * @param vertical - Whether the block should be flipped along its y-axis.
558
+ * @param flip - If the flip should be enabled.
536
559
  */
537
560
  setFlipVertical(id: DesignBlockId, flip: boolean): void;
538
561
  /**
@@ -687,6 +710,26 @@ export declare class BlockAPI {
687
710
  * @returns float The height of the axis-aligned bounding box.
688
711
  */
689
712
  getGlobalBoundingBoxHeight(id: DesignBlockId): number;
713
+ /**
714
+ * Scales the block and all of its children proportionally around the specified
715
+ * relative anchor point.
716
+ *
717
+ * This updates the position, size and style properties (e.g. stroke width) of
718
+ * the block and its children.
719
+ *
720
+ * @param id - The block that should be scaled.
721
+ * @param scale - The scale factor to be applied to the current properties of the block.
722
+ * @param anchorX - The relative position along the width of the block around which the
723
+ * scaling should occur. (0 = left edge, 0.5 = center, 1 = right edge)
724
+ * @param anchorY - The relative position along the height of the block around which the
725
+ * scaling should occur. (0 = top edge, 0.5 = center, 1 = bottom edge)
726
+ */
727
+ scale(
728
+ id: DesignBlockId,
729
+ scale: number,
730
+ anchorX?: number,
731
+ anchorY?: number
732
+ ): void;
690
733
  /**
691
734
  * Get all available properties of a block.
692
735
  * @param id - The block whose properties should be queried.
@@ -874,7 +917,7 @@ export declare class BlockAPI {
874
917
  /**
875
918
  * Query if the given block has an opacity.
876
919
  * @param id - The block to query.
877
- * @returns true, if the block has an opcity.
920
+ * @returns true, if the block has an opacity.
878
921
  */
879
922
  hasOpacity(id: DesignBlockId): boolean;
880
923
  /**
@@ -889,6 +932,19 @@ export declare class BlockAPI {
889
932
  * @returns The opacity.
890
933
  */
891
934
  getOpacity(id: DesignBlockId): number;
935
+ /**
936
+ * Set the blend mode of the given design block.
937
+ * @param id - The block whose blend mode should be set.
938
+ * @param blendMode - The blend mode to be set.
939
+ * @returns
940
+ */
941
+ setBlendMode(id: DesignBlockId, blendMode: BlendMode): void;
942
+ /**
943
+ * Get the blend mode of the given design block.
944
+ * @param id - The block whose blend mode should be queried.
945
+ * @returns The blend mode.
946
+ */
947
+ getBlendMode(id: DesignBlockId): BlendMode;
892
948
  /**
893
949
  * Query if the given block has fill color properties.
894
950
  * @param id - The block to query.
@@ -1240,8 +1296,8 @@ export declare class BlockAPI {
1240
1296
  y: number
1241
1297
  ): boolean;
1242
1298
  /**
1243
- * Get the horizontal comopnent of a gradient's control point.
1244
- * @param id - The block whose gradient control point should be qeried.
1299
+ * Get the horizontal component of a gradient's control point.
1300
+ * @param id - The block whose gradient control point should be queried.
1245
1301
  * @param gradientControlPointType - The type of control point.
1246
1302
  * @returns The horizontal component of the control point, an error otherwise.
1247
1303
  */
@@ -1250,8 +1306,8 @@ export declare class BlockAPI {
1250
1306
  gradientControlPointType: GradientControlPointType
1251
1307
  ): number;
1252
1308
  /**
1253
- * Get the vertical comopnent of a gradient's control point.
1254
- * @param id - The block whose gradient control point should be qeried.
1309
+ * Get the vertical component of a gradient's control point.
1310
+ * @param id - The block whose gradient control point should be queried.
1255
1311
  * @param gradientControlPointType - The type of control point.
1256
1312
  * @returns The vertical component of the control point, an error otherwise.
1257
1313
  */
@@ -1284,6 +1340,7 @@ export declare type BlockEvent = {
1284
1340
  type: 'Created' | 'Updated' | 'Destroyed';
1285
1341
  };
1286
1342
 
1343
+ /** @public */
1287
1344
  declare interface BlockEvent_2 {
1288
1345
  block: Block;
1289
1346
  type: 'Created' | 'Updated' | 'Destroyed';
@@ -1294,8 +1351,11 @@ declare type Callbacks = {
1294
1351
  log?: Logger;
1295
1352
  };
1296
1353
 
1297
- /** All components between 0 and 1 */
1298
- declare interface CMYKColor {
1354
+ /**
1355
+ * All components between 0 and 1
1356
+ * @public
1357
+ */
1358
+ export declare interface CMYKColor {
1299
1359
  c: number;
1300
1360
  m: number;
1301
1361
  y: number;
@@ -1319,12 +1379,6 @@ declare type ColorPaletteDefinition = Preset & {
1319
1379
  entries: Color_2[];
1320
1380
  };
1321
1381
 
1322
- declare type Command = {
1323
- identifier: string;
1324
- argumentTypes: string[];
1325
- returnType: string;
1326
- };
1327
-
1328
1382
  declare namespace ConfigTypes {
1329
1383
  export {
1330
1384
  HexColorString,
@@ -1392,10 +1446,6 @@ declare type Core = {
1392
1446
  baseURL: string;
1393
1447
  };
1394
1448
 
1395
- declare interface CreateSceneOptions {
1396
- layout: SceneLayout;
1397
- }
1398
-
1399
1449
  /**
1400
1450
  * A headless implementation that just initializes & exposes the Document API
1401
1451
  *
@@ -1406,6 +1456,7 @@ declare class CreativeEngine {
1406
1456
  block: BlockAPI;
1407
1457
  scene: SceneAPI;
1408
1458
  variable: VariableAPI;
1459
+ editor: EditorAPI;
1409
1460
 
1410
1461
  event: EventAPI;
1411
1462
 
@@ -1438,6 +1489,7 @@ export declare type DesignBlockId = number;
1438
1489
  */
1439
1490
  export declare enum DesignBlockType {
1440
1491
  Scene = '//ly.img.ubq/scene',
1492
+ Stack = '//ly.img.ubq/stack',
1441
1493
  Camera = '//ly.img.ubq/camera',
1442
1494
  Page = '//ly.img.ubq/page',
1443
1495
  Image = '//ly.img.ubq/image',
@@ -1453,10 +1505,179 @@ export declare enum DesignBlockType {
1453
1505
  Group = '//ly.img.ubq/group'
1454
1506
  }
1455
1507
 
1456
- declare enum DesignUnit {
1457
- Pixel = 'px',
1458
- Millimeter = 'mm',
1459
- Inch = 'in'
1508
+ /** @public */
1509
+ export declare type DesignUnit = 'mm' | 'px' | 'in';
1510
+
1511
+ /**
1512
+ * @public
1513
+ */
1514
+ export declare class EditorAPI {
1515
+ #private;
1516
+
1517
+ /**
1518
+ * Subscribe to changes to the editor state.
1519
+ * @param callback - This function is called at the end of the engine update, if the editor state has changed.
1520
+ * @returns A method to unsubscribe.
1521
+ */
1522
+ onStateChanged(callback: () => void): () => void;
1523
+ /**
1524
+ * Set the edit mode of the editor.
1525
+ * An edit mode defines what type of content can currently be edited by the user.
1526
+ * Hint: the initial edit mode is "Transform".
1527
+ * @param mode - "Transform", "Crop", "Text", or a custom value.
1528
+ */
1529
+ setEditMode(mode: 'Transform' | 'Crop' | 'Text' | string): void;
1530
+ /**
1531
+ * Get the current edit mode of the editor.
1532
+ * An edit mode defines what type of content can currently be edited by the user.
1533
+ * @returns "Transform", "Crop", "Text", or a custom value.
1534
+ */
1535
+ getEditMode(): 'Transform' | 'Crop' | 'Text' | string;
1536
+ /**
1537
+ * Get the type of cursor that should be displayed by the application.
1538
+ * @returns The cursor type.
1539
+ */
1540
+ getCursorType():
1541
+ | 'Arrow'
1542
+ | 'Move'
1543
+ | 'MoveNotPermitted'
1544
+ | 'Resize'
1545
+ | 'Rotate'
1546
+ | 'Text';
1547
+ /**
1548
+ * Get the rotation with which to render the mouse cursor.
1549
+ * @returns The angle in radians.
1550
+ */
1551
+ getCursorRotation(): number;
1552
+ /**
1553
+ * Get the current text cursor's x position in screen space.
1554
+ * @returns The text cursor's x position in screen space.
1555
+ */
1556
+ getTextCursorPositionInScreenSpaceX(): number;
1557
+ /**
1558
+ * Get the current text cursor's y position in screen space.
1559
+ * @returns The text cursor's y position in screen space.
1560
+ */
1561
+ getTextCursorPositionInScreenSpaceY(): number;
1562
+ /**
1563
+ * Sets the zoom level of the scene.
1564
+ * @param zoomLevel - The new zoom level.
1565
+ */
1566
+ setZoomLevel(zoomLevel?: number): void;
1567
+ /**
1568
+ * Query a camera zoom level.
1569
+ * @returns The zoom level of the block's (main) camera.
1570
+ */
1571
+ getZoomLevel(): number;
1572
+ /**
1573
+ * Adds a new history state to the stack, if undoable changes were made.
1574
+ */
1575
+ addUndoStep(): void;
1576
+ /**
1577
+ * Undo one step in the history if an undo step is available.
1578
+ */
1579
+ undo(): void;
1580
+ /**
1581
+ * Redo one step in the history if a redo step is available.
1582
+ */
1583
+ redo(): void;
1584
+ /**
1585
+ * If an undo step is available.
1586
+ *
1587
+ * @returns True if an undo step is available.
1588
+ */
1589
+ canUndo(): boolean;
1590
+ /**
1591
+ * If a redo step is available.
1592
+ *
1593
+ * @returns True if a redo step is available.
1594
+ */
1595
+ canRedo(): boolean;
1596
+ /**
1597
+ * Set a boolean setting.
1598
+ * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
1599
+ * @param value - The value to set.
1600
+ * @throws An error, if the keypath is invalid.
1601
+ */
1602
+ setSettingBool(keypath: string, value: boolean): void;
1603
+ /**
1604
+ * Get a boolean setting.
1605
+ * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
1606
+ * @throws An error, if the keypath is invalid.
1607
+ */
1608
+ getSettingBool(keypath: string): boolean;
1609
+ /**
1610
+ * Set an integer setting.
1611
+ * @param keypath - The settings keypath.
1612
+ * @param value - The value to set.
1613
+ * @throws An error, if the keypath is invalid.
1614
+ */
1615
+ setSettingInt(keypath: string, value: number): void;
1616
+ /**
1617
+ * Get an integer setting.
1618
+ * @param keypath - The settings keypath.
1619
+ * @throws An error, if the keypath is invalid.
1620
+ */
1621
+ getSettingInt(keypath: string): number;
1622
+ /**
1623
+ * Set a float setting.
1624
+ * @param keypath - The settings keypath, e.g. `ubq://positionSnappingThreshold`
1625
+ * @param value - The value to set.
1626
+ * @throws An error, if the keypath is invalid.
1627
+ */
1628
+ setSettingFloat(keypath: string, value: number): void;
1629
+ /**
1630
+ * Get a float setting.
1631
+ * @param keypath - The settings keypath, e.g. `ubq://positionSnappingThreshold`
1632
+ * @throws An error, if the keypath is invalid.
1633
+ */
1634
+ getSettingFloat(keypath: string): number;
1635
+ /**
1636
+ * Set a string setting.
1637
+ * @param keypath - The settings keypath, e.g. `ubq://license`
1638
+ * @param value - The value to set.
1639
+ * @throws An error, if the keypath is invalid.
1640
+ */
1641
+ setSettingString(keypath: string, value: string): void;
1642
+ /**
1643
+ * Get a string setting.
1644
+ * @param keypath - The settings keypath, e.g. `ubq://license`
1645
+ * @throws An error, if the keypath is invalid.
1646
+ */
1647
+ getSettingString(keypath: string): string;
1648
+ /**
1649
+ * Set a color setting.
1650
+ * @param keypath - The settings keypath, e.g. `ubq://highlightColor`.
1651
+ * @param r - The red color component in the range of 0 to 1.
1652
+ * @param g - The green color component in the range of 0 to 1.
1653
+ * @param b - The blue color component in the range of 0 to 1.
1654
+ * @param a - The alpha color component in the range of 0 to 1.
1655
+ */
1656
+ setSettingColorRGBA(
1657
+ keypath: string,
1658
+ r: number,
1659
+ g: number,
1660
+ b: number,
1661
+ a: number
1662
+ ): void;
1663
+ /**
1664
+ * Get a color setting.
1665
+ * @param keypath - The settings keypath, e.g. `ubq://highlightColor`.
1666
+ * @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
1667
+ */
1668
+ getSettingColorRGBA(keypath: string): RGBA;
1669
+ /**
1670
+ * Set an enum setting.
1671
+ * @param keypath - The settings keypath, e.g. `ubq://role`.
1672
+ * @param value - The enum value as string.
1673
+ */
1674
+ setSettingEnum(keypath: string, value: string): void;
1675
+ /**
1676
+ * Get an enum setting.
1677
+ * @param keypath - The settings keypath, e.g. `ubq://role`.
1678
+ * @returns The value as string.
1679
+ */
1680
+ getSettingEnum(keypath: string): string;
1460
1681
  }
1461
1682
 
1462
1683
  /**
@@ -1477,8 +1698,7 @@ export declare class EventAPI {
1477
1698
  ): () => void;
1478
1699
  }
1479
1700
 
1480
- declare type EventSubscription = number;
1481
-
1701
+ /** @public */
1482
1702
  declare interface ExportOptions {
1483
1703
  jpegQuality: number;
1484
1704
  pngCompressionLevel: number;
@@ -1487,6 +1707,7 @@ declare interface ExportOptions {
1487
1707
  targetHeight: number;
1488
1708
  }
1489
1709
 
1710
+ /** @public */
1490
1711
  declare interface ExportVideoOptions {
1491
1712
  h264Profile: number;
1492
1713
  h264Level: number;
@@ -1507,14 +1728,17 @@ declare type Extensions = {
1507
1728
  */
1508
1729
  export declare type FillType = 'Solid' | 'Gradient';
1509
1730
 
1731
+ /** @public */
1510
1732
  declare interface Flip {
1511
1733
  horizontal: boolean;
1512
1734
  vertical: boolean;
1513
1735
  }
1514
1736
 
1515
- declare type FontStyle = 'normal' | 'italic';
1737
+ /** @public */
1738
+ export declare type FontStyle = 'normal' | 'italic';
1516
1739
 
1517
- declare type FontWeight =
1740
+ /** @public */
1741
+ export declare type FontWeight =
1518
1742
  | 'thin'
1519
1743
  | 'extraLight'
1520
1744
  | 'Light'
@@ -1553,6 +1777,7 @@ export declare type GradientType = 'Linear' | 'Radial' | 'Conical';
1553
1777
  *
1554
1778
  * Tags in comparison have are more loosely hold meaning used for extended
1555
1779
  * searching/filtering.
1780
+ * @public
1556
1781
  */
1557
1782
  declare type Groups = string[];
1558
1783
 
@@ -1574,12 +1799,17 @@ declare type ImageDefinition = Preset & {
1574
1799
  };
1575
1800
  };
1576
1801
 
1577
- /** e.g. `en`, `de`, etc. */
1802
+ /**
1803
+ * e.g. `en`, `de`, etc.
1804
+ * @public
1805
+ */
1578
1806
  declare type Locale = string;
1579
1807
 
1580
- declare type Logger = (message: string, level: LogLevel) => void;
1808
+ /** @public */
1809
+ export declare type Logger = (message: string, level: LogLevel) => void;
1581
1810
 
1582
- declare enum LogLevel {
1811
+ /** @public */
1812
+ export declare enum LogLevel {
1583
1813
  Info = 'Info',
1584
1814
  Warning = 'Warning',
1585
1815
  Error = 'Error'
@@ -1597,17 +1827,6 @@ declare enum MimeType_2 {
1597
1827
  }
1598
1828
  export { MimeType_2 as MimeType };
1599
1829
 
1600
- declare interface NotificationEvent {
1601
- type: NotificationType;
1602
- i18n: string;
1603
- }
1604
-
1605
- declare enum NotificationType {
1606
- Information = 0,
1607
- Warning = 1,
1608
- Error = 2
1609
- }
1610
-
1611
1830
  /** @public */
1612
1831
  declare type Page = {
1613
1832
  title: {
@@ -1712,22 +1931,29 @@ declare interface QueryData {
1712
1931
  */
1713
1932
  export declare type RGBA = [r: number, g: number, b: number, a: number];
1714
1933
 
1715
- /** All components between 0 and 1 */
1716
- declare interface RGBAColor {
1934
+ /**
1935
+ * All components between 0 and 1
1936
+ * @public
1937
+ */
1938
+ export declare interface RGBAColor {
1717
1939
  r: number;
1718
1940
  g: number;
1719
1941
  b: number;
1720
1942
  a: number;
1721
1943
  }
1722
1944
 
1723
- /** All components between 0 and 1 */
1724
- declare interface RGBColor {
1945
+ /**
1946
+ * All components between 0 and 1
1947
+ * @public
1948
+ */
1949
+ export declare interface RGBColor {
1725
1950
  r: number;
1726
1951
  g: number;
1727
1952
  b: number;
1728
1953
  }
1729
1954
 
1730
- declare type RoleString = 'Creator' | 'Adopter' | 'Viewer' | 'Presenter';
1955
+ /** @public */
1956
+ export declare type RoleString = 'Creator' | 'Adopter' | 'Viewer' | 'Presenter';
1731
1957
 
1732
1958
  /**
1733
1959
  * Export Settings
@@ -1810,12 +2036,40 @@ export declare class SceneAPI {
1810
2036
  * @returns The scene or null, if none was created yet.
1811
2037
  */
1812
2038
  get(): DesignBlockId | null;
2039
+ /**
2040
+ * Applies the contents of the given template scene to the currently loaded scene.
2041
+ * This loads the template scene while keeping the design unit and page dimensions
2042
+ * of the current scene. Page contents remain centered when the pages are resized
2043
+ * to fit the new dimensions.
2044
+ * @param content - The template scene file contents, a base64 string.
2045
+ * @returns A Promise that resolves once the template was applied or rejects if there was an error.
2046
+ */
2047
+ applyTemplateFromString(content: string): Promise<void>;
2048
+ /**
2049
+ * Applies the contents of the given template scene to the currently loaded scene.
2050
+ * This loads the template scene while keeping the design unit and page dimensions
2051
+ * of the current scene. Page contents remain centered when the pages are resized
2052
+ * to fit the new dimensions.
2053
+ * @param url - The url to the template scene file.
2054
+ * @returns A Promise that resolves once the template was applied or rejects if there was an error.
2055
+ */
2056
+ applyTemplateFromURL(url: string): Promise<void>;
2057
+ /**
2058
+ * Converts all values of the current scene into the given design unit.
2059
+ * @param designUnit - The new design unit of the scene
2060
+ */
2061
+ unstable_setDesignUnit(designUnit: DesignUnit): void;
2062
+ /**
2063
+ * Returns the design unit of the current scene.
2064
+ * @returns The current design unit.
2065
+ */
2066
+ unstable_getDesignUnit(): DesignUnit;
1813
2067
  }
1814
2068
 
1815
- declare enum SceneLayout {
1816
- Free = 0,
1817
- VerticalStack = 1,
1818
- HorizontalStack = 2
2069
+ /** @public */
2070
+ export declare interface Size2 {
2071
+ width: number;
2072
+ height: number;
1819
2073
  }
1820
2074
 
1821
2075
  /**
@@ -1849,40 +2103,26 @@ export declare type StrokeStyle =
1849
2103
  | 'LongDashedRound'
1850
2104
  | 'Solid';
1851
2105
 
2106
+ /** @public */
2107
+ declare type Subscription = number;
2108
+
1852
2109
  /** @public */
1853
2110
  declare type TemplateDefinition = Preset & {
2111
+ label: string;
1854
2112
  scene: string | URL | (() => Promise<string>);
1855
2113
  thumbnailURL?: string | URL;
1856
2114
  };
1857
2115
 
1858
- declare interface TypeDescription {
1859
- name: string;
1860
- members: Array<TypeMemberDescription>;
1861
- }
1862
-
1863
2116
  /** @public */
1864
2117
  declare type TypefaceDefinition = Preset & {
1865
2118
  family: string;
1866
- fonts: [
1867
- {
1868
- fontURL: string;
1869
- weight: FontWeight;
1870
- style: FontStyle;
1871
- }
1872
- ];
2119
+ fonts: {
2120
+ fontURL: string;
2121
+ weight: FontWeight;
2122
+ style: FontStyle;
2123
+ }[];
1873
2124
  };
1874
2125
 
1875
- declare interface TypeMemberDescription {
1876
- name: string;
1877
- type: string;
1878
- props: Array<TypeProp>;
1879
- }
1880
-
1881
- declare interface TypeProp {
1882
- key: string;
1883
- value: number | string;
1884
- }
1885
-
1886
2126
  /**
1887
2127
  * @public
1888
2128
  */
@@ -1923,21 +2163,25 @@ declare type Variables = {
1923
2163
  [id: string]: VariableDefinition;
1924
2164
  };
1925
2165
 
1926
- declare interface Vec2 {
2166
+ /** @public */
2167
+ export declare interface Vec2 {
1927
2168
  x: number;
1928
2169
  y: number;
1929
2170
  }
1930
2171
 
1931
- declare interface Vec3 {
2172
+ /** @public */
2173
+ export declare interface Vec3 {
1932
2174
  x: number;
1933
2175
  y: number;
1934
2176
  z: number;
1935
2177
  }
1936
2178
 
1937
- declare interface Vector<T> {
1938
- size: () => number;
1939
- get: (index: number) => T;
1940
- delete: () => void;
2179
+ /** @public */
2180
+ export declare interface Vec4 {
2181
+ x: number;
2182
+ y: number;
2183
+ z: number;
2184
+ w: number;
1941
2185
  }
1942
2186
 
1943
2187
  export {};