Comments (1)
New ideas about how to process the data.
Here is a clip from the template file:
"basic.cf.for": {
"id": "basic.cf.for",
"visualize": {
"default": "Do <[0]{accept:{var&value}}> times <[1]{accept:{nested}}>",
"en-US": "Do <[0]{accept:{var&value}}> times <[1]{accept:{nested}}>",
"zh-CN": "重复执行<[0]{accept:{var&value}}>次 <[1]{accept:{nested}}>"
},
"exposes": {
"iterateIndicator": {
"default": "Current Iterate times",
"en-US": "Current Iterate times",
"zh-CN": "当前循环次数"
}
},
"code": "for <expose:iterateIndicator> in range(<0>)"
}
When the block drag and drop into the CommandPanel.vue, the pre-processor will generate a uuid for all of the exposes:
"basic.cf.for": {
"id": "basic.cf.for",
"visualize": {
"default": "Do <[0]{accept:{var&value}}> times <[1]{accept:{nested}}>",
"en-US": "Do <[0]{accept:{var&value}}> times <[1]{accept:{nested}}>",
"zh-CN": "重复执行<[0]{accept:{var&value}}>次 <[1]{accept:{nested}}>"
},
"exposes": {
"iterateIndicator": {
"id": "<THE UUID OF iterateInidcator>"
"default": "Current Iterate times",
"en-US": "Current Iterate times",
"zh-CN": "当前循环次数"
}
},
"code": "for <expose:iterateIndicator> in range(<0>)"
}
When the program is generating the code, and when it is reading <expose:iterateIndicator>
, the program will ONLY find the exposes called iterateIndicator
from the block information, NOT the exposes pool.
After exposes are processed, the block will throw it into its nest section, the nestedCommandPanel, if it has one. So that the blocks inside the nestedCommandPanel could use those exposes again.
Also, in the exposes pool, if there are names that are the same, the program will automatically add a prefix to help users distinguish them.
from py-visualizer.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-visualizer.