@intelligentgraphics/3d.ig.gfx.standard 1.10.4 → 1.11.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.
@@ -1,13 +1,14 @@
1
1
  /*
2
- * Version: 1.10.4.100
3
- * Commit: dd29657
4
- * Date: 2024-11-07T12:19:50.842Z
2
+ * Version: 1.11.0.100
3
+ * Commit: 77f9ef0
4
+ * Date: 2025-08-04T17:01:15.269Z
5
5
  *
6
6
  * @preserve
7
7
  */
8
- /// <reference types="@intelligentgraphics/3d.ig.math" />
9
- /// <reference types="@intelligentgraphics/3d.ig.gfx.core" />
10
- declare module IGX.Std {
8
+ /// <reference types="@intelligentgraphics/3d.ig.gfx.core" preserve="true" />
9
+ /// <reference types="@intelligentgraphics/3d.ig.math" preserve="true" />
10
+ declare const globalObject: typeof globalThis;
11
+ declare namespace IGX.Std {
11
12
  const Minimum = "Minimum";
12
13
  const Maximum = "Maximum";
13
14
  const Snap = "Snap";
@@ -119,8 +120,17 @@ declare module IGX.Std {
119
120
  * @param relPath relative path inside component
120
121
  */
121
122
  function getAbsPath(componentId: string, relPath: string): string;
123
+ /**
124
+ * Finds a global by the provided path
125
+ *
126
+ * @export
127
+ * @template T
128
+ * @param {string} path Separated by dot
129
+ * @returns {(T | undefined)}
130
+ */
131
+ function findGlobalByPath<T>(path: string): T | undefined;
122
132
  }
123
- declare module IGX.Std {
133
+ declare namespace IGX.Std {
124
134
  class KinematicChain {
125
135
  /** how are these joints inserted? (unit vector for all joints) */
126
136
  GeometryBase: string;
@@ -204,7 +214,7 @@ declare module IGX.Std {
204
214
  *
205
215
  * Copyright (C) 2013 - 2024 intelligentgraphics AG. All Rights Reserved.
206
216
  */
207
- declare module IGX.Std {
217
+ declare namespace IGX.Std {
208
218
  /**
209
219
  * Describes an animation state. An animation state may provide values for
210
220
  * Rotation and/or Position and/or Scaling and/or Deformation.
@@ -321,7 +331,7 @@ declare module IGX.Std {
321
331
  }[];
322
332
  }
323
333
  }
324
- declare module IGX.Std {
334
+ declare namespace IGX.Std {
325
335
  type Array3 = [number, number, number];
326
336
  export type ShadowScene = Record<string, {
327
337
  position: Float3;
@@ -360,8 +370,8 @@ declare module IGX.Std {
360
370
  [t: string]: any;
361
371
  }, backwards?: boolean): ShadowScene;
362
372
  private cloneShadow;
363
- setShadow(id: string, joints?: string[]): any;
364
- getShadow(): any;
373
+ setShadow(id: string, joints?: string[]): ShadowScene;
374
+ getShadow(): ShadowScene;
365
375
  setUseShadow(value: boolean): void;
366
376
  getUseShadow(): boolean;
367
377
  /**
@@ -598,11 +608,10 @@ declare namespace IGX.Std {
598
608
  static GetLocalRotation(root: string, node: string, _api?: IGX._API): IG.Math.Euler;
599
609
  /**
600
610
  * returns the relative transformation of local object
601
- * Returning Object[] consists of [0: Position as Vector3, 1: Rotation as Quaternion, 2: Scale as Vector3]
602
611
  * @param root the root node of local object
603
612
  * @param node the node inside this object
604
613
  */
605
- static GetLocalTransform(root: string, node: string, _api?: IGX._API): Object[];
614
+ static GetLocalTransform(root: string, node: string, _api?: IGX._API): [position: IG.Math.Vector3, rotation: IG.Math.Quaternion, scale: IG.Math.Vector3];
606
615
  /**
607
616
  *
608
617
  * @param root the root node of local object
@@ -636,7 +645,7 @@ declare namespace IGX.Std {
636
645
  static rotationMatrix(rotationNormal: Float3, angRad: number): number[][];
637
646
  }
638
647
  }
639
- declare module IGX.Std {
648
+ declare namespace IGX.Std {
640
649
  /**
641
650
  * Parameters for the XRangeRotator class
642
651
  */
@@ -734,7 +743,7 @@ declare module IGX.Std {
734
743
  }
735
744
  export {};
736
745
  }
737
- declare module IGX.Std {
746
+ declare namespace IGX.Std {
738
747
  /**
739
748
  * Parameters for the XRangeTranslator class
740
749
  */
@@ -832,7 +841,7 @@ declare module IGX.Std {
832
841
  }
833
842
  export {};
834
843
  }
835
- declare module IGX.Std {
844
+ declare namespace IGX.Std {
836
845
  /**
837
846
  * Parameters for the XRasterRotator class
838
847
  */
@@ -929,7 +938,7 @@ declare module IGX.Std {
929
938
  }
930
939
  export {};
931
940
  }
932
- declare module IGX.Std {
941
+ declare namespace IGX.Std {
933
942
  /**
934
943
  * Parameters for the XRasterTranslator class
935
944
  */
@@ -1026,7 +1035,7 @@ declare module IGX.Std {
1026
1035
  }
1027
1036
  export {};
1028
1037
  }
1029
- declare module IGX.Std {
1038
+ declare namespace IGX.Std {
1030
1039
  /**
1031
1040
  * Parameters for the XValueRotator class
1032
1041
  */
@@ -1086,7 +1095,7 @@ declare module IGX.Std {
1086
1095
  }
1087
1096
  export {};
1088
1097
  }
1089
- declare module IGX.Std {
1098
+ declare namespace IGX.Std {
1090
1099
  /**
1091
1100
  * Parameters for the XValueTranslator class
1092
1101
  */
@@ -1146,7 +1155,7 @@ declare module IGX.Std {
1146
1155
  }
1147
1156
  export {};
1148
1157
  }
1149
- declare module IGX.Std {
1158
+ declare namespace IGX.Std {
1150
1159
  /**
1151
1160
  * Parameters for the YRangeRotator class
1152
1161
  */
@@ -1244,7 +1253,7 @@ declare module IGX.Std {
1244
1253
  }
1245
1254
  export {};
1246
1255
  }
1247
- declare module IGX.Std {
1256
+ declare namespace IGX.Std {
1248
1257
  /**
1249
1258
  * Parameters for the YRangeTranslator class
1250
1259
  */
@@ -1342,7 +1351,7 @@ declare module IGX.Std {
1342
1351
  }
1343
1352
  export {};
1344
1353
  }
1345
- declare module IGX.Std {
1354
+ declare namespace IGX.Std {
1346
1355
  /**
1347
1356
  * Parameters for the YRasterRotator class
1348
1357
  */
@@ -1425,7 +1434,7 @@ declare module IGX.Std {
1425
1434
  }
1426
1435
  export {};
1427
1436
  }
1428
- declare module IGX.Std {
1437
+ declare namespace IGX.Std {
1429
1438
  /**
1430
1439
  * Parameters for the YRasterTranslator class
1431
1440
  */
@@ -1508,7 +1517,7 @@ declare module IGX.Std {
1508
1517
  }
1509
1518
  export {};
1510
1519
  }
1511
- declare module IGX.Std {
1520
+ declare namespace IGX.Std {
1512
1521
  /**
1513
1522
  * Parameters for the YValueRotator class
1514
1523
  */
@@ -1568,7 +1577,7 @@ declare module IGX.Std {
1568
1577
  }
1569
1578
  export {};
1570
1579
  }
1571
- declare module IGX.Std {
1580
+ declare namespace IGX.Std {
1572
1581
  /**
1573
1582
  * Parameters for the YValueTranslator class
1574
1583
  */
@@ -1628,7 +1637,7 @@ declare module IGX.Std {
1628
1637
  }
1629
1638
  export {};
1630
1639
  }
1631
- declare module IGX.Std {
1640
+ declare namespace IGX.Std {
1632
1641
  /**
1633
1642
  * Parameters for the ZRangeRotator class
1634
1643
  */
@@ -1726,7 +1735,7 @@ declare module IGX.Std {
1726
1735
  }
1727
1736
  export {};
1728
1737
  }
1729
- declare module IGX.Std {
1738
+ declare namespace IGX.Std {
1730
1739
  /**
1731
1740
  * Parameters for the ZRangeTranslator class
1732
1741
  */
@@ -1824,7 +1833,7 @@ declare module IGX.Std {
1824
1833
  }
1825
1834
  export {};
1826
1835
  }
1827
- declare module IGX.Std {
1836
+ declare namespace IGX.Std {
1828
1837
  class ZRasterRotator extends IGX.Core.Interactor {
1829
1838
  absRotation: number;
1830
1839
  nullAxis: Float3;
@@ -1838,7 +1847,7 @@ declare module IGX.Std {
1838
1847
  ApplyMotion(touch: IGX.Core.Touch, isFinal: boolean): void;
1839
1848
  }
1840
1849
  }
1841
- declare module IGX.Std {
1850
+ declare namespace IGX.Std {
1842
1851
  class ZRasterTranslator extends IGX.Core.Interactor {
1843
1852
  osCoords: Float3;
1844
1853
  startPosition: number;
@@ -1852,7 +1861,7 @@ declare module IGX.Std {
1852
1861
  ApplyMotion(touch: IGX.Core.Touch, isFinal: boolean): void;
1853
1862
  }
1854
1863
  }
1855
- declare module IGX.Std {
1864
+ declare namespace IGX.Std {
1856
1865
  /**
1857
1866
  * Parameters for the ZValueRotator class
1858
1867
  */
@@ -1912,7 +1921,7 @@ declare module IGX.Std {
1912
1921
  }
1913
1922
  export {};
1914
1923
  }
1915
- declare module IGX.Std {
1924
+ declare namespace IGX.Std {
1916
1925
  /**
1917
1926
  * Parameters for the ZValueTranslator class
1918
1927
  */
@@ -1972,7 +1981,7 @@ declare module IGX.Std {
1972
1981
  }
1973
1982
  export {};
1974
1983
  }
1975
- declare module IGX.Std {
1984
+ declare namespace IGX.Std {
1976
1985
  interface Params extends Pick<AnimationParameters, "Start" | "End" | "StageStart" | "StageEnd" | "Stage" | "Period"> {
1977
1986
  /**
1978
1987
  * The start value
@@ -2014,7 +2023,7 @@ declare module IGX.Std {
2014
2023
  }
2015
2024
  export {};
2016
2025
  }
2017
- declare module IGX.Std {
2026
+ declare namespace IGX.Std {
2018
2027
  /**
2019
2028
  * An Interactor for JSON animations with inverse kinematics.
2020
2029
  * Needs AnimationInteractor!
@@ -2119,7 +2128,7 @@ declare module IGX.Std {
2119
2128
  private constrain;
2120
2129
  }
2121
2130
  }
2122
- declare module IGX.Std {
2131
+ declare namespace IGX.Std {
2123
2132
  class Cache {
2124
2133
  private rootId;
2125
2134
  private stepSize;
@@ -2147,7 +2156,7 @@ declare module IGX.Std {
2147
2156
  interpolate(position: number): ShadowScene;
2148
2157
  }
2149
2158
  }
2150
- declare module IGX.Std {
2159
+ declare namespace IGX.Std {
2151
2160
  interface OtherParameters {
2152
2161
  /**
2153
2162
  * Parameter for animations and kinematics
@@ -2500,10 +2509,152 @@ declare module IGX.Std {
2500
2509
  */
2501
2510
  Param50?: string;
2502
2511
  }
2512
+ interface LinkedPointsParameters {
2513
+ /**
2514
+ * Defines the object path relative to the node that the interactor is assigned to.
2515
+ *
2516
+ * Use `.` to refer to the node of the interactor.
2517
+ *
2518
+ * @type {string}
2519
+ */
2520
+ LinkedPoint0Path?: string;
2521
+ /**
2522
+ * The key of the attach point associated with this linked point.
2523
+ *
2524
+ * @type {string}
2525
+ */
2526
+ LinkedPoint0Key?: string;
2527
+ /**
2528
+ * Defines the object path relative to the node that the interactor is assigned to.
2529
+ *
2530
+ * Use `.` to refer to the node of the interactor.
2531
+ *
2532
+ * @type {string}
2533
+ */
2534
+ LinkedPoint1Path?: string;
2535
+ /**
2536
+ * The key of the attach point associated with this linked point.
2537
+ *
2538
+ * @type {string}
2539
+ */
2540
+ LinkedPoint1Key?: string;
2541
+ /**
2542
+ * Defines the object path relative to the node that the interactor is assigned to.
2543
+ *
2544
+ * Use `.` to refer to the node of the interactor.
2545
+ *
2546
+ * @type {string}
2547
+ */
2548
+ LinkedPoint2Path?: string;
2549
+ /**
2550
+ * The key of the attach point associated with this linked point.
2551
+ *
2552
+ * @type {string}
2553
+ */
2554
+ LinkedPoint2Key?: string;
2555
+ /**
2556
+ * Defines the object path relative to the node that the interactor is assigned to.
2557
+ *
2558
+ * Use `.` to refer to the node of the interactor.
2559
+ *
2560
+ * @type {string}
2561
+ */
2562
+ LinkedPoint3Path?: string;
2563
+ /**
2564
+ * The key of the attach point associated with this linked point.
2565
+ *
2566
+ * @type {string}
2567
+ */
2568
+ LinkedPoint3Key?: string;
2569
+ /**
2570
+ * Defines the object path relative to the node that the interactor is assigned to.
2571
+ *
2572
+ * Use `.` to refer to the node of the interactor.
2573
+ *
2574
+ * @type {string}
2575
+ */
2576
+ LinkedPoint4Path?: string;
2577
+ /**
2578
+ * The key of the attach point associated with this linked point.
2579
+ *
2580
+ * @type {string}
2581
+ */
2582
+ LinkedPoint4Key?: string;
2583
+ /**
2584
+ * Defines the object path relative to the node that the interactor is assigned to.
2585
+ *
2586
+ * Use `.` to refer to the node of the interactor.
2587
+ *
2588
+ * @type {string}
2589
+ */
2590
+ LinkedPoint5Path?: string;
2591
+ /**
2592
+ * The key of the attach point associated with this linked point.
2593
+ *
2594
+ * @type {string}
2595
+ */
2596
+ LinkedPoint5Key?: string;
2597
+ /**
2598
+ * Defines the object path relative to the node that the interactor is assigned to.
2599
+ *
2600
+ * Use `.` to refer to the node of the interactor.
2601
+ *
2602
+ * @type {string}
2603
+ */
2604
+ LinkedPoint6Path?: string;
2605
+ /**
2606
+ * The key of the attach point associated with this linked point.
2607
+ *
2608
+ * @type {string}
2609
+ */
2610
+ LinkedPoint6Key?: string;
2611
+ /**
2612
+ * Defines the object path relative to the node that the interactor is assigned to.
2613
+ *
2614
+ * Use `.` to refer to the node of the interactor.
2615
+ *
2616
+ * @type {string}
2617
+ */
2618
+ LinkedPoint7Path?: string;
2619
+ /**
2620
+ * The key of the attach point associated with this linked point.
2621
+ *
2622
+ * @type {string}
2623
+ */
2624
+ LinkedPoint7Key?: string;
2625
+ /**
2626
+ * Defines the object path relative to the node that the interactor is assigned to.
2627
+ *
2628
+ * Use `.` to refer to the node of the interactor.
2629
+ *
2630
+ * @type {string}
2631
+ */
2632
+ LinkedPoint8Path?: string;
2633
+ /**
2634
+ * The key of the attach point associated with this linked point.
2635
+ *
2636
+ * @type {string}
2637
+ */
2638
+ LinkedPoint8Key?: string;
2639
+ /**
2640
+ * Defines the object path relative to the node that the interactor is assigned to.
2641
+ *
2642
+ * Use `.` to refer to the node of the interactor.
2643
+ *
2644
+ * @type {string}
2645
+ */
2646
+ LinkedPoint9Path?: string;
2647
+ /**
2648
+ * The key of the attach point associated with this linked point.
2649
+ *
2650
+ * @type {string}
2651
+ */
2652
+ LinkedPoint9Key?: string;
2653
+ }
2503
2654
  /**
2504
2655
  * Parameters for the AnimationInteractor class
2505
2656
  */
2506
- interface AnimationInteractorParams extends Pick<AnimationParameters, "Start" | "End" | "Stage" | "Period" | "BackwardPeriod" | "IntermediateCalculation" | "DebugLevel" | "Record">, OtherParameters {
2657
+ interface AnimationInteractorParams extends Pick<AnimationParameters, "Start" | "End" | "Stage" | "Period" | "BackwardPeriod" | "IntermediateCalculation" | "DebugLevel" | "Record">, OtherParameters, LinkedPointsParameters {
2507
2658
  /**
2508
2659
  * Fully scoped animation id
2509
2660
  *
@@ -2527,6 +2678,7 @@ declare module IGX.Std {
2527
2678
  }
2528
2679
  /** An Interactor for JSON animations */
2529
2680
  export class AnimationInteractor extends IGX.Core.Interactor {
2681
+ private static extractLinkedPointsFromParameters;
2530
2682
  static PARAM_COUNT: number;
2531
2683
  params: string[];
2532
2684
  animation: Animation;
@@ -2566,13 +2718,14 @@ declare module IGX.Std {
2566
2718
  private readQuat;
2567
2719
  private detectQuaternion;
2568
2720
  private slerpInPlaceA;
2721
+ private SetMultiViaQuat;
2569
2722
  private calculate___SetStagePositionInternal;
2570
2723
  GetHints(): number[];
2571
2724
  }
2572
2725
  export const Test1: Animation;
2573
2726
  export {};
2574
2727
  }
2575
- declare module IGX.Std {
2728
+ declare namespace IGX.Std {
2576
2729
  /**
2577
2730
  * Parameters for the DeformationInteractor class
2578
2731
  */
@@ -2628,7 +2781,7 @@ declare module IGX.Std {
2628
2781
  }
2629
2782
  export {};
2630
2783
  }
2631
- declare module IGX.Std {
2784
+ declare namespace IGX.Std {
2632
2785
  /**
2633
2786
  * Parameters for the OffsetRotator class
2634
2787
  */
@@ -2722,7 +2875,7 @@ declare module IGX.Std {
2722
2875
  }
2723
2876
  export {};
2724
2877
  }
2725
- declare module IGX.Std {
2878
+ declare namespace IGX.Std {
2726
2879
  /**
2727
2880
  * Parameters for the VisibilityInteractor class
2728
2881
  */
@@ -2756,7 +2909,7 @@ declare module IGX.Std {
2756
2909
  }
2757
2910
  export {};
2758
2911
  }
2759
- declare module IGX.Std {
2912
+ declare namespace IGX.Std {
2760
2913
  interface Params {
2761
2914
  }
2762
2915
  /**