-
Notifications
You must be signed in to change notification settings - Fork 12
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
Gauge with layout service #339
Conversation
- Using angular svg binding - Using d3 shape to build arc path string - Using resize observer to react on dom dimension changes
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.
So given this, what's failing? The initial draw, the resize window draw, or something like a flexbox change redraw?
} | ||
|
||
public onLayoutChange(): void { | ||
this.redrawSubject.next(true); |
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.
Not wrong, but a bit strange to do this with a subject. Could just as easily remove the subject + combineLatest and do
this.gaugeRendererData$ = this.buildGaugeRendererDataObservable();
</svg> | ||
`, | ||
styleUrls: ['./gauge.component.scss'], | ||
providers: [LayoutChangeService], |
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.
Not needed - that's why we have the directive.
Description
Please include a summary of the change, motivation and context.
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.