You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at the moment the shape fuctions like rect set the shape name to a hard coded name. if a user want to set a name for a shape it is not possible at the moment
Solution:
add an optional argument name to all shape functions to support custom names. then we can change the following lines of the shapes to:
shape.setName(name ? name : 'Rectangle');
Next steps:
implement feature
document feature
test feature
The text was updated successfully, but these errors were encountered:
Hi! Could you give me an example of a use case? Do you often end up with too many shapes and you need a way to distinguish them?
It was a very intentional decision not to allow this to maintain as much consistently as possible with p5.js. Of course, it could be an optional argument of each function but I still want to hear how this feature would be useful.
if you do some dataviz with the plugin it is good to know which shape is which data item. if you can give the shape a name it's easier to select from the layer panel. i can understand your decision to implement only the processing shape arguments for the functions.
Context:
at the moment the shape fuctions like
rect
set the shape name to a hard coded name. if a user want to set a name for a shape it is not possible at the momentSolution:
add an optional argument
name
to all shape functions to support custom names. then we can change the following lines of the shapes to:Next steps:
The text was updated successfully, but these errors were encountered: