Skip to content

Commit

Permalink
add map-basic.ticlo
Browse files Browse the repository at this point in the history
  • Loading branch information
rinick committed Feb 14, 2021
1 parent 4c3e6ea commit 9de2f69
Show file tree
Hide file tree
Showing 3 changed files with 364 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.2.0",
"less": "^4.1.1",
"marked": "^1.2.9",
"marked": "^2.0.0",
"mocha": "^8.2.1",
"nyc": "^15.1.0",
"parcel": "2.0.0-nightly.574",
Expand Down
363 changes: 363 additions & 0 deletions src/core/worker/spec/map-basic.ticlo
Original file line number Diff line number Diff line change
@@ -0,0 +1,363 @@
{
"#is": "",
"assert": {
"#is": "test:assert",
"@b-p": [
"actual0",
"expect0"
],
"@b-xyw": [
434,
156,
143
],
"expect0": [
2,
3,
4
],
"~actual0": "##.map.#output"
},
"assert1": {
"#is": "test:assert",
"@b-p": [
"actual0",
"expect0"
],
"@b-xyw": [
396,
396,
270
],
"expect0": [
{
"a": 2
},
{
"a": 3
},
{
"a": 4
}
],
"~actual0": "##.map1.#output"
},
"assert2": {
"#is": "test:assert",
"@b-p": [
"actual0",
"expect0"
],
"@b-xyw": [
396,
588,
254
],
"expect0": [
2,
3,
4
],
"~actual0": "##.map2.#output"
},
"assert3": {
"#is": "test:assert",
"@b-p": [
"actual0",
"expect0"
],
"@b-xyw": [
396,
775,
269
],
"expect0": [
{
"a": 2
},
{
"a": 3
},
{
"a": 4
}
],
"~actual0": "##.map3.#output"
},
"map": {
"#is": "map",
"@b-p": [
"input",
"#output"
],
"@b-xyw": [
84,
132,
269
],
"input": [
1,
2,
3
],
"use": {
"#is": {
"#inputs": {
"#is": "",
"@b-p": [
"#value"
],
"@b-xyw": [
36,
36,
143
]
},
"#is": "",
"#outputs": {
"#is": "",
"@b-p": [
"#value"
],
"@b-xyw": [
573,
36,
143
],
"~#value": "##.add.#output"
},
"add": {
"#is": "add",
"1": 1,
"@b-p": [
"0",
"1",
"#output"
],
"@b-xyw": [
300,
47,
143
],
"~0": "##.#inputs.#value"
}
}
}
},
"map1": {
"#is": "map",
"@b-p": [
"input",
"#output"
],
"@b-xyw": [
60,
372,
283
],
"input": [
1,
2,
3
],
"use": {
"#is": {
"#inputs": {
"#is": "",
"@b-p": [
"#value"
],
"@b-xyw": [
36,
36,
143
]
},
"#is": "",
"#outputs": {
"#custom": [
{
"name": "a",
"type": "number"
}
],
"#is": "",
"@b-p": [
"a"
],
"@b-xyw": [
573,
36,
143
],
"~a": "##.add.#output"
},
"add": {
"#is": "add",
"1": 1,
"@b-p": [
"0",
"1",
"#output"
],
"@b-xyw": [
300,
47,
143
],
"~0": "##.#inputs.#value"
}
}
}
},
"map2": {
"#is": "map",
"@b-p": [
"input",
"#output"
],
"@b-xyw": [
60,
564,
288
],
"input": [
{
"a": 1
},
{
"a": 2
},
{
"a": 3
}
],
"use": {
"#is": {
"#inputs": {
"#custom": [
{
"name": "a",
"type": "number"
}
],
"#is": "",
"@b-p": [
"a"
],
"@b-xyw": [
36,
36,
143
]
},
"#is": "",
"#outputs": {
"#is": "",
"@b-p": [
"#value"
],
"@b-xyw": [
573,
36,
143
],
"~#value": "##.add.#output"
},
"add": {
"#is": "add",
"1": 1,
"@b-p": [
"0",
"1",
"#output"
],
"@b-xyw": [
300,
47,
143
],
"~0": "##.#inputs.a"
}
}
}
},
"map3": {
"#is": "map",
"@b-p": [
"input",
"#output"
],
"@b-xyw": [
60,
751,
288
],
"input": [
{
"a": 1
},
{
"a": 2
},
{
"a": 3
}
],
"use": {
"#is": {
"#inputs": {
"#custom": [
{
"name": "a",
"type": "number"
}
],
"#is": "",
"@b-p": [
"a"
],
"@b-xyw": [
36,
36,
143
]
},
"#is": "",
"#outputs": {
"#custom": [
{
"name": "a",
"type": "number"
}
],
"#is": "",
"@b-p": [
"a"
],
"@b-xyw": [
573,
36,
143
],
"~a": "##.add.#output"
},
"add": {
"#is": "add",
"1": 1,
"@b-p": [
"0",
"1",
"#output"
],
"@b-xyw": [
300,
47,
143
],
"~0": "##.#inputs.a"
}
}
}
}
}
1 change: 0 additions & 1 deletion src/editor/property/PropertyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ export class PropertyList extends MultiSelectComponent<Props, State, BlockLoader
if (showConfig) {
for (let [path, subscriber] of this.loaders) {
if (subscriber.desc) {
console.log(subscriber.desc.configs);
configMerger.add(mapConfigDesc(subscriber.desc.configs) || defaultConfigDescs);
} else {
// properties not ready
Expand Down

0 comments on commit 9de2f69

Please sign in to comment.