Git Product home page Git Product logo

Comments (10)

RoboErikG avatar RoboErikG commented on May 5, 2024 1

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.

rachel-fenichel avatar rachel-fenichel commented on May 5, 2024 1

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.

reedspool avatar reedspool commented on May 5, 2024

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.

duzc2 avatar duzc2 commented on May 5, 2024

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 .
image

from blockly-samples.

duzc2 avatar duzc2 commented on May 5, 2024

@rachel-fenichel
Or , maybe add a pop menu item to show the current type and allow user to change it?

from blockly-samples.

duzc2 avatar duzc2 commented on May 5, 2024

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.

duzc2 avatar duzc2 commented on May 5, 2024

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.

duzc2 avatar duzc2 commented on May 5, 2024

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.

rachel-fenichel avatar rachel-fenichel commented on May 5, 2024

We do not plan to support changing the type of a variable after creation.

from blockly-samples.

BeksOmega avatar BeksOmega commented on May 5, 2024

Moved this to samples as we don't want to add new blocks to core.

from blockly-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.