@babylonjs/core 6.28.0 → 6.29.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.
Files changed (123) hide show
  1. package/Animations/animatable.js +1 -1
  2. package/Animations/animatable.js.map +1 -1
  3. package/Animations/animation.js +1 -1
  4. package/Animations/animation.js.map +1 -1
  5. package/Animations/animationKey.d.ts +5 -0
  6. package/Animations/animationKey.js.map +1 -1
  7. package/Behaviors/Meshes/fadeInOutBehavior.js +2 -1
  8. package/Behaviors/Meshes/fadeInOutBehavior.js.map +1 -1
  9. package/Cameras/arcRotateCamera.js +37 -13
  10. package/Cameras/arcRotateCamera.js.map +1 -1
  11. package/Cameras/camera.d.ts +21 -0
  12. package/Cameras/camera.js +35 -0
  13. package/Cameras/camera.js.map +1 -1
  14. package/Cameras/targetCamera.js +51 -30
  15. package/Cameras/targetCamera.js.map +1 -1
  16. package/Debug/debugLayer.d.ts +4 -0
  17. package/Debug/debugLayer.js +12 -1
  18. package/Debug/debugLayer.js.map +1 -1
  19. package/Engines/constants.d.ts +2 -0
  20. package/Engines/constants.js +2 -0
  21. package/Engines/constants.js.map +1 -1
  22. package/Engines/thinEngine.js +2 -2
  23. package/Engines/thinEngine.js.map +1 -1
  24. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js +2 -2
  25. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js.map +1 -1
  26. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js +1 -1
  27. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js.map +1 -1
  28. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.d.ts +21 -9
  29. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js +7 -8
  30. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js.map +1 -1
  31. package/FlowGraph/flowGraph.d.ts +2 -8
  32. package/FlowGraph/flowGraph.js +2 -9
  33. package/FlowGraph/flowGraph.js.map +1 -1
  34. package/FlowGraph/flowGraphBlock.d.ts +1 -0
  35. package/FlowGraph/flowGraphBlock.js +3 -0
  36. package/FlowGraph/flowGraphBlock.js.map +1 -1
  37. package/FlowGraph/flowGraphContext.d.ts +20 -2
  38. package/FlowGraph/flowGraphContext.js +37 -33
  39. package/FlowGraph/flowGraphContext.js.map +1 -1
  40. package/FlowGraph/flowGraphContextLogger.d.ts +9 -0
  41. package/FlowGraph/flowGraphContextLogger.js +14 -0
  42. package/FlowGraph/flowGraphContextLogger.js.map +1 -0
  43. package/FlowGraph/flowGraphCoordinator.d.ts +14 -5
  44. package/FlowGraph/flowGraphCoordinator.js +27 -3
  45. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  46. package/FlowGraph/flowGraphDataConnection.js +1 -0
  47. package/FlowGraph/flowGraphDataConnection.js.map +1 -1
  48. package/FlowGraph/flowGraphEventBlock.js +1 -0
  49. package/FlowGraph/flowGraphEventBlock.js.map +1 -1
  50. package/FlowGraph/flowGraphSignalConnection.js +1 -0
  51. package/FlowGraph/flowGraphSignalConnection.js.map +1 -1
  52. package/FlowGraph/index.d.ts +1 -1
  53. package/FlowGraph/index.js +1 -1
  54. package/FlowGraph/index.js.map +1 -1
  55. package/FlowGraph/serialization.d.ts +16 -0
  56. package/FlowGraph/serialization.js +79 -0
  57. package/FlowGraph/serialization.js.map +1 -0
  58. package/Materials/Textures/baseTexture.d.ts +2 -1
  59. package/Materials/Textures/baseTexture.js +12 -1
  60. package/Materials/Textures/baseTexture.js.map +1 -1
  61. package/Materials/Textures/renderTargetTexture.d.ts +2 -0
  62. package/Materials/Textures/renderTargetTexture.js +5 -2
  63. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  64. package/Materials/Textures/texture.d.ts +2 -0
  65. package/Materials/Textures/texture.js +8 -3
  66. package/Materials/Textures/texture.js.map +1 -1
  67. package/Materials/materialPluginManager.js +1 -1
  68. package/Materials/materialPluginManager.js.map +1 -1
  69. package/Maths/math.vector.js +41 -26
  70. package/Maths/math.vector.js.map +1 -1
  71. package/Meshes/Builders/textBuilder.js +0 -1
  72. package/Meshes/Builders/textBuilder.js.map +1 -1
  73. package/Meshes/GreasedLine/greasedLineMesh.js +1 -1
  74. package/Meshes/GreasedLine/greasedLineMesh.js.map +1 -1
  75. package/Meshes/GreasedLine/greasedLineRibbonMesh.js +2 -2
  76. package/Meshes/GreasedLine/greasedLineRibbonMesh.js.map +1 -1
  77. package/Meshes/Node/Blocks/Sources/boxBlock.js +2 -1
  78. package/Meshes/Node/Blocks/Sources/boxBlock.js.map +1 -1
  79. package/Meshes/Node/Blocks/Sources/capsuleBlock.js +2 -1
  80. package/Meshes/Node/Blocks/Sources/capsuleBlock.js.map +1 -1
  81. package/Meshes/Node/Blocks/Sources/cylinderBlock.js +2 -1
  82. package/Meshes/Node/Blocks/Sources/cylinderBlock.js.map +1 -1
  83. package/Meshes/Node/Blocks/Sources/discBlock.js +2 -1
  84. package/Meshes/Node/Blocks/Sources/discBlock.js.map +1 -1
  85. package/Meshes/Node/Blocks/Sources/gridBlock.js +2 -1
  86. package/Meshes/Node/Blocks/Sources/gridBlock.js.map +1 -1
  87. package/Meshes/Node/Blocks/Sources/icoSphereBlock.js +2 -1
  88. package/Meshes/Node/Blocks/Sources/icoSphereBlock.js.map +1 -1
  89. package/Meshes/Node/Blocks/Sources/planeBlock.js +2 -1
  90. package/Meshes/Node/Blocks/Sources/planeBlock.js.map +1 -1
  91. package/Meshes/Node/Blocks/Sources/sphereBlock.js +2 -1
  92. package/Meshes/Node/Blocks/Sources/sphereBlock.js.map +1 -1
  93. package/Meshes/Node/Blocks/Sources/torusBlock.js +2 -1
  94. package/Meshes/Node/Blocks/Sources/torusBlock.js.map +1 -1
  95. package/Meshes/abstractMesh.js +13 -9
  96. package/Meshes/abstractMesh.js.map +1 -1
  97. package/Meshes/csg.d.ts +8 -8
  98. package/Meshes/csg.js +12 -12
  99. package/Meshes/csg.js.map +1 -1
  100. package/Misc/deepCopier.d.ts +3 -1
  101. package/Misc/deepCopier.js +7 -5
  102. package/Misc/deepCopier.js.map +1 -1
  103. package/Misc/observable.d.ts +6 -2
  104. package/Misc/observable.js +0 -14
  105. package/Misc/observable.js.map +1 -1
  106. package/Misc/precisionDate.js +2 -4
  107. package/Misc/precisionDate.js.map +1 -1
  108. package/Rendering/renderingManager.d.ts +4 -0
  109. package/Rendering/renderingManager.js +18 -13
  110. package/Rendering/renderingManager.js.map +1 -1
  111. package/package.json +1 -1
  112. package/scene.d.ts +6 -0
  113. package/scene.js +11 -1
  114. package/scene.js.map +1 -1
  115. package/FlowGraph/flowGraphCustomEvent.d.ts +0 -5
  116. package/FlowGraph/flowGraphCustomEvent.js +0 -2
  117. package/FlowGraph/flowGraphCustomEvent.js.map +0 -1
  118. package/FlowGraph/flowGraphEventCoordinator.d.ts +0 -23
  119. package/FlowGraph/flowGraphEventCoordinator.js +0 -37
  120. package/FlowGraph/flowGraphEventCoordinator.js.map +0 -1
  121. package/FlowGraph/flowGraphVariableDefinitions.d.ts +0 -32
  122. package/FlowGraph/flowGraphVariableDefinitions.js +0 -51
  123. package/FlowGraph/flowGraphVariableDefinitions.js.map +0 -1
@@ -1,5 +0,0 @@
1
- /**
2
- * @experimental
3
- * Represents a custom event
4
- */
5
- export type FlowGraphCustomEvent = any;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=flowGraphCustomEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowGraphCustomEvent.js","sourceRoot":"","sources":["../../../../dev/core/src/FlowGraph/flowGraphCustomEvent.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * @experimental\r\n * Represents a custom event\r\n */\r\nexport type FlowGraphCustomEvent = any;\r\n"]}
@@ -1,23 +0,0 @@
1
- import { Observable } from "../Misc/observable";
2
- import type { FlowGraphCustomEvent } from "./flowGraphCustomEvent";
3
- /**
4
- * This class centralizes the handling of events in the flow graph.
5
- * If a block fires an event, it will be handled by this class.
6
- * It will also notify any blocks that are listening to that event.
7
- * @experimental
8
- */
9
- export declare class FlowGraphEventCoordinator {
10
- private _customEventsMap;
11
- /**
12
- * Get an observable that will be notified when the event with the given id is fired.
13
- * @param id the id of the event
14
- * @returns the observable for the event
15
- */
16
- getCustomEventObservable(id: string): Observable<FlowGraphCustomEvent>;
17
- /**
18
- * Notifies the observable for the given event id with the given data.
19
- * @param id the id of the event
20
- * @param data the data to send with the event
21
- */
22
- notifyCustomEvent(id: string, data: any): void;
23
- }
@@ -1,37 +0,0 @@
1
- import { Observable } from "../Misc/observable.js";
2
- /**
3
- * This class centralizes the handling of events in the flow graph.
4
- * If a block fires an event, it will be handled by this class.
5
- * It will also notify any blocks that are listening to that event.
6
- * @experimental
7
- */
8
- export class FlowGraphEventCoordinator {
9
- constructor() {
10
- this._customEventsMap = new Map();
11
- }
12
- /**
13
- * Get an observable that will be notified when the event with the given id is fired.
14
- * @param id the id of the event
15
- * @returns the observable for the event
16
- */
17
- getCustomEventObservable(id) {
18
- let observable = this._customEventsMap.get(id);
19
- if (!observable) {
20
- observable = new Observable();
21
- this._customEventsMap.set(id, observable);
22
- }
23
- return observable;
24
- }
25
- /**
26
- * Notifies the observable for the given event id with the given data.
27
- * @param id the id of the event
28
- * @param data the data to send with the event
29
- */
30
- notifyCustomEvent(id, data) {
31
- const observable = this._customEventsMap.get(id);
32
- if (observable) {
33
- observable.notifyObservers(data);
34
- }
35
- }
36
- }
37
- //# sourceMappingURL=flowGraphEventCoordinator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowGraphEventCoordinator.js","sourceRoot":"","sources":["../../../../dev/core/src/FlowGraph/flowGraphEventCoordinator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;;;;;GAKG;AACH,MAAM,OAAO,yBAAyB;IAAtC;QACY,qBAAgB,GAAkD,IAAI,GAAG,EAAE,CAAC;IA2BxF,CAAC;IAzBG;;;;OAIG;IACH,wBAAwB,CAAC,EAAU;QAC/B,IAAI,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,EAAE;YACb,UAAU,GAAG,IAAI,UAAU,EAAwB,CAAC;YACpD,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;SAC7C;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,EAAU,EAAE,IAAS;QACnC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,UAAU,EAAE;YACZ,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SACpC;IACL,CAAC;CACJ","sourcesContent":["import { Observable } from \"../Misc/observable\";\r\nimport type { FlowGraphCustomEvent } from \"./flowGraphCustomEvent\";\r\n\r\n/**\r\n * This class centralizes the handling of events in the flow graph.\r\n * If a block fires an event, it will be handled by this class.\r\n * It will also notify any blocks that are listening to that event.\r\n * @experimental\r\n */\r\nexport class FlowGraphEventCoordinator {\r\n private _customEventsMap: Map<string, Observable<FlowGraphCustomEvent>> = new Map();\r\n\r\n /**\r\n * Get an observable that will be notified when the event with the given id is fired.\r\n * @param id the id of the event\r\n * @returns the observable for the event\r\n */\r\n getCustomEventObservable(id: string): Observable<FlowGraphCustomEvent> {\r\n let observable = this._customEventsMap.get(id);\r\n if (!observable) {\r\n observable = new Observable<FlowGraphCustomEvent>();\r\n this._customEventsMap.set(id, observable);\r\n }\r\n return observable;\r\n }\r\n\r\n /**\r\n * Notifies the observable for the given event id with the given data.\r\n * @param id the id of the event\r\n * @param data the data to send with the event\r\n */\r\n notifyCustomEvent(id: string, data: any) {\r\n const observable = this._customEventsMap.get(id);\r\n if (observable) {\r\n observable.notifyObservers(data);\r\n }\r\n }\r\n}\r\n"]}
@@ -1,32 +0,0 @@
1
- import type { IFlowGraphContextConfiguration } from "./flowGraphContext";
2
- import { FlowGraphContext } from "./flowGraphContext";
3
- /**
4
- * @experimental
5
- * This class represents the definition of a variable, with a name and
6
- * a default value. It can be used to create a context.
7
- */
8
- export declare class FlowGraphVariableDefinitions {
9
- private _definitions;
10
- /**
11
- * Defines a variable
12
- * @param name
13
- * @param defaultValue
14
- */
15
- defineVariable(name: string, defaultValue: any): void;
16
- /**
17
- * Generate a context object from the definitions
18
- * @param params
19
- * @returns
20
- */
21
- generateContext(params: IFlowGraphContextConfiguration): FlowGraphContext;
22
- /**
23
- * Serializes the definitions
24
- * @param serializationObject
25
- */
26
- serialize(serializationObject: any): void;
27
- /**
28
- * Deserialize definitions to this object
29
- * @param serializationObject
30
- */
31
- deserialize(serializationObject: any): void;
32
- }
@@ -1,51 +0,0 @@
1
- import { FlowGraphContext } from "./flowGraphContext.js";
2
- /**
3
- * @experimental
4
- * This class represents the definition of a variable, with a name and
5
- * a default value. It can be used to create a context.
6
- */
7
- export class FlowGraphVariableDefinitions {
8
- constructor() {
9
- this._definitions = new Map();
10
- }
11
- /**
12
- * Defines a variable
13
- * @param name
14
- * @param defaultValue
15
- */
16
- defineVariable(name, defaultValue) {
17
- this._definitions.set(name, defaultValue);
18
- }
19
- /**
20
- * Generate a context object from the definitions
21
- * @param params
22
- * @returns
23
- */
24
- generateContext(params) {
25
- const context = new FlowGraphContext(params);
26
- this._definitions.forEach((value, key) => {
27
- context.setVariable(key, value);
28
- });
29
- return context;
30
- }
31
- /**
32
- * Serializes the definitions
33
- * @param serializationObject
34
- */
35
- serialize(serializationObject) {
36
- this._definitions.forEach((value, key) => {
37
- serializationObject[key] = value;
38
- });
39
- }
40
- /**
41
- * Deserialize definitions to this object
42
- * @param serializationObject
43
- */
44
- deserialize(serializationObject) {
45
- this._definitions.clear();
46
- for (const key in serializationObject) {
47
- this._definitions.set(key, serializationObject[key]);
48
- }
49
- }
50
- }
51
- //# sourceMappingURL=flowGraphVariableDefinitions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowGraphVariableDefinitions.js","sourceRoot":"","sources":["../../../../dev/core/src/FlowGraph/flowGraphVariableDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,OAAO,4BAA4B;IAAzC;QACY,iBAAY,GAAqB,IAAI,GAAG,EAAe,CAAC;IA4CpE,CAAC;IA1CG;;;;OAIG;IACI,cAAc,CAAC,IAAY,EAAE,YAAiB;QACjD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACI,eAAe,CAAC,MAAsC;QACzD,MAAM,OAAO,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACrC,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,mBAAwB;QACrC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACrC,mBAAmB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,mBAAwB;QACvC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAC1B,KAAK,MAAM,GAAG,IAAI,mBAAmB,EAAE;YACnC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;SACxD;IACL,CAAC;CACJ","sourcesContent":["import type { IFlowGraphContextConfiguration } from \"./flowGraphContext\";\r\nimport { FlowGraphContext } from \"./flowGraphContext\";\r\n\r\n/**\r\n * @experimental\r\n * This class represents the definition of a variable, with a name and\r\n * a default value. It can be used to create a context.\r\n */\r\nexport class FlowGraphVariableDefinitions {\r\n private _definitions: Map<string, any> = new Map<string, any>();\r\n\r\n /**\r\n * Defines a variable\r\n * @param name\r\n * @param defaultValue\r\n */\r\n public defineVariable(name: string, defaultValue: any) {\r\n this._definitions.set(name, defaultValue);\r\n }\r\n\r\n /**\r\n * Generate a context object from the definitions\r\n * @param params\r\n * @returns\r\n */\r\n public generateContext(params: IFlowGraphContextConfiguration): FlowGraphContext {\r\n const context = new FlowGraphContext(params);\r\n this._definitions.forEach((value, key) => {\r\n context.setVariable(key, value);\r\n });\r\n return context;\r\n }\r\n\r\n /**\r\n * Serializes the definitions\r\n * @param serializationObject\r\n */\r\n public serialize(serializationObject: any) {\r\n this._definitions.forEach((value, key) => {\r\n serializationObject[key] = value;\r\n });\r\n }\r\n\r\n /**\r\n * Deserialize definitions to this object\r\n * @param serializationObject\r\n */\r\n public deserialize(serializationObject: any) {\r\n this._definitions.clear();\r\n for (const key in serializationObject) {\r\n this._definitions.set(key, serializationObject[key]);\r\n }\r\n }\r\n}\r\n"]}