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

Initial Shape API #300

Merged
merged 2 commits into from
May 9, 2019
Merged

Initial Shape API #300

merged 2 commits into from
May 9, 2019

Conversation

SyllogismRXS
Copy link
Contributor

No description provided.

@SyllogismRXS SyllogismRXS requested a review from esquires May 1, 2019 18:05
@SyllogismRXS
Copy link
Contributor Author

SyllogismRXS commented May 1, 2019

Several of our users have their own wrapper functions around our protobuf-based shape API. I think we should provide the a shape wrapper API to scrimmage developers to reduce code across plugins and repos. I didn't write wrapper functions for each shape yet because I wanted to get feedback before completing the API.

@crichardson332
Copy link
Contributor

Looks good, although did you mean for the first function to be "make_state" as opposed to "make_arrow"?

Also, do you think we could add a general "make_shape" function that creates a shape with sensible defaults, and maybe takes in a color? 99% of the time I make a shape, I want persistent(true) and opacity to be 1.0, but protobuf defaults those to off.

@SyllogismRXS SyllogismRXS reopened this May 7, 2019
@SyllogismRXS SyllogismRXS merged commit 8a5fe59 into master May 9, 2019
@SyllogismRXS SyllogismRXS deleted the shape-api branch September 18, 2019 19:21
waford pushed a commit that referenced this pull request Jul 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants