Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing port with array #17

Closed
cwohlman opened this issue Jun 7, 2014 · 4 comments
Closed

Initializing port with array #17

cwohlman opened this issue Jun 7, 2014 · 4 comments

Comments

@cwohlman
Copy link

cwohlman commented Jun 7, 2014

There doesn't seem to be a supported way to initialize a port with an array.

See my stack overflow question for a code example of my current workaround:
http://stackoverflow.com/questions/24092317/noflo-fbp-array-initiallizer

@forresto
Copy link
Contributor

@automata is running into this issue as well.

@automata
Copy link

Like @cwohlman pointed on stack overflow, '[0, 0, 100, 100]' -> RECTANGLE Rect(canvas/FillRect) is a possible workaround. But in case of canvas/FillRect component, it waits an array, not a string, so it breaks.

@forresto
Copy link
Contributor

You'd pass the string to strings/ParseJson first. Not ideal, but not too ugly.

@bergie
Copy link
Member

bergie commented Jun 10, 2014

Duplicate of #10

@bergie bergie closed this as completed Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants