refactor: add note about experimental native methods

This commit is contained in:
Mikael Sand
2019-10-19 23:03:57 +03:00
parent dc7d0768b0
commit 099439ca9f
+5
View File
@@ -264,6 +264,11 @@ export default class Shape<P> extends Component<P> {
) => {
this.root && this.root.setNativeProps(props);
};
/*
* The following native methods are experimental and likely broken in some
* ways. If you have a use case for these, please open an issue with a
* representative example / reproduction.
* */
getBBox = (options?: SVGBoundingBoxOptions): SVGRect => {
const { fill = true, stroke = true, markers = true, clipped = true } =
options || {};