@p100-web/core 100.2.29 → 100.2.31
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/dist/GameContext.d.ts +1 -1
- package/dist/GameContext.d.ts.map +1 -1
- package/dist/GameContext.js +66 -9
- package/dist/GameContext.js.map +1 -1
- package/dist/IDBValue.d.ts +1 -2
- package/dist/IDBValue.d.ts.map +1 -1
- package/dist/PEnums.d.ts +3 -2
- package/dist/PEnums.d.ts.map +1 -1
- package/dist/PEnums.js +2 -17
- package/dist/PEnums.js.map +1 -1
- package/dist/PValue.d.ts +18 -1
- package/dist/PValue.d.ts.map +1 -1
- package/dist/PValue.js +59 -14
- package/dist/PValue.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/pcomponents/PBatchMoveAnimation.d.ts +28 -0
- package/dist/pcomponents/PBatchMoveAnimation.d.ts.map +1 -0
- package/dist/pcomponents/PBatchMoveAnimation.js +86 -0
- package/dist/pcomponents/PBatchMoveAnimation.js.map +1 -0
- package/dist/pcomponents/PBatchVisibility.d.ts +17 -0
- package/dist/pcomponents/PBatchVisibility.d.ts.map +1 -0
- package/dist/pcomponents/PBatchVisibility.js +37 -0
- package/dist/pcomponents/PBatchVisibility.js.map +1 -0
- package/dist/pcomponents/PModelGLTF.d.ts +4 -0
- package/dist/pcomponents/PModelGLTF.d.ts.map +1 -1
- package/dist/pcomponents/PModelGLTF.js +10 -0
- package/dist/pcomponents/PModelGLTF.js.map +1 -1
- package/dist/pcomponents/PSceneContainer.d.ts +13 -1
- package/dist/pcomponents/PSceneContainer.d.ts.map +1 -1
- package/dist/pcomponents/PSceneContainer.js +64 -11
- package/dist/pcomponents/PSceneContainer.js.map +1 -1
- package/dist/pcomponents/PVisibility.d.ts +1 -1
- package/dist/pcomponents/PVisibility.d.ts.map +1 -1
- package/dist/pcomponents/PVisibility.js.map +1 -1
- package/dist/plogics/PLArray.d.ts +5 -27
- package/dist/plogics/PLArray.d.ts.map +1 -1
- package/dist/plogics/PLArray.js +10 -78
- package/dist/plogics/PLArray.js.map +1 -1
- package/dist/plogics/PLArrayItem.d.ts +42 -0
- package/dist/plogics/PLArrayItem.d.ts.map +1 -0
- package/dist/plogics/PLArrayItem.js +106 -0
- package/dist/plogics/PLArrayItem.js.map +1 -0
- package/dist/plogics/PLBranch.d.ts +2 -1
- package/dist/plogics/PLBranch.d.ts.map +1 -1
- package/dist/plogics/PLBranch.js +2 -1
- package/dist/plogics/PLBranch.js.map +1 -1
- package/package.json +29 -29
|
@@ -1,47 +1,25 @@
|
|
|
1
|
-
import GameContext from "../GameContext";
|
|
2
1
|
import { IDBLogic } from "../IDBLogic";
|
|
3
2
|
import { DataType } from "../PEnums";
|
|
4
3
|
import PLogic from "../PLogic";
|
|
5
|
-
import PInEventPort, { IDBInEventPort } from "../ports/PInEventPort";
|
|
6
4
|
import PInValuePort, { IDBInValuePort } from "../ports/PInValuePort";
|
|
7
|
-
import
|
|
8
|
-
import POutValuePort, { IDBOutValuePort } from "../ports/POutValuePort";
|
|
5
|
+
import POutValuePort from "../ports/POutValuePort";
|
|
9
6
|
interface IDBLArray extends IDBLogic {
|
|
10
7
|
numPorts: number;
|
|
11
8
|
dataType: DataType;
|
|
12
|
-
onEvent: boolean;
|
|
13
|
-
initialIndex: number;
|
|
14
|
-
invalue_index?: IDBInValuePort;
|
|
15
9
|
invalues_values: IDBInValuePort[];
|
|
16
|
-
outvalue_currentValue?: IDBOutValuePort;
|
|
17
|
-
outvalue_currentIndex?: IDBOutValuePort;
|
|
18
|
-
inport_inEvent?: IDBInEventPort;
|
|
19
|
-
outport_outEvent?: IDBOutEventPort;
|
|
20
10
|
}
|
|
21
11
|
export default class PLArray extends PLogic {
|
|
22
12
|
numPorts: number;
|
|
23
13
|
dataType: DataType;
|
|
24
|
-
onEvent: boolean;
|
|
25
|
-
initialIndex: number;
|
|
26
|
-
private _currentIndex;
|
|
27
|
-
invalue_index: PInValuePort | null;
|
|
28
14
|
invalues_values: PInValuePort[];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
inport_inEvent: PInEventPort | null;
|
|
32
|
-
outport_outEvent: POutEventPort | null;
|
|
15
|
+
outvalue_size: POutValuePort;
|
|
16
|
+
outvalue_array: POutValuePort;
|
|
33
17
|
constructor(db: IDBLogic);
|
|
34
18
|
toDB(): IDBLArray;
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
private getIndexValue;
|
|
19
|
+
private getSize;
|
|
20
|
+
private getArray;
|
|
38
21
|
editor_onChangeDataType(dataType: DataType): void;
|
|
39
22
|
addInValuePorts(count: number, dbItem: IDBLArray | null): void;
|
|
40
|
-
addIndexInValuePort(dbItem: IDBLArray | null): void;
|
|
41
|
-
addEventPorts(dbItem: IDBLArray | null): void;
|
|
42
|
-
editor_removeInValuePort(context: GameContext, portId: number): PInValuePort | null;
|
|
43
|
-
editor_removeInEventPort(context: GameContext, portId: number): PInEventPort | null;
|
|
44
|
-
editor_removeOutEventPort(context: GameContext, portId: number): POutEventPort | null;
|
|
45
23
|
}
|
|
46
24
|
export {};
|
|
47
25
|
//# sourceMappingURL=PLArray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLArray.d.ts","sourceRoot":"","sources":["../../src/plogics/PLArray.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PLArray.d.ts","sourceRoot":"","sources":["../../src/plogics/PLArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAGnD,UAAU,SAAU,SAAQ,QAAQ;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,MAAM;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IAGnB,eAAe,EAAE,YAAY,EAAE,CAAM;IAErC,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,aAAa,CAAC;gBAElB,EAAE,EAAE,QAAQ;IAsCxB,IAAI,IAAI,SAAS;IAajB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,QAAQ;IAIhB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ;IAW1C,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI;CA0BxD"}
|
package/dist/plogics/PLArray.js
CHANGED
|
@@ -1,38 +1,21 @@
|
|
|
1
1
|
import { DataType, PortTypes } from "../PEnums";
|
|
2
2
|
import PLogic from "../PLogic";
|
|
3
|
-
import PInEventPort from "../ports/PInEventPort";
|
|
4
3
|
import PInValuePort from "../ports/PInValuePort";
|
|
5
|
-
import POutEventPort from "../ports/POutEventPort";
|
|
6
4
|
import POutValuePort from "../ports/POutValuePort";
|
|
7
5
|
export default class PLArray extends PLogic {
|
|
8
6
|
numPorts;
|
|
9
7
|
dataType;
|
|
10
|
-
onEvent;
|
|
11
|
-
initialIndex;
|
|
12
|
-
_currentIndex = 0;
|
|
13
8
|
// Port Refs
|
|
14
|
-
invalue_index = null;
|
|
15
9
|
invalues_values = [];
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
inport_inEvent = null;
|
|
19
|
-
outport_outEvent = null;
|
|
10
|
+
outvalue_size;
|
|
11
|
+
outvalue_array;
|
|
20
12
|
constructor(db) {
|
|
21
13
|
super(db, "Array");
|
|
22
14
|
const dbItem = db;
|
|
23
|
-
this.onEvent = dbItem.onEvent;
|
|
24
15
|
this.numPorts = dbItem.numPorts;
|
|
25
16
|
this.dataType = dbItem.dataType;
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
if (this.onEvent) {
|
|
29
|
-
this.addEventPorts(dbItem);
|
|
30
|
-
}
|
|
31
|
-
this.outvalue_currentValue = this.addOutValuePort(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 3, "Current Value", dbItem.outvalue_currentValue, this.dataType, this.getCurrentValue));
|
|
32
|
-
this.outvalue_currentIndex = this.addOutValuePort(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 4, "Current Index", dbItem.outvalue_currentIndex, DataType.Integer, this.getIndexValue));
|
|
33
|
-
if (!this.onEvent) {
|
|
34
|
-
this.addIndexInValuePort(dbItem);
|
|
35
|
-
}
|
|
17
|
+
this.outvalue_array = this.addOutValuePort(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 101, "Array", null, -this.dataType, this.getArray));
|
|
18
|
+
this.outvalue_size = this.addOutValuePort(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 100, "Size", null, DataType.Integer, this.getSize));
|
|
36
19
|
this.addInValuePorts(this.numPorts, dbItem);
|
|
37
20
|
}
|
|
38
21
|
toDB() {
|
|
@@ -40,48 +23,22 @@ export default class PLArray extends PLogic {
|
|
|
40
23
|
...super.toDB(),
|
|
41
24
|
numPorts: this.numPorts,
|
|
42
25
|
dataType: this.dataType,
|
|
43
|
-
onEvent: this.onEvent,
|
|
44
|
-
initialIndex: this.initialIndex,
|
|
45
|
-
// In Events
|
|
46
|
-
inport_inEvent: this.inport_inEvent?.toDB(),
|
|
47
|
-
// Out Events
|
|
48
|
-
outport_outEvent: this.outport_outEvent?.toDB(),
|
|
49
26
|
// In Values
|
|
50
|
-
invalue_index: this.invalue_index?.toDB(),
|
|
51
27
|
invalues_values: this.invalues_values
|
|
52
28
|
.map((p) => p.toDB())
|
|
53
29
|
.filter((p) => !!p),
|
|
54
|
-
// Out Values
|
|
55
|
-
outvalue_currentValue: this.outvalue_currentValue?.toDB(),
|
|
56
|
-
outvalue_currentIndex: this.outvalue_currentIndex?.toDB(),
|
|
57
30
|
};
|
|
58
31
|
}
|
|
59
|
-
|
|
60
|
-
this.
|
|
61
|
-
this.outport_outEvent?.emit(this.getCurrentValue());
|
|
32
|
+
getSize() {
|
|
33
|
+
return this.numPorts.toString();
|
|
62
34
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
? this._currentIndex
|
|
66
|
-
: parseInt(this.invalue_index?.runtime_value() || "-1");
|
|
67
|
-
if (index >= 0) {
|
|
68
|
-
const value = this.invalues_values[index];
|
|
69
|
-
return value?.runtime_value() || null;
|
|
70
|
-
}
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
|
-
getIndexValue() {
|
|
74
|
-
return this.onEvent
|
|
75
|
-
? this._currentIndex.toString()
|
|
76
|
-
: this.invalue_index?.runtime_value() || null;
|
|
35
|
+
getArray() {
|
|
36
|
+
return this.invalues_values.map((p) => p.runtime_value()).join("|");
|
|
77
37
|
}
|
|
78
38
|
editor_onChangeDataType(dataType) {
|
|
79
39
|
this.dataType = dataType;
|
|
80
|
-
// Update
|
|
81
|
-
|
|
82
|
-
this.outport_outEvent.dataType = dataType;
|
|
83
|
-
// Update Out Value port
|
|
84
|
-
this.outvalue_currentValue.dataType = dataType;
|
|
40
|
+
// Update array port
|
|
41
|
+
this.outvalue_array.dataType = -dataType;
|
|
85
42
|
for (const port of this.invalues_values) {
|
|
86
43
|
port.dataType = dataType;
|
|
87
44
|
}
|
|
@@ -100,30 +57,5 @@ export default class PLArray extends PLogic {
|
|
|
100
57
|
}
|
|
101
58
|
}
|
|
102
59
|
}
|
|
103
|
-
addIndexInValuePort(dbItem) {
|
|
104
|
-
// Insert first
|
|
105
|
-
this.invalue_index = this.addInValuePort(new PInValuePort(PortTypes.Logic, this, 5, this.pid, 0, "Index", dbItem?.invalue_index, DataType.Integer), 0);
|
|
106
|
-
}
|
|
107
|
-
addEventPorts(dbItem) {
|
|
108
|
-
this.inEventPorts;
|
|
109
|
-
this.inport_inEvent = this.addInEventPort(new PInEventPort(PortTypes.Logic, this, 1, this.pid, 0, "Set Index", dbItem?.inport_inEvent, DataType.Integer, this.callback_setIndex));
|
|
110
|
-
this.outport_outEvent = this.addOutEventPort(new POutEventPort(PortTypes.Logic, this, 2, this.pid, 0, "On Change", dbItem?.outport_outEvent, this.dataType));
|
|
111
|
-
}
|
|
112
|
-
//
|
|
113
|
-
// EDITOR FUNCTIONS
|
|
114
|
-
//
|
|
115
|
-
editor_removeInValuePort(context, portId) {
|
|
116
|
-
if (portId === 5)
|
|
117
|
-
this.invalue_index = null;
|
|
118
|
-
return super.editor_removeInValuePort(context, portId);
|
|
119
|
-
}
|
|
120
|
-
editor_removeInEventPort(context, portId) {
|
|
121
|
-
this.inport_inEvent = null;
|
|
122
|
-
return super.editor_removeInEventPort(context, portId);
|
|
123
|
-
}
|
|
124
|
-
editor_removeOutEventPort(context, portId) {
|
|
125
|
-
this.outport_outEvent = null;
|
|
126
|
-
return super.editor_removeOutEventPort(context, portId);
|
|
127
|
-
}
|
|
128
60
|
}
|
|
129
61
|
//# sourceMappingURL=PLArray.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLArray.js","sourceRoot":"","sources":["../../src/plogics/PLArray.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PLArray.js","sourceRoot":"","sources":["../../src/plogics/PLArray.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,YAAgC,MAAM,uBAAuB,CAAC;AACrE,OAAO,aAAa,MAAM,wBAAwB,CAAC;AASnD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,MAAM;IACzC,QAAQ,CAAS;IACjB,QAAQ,CAAW;IAEnB,YAAY;IACZ,eAAe,GAAmB,EAAE,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,IAAI,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import GameContext from "../GameContext";
|
|
2
|
+
import { IDBLogic } from "../IDBLogic";
|
|
3
|
+
import { DataType } from "../PEnums";
|
|
4
|
+
import PLogic from "../PLogic";
|
|
5
|
+
import PInEventPort, { IDBInEventPort } from "../ports/PInEventPort";
|
|
6
|
+
import PInValuePort, { IDBInValuePort } from "../ports/PInValuePort";
|
|
7
|
+
import POutEventPort, { IDBOutEventPort } from "../ports/POutEventPort";
|
|
8
|
+
import POutValuePort from "../ports/POutValuePort";
|
|
9
|
+
interface IDBLArrayItem extends IDBLogic {
|
|
10
|
+
dataType: DataType;
|
|
11
|
+
onEvent: boolean;
|
|
12
|
+
initialIndex: number;
|
|
13
|
+
invalue_index?: IDBInValuePort;
|
|
14
|
+
invalue_array?: IDBInValuePort;
|
|
15
|
+
inport_inEvent?: IDBInEventPort;
|
|
16
|
+
outport_outEvent?: IDBOutEventPort;
|
|
17
|
+
}
|
|
18
|
+
export default class PLArrayItem extends PLogic {
|
|
19
|
+
dataType: DataType;
|
|
20
|
+
onEvent: boolean;
|
|
21
|
+
initialIndex: number;
|
|
22
|
+
private _currentIndex;
|
|
23
|
+
invalue_index: PInValuePort | null;
|
|
24
|
+
invalue_array: PInValuePort;
|
|
25
|
+
outvalue_currentValue: POutValuePort;
|
|
26
|
+
outvalue_currentIndex: POutValuePort;
|
|
27
|
+
inport_inEvent: PInEventPort | null;
|
|
28
|
+
outport_outEvent: POutEventPort | null;
|
|
29
|
+
constructor(db: IDBLogic);
|
|
30
|
+
toDB(): IDBLArrayItem;
|
|
31
|
+
private callback_setIndex;
|
|
32
|
+
private getCurrentValue;
|
|
33
|
+
private getIndexValue;
|
|
34
|
+
editor_onChangeDataType(dataType: DataType): void;
|
|
35
|
+
addIndexInValuePort(dbItem: IDBLArrayItem | null): void;
|
|
36
|
+
addEventPorts(dbItem: IDBLArrayItem | null): void;
|
|
37
|
+
editor_removeInValuePort(context: GameContext, portId: number): PInValuePort | null;
|
|
38
|
+
editor_removeInEventPort(context: GameContext, portId: number): PInEventPort | null;
|
|
39
|
+
editor_removeOutEventPort(context: GameContext, portId: number): POutEventPort | null;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=PLArrayItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLArrayItem.d.ts","sourceRoot":"","sources":["../../src/plogics/PLArrayItem.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,aAAa,EAAE,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAGnD,UAAU,aAAc,SAAQ,QAAQ;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM;IAC7C,QAAQ,EAAE,QAAQ,CAAC;IAEnB,OAAO,EAAE,OAAO,CAAC;IAEjB,YAAY,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,aAAa,CAAa;IAGlC,aAAa,EAAE,YAAY,GAAG,IAAI,CAAQ;IAC1C,aAAa,EAAE,YAAY,CAAC;IAE5B,qBAAqB,EAAE,aAAa,CAAC;IACrC,qBAAqB,EAAE,aAAa,CAAC;IAErC,cAAc,EAAE,YAAY,GAAG,IAAI,CAAQ;IAC3C,gBAAgB,EAAE,aAAa,GAAG,IAAI,CAAQ;gBAElC,EAAE,EAAE,QAAQ;IA4DxB,IAAI,IAAI,aAAa;IAarB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,aAAa;IAMrB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ;IAc1C,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAgBhD,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAmC1C,wBAAwB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM;IAK7D,wBAAwB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM;IAK7D,yBAAyB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM;CAI/D"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { DataType, PortTypes } from "../PEnums";
|
|
2
|
+
import PLogic from "../PLogic";
|
|
3
|
+
import PInEventPort from "../ports/PInEventPort";
|
|
4
|
+
import PInValuePort from "../ports/PInValuePort";
|
|
5
|
+
import POutEventPort from "../ports/POutEventPort";
|
|
6
|
+
import POutValuePort from "../ports/POutValuePort";
|
|
7
|
+
export default class PLArrayItem extends PLogic {
|
|
8
|
+
dataType;
|
|
9
|
+
onEvent;
|
|
10
|
+
initialIndex;
|
|
11
|
+
_currentIndex = 0;
|
|
12
|
+
// Port Refs
|
|
13
|
+
invalue_index = null;
|
|
14
|
+
invalue_array;
|
|
15
|
+
outvalue_currentValue;
|
|
16
|
+
outvalue_currentIndex;
|
|
17
|
+
inport_inEvent = null;
|
|
18
|
+
outport_outEvent = null;
|
|
19
|
+
constructor(db) {
|
|
20
|
+
super(db, "Array Item");
|
|
21
|
+
const dbItem = db;
|
|
22
|
+
this.onEvent = dbItem.onEvent;
|
|
23
|
+
this.dataType = dbItem.dataType;
|
|
24
|
+
this.initialIndex = dbItem.initialIndex;
|
|
25
|
+
this._currentIndex = this.initialIndex;
|
|
26
|
+
if (this.onEvent) {
|
|
27
|
+
// Port 1, 2
|
|
28
|
+
this.addEventPorts(dbItem);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
// Port 3
|
|
32
|
+
this.addIndexInValuePort(dbItem);
|
|
33
|
+
}
|
|
34
|
+
this.invalue_array = this.addInValuePort(new PInValuePort(PortTypes.Logic, this, 4, this.pid, 0, "Array", dbItem.invalue_array, -this.dataType));
|
|
35
|
+
this.outvalue_currentValue = this.addOutValuePort(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 5, "Current Value", null, this.dataType, this.getCurrentValue));
|
|
36
|
+
this.outvalue_currentIndex = this.addOutValuePort(new POutValuePort(PortTypes.Logic, this, this.pid, 0, 6, "Current Index", null, DataType.Integer, this.getIndexValue));
|
|
37
|
+
}
|
|
38
|
+
toDB() {
|
|
39
|
+
return {
|
|
40
|
+
...super.toDB(),
|
|
41
|
+
dataType: this.dataType,
|
|
42
|
+
onEvent: this.onEvent,
|
|
43
|
+
initialIndex: this.initialIndex,
|
|
44
|
+
// In Values
|
|
45
|
+
invalue_index: this.invalue_index?.toDB(),
|
|
46
|
+
invalue_array: this.invalue_array.toDB(),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
callback_setIndex(payload) {
|
|
50
|
+
this._currentIndex = parseInt(payload || "-1");
|
|
51
|
+
this.outport_outEvent?.emit(this.getCurrentValue());
|
|
52
|
+
}
|
|
53
|
+
getCurrentValue() {
|
|
54
|
+
const index = this.onEvent
|
|
55
|
+
? this._currentIndex
|
|
56
|
+
: parseInt(this.invalue_index?.runtime_value() || "-1");
|
|
57
|
+
if (index >= 0) {
|
|
58
|
+
const array = this.invalue_array.runtime_value();
|
|
59
|
+
if (!array)
|
|
60
|
+
return null;
|
|
61
|
+
const value = array.split("|")[index];
|
|
62
|
+
return value || null;
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
getIndexValue() {
|
|
67
|
+
return this.onEvent
|
|
68
|
+
? this._currentIndex.toString()
|
|
69
|
+
: this.invalue_index?.runtime_value() || null;
|
|
70
|
+
}
|
|
71
|
+
editor_onChangeDataType(dataType) {
|
|
72
|
+
this.dataType = dataType;
|
|
73
|
+
// Update array port
|
|
74
|
+
this.invalue_array.dataType = -dataType;
|
|
75
|
+
// Update On Change event
|
|
76
|
+
if (this.outport_outEvent !== null)
|
|
77
|
+
this.outport_outEvent.dataType = dataType;
|
|
78
|
+
// Update Out Value port
|
|
79
|
+
this.outvalue_currentValue.dataType = dataType;
|
|
80
|
+
}
|
|
81
|
+
addIndexInValuePort(dbItem) {
|
|
82
|
+
this.invalue_index = this.addInValuePort(new PInValuePort(PortTypes.Logic, this, 3, this.pid, 0, "Index", dbItem?.invalue_index, DataType.Integer), 0);
|
|
83
|
+
}
|
|
84
|
+
addEventPorts(dbItem) {
|
|
85
|
+
this.inEventPorts;
|
|
86
|
+
this.inport_inEvent = this.addInEventPort(new PInEventPort(PortTypes.Logic, this, 1, this.pid, 0, "Set Index", dbItem?.inport_inEvent, DataType.Integer, this.callback_setIndex));
|
|
87
|
+
this.outport_outEvent = this.addOutEventPort(new POutEventPort(PortTypes.Logic, this, 2, this.pid, 0, "On Change", dbItem?.outport_outEvent, this.dataType));
|
|
88
|
+
}
|
|
89
|
+
//
|
|
90
|
+
// EDITOR FUNCTIONS
|
|
91
|
+
//
|
|
92
|
+
editor_removeInValuePort(context, portId) {
|
|
93
|
+
if (portId === 3)
|
|
94
|
+
this.invalue_index = null;
|
|
95
|
+
return super.editor_removeInValuePort(context, portId);
|
|
96
|
+
}
|
|
97
|
+
editor_removeInEventPort(context, portId) {
|
|
98
|
+
this.inport_inEvent = null;
|
|
99
|
+
return super.editor_removeInEventPort(context, portId);
|
|
100
|
+
}
|
|
101
|
+
editor_removeOutEventPort(context, portId) {
|
|
102
|
+
this.outport_outEvent = null;
|
|
103
|
+
return super.editor_removeOutEventPort(context, portId);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=PLArrayItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLArrayItem.js","sourceRoot":"","sources":["../../src/plogics/PLArrayItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,YAAgC,MAAM,uBAAuB,CAAC;AACrE,OAAO,YAAgC,MAAM,uBAAuB,CAAC;AACrE,OAAO,aAAkC,MAAM,wBAAwB,CAAC;AACxE,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAenD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM;IAC7C,QAAQ,CAAW;IAEnB,OAAO,CAAU;IAEjB,YAAY,CAAS;IAEb,aAAa,GAAW,CAAC,CAAC;IAElC,YAAY;IACZ,aAAa,GAAwB,IAAI,CAAC;IAC1C,aAAa,CAAe;IAE5B,qBAAqB,CAAgB;IACrC,qBAAqB,CAAgB;IAErC,cAAc,GAAwB,IAAI,CAAC;IAC3C,gBAAgB,GAAyB,IAAI,CAAC;IAE9C,YAAY,EAAY;QACtB,KAAK,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;QACxB,MAAM,MAAM,GAAG,EAAmB,CAAC;QAEnC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEhC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC;QAEvC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Ac;QAC5D,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,OAAO,KAAK,CAAC,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IDBLogic } from "../IDBLogic";
|
|
2
2
|
import { DataType } from "../PEnums";
|
|
3
3
|
import PLogic from "../PLogic";
|
|
4
|
-
import PInValuePort from "../ports/PInValuePort";
|
|
4
|
+
import PInValuePort, { IDBInValuePort } from "../ports/PInValuePort";
|
|
5
5
|
interface IDBLBranch extends IDBLogic {
|
|
6
6
|
numPorts: number;
|
|
7
7
|
dataType: DataType;
|
|
8
|
+
invalue_index?: IDBInValuePort;
|
|
8
9
|
}
|
|
9
10
|
export default class PLBranch extends PLogic {
|
|
10
11
|
numPorts: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLBranch.d.ts","sourceRoot":"","sources":["../../src/plogics/PLBranch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,OAAO,YAAY,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PLBranch.d.ts","sourceRoot":"","sources":["../../src/plogics/PLBranch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIrE,UAAU,UAAW,SAAQ,QAAQ;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;gBAEhB,EAAE,EAAE,QAAQ;IAsCxB,IAAI,IAAI,UAAU;IASlB,OAAO,CAAC,gBAAgB;IAUxB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ;IAS1C,gBAAgB,CAAC,KAAK,EAAE,MAAM;CAqB/B"}
|
package/dist/plogics/PLBranch.js
CHANGED
|
@@ -13,7 +13,7 @@ export default class PLBranch extends PLogic {
|
|
|
13
13
|
this.numPorts = dbItem.numPorts;
|
|
14
14
|
this.dataType = dbItem.dataType;
|
|
15
15
|
this.addInEventPort(new PInEventPort(PortTypes.Logic, this, 1, this.pid, 0, "Trigger", null, this.dataType, this.callback_trigger));
|
|
16
|
-
this.invalue_index = this.addInValuePort(new PInValuePort(PortTypes.Logic, this, 2, this.pid, 0, "Index",
|
|
16
|
+
this.invalue_index = this.addInValuePort(new PInValuePort(PortTypes.Logic, this, 2, this.pid, 0, "Index", dbItem.invalue_index, DataType.Integer), 0);
|
|
17
17
|
this.addOutEventPorts(this.numPorts);
|
|
18
18
|
}
|
|
19
19
|
toDB() {
|
|
@@ -21,6 +21,7 @@ export default class PLBranch extends PLogic {
|
|
|
21
21
|
...super.toDB(),
|
|
22
22
|
numPorts: this.numPorts,
|
|
23
23
|
dataType: this.dataType,
|
|
24
|
+
invalue_index: this.invalue_index.toDB(),
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
callback_trigger(v) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLBranch.js","sourceRoot":"","sources":["../../src/plogics/PLBranch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,YAAY,M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,CAAC,aAAa,GAAG,CAAC,CAAC,EAC/B,IAAI,EACJ,IAAI,CAAC,QAAQ,CACd,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@p100-web/core",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "100.2.
|
|
5
|
-
"author": "Peter Drugge",
|
|
6
|
-
"license": "ISC",
|
|
7
|
-
"description": "",
|
|
8
|
-
"devDependencies": {
|
|
9
|
-
"eslint": "^8.57.0",
|
|
10
|
-
"typescript": "^5.4.2"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@tweenjs/tween.js": "^25.0.0"
|
|
17
|
-
},
|
|
18
|
-
"type": "module",
|
|
19
|
-
"scripts": {
|
|
20
|
-
"clean": "rimraf dist",
|
|
21
|
-
"build": "tsc -p tsconfig.json"
|
|
22
|
-
},
|
|
23
|
-
"exports": {
|
|
24
|
-
".": {
|
|
25
|
-
"import": "./dist/index.js",
|
|
26
|
-
"types": "./dist/index.d.ts"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@p100-web/core",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "100.2.31",
|
|
5
|
+
"author": "Peter Drugge",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"description": "",
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"eslint": "^8.57.0",
|
|
10
|
+
"typescript": "^5.4.2"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@tweenjs/tween.js": "^25.0.0"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "rimraf dist",
|
|
21
|
+
"build": "tsc -p tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|