We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Layer
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
Instead of requiring imports for each render context layer...
<script> import { Canvas, Html, Svg } from 'layerchart'; </script> <Canvas>...</Canvas> <Html>...</Html> <Svg>...</Svg>
it would be nice if a single component could be imported with a type prop to declare the type of component to use
type
<script> import { Layer } from 'layerchart'; </script> <Layer type="canvas">...</Layer> <Layer type="html">...</Layer> <Layer type="svg">...</Layer>
The default type could probably be svg as well.
svg
This is especially helpful for the docs where we allow switching between contexts and currently must do something like this....
{@const Component = renderContext === 'canvas' ? Canvas : Svg} <Component this={renderContext === 'canvas' ? Canvas : Svg} {...asAny(renderContext === 'canvas' ? props.canvas : props.svg)} ... >
The text was updated successfully, but these errors were encountered:
Completed as part of [email protected]
Sorry, something went wrong.
No branches or pull requests
Instead of requiring imports for each render context layer...
it would be nice if a single component could be imported with a
type
prop to declare the type of component to useThe default
type
could probably besvg
as well.This is especially helpful for the docs where we allow switching between contexts and currently must do something like this....
The text was updated successfully, but these errors were encountered: