babylonjs-gltf2interface 9.26.1 → 9.26.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.
- package/babylon.glTF2Interface.d.ts +19 -12
- package/package.json +1 -1
|
@@ -1508,7 +1508,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1508
1508
|
/**
|
|
1509
1509
|
* Interfaces for the KHR_interactivity extension
|
|
1510
1510
|
*/
|
|
1511
|
-
interface IKHRInteractivity {
|
|
1511
|
+
interface IKHRInteractivity extends IProperty {
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Holding all of the graphs in the glTF
|
|
1514
1514
|
*/
|
|
@@ -1519,7 +1519,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1519
1519
|
graph?: number;
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
|
-
interface IKHRInteractivity_Graph {
|
|
1522
|
+
interface IKHRInteractivity_Graph extends IChildRootProperty {
|
|
1523
1523
|
types?: IKHRInteractivity_Type /* | IKHRInteractivity_CustomType */[]; // should technically behave as a set - no two signatures should match
|
|
1524
1524
|
variables?: IKHRInteractivity_Variable[];
|
|
1525
1525
|
events?: IKHRInteractivity_Event[];
|
|
@@ -1549,7 +1549,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1549
1549
|
|
|
1550
1550
|
type ConfigurationValueType = (boolean | number | string)[];
|
|
1551
1551
|
|
|
1552
|
-
interface IKHRInteractivity_Event {
|
|
1552
|
+
interface IKHRInteractivity_Event extends IChildRootProperty {
|
|
1553
1553
|
/**
|
|
1554
1554
|
* The event id is an application-specific event identifier recognized by the execution environment. If the id property is undefined, the event is considered internal to the graph.
|
|
1555
1555
|
*/
|
|
@@ -1564,7 +1564,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1564
1564
|
| undefined;
|
|
1565
1565
|
}
|
|
1566
1566
|
|
|
1567
|
-
interface IKHRInteractivity_Type {
|
|
1567
|
+
interface IKHRInteractivity_Type extends IProperty {
|
|
1568
1568
|
/**
|
|
1569
1569
|
* A signature of this type or custom if defined by an external extension
|
|
1570
1570
|
*/
|
|
@@ -1575,7 +1575,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1575
1575
|
// signature: string;
|
|
1576
1576
|
// }
|
|
1577
1577
|
|
|
1578
|
-
interface IKHRInteractivity_Variable {
|
|
1578
|
+
interface IKHRInteractivity_Variable extends IChildRootProperty {
|
|
1579
1579
|
/**
|
|
1580
1580
|
* Array size depends on the type. primitives have array size 1, rest depending on the object type (2,3,4,16)
|
|
1581
1581
|
* if value is not provided it should be initialized to the default value of the type according to the specs - NaN for floats, 0 for integers, false for booleans.
|
|
@@ -1592,7 +1592,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1592
1592
|
* Declarations are considered equal when their op, extension and input values are equal.
|
|
1593
1593
|
* If stating an external extension it is possible the declaration is not supported by the engine. In this case the operation will be a no-op
|
|
1594
1594
|
*/
|
|
1595
|
-
interface IKHRInteractivity_Declaration {
|
|
1595
|
+
interface IKHRInteractivity_Declaration extends IProperty {
|
|
1596
1596
|
/**
|
|
1597
1597
|
* the operation identifier.
|
|
1598
1598
|
* Either defined by the interactivity extension or a custom operation by an external extension
|
|
@@ -1606,15 +1606,22 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1606
1606
|
* If custom operation, this is the output values signatures of the event
|
|
1607
1607
|
* if undefined the custom operation has no outputs
|
|
1608
1608
|
*/
|
|
1609
|
-
outputValueSockets?: { [id: string]:
|
|
1609
|
+
outputValueSockets?: { [id: string]: IKHRInteractivity_DeclarationValueSocket };
|
|
1610
1610
|
/**
|
|
1611
1611
|
* if custom operation, this is the input values signatures of the event
|
|
1612
1612
|
* If undefined the custom operation has no inputs
|
|
1613
1613
|
*/
|
|
1614
|
-
inputValueSockets?: { [id: string]:
|
|
1614
|
+
inputValueSockets?: { [id: string]: IKHRInteractivity_DeclarationValueSocket };
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
1617
|
-
interface
|
|
1617
|
+
interface IKHRInteractivity_DeclarationValueSocket extends IProperty {
|
|
1618
|
+
/**
|
|
1619
|
+
* An index in the graph types array.
|
|
1620
|
+
*/
|
|
1621
|
+
type: TypeIndex;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
interface IKHRInteractivity_Node extends IProperty {
|
|
1618
1625
|
/**
|
|
1619
1626
|
* An index in the declarations array
|
|
1620
1627
|
*/
|
|
@@ -1631,7 +1638,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1631
1638
|
configuration?: { [id: string]: IKHRInteractivity_Configuration };
|
|
1632
1639
|
}
|
|
1633
1640
|
|
|
1634
|
-
interface IKHRInteractivity_OutputSocketReference {
|
|
1641
|
+
interface IKHRInteractivity_OutputSocketReference extends IProperty {
|
|
1635
1642
|
/**
|
|
1636
1643
|
* An index in the nodes array
|
|
1637
1644
|
*/
|
|
@@ -1646,7 +1653,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1646
1653
|
type?: TypeIndex;
|
|
1647
1654
|
}
|
|
1648
1655
|
|
|
1649
|
-
interface IKHRInteractivity_OutputFlow {
|
|
1656
|
+
interface IKHRInteractivity_OutputFlow extends IProperty {
|
|
1650
1657
|
/**
|
|
1651
1658
|
* An index in the nodes array
|
|
1652
1659
|
*/
|
|
@@ -1658,7 +1665,7 @@ declare namespace BABYLON.GLTF2 {
|
|
|
1658
1665
|
socket?: string;
|
|
1659
1666
|
}
|
|
1660
1667
|
|
|
1661
|
-
interface IKHRInteractivity_Configuration {
|
|
1668
|
+
interface IKHRInteractivity_Configuration extends IProperty {
|
|
1662
1669
|
/**
|
|
1663
1670
|
* Array size depends on the type. primitives have array size 1, rest depending on the object type (2,3,4,16)
|
|
1664
1671
|
*/
|
package/package.json
CHANGED