From 099439ca9f7efb946f553ccc2eea8ae51feb1b62 Mon Sep 17 00:00:00 2001 From: Mikael Sand Date: Sat, 19 Oct 2019 23:03:57 +0300 Subject: [PATCH] refactor: add note about experimental native methods --- src/elements/Shape.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/elements/Shape.tsx b/src/elements/Shape.tsx index eeec5ca8..50582c08 100644 --- a/src/elements/Shape.tsx +++ b/src/elements/Shape.tsx @@ -264,6 +264,11 @@ export default class Shape

extends Component

{ ) => { 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 || {};