-
Notifications
You must be signed in to change notification settings - Fork 60
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
styleSettings API introduction #38
Conversation
e091533
to
8919be1
Compare
@@ -37,7 +41,7 @@ export class IotConnector { | |||
request: this.request, | |||
}, | |||
(dataStreams: DataStream[]) => { | |||
this.dataStreams = dataStreams; | |||
this.dataStreams = bindStylesToDataStreams({ dataStreams, styleSettings: this.styleSettings }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(random thoughts) It initially felt strange to me to bind style
to dataStreams
, since styles are metadata and not streamed. I see that it follows the synchro-chart API though, and these are essentially DataStreamStyles
. Would we ever want to swap out synchro-charts as a viz library? If not then this approach seems fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how we bind styleSettings
will be component specific, right now iot-connector
is a bit specific to Synchro Charts, but we can refactor it as necessary as the need arises as iot-connector
is purely an internal helper and not intended to be used as part of the offerings of the library
8919be1
to
437dba9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1cf3b19
to
73b7b07
Compare
73b7b07
to
b07a193
Compare
Co-authored-by: Xinyi Xu <xinyxu@amazon.com>
Overview
Implementation of
styleSettings
, which uses therefId
present in data streams to provide presentational settings to components.Refactored the api from
styles
->styleSettings
, as stencil ignores the propstyles
. Likely is a reserved keyword that you cannot pass an object into.Legal
This project is available under the Apache 2.0 License.