@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.
- package/.todo.md +13 -0
- package/README.md +122 -0
- package/dist/.gitkeep +0 -0
- package/dist/Adapters/aBB6700PMAdapter.d.ts +10 -0
- package/dist/Adapters/aBB6700PMAdapter.d.ts.map +1 -0
- package/dist/Controllers/createABB6700.d.ts +12 -0
- package/dist/Controllers/createABB6700.d.ts.map +1 -0
- package/dist/Controllers/getPose.d.ts +11 -0
- package/dist/Controllers/getPose.d.ts.map +1 -0
- package/dist/Controllers/setJointAngle.d.ts +12 -0
- package/dist/Controllers/setJointAngle.d.ts.map +1 -0
- package/dist/Controllers/setPose.d.ts +11 -0
- package/dist/Controllers/setPose.d.ts.map +1 -0
- package/dist/Entities/ABB6700Entity.d.ts +35 -0
- package/dist/Entities/ABB6700Entity.d.ts.map +1 -0
- package/dist/Entities/ABB6700Repo.d.ts +32 -0
- package/dist/Entities/ABB6700Repo.d.ts.map +1 -0
- package/dist/Factory/ABB6700FeatureFactory.d.ts +26 -0
- package/dist/Factory/ABB6700FeatureFactory.d.ts.map +1 -0
- package/dist/Mocks/MockABB6700PM.d.ts +11 -0
- package/dist/Mocks/MockABB6700PM.d.ts.map +1 -0
- package/dist/Mocks/MockSetJointAngleUC.d.ts +7 -0
- package/dist/Mocks/MockSetJointAngleUC.d.ts.map +1 -0
- package/dist/Mocks/MockSetPoseUC.d.ts +7 -0
- package/dist/Mocks/MockSetPoseUC.d.ts.map +1 -0
- package/dist/PMs/ABB6700PM.d.ts +32 -0
- package/dist/PMs/ABB6700PM.d.ts.map +1 -0
- package/dist/UCs/CalcStabilizerUC.d.ts +7 -0
- package/dist/UCs/CalcStabilizerUC.d.ts.map +1 -0
- package/dist/UCs/SetJointAngleUC.d.ts +15 -0
- package/dist/UCs/SetJointAngleUC.d.ts.map +1 -0
- package/dist/UCs/SetPoseUC.d.ts +22 -0
- package/dist/UCs/SetPoseUC.d.ts.map +1 -0
- package/dist/Views/ABB6700BabylonView.d.ts +27 -0
- package/dist/Views/ABB6700BabylonView.d.ts.map +1 -0
- package/dist/abb_6700.glb +0 -0
- package/dist/abstractAudioBus-CyBWsmuN.js +14 -0
- package/dist/animationGroup-BhNThqQe.js +1454 -0
- package/dist/basisTextureLoader-BT391BsV.js +310 -0
- package/dist/brdfTextureTools-DUyKBAXf.js +79 -0
- package/dist/bumpFragment-Dd-ojPA1.js +134 -0
- package/dist/bumpFragment-KE1_PuMl.js +287 -0
- package/dist/bumpVertex-BcdvVFVx.js +8 -0
- package/dist/bumpVertexDeclaration-B5Uvs-RS.js +8 -0
- package/dist/bumpVertexDeclaration-ixSg-yGI.js +8 -0
- package/dist/clipPlaneFragment-DJwQynjA.js +136 -0
- package/dist/clipPlaneVertex-D4Wk50XG.js +376 -0
- package/dist/clipPlaneVertex-eQ147Tn2.js +350 -0
- package/dist/component.config.d.ts +17 -0
- package/dist/component.config.d.ts.map +1 -0
- package/dist/ddsTextureLoader-DeoF3iGO.js +331 -0
- package/dist/default.fragment-DKnTR9nY.js +548 -0
- package/dist/default.fragment-rIGWrUS5.js +486 -0
- package/dist/default.vertex-Bt5y1VyA.js +212 -0
- package/dist/default.vertex-Dext1liJ.js +224 -0
- package/dist/defaultUboDeclaration-BwslQZX8.js +11 -0
- package/dist/defaultUboDeclaration-DSXACgip.js +9 -0
- package/dist/easing-BAt0SO-B.js +163 -0
- package/dist/envTextureLoader-CBiW_Q-U.js +40 -0
- package/dist/exrTextureLoader-5SC6PKIA.js +740 -0
- package/dist/flowGraphApplyForceBlock-6e8-wcaw.js +32 -0
- package/dist/flowGraphApplyImpulseBlock-B27EZQow.js +32 -0
- package/dist/flowGraphArrayIndexBlock-DIUn5e4i.js +31 -0
- package/dist/flowGraphBezierCurveEasingBlock-BJmiHk40.js +25 -0
- package/dist/flowGraphBinaryOperationBlock-Bj7TANCc.js +25 -0
- package/dist/flowGraphBranchBlock-7CRvIKWc.js +19 -0
- package/dist/flowGraphCachedOperationBlock-CP1ZiuIB.js +26 -0
- package/dist/flowGraphCancelDelayBlock-DqtgzBGm.js +20 -0
- package/dist/flowGraphCodeExecutionBlock-CaYXCGqo.js +23 -0
- package/dist/flowGraphConditionalDataBlock-DJ7evX8_.js +28 -0
- package/dist/flowGraphConsoleLogBlock-cMkpqLzO.js +68 -0
- package/dist/flowGraphConstantBlock-JWybwT0A.js +28 -0
- package/dist/flowGraphContextBlock-CFDXHcbn.js +19 -0
- package/dist/flowGraphCounterBlock-B0uPkgw9.js +24 -0
- package/dist/flowGraphDataSwitchBlock-B0GSifvJ.js +27 -0
- package/dist/flowGraphDebounceBlock-CSw8zKym.js +24 -0
- package/dist/flowGraphDebugBlock-DiSR6Ahn.js +65 -0
- package/dist/flowGraphDoNBlock-C-48oQ2H.js +24 -0
- package/dist/flowGraphEasingBlock-DKUaE7Rp.js +50 -0
- package/dist/flowGraphFlipFlopBlock-DX5BGhMV.js +20 -0
- package/dist/flowGraphForLoopBlock-Di-Qwg23.js +27 -0
- package/dist/flowGraphFunctionReferenceBlock-D8X5TFsO.js +20 -0
- package/dist/flowGraphGLTFDataProvider-C4j7nPQv.js +16 -0
- package/dist/flowGraphGetAngularVelocityBlock-Cq-yTQ4D.js +31 -0
- package/dist/flowGraphGetAssetBlock-B36eioor.js +21 -0
- package/dist/flowGraphGetLinearVelocityBlock-MdrV0eUD.js +31 -0
- package/dist/flowGraphGetPhysicsMassPropertiesBlock-wXDZP1wM.js +30 -0
- package/dist/flowGraphGetPropertyBlock-eP0badwf.js +46 -0
- package/dist/flowGraphGetSoundVolumeBlock-D3gXGHXa.js +29 -0
- package/dist/flowGraphGetVariableBlock-C7-qZAec.js +31 -0
- package/dist/flowGraphIndexOfBlock-CC5l9n9P.js +31 -0
- package/dist/flowGraphInterpolationBlock-B6922jzt.js +50 -0
- package/dist/flowGraphIsKeyPressedBlock-X_iuiUOX.js +31 -0
- package/dist/flowGraphIsSoundPlayingBlock-DONQX8N8.js +29 -0
- package/dist/flowGraphJsonPointerParserBlock-DBH_gN8I.js +95 -0
- package/dist/flowGraphKeyDownEventBlock-D5T1Uyfv.js +26 -0
- package/dist/flowGraphKeyUpEventBlock-BPY_Kgkm.js +21 -0
- package/dist/flowGraphKeyboardEventBlock-C49fx3TC.js +20 -0
- package/dist/flowGraphMathBlocks-CkvrN3VJ.js +864 -0
- package/dist/flowGraphMathCombineExtractBlocks-QSjGlnoz.js +248 -0
- package/dist/flowGraphMatrixMathBlocks-B3D7Cz9p.js +117 -0
- package/dist/flowGraphMeshPickEventBlock-BBTz-taa.js +35 -0
- package/dist/flowGraphMultiGateBlock-BhY1y5BG.js +50 -0
- package/dist/flowGraphPauseAnimationBlock-CHZZXMbg.js +19 -0
- package/dist/flowGraphPauseSoundBlock-B7hMmJ0c.js +31 -0
- package/dist/flowGraphPhysicsCollisionEventBlock-CxoPpT-q.js +56 -0
- package/dist/flowGraphPlayAnimationBlock-DVAvIFux.js +99 -0
- package/dist/flowGraphPlaySoundBlock-DjHGrqbC.js +32 -0
- package/dist/flowGraphPointerDownEventBlock-qI-H0JST.js +31 -0
- package/dist/flowGraphPointerMoveEventBlock-DAi4VUyy.js +31 -0
- package/dist/flowGraphPointerOutEventBlock-CFtj68aC.js +21 -0
- package/dist/flowGraphPointerOverEventBlock-VxdHhFuu.js +23 -0
- package/dist/flowGraphPointerUpEventBlock-DRR1f07q.js +31 -0
- package/dist/flowGraphReceiveCustomEventBlock-B3bwdB66.js +52 -0
- package/dist/flowGraphSceneReadyEventBlock-Dy6lDT3j.js +23 -0
- package/dist/flowGraphSceneTickEventBlock-Bl9BF_Xw.js +32 -0
- package/dist/flowGraphSendCustomEventBlock-BAR4PGFq.js +35 -0
- package/dist/flowGraphSequenceBlock-veqU32ZZ.js +32 -0
- package/dist/flowGraphSetAngularVelocityBlock-Dj9b-zu6.js +31 -0
- package/dist/flowGraphSetDelayBlock-CMjudtvk.js +131 -0
- package/dist/flowGraphSetLinearVelocityBlock-DVDhhJBd.js +31 -0
- package/dist/flowGraphSetPhysicsMotionTypeBlock-CL3cxNCO.js +36 -0
- package/dist/flowGraphSetPropertyBlock-D3sWL3Ss.js +47 -0
- package/dist/flowGraphSetSoundVolumeBlock-CxVk45yR.js +32 -0
- package/dist/flowGraphSetVariableBlock-D1oJiwLj.js +47 -0
- package/dist/flowGraphSoundEndedEventBlock-CubEwii0.js +47 -0
- package/dist/flowGraphStopAnimationBlock-B9inwIQx.js +48 -0
- package/dist/flowGraphStopSoundBlock-BijIX2jC.js +31 -0
- package/dist/flowGraphSwitchBlock-BMhPb4OX.js +54 -0
- package/dist/flowGraphThrottleBlock-C7vrnkb1.js +37 -0
- package/dist/flowGraphTransformCoordinatesSystemBlock-DoISqaUG.js +29 -0
- package/dist/flowGraphTypeToTypeBlocks-CSML6QWx.js +57 -0
- package/dist/flowGraphUnaryOperationBlock-B0Shf-lJ.js +24 -0
- package/dist/flowGraphVectorMathBlocks-DoTRR_E0.js +178 -0
- package/dist/flowGraphWaitAllBlock-BvmDMc24.js +54 -0
- package/dist/flowGraphWhileLoopBlock-BaIq4-K2.js +27 -0
- package/dist/geometry.fragment-Bsis3UG2.js +275 -0
- package/dist/geometry.vertex-DskQ5b8j.js +222 -0
- package/dist/harmonicsFunctions-CtNrRfir.js +193 -0
- package/dist/harmonicsFunctions-PEz6APC7.js +18 -0
- package/dist/hdrTextureLoader-D9rYxJ9q.js +112 -0
- package/dist/helperFunctions-Bt7Zfkrp.js +89 -0
- package/dist/helperFunctions-CPmRxd37.js +121 -0
- package/dist/iesTextureLoader-BGUFjVhI.js +93 -0
- package/dist/index-CS3Icp_r.js +67657 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/ktxTextureLoader-cUaGg9_L.js +459 -0
- package/dist/lightFragment-BRDibDKG.js +404 -0
- package/dist/lightFragment-DCqtGMp_.js +402 -0
- package/dist/logDepthDeclaration-Bwm-3KyB.js +16 -0
- package/dist/logDepthDeclaration-gUfeSnXX.js +20 -0
- package/dist/logDepthVertex-CKeuJ6ae.js +213 -0
- package/dist/logDepthVertex-CXkmZels.js +459 -0
- package/dist/mesh.vertexData.functions-Bc9lJlrU.js +74 -0
- package/dist/oitFragment-B8zuQigp.js +792 -0
- package/dist/oitFragment-DH3h3T6x.js +657 -0
- package/dist/openpbr.fragment-BglYS6LA.js +1405 -0
- package/dist/openpbr.fragment-DrOTZs4m.js +1553 -0
- package/dist/openpbr.vertex-B-PaLFOR.js +384 -0
- package/dist/openpbr.vertex-DMdFRTnX.js +268 -0
- package/dist/openpbrMaterial-HCU0aOca.js +2880 -0
- package/dist/openpbrMaterialLoadingAdapter-CWRAa-7S.js +1122 -0
- package/dist/openpbrTransmissionLayerData-CfDVObj5.js +352 -0
- package/dist/openpbrUboDeclaration-CA2pvSbt.js +9 -0
- package/dist/openpbrUboDeclaration-xU8VOaib.js +10 -0
- package/dist/pass.fragment-1mMP54bb.js +10 -0
- package/dist/pass.fragment-DzaUp_jk.js +10 -0
- package/dist/passCube.fragment-CQaXS7g3.js +29 -0
- package/dist/passCube.fragment-QJGPwAXI.js +29 -0
- package/dist/pbr.fragment-BnaAAGxb.js +2775 -0
- package/dist/pbr.fragment-CYZk_EGU.js +2619 -0
- package/dist/pbr.vertex-CyvdCw91.js +372 -0
- package/dist/pbr.vertex-DJMAkDxs.js +270 -0
- package/dist/pbrBRDFFunctions-EugoWm6O.js +175 -0
- package/dist/pbrDebug-Bk3sPoEG.js +719 -0
- package/dist/pbrDebug-Cdalzb1I.js +614 -0
- package/dist/pbrIBLFunctions-B0bVAXCF.js +47 -0
- package/dist/pbrIBLFunctions-C06z-ouZ.js +51 -0
- package/dist/pbrMaterial-C4FCKBZQ.js +1660 -0
- package/dist/pbrMaterialLoadingAdapter-BGHlS_ZN.js +1032 -0
- package/dist/pbrUboDeclaration-1lN5_-Bw.js +9 -0
- package/dist/pbrUboDeclaration-BJOUUOZ2.js +10 -0
- package/dist/procedural.vertex-CFPKczKj.js +14 -0
- package/dist/procedural.vertex-DUW7bYZt.js +13 -0
- package/dist/rgbdDecode.fragment-CEGgE4tL.js +8 -0
- package/dist/rgbdDecode.fragment-FT0wkgah.js +8 -0
- package/dist/rgbdEncode.fragment-CLnJJf6E.js +8 -0
- package/dist/rgbdEncode.fragment-CaAcMsY9.js +8 -0
- package/dist/sceneUboDeclaration-B6oxsfcj.js +8 -0
- package/dist/sceneUboDeclaration-JByfVKik.js +13 -0
- package/dist/setupABB6700InstanceFactory.d.ts +7 -0
- package/dist/setupABB6700InstanceFactory.d.ts.map +1 -0
- package/dist/studio.env +0 -0
- package/dist/textureProcessor.fragment-BYPw6SMQ.js +152 -0
- package/dist/textureProcessor.fragment-Ciw9-F3w.js +157 -0
- package/dist/textureTools-Cct_bGgp.js +40 -0
- package/dist/tgaTextureLoader-BJOIdnFr.js +198 -0
- package/dist/thinEngine-Bt9FW4dD.js +2425 -0
- package/dist/webAudioBus-BUzRHSxr.js +88 -0
- package/dist/webAudioMainBus-Dds1TgJG.js +49 -0
- package/package.json +49 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { S as r, aM as s, aW as a, aK as c } from "./index-CS3Icp_r.js";
|
|
2
|
+
class l extends r {
|
|
3
|
+
/**
|
|
4
|
+
* Constructs a new FlowGraphApplyForceBlock.
|
|
5
|
+
* @param config - optional configuration for the block
|
|
6
|
+
*/
|
|
7
|
+
constructor(t) {
|
|
8
|
+
super(t), this.body = this.registerDataInput("body", s), this.force = this.registerDataInput("force", a), this.location = this.registerDataInput("location", a);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_execute(t, h) {
|
|
14
|
+
const o = this.body.getValue(t);
|
|
15
|
+
if (!o) {
|
|
16
|
+
this._reportError(t, "No physics body provided"), this.out._activateSignal(t);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const e = this.force.getValue(t), i = this.location.getValue(t);
|
|
20
|
+
o.applyForce(e, i), this.out._activateSignal(t);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @returns class name of the block.
|
|
24
|
+
*/
|
|
25
|
+
getClassName() {
|
|
26
|
+
return "FlowGraphApplyForceBlock";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
c("FlowGraphApplyForceBlock", l);
|
|
30
|
+
export {
|
|
31
|
+
l as FlowGraphApplyForceBlock
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { S as l, aM as o, aW as i, aK as p } from "./index-CS3Icp_r.js";
|
|
2
|
+
class r extends l {
|
|
3
|
+
/**
|
|
4
|
+
* Constructs a new FlowGraphApplyImpulseBlock.
|
|
5
|
+
* @param config - optional configuration for the block
|
|
6
|
+
*/
|
|
7
|
+
constructor(s) {
|
|
8
|
+
super(s), this.body = this.registerDataInput("body", o), this.impulse = this.registerDataInput("impulse", i), this.location = this.registerDataInput("location", i);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_execute(s, c) {
|
|
14
|
+
const t = this.body.getValue(s);
|
|
15
|
+
if (!t) {
|
|
16
|
+
this._reportError(s, "No physics body provided"), this.out._activateSignal(s);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const a = this.impulse.getValue(s), e = this.location.getValue(s);
|
|
20
|
+
t.applyImpulse(a, e), this.out._activateSignal(s);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @returns class name of the block.
|
|
24
|
+
*/
|
|
25
|
+
getClassName() {
|
|
26
|
+
return "FlowGraphApplyImpulseBlock";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
p("FlowGraphApplyImpulseBlock", r);
|
|
30
|
+
export {
|
|
31
|
+
r as FlowGraphApplyImpulseBlock
|
|
32
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { O as t, aM as s, T as i, bT as l, aK as u } from "./index-CS3Icp_r.js";
|
|
2
|
+
class h extends t {
|
|
3
|
+
/**
|
|
4
|
+
* Construct a FlowGraphArrayIndexBlock.
|
|
5
|
+
* @param config construction parameters
|
|
6
|
+
*/
|
|
7
|
+
constructor(e) {
|
|
8
|
+
super(e), this.config = e, this.array = this.registerDataInput("array", s), this.index = this.registerDataInput("index", s, new i(-1)), this.value = this.registerDataOutput("value", s);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_updateOutputs(e) {
|
|
14
|
+
const a = this.array.getValue(e), r = l(this.index.getValue(e));
|
|
15
|
+
a && r >= 0 && r < a.length ? this.value.setValue(a[r], e) : this.value.setValue(null, 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 "FlowGraphArrayIndexBlock";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
u("FlowGraphArrayIndexBlock", h);
|
|
29
|
+
export {
|
|
30
|
+
h as FlowGraphArrayIndexBlock
|
|
31
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { a as r } from "./easing-BAt0SO-B.js";
|
|
2
|
+
import { O as u, aS as c, aV as a, aM as h, aK as g } from "./index-CS3Icp_r.js";
|
|
3
|
+
class l extends u {
|
|
4
|
+
constructor(t) {
|
|
5
|
+
super(t), this.config = t, this._easingFunctions = {}, this.mode = this.registerDataInput("mode", c, 0), this.controlPoint1 = this.registerDataInput("controlPoint1", a), this.controlPoint2 = this.registerDataInput("controlPoint2", a), this.easingFunction = this.registerDataOutput("easingFunction", h);
|
|
6
|
+
}
|
|
7
|
+
_updateOutputs(t) {
|
|
8
|
+
const e = this.mode.getValue(t), s = this.controlPoint1.getValue(t), i = this.controlPoint2.getValue(t);
|
|
9
|
+
if (e === void 0)
|
|
10
|
+
return;
|
|
11
|
+
const n = `${e}-${s.x}-${s.y}-${i.x}-${i.y}`;
|
|
12
|
+
if (!this._easingFunctions[n]) {
|
|
13
|
+
const o = new r(s.x, s.y, i.x, i.y);
|
|
14
|
+
o.setEasingMode(e), this._easingFunctions[n] = o;
|
|
15
|
+
}
|
|
16
|
+
this.easingFunction.setValue(this._easingFunctions[n], t);
|
|
17
|
+
}
|
|
18
|
+
getClassName() {
|
|
19
|
+
return "FlowGraphBezierCurveEasing";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
g("FlowGraphBezierCurveEasing", l);
|
|
23
|
+
export {
|
|
24
|
+
l as FlowGraphBezierCurveEasingBlock
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { F as o } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
|
|
2
|
+
class p extends o {
|
|
3
|
+
constructor(t, a, s, e, r, i) {
|
|
4
|
+
super(s, i), this._operation = e, this._className = r, this.a = this.registerDataInput("a", t), this.b = this.registerDataInput("b", a);
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* the operation performed by this block
|
|
8
|
+
* @param context the graph context
|
|
9
|
+
* @returns the result of the operation
|
|
10
|
+
*/
|
|
11
|
+
_doOperation(t) {
|
|
12
|
+
const a = this.a.getValue(t), s = this.b.getValue(t);
|
|
13
|
+
return this._operation(a, s);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Gets the class name of this block
|
|
17
|
+
* @returns the class name
|
|
18
|
+
*/
|
|
19
|
+
getClassName() {
|
|
20
|
+
return this._className;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
p as F
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { R as a, aN as e, aK as i } from "./index-CS3Icp_r.js";
|
|
2
|
+
class s extends a {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
super(t), this.condition = this.registerDataInput("condition", e), this.onTrue = this._registerSignalOutput("onTrue"), this.onFalse = this._registerSignalOutput("onFalse");
|
|
5
|
+
}
|
|
6
|
+
_execute(t) {
|
|
7
|
+
this.condition.getValue(t) ? this.onTrue._activateSignal(t) : this.onFalse._activateSignal(t);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @returns class name of the block.
|
|
11
|
+
*/
|
|
12
|
+
getClassName() {
|
|
13
|
+
return "FlowGraphBranchBlock";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
i("FlowGraphBranchBlock", s);
|
|
17
|
+
export {
|
|
18
|
+
s as FlowGraphBranchBlock
|
|
19
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { O as u, aN as h } from "./index-CS3Icp_r.js";
|
|
2
|
+
const l = "cachedOperationValue", t = "cachedExecutionId";
|
|
3
|
+
class c extends u {
|
|
4
|
+
constructor(e, i) {
|
|
5
|
+
super(i), this.value = this.registerDataOutput("value", e), this.isValid = this.registerDataOutput("isValid", h);
|
|
6
|
+
}
|
|
7
|
+
_updateOutputs(e) {
|
|
8
|
+
const i = e._getExecutionVariable(this, t, -1), s = e._getExecutionVariable(this, l, null);
|
|
9
|
+
if (s != null && i === e.executionId)
|
|
10
|
+
this.isValid.setValue(!0, e), this.value.setValue(s, e);
|
|
11
|
+
else
|
|
12
|
+
try {
|
|
13
|
+
const a = this._doOperation(e);
|
|
14
|
+
if (a == null) {
|
|
15
|
+
this.isValid.setValue(!1, e);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
e._setExecutionVariable(this, l, a), e._setExecutionVariable(this, t, e.executionId), this.value.setValue(a, e), this.isValid.setValue(!0, e);
|
|
19
|
+
} catch {
|
|
20
|
+
this.isValid.setValue(!1, e);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
c as F
|
|
26
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { S as t, aO as i, bT as s, aK as r } from "./index-CS3Icp_r.js";
|
|
2
|
+
class n extends t {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(e), this.delayIndex = this.registerDataInput("delayIndex", i);
|
|
5
|
+
}
|
|
6
|
+
_execute(e, c) {
|
|
7
|
+
const a = s(this.delayIndex.getValue(e));
|
|
8
|
+
if (a <= 0 || isNaN(a) || !isFinite(a))
|
|
9
|
+
return this._reportError(e, "Invalid delay index");
|
|
10
|
+
const l = e._getGlobalContextVariable("pendingDelays", [])[a];
|
|
11
|
+
l && l.dispose(), this.out._activateSignal(e);
|
|
12
|
+
}
|
|
13
|
+
getClassName() {
|
|
14
|
+
return "FlowGraphCancelDelayBlock";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
r("FlowGraphCancelDelayBlock", n);
|
|
18
|
+
export {
|
|
19
|
+
n as FlowGraphCancelDelayBlock
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { O as a, aM as e } from "./index-CS3Icp_r.js";
|
|
2
|
+
class o extends a {
|
|
3
|
+
/**
|
|
4
|
+
* Construct a FlowGraphCodeExecutionBlock.
|
|
5
|
+
* @param config construction parameters
|
|
6
|
+
*/
|
|
7
|
+
constructor(t) {
|
|
8
|
+
super(t), this.config = t, this.executionFunction = this.registerDataInput("function", e), this.value = this.registerDataInput("value", e), this.result = this.registerDataOutput("result", e);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_updateOutputs(t) {
|
|
14
|
+
const s = this.executionFunction.getValue(t), u = this.value.getValue(t);
|
|
15
|
+
s && this.result.setValue(s(u, t), t);
|
|
16
|
+
}
|
|
17
|
+
getClassName() {
|
|
18
|
+
return "FlowGraphCodeExecutionBlock";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
o as FlowGraphCodeExecutionBlock
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { O as s, aN as i, aM as a, aK as e } from "./index-CS3Icp_r.js";
|
|
2
|
+
class n extends s {
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the block
|
|
5
|
+
* @param config optional configuration for this block
|
|
6
|
+
*/
|
|
7
|
+
constructor(t) {
|
|
8
|
+
super(t), this.condition = this.registerDataInput("condition", i), this.onTrue = this.registerDataInput("onTrue", a), this.onFalse = this.registerDataInput("onFalse", a), this.output = this.registerDataOutput("output", a);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_updateOutputs(t) {
|
|
14
|
+
const o = this.condition.getValue(t);
|
|
15
|
+
this.output.setValue(o ? this.onTrue.getValue(t) : this.onFalse.getValue(t), t);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Gets the class name of this block
|
|
19
|
+
* @returns the class name
|
|
20
|
+
*/
|
|
21
|
+
getClassName() {
|
|
22
|
+
return "FlowGraphConditionalBlock";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
e("FlowGraphConditionalBlock", n);
|
|
26
|
+
export {
|
|
27
|
+
n as FlowGraphConditionalDataBlock
|
|
28
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { S as c, aM as n, aU as h, a7 as g, aK as u } from "./index-CS3Icp_r.js";
|
|
2
|
+
class p extends c {
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new console log block.
|
|
5
|
+
* @param config optional configuration
|
|
6
|
+
*/
|
|
7
|
+
constructor(e) {
|
|
8
|
+
if (super(e), this.message = this.registerDataInput("message", n), this.logType = this.registerDataInput("logType", h, "log"), e?.messageTemplate) {
|
|
9
|
+
const t = this._getTemplateMatches(e.messageTemplate);
|
|
10
|
+
for (const s of t)
|
|
11
|
+
this.registerDataInput(s, n);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
_execute(e) {
|
|
18
|
+
const t = this.logType.getValue(e), s = this._getMessageValue(e);
|
|
19
|
+
t === "warn" ? g.Warn(s) : t === "error" ? g.Error(s) : g.Log(s), this.out._activateSignal(e);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @returns class name of the block.
|
|
23
|
+
*/
|
|
24
|
+
getClassName() {
|
|
25
|
+
return "FlowGraphConsoleLogBlock";
|
|
26
|
+
}
|
|
27
|
+
_serializeValue(e) {
|
|
28
|
+
if (e == null)
|
|
29
|
+
return String(e);
|
|
30
|
+
if (typeof e == "object") {
|
|
31
|
+
const t = e.toString();
|
|
32
|
+
if (t === "[object Object]")
|
|
33
|
+
try {
|
|
34
|
+
return JSON.stringify(e);
|
|
35
|
+
} catch {
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
}
|
|
40
|
+
return String(e);
|
|
41
|
+
}
|
|
42
|
+
_getMessageValue(e) {
|
|
43
|
+
if (this.config?.messageTemplate) {
|
|
44
|
+
let t = this.config.messageTemplate;
|
|
45
|
+
const s = this._getTemplateMatches(t), a = this.message.getValue(e), i = a != null && typeof a == "object" ? a : null;
|
|
46
|
+
for (const r of s) {
|
|
47
|
+
let l;
|
|
48
|
+
if (i !== null && r in i ? l = i[r] : l = this.getDataInput(r)?.getValue(e), l !== void 0) {
|
|
49
|
+
const o = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
50
|
+
t = t.replace(new RegExp(`\\{${o}\\}`, "g"), this._serializeValue(l));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
} else
|
|
55
|
+
return this.message.getValue(e);
|
|
56
|
+
}
|
|
57
|
+
_getTemplateMatches(e) {
|
|
58
|
+
const t = /\{([^}]+)\}/g, s = [];
|
|
59
|
+
let a;
|
|
60
|
+
for (; (a = t.exec(e)) !== null; )
|
|
61
|
+
s.push(a[1]);
|
|
62
|
+
return s;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
u("FlowGraphConsoleLogBlock", p);
|
|
66
|
+
export {
|
|
67
|
+
p as FlowGraphConsoleLogBlock
|
|
68
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { O as s, bX as e, bQ as u, aK as o } from "./index-CS3Icp_r.js";
|
|
2
|
+
class l extends s {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
super(t), this.config = t, this.output = this.registerDataOutput("output", e(t.value));
|
|
5
|
+
}
|
|
6
|
+
_updateOutputs(t) {
|
|
7
|
+
this.output.setValue(this.config.value, t);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Gets the class name of this block
|
|
11
|
+
* @returns the class name
|
|
12
|
+
*/
|
|
13
|
+
getClassName() {
|
|
14
|
+
return "FlowGraphConstantBlock";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Serializes this block
|
|
18
|
+
* @param serializationObject the object to serialize to
|
|
19
|
+
* @param valueSerializeFunction the function to use to serialize the value
|
|
20
|
+
*/
|
|
21
|
+
serialize(t = {}, a = u) {
|
|
22
|
+
super.serialize(t), a("value", this.config.value, t.config);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
o("FlowGraphConstantBlock", l);
|
|
26
|
+
export {
|
|
27
|
+
l as FlowGraphConstantBlock
|
|
28
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { O as s, aM as a, aS as t, aK as r } from "./index-CS3Icp_r.js";
|
|
2
|
+
class i extends s {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(e), this.userVariables = this.registerDataOutput("userVariables", a), this.executionId = this.registerDataOutput("executionId", t);
|
|
5
|
+
}
|
|
6
|
+
_updateOutputs(e) {
|
|
7
|
+
this.userVariables.setValue(e.userVariables, e), this.executionId.setValue(e.executionId, e);
|
|
8
|
+
}
|
|
9
|
+
serialize(e) {
|
|
10
|
+
super.serialize(e);
|
|
11
|
+
}
|
|
12
|
+
getClassName() {
|
|
13
|
+
return "FlowGraphContextBlock";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
r("FlowGraphContextBlock", i);
|
|
17
|
+
export {
|
|
18
|
+
i as FlowGraphContextBlock
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { S as a, aS as i, aK as r } from "./index-CS3Icp_r.js";
|
|
2
|
+
class u extends a {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
super(t), this.count = this.registerDataOutput("count", i), this.reset = this._registerSignalInput("reset");
|
|
5
|
+
}
|
|
6
|
+
_execute(t, s) {
|
|
7
|
+
if (s === this.reset) {
|
|
8
|
+
t._setExecutionVariable(this, "count", 0), this.count.setValue(0, t);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const e = t._getExecutionVariable(this, "count", 0) + 1;
|
|
12
|
+
t._setExecutionVariable(this, "count", e), this.count.setValue(e, t), this.out._activateSignal(t);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @returns class name of the block.
|
|
16
|
+
*/
|
|
17
|
+
getClassName() {
|
|
18
|
+
return "FlowGraphCallCounterBlock";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
r("FlowGraphCallCounterBlock", u);
|
|
22
|
+
export {
|
|
23
|
+
u as FlowGraphCallCounterBlock
|
|
24
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { O as u, aM as a, bT as i, bZ as r, aK as l } from "./index-CS3Icp_r.js";
|
|
2
|
+
class h extends u {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(e), this.config = e, this._inputCases = /* @__PURE__ */ new Map(), this.case = this.registerDataInput("case", a, NaN), this.default = this.registerDataInput("default", a), this.value = this.registerDataOutput("value", a);
|
|
5
|
+
const s = this.config.cases || [];
|
|
6
|
+
for (let t of s) {
|
|
7
|
+
if (t = i(t), this.config.treatCasesAsIntegers && (t = t | 0, this._inputCases.has(t)))
|
|
8
|
+
return;
|
|
9
|
+
this._inputCases.set(t, this.registerDataInput(`in_${t}`, a));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
_updateOutputs(e) {
|
|
13
|
+
const s = this.case.getValue(e);
|
|
14
|
+
let t;
|
|
15
|
+
r(s) && (t = this._getOutputValueForCase(i(s), e)), t || (t = this.default.getValue(e)), this.value.setValue(t, e);
|
|
16
|
+
}
|
|
17
|
+
_getOutputValueForCase(e, s) {
|
|
18
|
+
return this._inputCases.get(e)?.getValue(s);
|
|
19
|
+
}
|
|
20
|
+
getClassName() {
|
|
21
|
+
return "FlowGraphDataSwitchBlock";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
l("FlowGraphDataSwitchBlock", h);
|
|
25
|
+
export {
|
|
26
|
+
h as FlowGraphDataSwitchBlock
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { S as n, aS as u, aK as o } from "./index-CS3Icp_r.js";
|
|
2
|
+
class i extends n {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
super(t), this.count = this.registerDataInput("count", u), this.reset = this._registerSignalInput("reset"), this.currentCount = this.registerDataOutput("currentCount", u);
|
|
5
|
+
}
|
|
6
|
+
_execute(t, s) {
|
|
7
|
+
if (s === this.reset) {
|
|
8
|
+
t._setExecutionVariable(this, "debounceCount", 0);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const r = this.count.getValue(t), e = t._getExecutionVariable(this, "debounceCount", 0) + 1;
|
|
12
|
+
this.currentCount.setValue(e, t), t._setExecutionVariable(this, "debounceCount", e), e >= r && (this.out._activateSignal(t), t._setExecutionVariable(this, "debounceCount", 0));
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @returns class name of the block.
|
|
16
|
+
*/
|
|
17
|
+
getClassName() {
|
|
18
|
+
return "FlowGraphDebounceBlock";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
o("FlowGraphDebounceBlock", i);
|
|
22
|
+
export {
|
|
23
|
+
i as FlowGraphDebounceBlock
|
|
24
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { O as r, aM as n, aK as s } from "./index-CS3Icp_r.js";
|
|
2
|
+
const g = 100;
|
|
3
|
+
class o extends r {
|
|
4
|
+
constructor(t) {
|
|
5
|
+
super(t), this.log = [], this._isDebug = !0, this.input = this.registerDataInput("input", n), this.output = this.registerDataOutput("output", n);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
_updateOutputs(t) {
|
|
11
|
+
const i = this.input.getValue(t);
|
|
12
|
+
this.output.setValue(i, t), this._logValue(i);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Format and store a value in the log.
|
|
16
|
+
* @param value
|
|
17
|
+
*/
|
|
18
|
+
_logValue(t) {
|
|
19
|
+
if (t == null)
|
|
20
|
+
this.log.push(["null", "null"]);
|
|
21
|
+
else {
|
|
22
|
+
const i = o._FormatValue(t);
|
|
23
|
+
this.log.push([i, String(t)]);
|
|
24
|
+
}
|
|
25
|
+
this.log.length > g && this.log.shift();
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Type-aware value formatting.
|
|
29
|
+
* @param value the value to format
|
|
30
|
+
* @returns a human-readable string
|
|
31
|
+
*/
|
|
32
|
+
static _FormatValue(t) {
|
|
33
|
+
if (typeof t == "number")
|
|
34
|
+
return Number.isInteger(t) ? t.toString() : t.toFixed(4);
|
|
35
|
+
if (typeof t == "boolean" || typeof t == "string")
|
|
36
|
+
return String(t);
|
|
37
|
+
if (t && typeof t == "object") {
|
|
38
|
+
if ("w" in t && "x" in t && "y" in t && "z" in t)
|
|
39
|
+
return `(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)}, ${t.w.toFixed(3)})`;
|
|
40
|
+
if ("z" in t && "x" in t && "y" in t)
|
|
41
|
+
return `(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)})`;
|
|
42
|
+
if ("x" in t && "y" in t)
|
|
43
|
+
return `(${t.x.toFixed(3)}, ${t.y.toFixed(3)})`;
|
|
44
|
+
if ("r" in t && "g" in t && "b" in t) {
|
|
45
|
+
const i = "a" in t ? `, ${t.a.toFixed(3)}` : "";
|
|
46
|
+
return `(${t.r.toFixed(3)}, ${t.g.toFixed(3)}, ${t.b.toFixed(3)}${i})`;
|
|
47
|
+
}
|
|
48
|
+
if (typeof t.toString == "function" && t.toString !== Object.prototype.toString)
|
|
49
|
+
return t.toString();
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
const i = JSON.stringify(t);
|
|
53
|
+
return i.length > 64 ? i.substring(0, 61) + "..." : i;
|
|
54
|
+
} catch {
|
|
55
|
+
return String(t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
getClassName() {
|
|
59
|
+
return "FlowGraphDebugBlock";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
s("FlowGraphDebugBlock", o);
|
|
63
|
+
export {
|
|
64
|
+
o as FlowGraphDebugBlock
|
|
65
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { S as u, T as e, aO as a, aK as o } from "./index-CS3Icp_r.js";
|
|
2
|
+
class r extends u {
|
|
3
|
+
constructor(t = {}) {
|
|
4
|
+
super(t), this.config = t, this.config.startIndex = t.startIndex ?? new e(0), this.reset = this._registerSignalInput("reset"), this.maxExecutions = this.registerDataInput("maxExecutions", a), this.executionCount = this.registerDataOutput("executionCount", a, new e(0));
|
|
5
|
+
}
|
|
6
|
+
_execute(t, i) {
|
|
7
|
+
if (i === this.reset)
|
|
8
|
+
this.executionCount.setValue(this.config.startIndex, t);
|
|
9
|
+
else {
|
|
10
|
+
const s = this.executionCount.getValue(t);
|
|
11
|
+
s.value < this.maxExecutions.getValue(t).value && (this.executionCount.setValue(new e(s.value + 1), t), this.out._activateSignal(t));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @returns class name of the block.
|
|
16
|
+
*/
|
|
17
|
+
getClassName() {
|
|
18
|
+
return "FlowGraphDoNBlock";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
o("FlowGraphDoNBlock", r);
|
|
22
|
+
export {
|
|
23
|
+
r as FlowGraphDoNBlock
|
|
24
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { d as h, E, c as o, b as d, B as w, C as B, a as n } from "./easing-BAt0SO-B.js";
|
|
2
|
+
import { O as C, aM as i, aS as m, aK as f } from "./index-CS3Icp_r.js";
|
|
3
|
+
var l;
|
|
4
|
+
(function(e) {
|
|
5
|
+
e[e.CircleEase = 0] = "CircleEase", e[e.BackEase = 1] = "BackEase", e[e.BounceEase = 2] = "BounceEase", e[e.CubicEase = 3] = "CubicEase", e[e.ElasticEase = 4] = "ElasticEase", e[e.ExponentialEase = 5] = "ExponentialEase", e[e.PowerEase = 6] = "PowerEase", e[e.QuadraticEase = 7] = "QuadraticEase", e[e.QuarticEase = 8] = "QuarticEase", e[e.QuinticEase = 9] = "QuinticEase", e[e.SineEase = 10] = "SineEase", e[e.BezierCurveEase = 11] = "BezierCurveEase";
|
|
6
|
+
})(l || (l = {}));
|
|
7
|
+
function k(e, ...s) {
|
|
8
|
+
switch (e) {
|
|
9
|
+
case 11:
|
|
10
|
+
return new n(...s);
|
|
11
|
+
case 0:
|
|
12
|
+
return new B();
|
|
13
|
+
case 1:
|
|
14
|
+
return new w(...s);
|
|
15
|
+
case 2:
|
|
16
|
+
return new d(...s);
|
|
17
|
+
case 3:
|
|
18
|
+
return new o();
|
|
19
|
+
case 4:
|
|
20
|
+
return new E(...s);
|
|
21
|
+
case 5:
|
|
22
|
+
return new h(...s);
|
|
23
|
+
default:
|
|
24
|
+
throw new Error("Easing type not yet implemented");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class Q extends C {
|
|
28
|
+
constructor(s) {
|
|
29
|
+
super(s), this.config = s, this._easingFunctions = {}, this.type = this.registerDataInput("type", i, 11), this.mode = this.registerDataInput("mode", m, 0), this.parameters = this.registerDataInput("parameters", i, [1, 0, 0, 1]), this.easingFunction = this.registerDataOutput("easingFunction", i);
|
|
30
|
+
}
|
|
31
|
+
_updateOutputs(s) {
|
|
32
|
+
const a = this.type.getValue(s), t = this.mode.getValue(s), u = this.parameters.getValue(s);
|
|
33
|
+
if (a === void 0 || t === void 0)
|
|
34
|
+
return;
|
|
35
|
+
const r = `${a}-${t}-${u.join("-")}`;
|
|
36
|
+
if (!this._easingFunctions[r]) {
|
|
37
|
+
const c = k(a, ...u);
|
|
38
|
+
c.setEasingMode(t), this._easingFunctions[r] = c;
|
|
39
|
+
}
|
|
40
|
+
this.easingFunction.setValue(this._easingFunctions[r], s);
|
|
41
|
+
}
|
|
42
|
+
getClassName() {
|
|
43
|
+
return "FlowGraphEasingBlock";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
f("FlowGraphEasingBlock", Q);
|
|
47
|
+
export {
|
|
48
|
+
l as EasingFunctionType,
|
|
49
|
+
Q as FlowGraphEasingBlock
|
|
50
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { R as l, aN as t, aK as i } from "./index-CS3Icp_r.js";
|
|
2
|
+
class s extends l {
|
|
3
|
+
constructor(a) {
|
|
4
|
+
super(a), this.onOn = this._registerSignalOutput("onOn"), this.onOff = this._registerSignalOutput("onOff"), this.value = this.registerDataOutput("value", t);
|
|
5
|
+
}
|
|
6
|
+
_execute(a, r) {
|
|
7
|
+
let e = a._getExecutionVariable(this, "value", typeof this.config?.startValue == "boolean" ? !this.config.startValue : !1);
|
|
8
|
+
e = !e, a._setExecutionVariable(this, "value", e), this.value.setValue(e, a), e ? this.onOn._activateSignal(a) : this.onOff._activateSignal(a);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @returns class name of the block.
|
|
12
|
+
*/
|
|
13
|
+
getClassName() {
|
|
14
|
+
return "FlowGraphFlipFlopBlock";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
i("FlowGraphFlipFlopBlock", s);
|
|
18
|
+
export {
|
|
19
|
+
s as FlowGraphFlipFlopBlock
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { S as h, aM as l, aS as u, aO as p, T as n, bT as t, aK as d } from "./index-CS3Icp_r.js";
|
|
2
|
+
class s extends h {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(e), this.startIndex = this.registerDataInput("startIndex", l, 0), this.endIndex = this.registerDataInput("endIndex", l), this.step = this.registerDataInput("step", u, 1), this.index = this.registerDataOutput("index", p, new n(t(e?.initialIndex ?? 0))), this.executionFlow = this._registerSignalOutput("executionFlow"), this.completed = this._registerSignalOutput("completed"), this._unregisterSignalOutput("out");
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
_execute(e) {
|
|
10
|
+
const o = t(this.startIndex.getValue(e)), a = this.step.getValue(e);
|
|
11
|
+
let r = t(this.endIndex.getValue(e));
|
|
12
|
+
for (let i = o; i < r && (this.index.setValue(new n(i), e), this.executionFlow._activateSignal(e), r = t(this.endIndex.getValue(e)), !(i > s.MaxLoopIterations * a)); i += a)
|
|
13
|
+
;
|
|
14
|
+
this.config?.incrementIndexWhenLoopDone && this.index.setValue(new n(t(this.index.getValue(e)) + a), e), this.completed._activateSignal(e);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @returns class name of the block.
|
|
18
|
+
*/
|
|
19
|
+
getClassName() {
|
|
20
|
+
return "FlowGraphForLoopBlock";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
s.MaxLoopIterations = 1e3;
|
|
24
|
+
d("FlowGraphForLoopBlock", s);
|
|
25
|
+
export {
|
|
26
|
+
s as FlowGraphForLoopBlock
|
|
27
|
+
};
|