hmans / three-elements

Web Components-powered custom HTML elements for building Three.js-powered games and interactive experiences. 🎉
https://three-elements.hmans.co
MIT License
398 stars 14 forks source link

Support bracket-less array syntax for "args" #40

Closed hmans closed 3 years ago

hmans commented 3 years ago

You can set array attributes like this:

position="[0, 5, 10]"

And you may omit the brackets:

position="0, 5, 10"

This is currently not allowed for the args attribute, which you always have to set like this:

args="[1, 2, 3]"

Let's make it so we can also do this:

args="1, 2, 3"