Comments (10)
Shaped connectors are feasible, but add a lot of additional complexity, especially if you're allowing for custom shapes.
- Shapes need to be paired.
- They have to all be the same size to keep the connector calculations correct.
- They would need an API and more involved changes to insert into the svg rendering.
So they're out of scope for us short term, but something we could revisit later.
from blockly-samples.
I can convince you why not!
Shapes work for a limited number of types, but break down quickly when we have more types. They need to be increasingly complex, but that can be hard to distinguish, especially as you zoom out. There's just not a lot of room there for distinctive rendering.
They're also hard to use when a connector can take multiple types (e.g. you can print a string or a number: what shape is the connector?).
RE: icons requiring alt-text: yes! Thanks for pointing that out.
from blockly-samples.
Corollary of (3): Develop new set of connector shapes that suggest type. I bet this isn't an option, but can't convince myself why not.
Also to (3), icon means image, which means alt text for accessibility, which means same API and internationalization questions as (1).
from blockly-samples.
When I wok with c# or java , the name of types are very long text as : System.ComponentModel.DataAnnotations.Resources.DataAnnotationsResources.
it's very ugly if we set it on the block.
also , there are toooo much types need tooo much colors or shapes.
how about add the type name in tooltips?
I use tooltips in my project , it look great for c# or java .
from blockly-samples.
@rachel-fenichel
Or , maybe add a pop menu item to show the current type and allow user to change it?
from blockly-samples.
The variables.js use a prompt input , it has no ability to chose a type.
how to input a variable name with a type of it ?
Any one has suggests?
from blockly-samples.
it must a large list in c# or java like language.
and for most edu case , we could think there are a few types.
we may need a base way to select type simply and a API to be extended.
from blockly-samples.
I have finished most of this work.
I found that there are many variable logic in workspace.js and block.js
if I make a new menu item 'change variable type' on the blocks I built , I need to add:
a enter in workspace , a event in event.js , a event handler in block.js
it must be invasive.
from blockly-samples.
We do not plan to support changing the type of a variable after creation.
from blockly-samples.
Moved this to samples as we don't want to add new blocks to core.
from blockly-samples.
Related Issues (20)
- Update field colour readme to explain that the developer must load a message file/set a locale HOT 2
- Consider excluding test-only changes from lerna release
- Update multiline text readme to include the information currently on devsite HOT 1
- Merge `blocks_for_fields` into `master` HOT 1
- Error: Property 'decoratePreviewerWithDynamicConnections' does not exist on type 'typeof import ("("/home/user/Documents/blockly/node_modules/@blockly/block-dynamic-connection/dist/index")'. HOT 1
- Save/load/delete multiple blocks
- Block factory: add generator stubs
- Block factory: adding code headers
- Block factory: import plugin fields HOT 1
- Block factory: backwards compatibility
- Block factory: redirect at top of old block factory
- Block factory: redirect back to old block factory
- eslint config disallows CONSTANT_CASE HOT 1
- Block factory: add shadow blocks to inputs HOT 1
- Resetting the workspace state when entering data in num and funcs HOT 5
- Make it so that the backpack is compatible with other types besides blocks HOT 1
- Update context menu codelab (scope + events)
- Content-highlight doesn't update for workspace comment move events
- typed-variable-modal plugin is not on plugins index page HOT 7
- Toolbox section of demos page is broken
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 blockly-samples.