@vived/component-abb-6700 1.0.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 (203) hide show
  1. package/.todo.md +13 -0
  2. package/README.md +122 -0
  3. package/dist/.gitkeep +0 -0
  4. package/dist/Adapters/aBB6700PMAdapter.d.ts +10 -0
  5. package/dist/Adapters/aBB6700PMAdapter.d.ts.map +1 -0
  6. package/dist/Controllers/createABB6700.d.ts +12 -0
  7. package/dist/Controllers/createABB6700.d.ts.map +1 -0
  8. package/dist/Controllers/getPose.d.ts +11 -0
  9. package/dist/Controllers/getPose.d.ts.map +1 -0
  10. package/dist/Controllers/setJointAngle.d.ts +12 -0
  11. package/dist/Controllers/setJointAngle.d.ts.map +1 -0
  12. package/dist/Controllers/setPose.d.ts +11 -0
  13. package/dist/Controllers/setPose.d.ts.map +1 -0
  14. package/dist/Entities/ABB6700Entity.d.ts +35 -0
  15. package/dist/Entities/ABB6700Entity.d.ts.map +1 -0
  16. package/dist/Entities/ABB6700Repo.d.ts +32 -0
  17. package/dist/Entities/ABB6700Repo.d.ts.map +1 -0
  18. package/dist/Factory/ABB6700FeatureFactory.d.ts +26 -0
  19. package/dist/Factory/ABB6700FeatureFactory.d.ts.map +1 -0
  20. package/dist/Mocks/MockABB6700PM.d.ts +11 -0
  21. package/dist/Mocks/MockABB6700PM.d.ts.map +1 -0
  22. package/dist/Mocks/MockSetJointAngleUC.d.ts +7 -0
  23. package/dist/Mocks/MockSetJointAngleUC.d.ts.map +1 -0
  24. package/dist/Mocks/MockSetPoseUC.d.ts +7 -0
  25. package/dist/Mocks/MockSetPoseUC.d.ts.map +1 -0
  26. package/dist/PMs/ABB6700PM.d.ts +32 -0
  27. package/dist/PMs/ABB6700PM.d.ts.map +1 -0
  28. package/dist/UCs/CalcStabilizerUC.d.ts +7 -0
  29. package/dist/UCs/CalcStabilizerUC.d.ts.map +1 -0
  30. package/dist/UCs/SetJointAngleUC.d.ts +15 -0
  31. package/dist/UCs/SetJointAngleUC.d.ts.map +1 -0
  32. package/dist/UCs/SetPoseUC.d.ts +22 -0
  33. package/dist/UCs/SetPoseUC.d.ts.map +1 -0
  34. package/dist/Views/ABB6700BabylonView.d.ts +27 -0
  35. package/dist/Views/ABB6700BabylonView.d.ts.map +1 -0
  36. package/dist/abb_6700.glb +0 -0
  37. package/dist/abstractAudioBus-CyBWsmuN.js +14 -0
  38. package/dist/animationGroup-BhNThqQe.js +1454 -0
  39. package/dist/basisTextureLoader-BT391BsV.js +310 -0
  40. package/dist/brdfTextureTools-DUyKBAXf.js +79 -0
  41. package/dist/bumpFragment-Dd-ojPA1.js +134 -0
  42. package/dist/bumpFragment-KE1_PuMl.js +287 -0
  43. package/dist/bumpVertex-BcdvVFVx.js +8 -0
  44. package/dist/bumpVertexDeclaration-B5Uvs-RS.js +8 -0
  45. package/dist/bumpVertexDeclaration-ixSg-yGI.js +8 -0
  46. package/dist/clipPlaneFragment-DJwQynjA.js +136 -0
  47. package/dist/clipPlaneVertex-D4Wk50XG.js +376 -0
  48. package/dist/clipPlaneVertex-eQ147Tn2.js +350 -0
  49. package/dist/component.config.d.ts +17 -0
  50. package/dist/component.config.d.ts.map +1 -0
  51. package/dist/ddsTextureLoader-DeoF3iGO.js +331 -0
  52. package/dist/default.fragment-DKnTR9nY.js +548 -0
  53. package/dist/default.fragment-rIGWrUS5.js +486 -0
  54. package/dist/default.vertex-Bt5y1VyA.js +212 -0
  55. package/dist/default.vertex-Dext1liJ.js +224 -0
  56. package/dist/defaultUboDeclaration-BwslQZX8.js +11 -0
  57. package/dist/defaultUboDeclaration-DSXACgip.js +9 -0
  58. package/dist/easing-BAt0SO-B.js +163 -0
  59. package/dist/envTextureLoader-CBiW_Q-U.js +40 -0
  60. package/dist/exrTextureLoader-5SC6PKIA.js +740 -0
  61. package/dist/flowGraphApplyForceBlock-6e8-wcaw.js +32 -0
  62. package/dist/flowGraphApplyImpulseBlock-B27EZQow.js +32 -0
  63. package/dist/flowGraphArrayIndexBlock-DIUn5e4i.js +31 -0
  64. package/dist/flowGraphBezierCurveEasingBlock-BJmiHk40.js +25 -0
  65. package/dist/flowGraphBinaryOperationBlock-Bj7TANCc.js +25 -0
  66. package/dist/flowGraphBranchBlock-7CRvIKWc.js +19 -0
  67. package/dist/flowGraphCachedOperationBlock-CP1ZiuIB.js +26 -0
  68. package/dist/flowGraphCancelDelayBlock-DqtgzBGm.js +20 -0
  69. package/dist/flowGraphCodeExecutionBlock-CaYXCGqo.js +23 -0
  70. package/dist/flowGraphConditionalDataBlock-DJ7evX8_.js +28 -0
  71. package/dist/flowGraphConsoleLogBlock-cMkpqLzO.js +68 -0
  72. package/dist/flowGraphConstantBlock-JWybwT0A.js +28 -0
  73. package/dist/flowGraphContextBlock-CFDXHcbn.js +19 -0
  74. package/dist/flowGraphCounterBlock-B0uPkgw9.js +24 -0
  75. package/dist/flowGraphDataSwitchBlock-B0GSifvJ.js +27 -0
  76. package/dist/flowGraphDebounceBlock-CSw8zKym.js +24 -0
  77. package/dist/flowGraphDebugBlock-DiSR6Ahn.js +65 -0
  78. package/dist/flowGraphDoNBlock-C-48oQ2H.js +24 -0
  79. package/dist/flowGraphEasingBlock-DKUaE7Rp.js +50 -0
  80. package/dist/flowGraphFlipFlopBlock-DX5BGhMV.js +20 -0
  81. package/dist/flowGraphForLoopBlock-Di-Qwg23.js +27 -0
  82. package/dist/flowGraphFunctionReferenceBlock-D8X5TFsO.js +20 -0
  83. package/dist/flowGraphGLTFDataProvider-C4j7nPQv.js +16 -0
  84. package/dist/flowGraphGetAngularVelocityBlock-Cq-yTQ4D.js +31 -0
  85. package/dist/flowGraphGetAssetBlock-B36eioor.js +21 -0
  86. package/dist/flowGraphGetLinearVelocityBlock-MdrV0eUD.js +31 -0
  87. package/dist/flowGraphGetPhysicsMassPropertiesBlock-wXDZP1wM.js +30 -0
  88. package/dist/flowGraphGetPropertyBlock-eP0badwf.js +46 -0
  89. package/dist/flowGraphGetSoundVolumeBlock-D3gXGHXa.js +29 -0
  90. package/dist/flowGraphGetVariableBlock-C7-qZAec.js +31 -0
  91. package/dist/flowGraphIndexOfBlock-CC5l9n9P.js +31 -0
  92. package/dist/flowGraphInterpolationBlock-B6922jzt.js +50 -0
  93. package/dist/flowGraphIsKeyPressedBlock-X_iuiUOX.js +31 -0
  94. package/dist/flowGraphIsSoundPlayingBlock-DONQX8N8.js +29 -0
  95. package/dist/flowGraphJsonPointerParserBlock-DBH_gN8I.js +95 -0
  96. package/dist/flowGraphKeyDownEventBlock-D5T1Uyfv.js +26 -0
  97. package/dist/flowGraphKeyUpEventBlock-BPY_Kgkm.js +21 -0
  98. package/dist/flowGraphKeyboardEventBlock-C49fx3TC.js +20 -0
  99. package/dist/flowGraphMathBlocks-CkvrN3VJ.js +864 -0
  100. package/dist/flowGraphMathCombineExtractBlocks-QSjGlnoz.js +248 -0
  101. package/dist/flowGraphMatrixMathBlocks-B3D7Cz9p.js +117 -0
  102. package/dist/flowGraphMeshPickEventBlock-BBTz-taa.js +35 -0
  103. package/dist/flowGraphMultiGateBlock-BhY1y5BG.js +50 -0
  104. package/dist/flowGraphPauseAnimationBlock-CHZZXMbg.js +19 -0
  105. package/dist/flowGraphPauseSoundBlock-B7hMmJ0c.js +31 -0
  106. package/dist/flowGraphPhysicsCollisionEventBlock-CxoPpT-q.js +56 -0
  107. package/dist/flowGraphPlayAnimationBlock-DVAvIFux.js +99 -0
  108. package/dist/flowGraphPlaySoundBlock-DjHGrqbC.js +32 -0
  109. package/dist/flowGraphPointerDownEventBlock-qI-H0JST.js +31 -0
  110. package/dist/flowGraphPointerMoveEventBlock-DAi4VUyy.js +31 -0
  111. package/dist/flowGraphPointerOutEventBlock-CFtj68aC.js +21 -0
  112. package/dist/flowGraphPointerOverEventBlock-VxdHhFuu.js +23 -0
  113. package/dist/flowGraphPointerUpEventBlock-DRR1f07q.js +31 -0
  114. package/dist/flowGraphReceiveCustomEventBlock-B3bwdB66.js +52 -0
  115. package/dist/flowGraphSceneReadyEventBlock-Dy6lDT3j.js +23 -0
  116. package/dist/flowGraphSceneTickEventBlock-Bl9BF_Xw.js +32 -0
  117. package/dist/flowGraphSendCustomEventBlock-BAR4PGFq.js +35 -0
  118. package/dist/flowGraphSequenceBlock-veqU32ZZ.js +32 -0
  119. package/dist/flowGraphSetAngularVelocityBlock-Dj9b-zu6.js +31 -0
  120. package/dist/flowGraphSetDelayBlock-CMjudtvk.js +131 -0
  121. package/dist/flowGraphSetLinearVelocityBlock-DVDhhJBd.js +31 -0
  122. package/dist/flowGraphSetPhysicsMotionTypeBlock-CL3cxNCO.js +36 -0
  123. package/dist/flowGraphSetPropertyBlock-D3sWL3Ss.js +47 -0
  124. package/dist/flowGraphSetSoundVolumeBlock-CxVk45yR.js +32 -0
  125. package/dist/flowGraphSetVariableBlock-D1oJiwLj.js +47 -0
  126. package/dist/flowGraphSoundEndedEventBlock-CubEwii0.js +47 -0
  127. package/dist/flowGraphStopAnimationBlock-B9inwIQx.js +48 -0
  128. package/dist/flowGraphStopSoundBlock-BijIX2jC.js +31 -0
  129. package/dist/flowGraphSwitchBlock-BMhPb4OX.js +54 -0
  130. package/dist/flowGraphThrottleBlock-C7vrnkb1.js +37 -0
  131. package/dist/flowGraphTransformCoordinatesSystemBlock-DoISqaUG.js +29 -0
  132. package/dist/flowGraphTypeToTypeBlocks-CSML6QWx.js +57 -0
  133. package/dist/flowGraphUnaryOperationBlock-B0Shf-lJ.js +24 -0
  134. package/dist/flowGraphVectorMathBlocks-DoTRR_E0.js +178 -0
  135. package/dist/flowGraphWaitAllBlock-BvmDMc24.js +54 -0
  136. package/dist/flowGraphWhileLoopBlock-BaIq4-K2.js +27 -0
  137. package/dist/geometry.fragment-Bsis3UG2.js +275 -0
  138. package/dist/geometry.vertex-DskQ5b8j.js +222 -0
  139. package/dist/harmonicsFunctions-CtNrRfir.js +193 -0
  140. package/dist/harmonicsFunctions-PEz6APC7.js +18 -0
  141. package/dist/hdrTextureLoader-D9rYxJ9q.js +112 -0
  142. package/dist/helperFunctions-Bt7Zfkrp.js +89 -0
  143. package/dist/helperFunctions-CPmRxd37.js +121 -0
  144. package/dist/iesTextureLoader-BGUFjVhI.js +93 -0
  145. package/dist/index-CS3Icp_r.js +67657 -0
  146. package/dist/index.d.ts +23 -0
  147. package/dist/index.d.ts.map +1 -0
  148. package/dist/index.js +27 -0
  149. package/dist/ktxTextureLoader-cUaGg9_L.js +459 -0
  150. package/dist/lightFragment-BRDibDKG.js +404 -0
  151. package/dist/lightFragment-DCqtGMp_.js +402 -0
  152. package/dist/logDepthDeclaration-Bwm-3KyB.js +16 -0
  153. package/dist/logDepthDeclaration-gUfeSnXX.js +20 -0
  154. package/dist/logDepthVertex-CKeuJ6ae.js +213 -0
  155. package/dist/logDepthVertex-CXkmZels.js +459 -0
  156. package/dist/mesh.vertexData.functions-Bc9lJlrU.js +74 -0
  157. package/dist/oitFragment-B8zuQigp.js +792 -0
  158. package/dist/oitFragment-DH3h3T6x.js +657 -0
  159. package/dist/openpbr.fragment-BglYS6LA.js +1405 -0
  160. package/dist/openpbr.fragment-DrOTZs4m.js +1553 -0
  161. package/dist/openpbr.vertex-B-PaLFOR.js +384 -0
  162. package/dist/openpbr.vertex-DMdFRTnX.js +268 -0
  163. package/dist/openpbrMaterial-HCU0aOca.js +2880 -0
  164. package/dist/openpbrMaterialLoadingAdapter-CWRAa-7S.js +1122 -0
  165. package/dist/openpbrTransmissionLayerData-CfDVObj5.js +352 -0
  166. package/dist/openpbrUboDeclaration-CA2pvSbt.js +9 -0
  167. package/dist/openpbrUboDeclaration-xU8VOaib.js +10 -0
  168. package/dist/pass.fragment-1mMP54bb.js +10 -0
  169. package/dist/pass.fragment-DzaUp_jk.js +10 -0
  170. package/dist/passCube.fragment-CQaXS7g3.js +29 -0
  171. package/dist/passCube.fragment-QJGPwAXI.js +29 -0
  172. package/dist/pbr.fragment-BnaAAGxb.js +2775 -0
  173. package/dist/pbr.fragment-CYZk_EGU.js +2619 -0
  174. package/dist/pbr.vertex-CyvdCw91.js +372 -0
  175. package/dist/pbr.vertex-DJMAkDxs.js +270 -0
  176. package/dist/pbrBRDFFunctions-EugoWm6O.js +175 -0
  177. package/dist/pbrDebug-Bk3sPoEG.js +719 -0
  178. package/dist/pbrDebug-Cdalzb1I.js +614 -0
  179. package/dist/pbrIBLFunctions-B0bVAXCF.js +47 -0
  180. package/dist/pbrIBLFunctions-C06z-ouZ.js +51 -0
  181. package/dist/pbrMaterial-C4FCKBZQ.js +1660 -0
  182. package/dist/pbrMaterialLoadingAdapter-BGHlS_ZN.js +1032 -0
  183. package/dist/pbrUboDeclaration-1lN5_-Bw.js +9 -0
  184. package/dist/pbrUboDeclaration-BJOUUOZ2.js +10 -0
  185. package/dist/procedural.vertex-CFPKczKj.js +14 -0
  186. package/dist/procedural.vertex-DUW7bYZt.js +13 -0
  187. package/dist/rgbdDecode.fragment-CEGgE4tL.js +8 -0
  188. package/dist/rgbdDecode.fragment-FT0wkgah.js +8 -0
  189. package/dist/rgbdEncode.fragment-CLnJJf6E.js +8 -0
  190. package/dist/rgbdEncode.fragment-CaAcMsY9.js +8 -0
  191. package/dist/sceneUboDeclaration-B6oxsfcj.js +8 -0
  192. package/dist/sceneUboDeclaration-JByfVKik.js +13 -0
  193. package/dist/setupABB6700InstanceFactory.d.ts +7 -0
  194. package/dist/setupABB6700InstanceFactory.d.ts.map +1 -0
  195. package/dist/studio.env +0 -0
  196. package/dist/textureProcessor.fragment-BYPw6SMQ.js +152 -0
  197. package/dist/textureProcessor.fragment-Ciw9-F3w.js +157 -0
  198. package/dist/textureTools-Cct_bGgp.js +40 -0
  199. package/dist/tgaTextureLoader-BJOIdnFr.js +198 -0
  200. package/dist/thinEngine-Bt9FW4dD.js +2425 -0
  201. package/dist/webAudioBus-BUzRHSxr.js +88 -0
  202. package/dist/webAudioMainBus-Dds1TgJG.js +49 -0
  203. package/package.json +49 -0
@@ -0,0 +1,20 @@
1
+ import { O as o, aU as u, aM as s, aK as c } from "./index-CS3Icp_r.js";
2
+ class r extends o {
3
+ constructor(t) {
4
+ super(t), this.functionName = this.registerDataInput("functionName", u), this.object = this.registerDataInput("object", s), this.context = this.registerDataInput("context", s, null), this.output = this.registerDataOutput("output", s);
5
+ }
6
+ _updateOutputs(t) {
7
+ const n = this.functionName.getValue(t), a = this.object.getValue(t), i = this.context.getValue(t);
8
+ if (a && n) {
9
+ const e = a[n];
10
+ e && typeof e == "function" && this.output.setValue(e.bind(i), t);
11
+ }
12
+ }
13
+ getClassName() {
14
+ return "FlowGraphFunctionReference";
15
+ }
16
+ }
17
+ c("FlowGraphFunctionReference", r);
18
+ export {
19
+ r as FlowGraphFunctionReferenceBlock
20
+ };
@@ -0,0 +1,16 @@
1
+ import { O as e, aM as s } from "./index-CS3Icp_r.js";
2
+ class m extends e {
3
+ constructor(o) {
4
+ super(o);
5
+ const t = o.glTF, r = t?.animations?.map((a) => a._babylonAnimationGroup) || [];
6
+ this.animationGroups = this.registerDataOutput("animationGroups", s, r);
7
+ const n = t?.nodes?.map((a) => a._babylonTransformNode) || [];
8
+ this.nodes = this.registerDataOutput("nodes", s, n);
9
+ }
10
+ getClassName() {
11
+ return "FlowGraphGLTFDataProvider";
12
+ }
13
+ }
14
+ export {
15
+ m as FlowGraphGLTFDataProvider
16
+ };
@@ -0,0 +1,31 @@
1
+ import { aW as o, aM as r, bf as l, aK as i } from "./index-CS3Icp_r.js";
2
+ import { F as s } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
3
+ class c extends s {
4
+ /**
5
+ * Constructs a new FlowGraphGetAngularVelocityBlock.
6
+ * @param config - optional configuration for the block
7
+ */
8
+ constructor(e) {
9
+ super(o, e), this.body = this.registerDataInput("body", r);
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ _doOperation(e) {
15
+ const a = this.body.getValue(e);
16
+ if (!a)
17
+ return;
18
+ let t = e._getExecutionVariable(this, "_cachedVelocity", null);
19
+ return t || (t = new l(), e._setExecutionVariable(this, "_cachedVelocity", t)), a.getAngularVelocityToRef(t), t;
20
+ }
21
+ /**
22
+ * @returns class name of the block.
23
+ */
24
+ getClassName() {
25
+ return "FlowGraphGetAngularVelocityBlock";
26
+ }
27
+ }
28
+ i("FlowGraphGetAngularVelocityBlock", c);
29
+ export {
30
+ c as FlowGraphGetAngularVelocityBlock
31
+ };
@@ -0,0 +1,21 @@
1
+ import { O as p, aM as t, T as l, bT as s, Y as u, aK as h } from "./index-CS3Icp_r.js";
2
+ class n extends p {
3
+ constructor(e) {
4
+ super(e), this.config = e, this.type = this.registerDataInput("type", t, e.type), this.value = this.registerDataOutput("value", t), this.index = this.registerDataInput("index", t, new l(s(e.index ?? -1)));
5
+ }
6
+ _updateOutputs(e) {
7
+ const a = this.type.getValue(e), i = this.index.getValue(e), r = u(e.assetsContext, a, s(i), this.config.useIndexAsUniqueId);
8
+ this.value.setValue(r, e);
9
+ }
10
+ /**
11
+ * Gets the class name of this block
12
+ * @returns the class name
13
+ */
14
+ getClassName() {
15
+ return "FlowGraphGetAssetBlock";
16
+ }
17
+ }
18
+ h("FlowGraphGetAssetBlock", n);
19
+ export {
20
+ n as FlowGraphGetAssetBlock
21
+ };
@@ -0,0 +1,31 @@
1
+ import { aW as o, aM as r, bf as i, aK as s } from "./index-CS3Icp_r.js";
2
+ import { F as c } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
3
+ class l extends c {
4
+ /**
5
+ * Constructs a new FlowGraphGetLinearVelocityBlock.
6
+ * @param config - optional configuration for the block
7
+ */
8
+ constructor(e) {
9
+ super(o, e), this.body = this.registerDataInput("body", r);
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ _doOperation(e) {
15
+ const a = this.body.getValue(e);
16
+ if (!a)
17
+ return;
18
+ let t = e._getExecutionVariable(this, "_cachedVelocity", null);
19
+ return t || (t = new i(), e._setExecutionVariable(this, "_cachedVelocity", t)), a.getLinearVelocityToRef(t), t;
20
+ }
21
+ /**
22
+ * @returns class name of the block.
23
+ */
24
+ getClassName() {
25
+ return "FlowGraphGetLinearVelocityBlock";
26
+ }
27
+ }
28
+ s("FlowGraphGetLinearVelocityBlock", l);
29
+ export {
30
+ l as FlowGraphGetLinearVelocityBlock
31
+ };
@@ -0,0 +1,30 @@
1
+ import { O as i, aM as r, aS as h, aW as a, aK as p } from "./index-CS3Icp_r.js";
2
+ class o extends i {
3
+ /**
4
+ * Constructs a new FlowGraphGetPhysicsMassPropertiesBlock.
5
+ * @param config - optional configuration for the block
6
+ */
7
+ constructor(s) {
8
+ super(s), this.body = this.registerDataInput("body", r), this.mass = this.registerDataOutput("mass", h), this.centerOfMass = this.registerDataOutput("centerOfMass", a), this.inertia = this.registerDataOutput("inertia", a);
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ _updateOutputs(s) {
14
+ const t = this.body.getValue(s);
15
+ if (!t)
16
+ return;
17
+ const e = t.getMassProperties();
18
+ e.mass !== void 0 && this.mass.setValue(e.mass, s), e.centerOfMass && this.centerOfMass.setValue(e.centerOfMass, s), e.inertia && this.inertia.setValue(e.inertia, s);
19
+ }
20
+ /**
21
+ * @returns class name of the block.
22
+ */
23
+ getClassName() {
24
+ return "FlowGraphGetPhysicsMassPropertiesBlock";
25
+ }
26
+ }
27
+ p("FlowGraphGetPhysicsMassPropertiesBlock", o);
28
+ export {
29
+ o as FlowGraphGetPhysicsMassPropertiesBlock
30
+ };
@@ -0,0 +1,46 @@
1
+ import { aM as s, aU as p, aK as i } from "./index-CS3Icp_r.js";
2
+ import { F as u } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
3
+ class l extends u {
4
+ /**
5
+ * Constructs a new FlowGraphGetPropertyBlock.
6
+ * @param config - the configuration of the block
7
+ */
8
+ constructor(t) {
9
+ super(s, t), this.config = t, this.object = this.registerDataInput("object", s, t.object), this.propertyName = this.registerDataInput("propertyName", p, t.propertyName), this.customGetFunction = this.registerDataInput("customGetFunction", s);
10
+ }
11
+ /**
12
+ * Retrieves the property value from the target object.
13
+ * @param context - the flow graph context
14
+ * @returns the property value, or undefined if the target or property name is not set
15
+ */
16
+ _doOperation(t) {
17
+ const a = this.customGetFunction.getValue(t);
18
+ let r;
19
+ if (a)
20
+ r = a(this.object.getValue(t), this.propertyName.getValue(t), t);
21
+ else {
22
+ const e = this.object.getValue(t), o = this.propertyName.getValue(t);
23
+ r = e && o ? this._getPropertyValue(e, o) : void 0;
24
+ }
25
+ return r;
26
+ }
27
+ _getPropertyValue(t, a) {
28
+ const r = a.split(".");
29
+ let e = t;
30
+ for (const o of r)
31
+ if (e = e[o], e === void 0)
32
+ return;
33
+ return e;
34
+ }
35
+ /**
36
+ * Returns the class name of this block.
37
+ * @returns the class name
38
+ */
39
+ getClassName() {
40
+ return "FlowGraphGetPropertyBlock";
41
+ }
42
+ }
43
+ i("FlowGraphGetPropertyBlock", l);
44
+ export {
45
+ l as FlowGraphGetPropertyBlock
46
+ };
@@ -0,0 +1,29 @@
1
+ import { aS as r, aM as t, aK as s } from "./index-CS3Icp_r.js";
2
+ import { F as a } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
3
+ class u extends a {
4
+ /**
5
+ * Constructs a new FlowGraphGetSoundVolumeBlock.
6
+ * @param config - optional configuration for the block
7
+ */
8
+ constructor(e) {
9
+ super(r, e), this.sound = this.registerDataInput("sound", t);
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ _doOperation(e) {
15
+ const o = this.sound.getValue(e);
16
+ if (o)
17
+ return o.volume;
18
+ }
19
+ /**
20
+ * @returns class name of the block.
21
+ */
22
+ getClassName() {
23
+ return "FlowGraphGetSoundVolumeBlock";
24
+ }
25
+ }
26
+ s("FlowGraphGetSoundVolumeBlock", u);
27
+ export {
28
+ u as FlowGraphGetSoundVolumeBlock
29
+ };
@@ -0,0 +1,31 @@
1
+ import { O as l, aM as i, aK as r } from "./index-CS3Icp_r.js";
2
+ class s extends l {
3
+ /**
4
+ * Construct a FlowGraphGetVariableBlock.
5
+ * @param config construction parameters
6
+ */
7
+ constructor(a) {
8
+ super(a), this.config = a, this.value = this.registerDataOutput("value", i, a.initialValue);
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ _updateOutputs(a) {
14
+ const e = this.config.variable;
15
+ a.hasVariable(e) && this.value.setValue(a.getVariable(e), a);
16
+ }
17
+ /**
18
+ * Serializes this block
19
+ * @param serializationObject the object to serialize to
20
+ */
21
+ serialize(a) {
22
+ super.serialize(a), a.config.variable = this.config.variable;
23
+ }
24
+ getClassName() {
25
+ return "FlowGraphGetVariableBlock";
26
+ }
27
+ }
28
+ r("FlowGraphGetVariableBlock", s);
29
+ export {
30
+ s as FlowGraphGetVariableBlock
31
+ };
@@ -0,0 +1,31 @@
1
+ import { O as i, aM as t, aO as o, T as s, aK as h } from "./index-CS3Icp_r.js";
2
+ class l extends i {
3
+ /**
4
+ * Construct a FlowGraphIndexOfBlock.
5
+ * @param config construction parameters
6
+ */
7
+ constructor(e) {
8
+ super(e), this.config = e, this.object = this.registerDataInput("object", t), this.array = this.registerDataInput("array", t), this.index = this.registerDataOutput("index", o, new s(-1));
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ _updateOutputs(e) {
14
+ const r = this.object.getValue(e), a = this.array.getValue(e);
15
+ a && this.index.setValue(new s(a.indexOf(r)), e);
16
+ }
17
+ /**
18
+ * Serializes this block
19
+ * @param serializationObject the object to serialize to
20
+ */
21
+ serialize(e) {
22
+ super.serialize(e);
23
+ }
24
+ getClassName() {
25
+ return "FlowGraphIndexOfBlock";
26
+ }
27
+ }
28
+ h("FlowGraphIndexOfBlock", l);
29
+ export {
30
+ l as FlowGraphIndexOfBlock
31
+ };
@@ -0,0 +1,50 @@
1
+ import { O as c, bW as d, bV as g, aS as h, aM as p, aU as F, i as y, aK as V } from "./index-CS3Icp_r.js";
2
+ class f extends c {
3
+ constructor(t = {}) {
4
+ super(t), this.keyFrames = [];
5
+ const e = typeof t?.animationType == "string" ? d(t.animationType) : g(t?.animationType ?? 0), i = t?.keyFramesCount ?? 1, n = this.registerDataInput("duration_0", h, 0), a = this.registerDataInput("value_0", e);
6
+ this.keyFrames.push({ duration: n, value: a });
7
+ for (let s = 1; s < i + 1; s++) {
8
+ const u = this.registerDataInput(`duration_${s}`, h, s === i ? t.duration : void 0), l = this.registerDataInput(`value_${s}`, e);
9
+ this.keyFrames.push({ duration: u, value: l });
10
+ }
11
+ this.initialValue = this.keyFrames[0].value, this.endValue = this.keyFrames[i].value, this.easingFunction = this.registerDataInput("easingFunction", p), this.animation = this.registerDataOutput("animation", p), this.propertyName = this.registerDataInput("propertyName", F, t?.propertyName), this.customBuildAnimation = this.registerDataInput("customBuildAnimation", p);
12
+ }
13
+ _updateOutputs(t) {
14
+ const e = t._getGlobalContextVariable("interpolationAnimations", []), i = this.propertyName.getValue(t), n = this.easingFunction.getValue(t), a = this._createAnimation(t, i, n);
15
+ if (this.animation.setValue(a, t), Array.isArray(a))
16
+ for (const s of a)
17
+ e.push(s.uniqueId);
18
+ else
19
+ e.push(a.uniqueId);
20
+ t._setGlobalContextVariable("interpolationAnimations", e);
21
+ }
22
+ _createAnimation(t, e, i) {
23
+ const n = this.initialValue.richType, a = [], s = this.initialValue.getValue(t) || n.defaultValue;
24
+ a.push({ frame: 0, value: s });
25
+ const u = this.config?.numberOfKeyFrames ?? 1;
26
+ for (let r = 1; r < u + 1; r++) {
27
+ const m = this.keyFrames[r].duration?.getValue(t);
28
+ let o = this.keyFrames[r].value?.getValue(t);
29
+ r === u - 1 && (o = o || n.defaultValue), m !== void 0 && o && a.push({ frame: m * 60, value: o });
30
+ }
31
+ const l = this.customBuildAnimation.getValue(t);
32
+ if (l)
33
+ return l(null, null, t)(a, 60, n.animationType, i);
34
+ if (typeof e == "string") {
35
+ const r = y.CreateAnimation(e, n.animationType, 60, i);
36
+ return r.setKeys(a), [r];
37
+ } else
38
+ return e.map((m) => {
39
+ const o = y.CreateAnimation(m, n.animationType, 60, i);
40
+ return o.setKeys(a), o;
41
+ });
42
+ }
43
+ getClassName() {
44
+ return "FlowGraphInterpolationBlock";
45
+ }
46
+ }
47
+ V("FlowGraphInterpolationBlock", f);
48
+ export {
49
+ f as FlowGraphInterpolationBlock
50
+ };
@@ -0,0 +1,31 @@
1
+ import { O as r, aU as l, aN as i, aK as o } from "./index-CS3Icp_r.js";
2
+ class u extends r {
3
+ /**
4
+ * Creates a new FlowGraphIsKeyPressedBlock.
5
+ * @param config optional configuration
6
+ */
7
+ constructor(t) {
8
+ super(t), this.key = this.registerDataInput("key", l), this.withShift = this.registerDataInput("withShift", i), this.withCtrl = this.registerDataInput("withCtrl", i), this.withAlt = this.registerDataInput("withAlt", i), this.withMeta = this.registerDataInput("withMeta", i), this.withCommandOrCtrl = this.registerDataInput("withCommandOrCtrl", i), this.isPressed = this.registerDataOutput("isPressed", i);
9
+ }
10
+ /** @internal */
11
+ _updateOutputs(t) {
12
+ const a = t.configuration.sceneEventCoordinator;
13
+ if (!a) {
14
+ this.isPressed.setValue(!1, t);
15
+ return;
16
+ }
17
+ const e = a.pressedKeys, h = this.key.getValue(t);
18
+ let s = h ? e.has(h) : !0;
19
+ s && this.withShift.getValue(t) && (s = e.has("ShiftLeft") || e.has("ShiftRight")), s && this.withCtrl.getValue(t) && (s = e.has("ControlLeft") || e.has("ControlRight")), s && this.withAlt.getValue(t) && (s = e.has("AltLeft") || e.has("AltRight")), s && this.withMeta.getValue(t) && (s = e.has("MetaLeft") || e.has("MetaRight")), s && this.withCommandOrCtrl.getValue(t) && (s = e.has("CommandOrControl")), this.isPressed.setValue(s, t);
20
+ }
21
+ /**
22
+ * @returns class name of the block.
23
+ */
24
+ getClassName() {
25
+ return "FlowGraphIsKeyPressedBlock";
26
+ }
27
+ }
28
+ o("FlowGraphIsKeyPressedBlock", u);
29
+ export {
30
+ u as FlowGraphIsKeyPressedBlock
31
+ };
@@ -0,0 +1,29 @@
1
+ import { aN as s, aM as e, aK as t } from "./index-CS3Icp_r.js";
2
+ import { F as n } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
3
+ class r extends n {
4
+ /**
5
+ * Constructs a new FlowGraphIsSoundPlayingBlock.
6
+ * @param config - optional configuration for the block
7
+ */
8
+ constructor(a) {
9
+ super(s, a), this.sound = this.registerDataInput("sound", e);
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ _doOperation(a) {
15
+ const o = this.sound.getValue(a);
16
+ if (o)
17
+ return o.state === 3 || o.state === 2;
18
+ }
19
+ /**
20
+ * @returns class name of the block.
21
+ */
22
+ getClassName() {
23
+ return "FlowGraphIsSoundPlayingBlock";
24
+ }
25
+ }
26
+ t("FlowGraphIsSoundPlayingBlock", r);
27
+ export {
28
+ r as FlowGraphIsSoundPlayingBlock
29
+ };
@@ -0,0 +1,95 @@
1
+ import { aO as A, T as F, aM as c, y, z as w, bf as j, bg as I, aK as _ } from "./index-CS3Icp_r.js";
2
+ import { F as N } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
3
+ const g = new RegExp(/\/\{(\w+)\}(?=\/|$)/g);
4
+ class O {
5
+ constructor(r, s) {
6
+ this.path = r, this.ownerBlock = s, this.templatedInputs = [];
7
+ let n = g.exec(r);
8
+ const o = /* @__PURE__ */ new Set();
9
+ for (; n; ) {
10
+ const [, e] = n;
11
+ if (o.has(e))
12
+ throw new Error("Duplicate template variable detected.");
13
+ o.add(e), this.templatedInputs.push(s.registerDataInput(e, A, new F(0))), n = g.exec(r);
14
+ }
15
+ }
16
+ /**
17
+ * Get the accessor for the path.
18
+ * @param pathConverter the path converter to use to convert the path to an object accessor.
19
+ * @param context the context to use.
20
+ * @returns the accessor for the path.
21
+ * @throws if the value for a templated input is invalid.
22
+ */
23
+ getAccessor(r, s) {
24
+ let n = this.path;
25
+ for (const o of this.templatedInputs) {
26
+ const e = o.getValue(s).value;
27
+ if (typeof e != "number" || e < 0)
28
+ throw new Error("Invalid value for templated input.");
29
+ n = n.replace(`{${o.name}}`, e.toString());
30
+ }
31
+ return r.convert(n);
32
+ }
33
+ }
34
+ class V extends N {
35
+ constructor(r) {
36
+ super(c, r), this.config = r, this.object = this.registerDataOutput("object", c), this.propertyName = this.registerDataOutput("propertyName", c), this.setterFunction = this.registerDataOutput("setFunction", c, this._setPropertyValue.bind(this)), this.getterFunction = this.registerDataOutput("getFunction", c, this._getPropertyValue.bind(this)), this.generateAnimationsFunction = this.registerDataOutput("generateAnimationsFunction", c, this._getInterpolationAnimationPropertyInfo.bind(this)), this.templateComponent = new O(r.jsonPointer, this);
37
+ }
38
+ _doOperation(r) {
39
+ const s = this.templateComponent.getAccessor(this.config.pathConverter, r), n = s.info.get(s.object), o = s.info.getTarget?.(s.object), e = s.info.getPropertyName?.[0](s.object);
40
+ if (o)
41
+ this.object.setValue(o, r), e && this.propertyName.setValue(e, r);
42
+ else
43
+ throw new Error("Object is undefined");
44
+ return n;
45
+ }
46
+ _setPropertyValue(r, s, n, o) {
47
+ const e = this.templateComponent.getAccessor(this.config.pathConverter, o), i = e.info.type;
48
+ i.startsWith("Color") && (n = C(n, i)), e.info.set?.(n, e.object);
49
+ }
50
+ _getPropertyValue(r, s, n) {
51
+ const o = this.templateComponent.getAccessor(this.config.pathConverter, n), e = o.info.type, i = o.info.get(o.object);
52
+ return e.startsWith("Color") ? D(i) : i;
53
+ }
54
+ _getInterpolationAnimationPropertyInfo(r, s, n) {
55
+ const o = this.templateComponent.getAccessor(this.config.pathConverter, n);
56
+ return (e, i, b, h) => {
57
+ const l = [], m = o.info.type;
58
+ return m.startsWith("Color") && (e = e.map((p) => ({
59
+ frame: p.frame,
60
+ value: C(p.value, m)
61
+ }))), o.info.interpolation?.forEach((p, f) => {
62
+ const d = o.info.getPropertyName?.[f](o.object) || "Animation-interpolation-" + f;
63
+ let u = e;
64
+ b !== p.type && (u = e.map((a) => ({
65
+ frame: a.frame,
66
+ value: p.getValue(void 0, a.value.asArray ? a.value.asArray() : [a.value], 0, 1)
67
+ })));
68
+ const P = p.buildAnimations(o.object, d, 60, u);
69
+ for (const a of P)
70
+ h && a.babylonAnimation.setEasingFunction(h), l.push(a.babylonAnimation);
71
+ }), l;
72
+ };
73
+ }
74
+ /**
75
+ * Gets the class name of this block
76
+ * @returns the class name
77
+ */
78
+ getClassName() {
79
+ return "FlowGraphJsonPointerParserBlock";
80
+ }
81
+ }
82
+ function C(t, r) {
83
+ return t.getClassName().startsWith("Color") ? t : r === "Color3" ? new y(t.x, t.y, t.z) : r === "Color4" ? new w(t.x, t.y, t.z, t.w) : t;
84
+ }
85
+ function D(t) {
86
+ if (t instanceof y)
87
+ return new j(t.r, t.g, t.b);
88
+ if (t instanceof w)
89
+ return new I(t.r, t.g, t.b, t.a);
90
+ throw new Error("Invalid color type");
91
+ }
92
+ _("FlowGraphJsonPointerParserBlock", V);
93
+ export {
94
+ V as FlowGraphJsonPointerParserBlock
95
+ };
@@ -0,0 +1,26 @@
1
+ import { aN as s, aK as a } from "./index-CS3Icp_r.js";
2
+ import { F as o } from "./flowGraphKeyboardEventBlock-C49fx3TC.js";
3
+ class n extends o {
4
+ /**
5
+ * Creates a new FlowGraphKeyDownEventBlock.
6
+ * @param config optional configuration
7
+ */
8
+ constructor(e) {
9
+ super(e), this.type = "KeyDown", this.isRepeat = this.registerDataOutput("isRepeat", s);
10
+ }
11
+ /** @internal */
12
+ _executeEvent(e, t) {
13
+ const r = t.event.repeat ?? !1;
14
+ return r && this.config?.ignoreRepeat ? !0 : (this.isRepeat.setValue(r, e), super._executeEvent(e, t));
15
+ }
16
+ /**
17
+ * @returns class name of the block.
18
+ */
19
+ getClassName() {
20
+ return "FlowGraphKeyDownEventBlock";
21
+ }
22
+ }
23
+ a("FlowGraphKeyDownEventBlock", n);
24
+ export {
25
+ n as FlowGraphKeyDownEventBlock
26
+ };
@@ -0,0 +1,21 @@
1
+ import { aK as o } from "./index-CS3Icp_r.js";
2
+ import { F as r } from "./flowGraphKeyboardEventBlock-C49fx3TC.js";
3
+ class t extends r {
4
+ /**
5
+ * Creates a new FlowGraphKeyUpEventBlock.
6
+ * @param config optional configuration
7
+ */
8
+ constructor(e) {
9
+ super(e), this.type = "KeyUp";
10
+ }
11
+ /**
12
+ * @returns class name of the block.
13
+ */
14
+ getClassName() {
15
+ return "FlowGraphKeyUpEventBlock";
16
+ }
17
+ }
18
+ o("FlowGraphKeyUpEventBlock", t);
19
+ export {
20
+ t as FlowGraphKeyUpEventBlock
21
+ };
@@ -0,0 +1,20 @@
1
+ import { Q as h, aU as a, aN as s, bq as u } from "./index-CS3Icp_r.js";
2
+ class o extends h {
3
+ constructor(e) {
4
+ super(e), this.key = this.registerDataInput("key", a), this.keyCode = this.registerDataOutput("keyCode", a), this.keyValue = this.registerDataOutput("keyValue", a), this.shiftKey = this.registerDataOutput("shiftKey", s), this.ctrlKey = this.registerDataOutput("ctrlKey", s), this.altKey = this.registerDataOutput("altKey", s), this.metaKey = this.registerDataOutput("metaKey", s), this.commandOrCtrl = this.registerDataOutput("commandOrCtrl", s);
5
+ }
6
+ /** @internal */
7
+ _executeEvent(e, r) {
8
+ const t = r.event, i = this.key.getValue(e);
9
+ return i && i !== t.code ? !0 : (this.keyCode.setValue(t.code, e), this.keyValue.setValue(t.key, e), this.shiftKey.setValue(t.shiftKey, e), this.ctrlKey.setValue(t.ctrlKey, e), this.altKey.setValue(t.altKey, e), this.metaKey.setValue(t.metaKey, e), this.commandOrCtrl.setValue(u ? t.metaKey : t.ctrlKey, e), this._execute(e), !this.config?.stopPropagation);
10
+ }
11
+ /** @internal */
12
+ _preparePendingTasks(e) {
13
+ }
14
+ /** @internal */
15
+ _cancelPendingTasks(e) {
16
+ }
17
+ }
18
+ export {
19
+ o as F
20
+ };