Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

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

Closed
hmans opened this issue Jan 28, 2021 · 0 comments
Closed

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

hmans opened this issue Jan 28, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hmans
Copy link
Owner

hmans commented Jan 28, 2021

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"

@hmans hmans added the enhancement New feature or request label Jan 28, 2021
@hmans hmans added this to the 0.3 milestone Jan 28, 2021
@hmans hmans self-assigned this Jan 28, 2021
@hmans hmans closed this as completed in badc9dc Jan 29, 2021
hmans added a commit that referenced this issue Jan 29, 2021
* main:
  Refactor args parsing (fixes #40)
  Fix example
  v0.3.0-3
  Resolve that circular dependency that rollup was complaining about
  Reference other objects via CSS selectors in attributes (closes #16)
  New camera handling
  BaseElement.applyAllAttributes
  <three-rect-area-light-helper>
  Make ThreeElement.object writable
  Have ThreeGame emit a "ready" event
  Ignore the src symlink
  "...deg" transforms (#33) (fixes #31)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant