From 85b9005e400c6e4826a785d712be1132ef1747ef Mon Sep 17 00:00:00 2001 From: xiaoiver Date: Thu, 17 Oct 2024 15:24:28 +0800 Subject: [PATCH] chore: remove invalid links --- packages/core/src/shapes/Shape.ts | 2 +- packages/site/docs/reference/polyline.md | 4 ++-- packages/site/docs/zh/reference/polyline.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/shapes/Shape.ts b/packages/core/src/shapes/Shape.ts index a7a66c0..5fc2f1b 100644 --- a/packages/core/src/shapes/Shape.ts +++ b/packages/core/src/shapes/Shape.ts @@ -110,7 +110,7 @@ function Shapable>(Base: TBase) { } getBounds(skipUpdateTransform?: boolean) { - if (!this.boundsDirtyFlag) { + if (!this.boundsDirtyFlag && !this.transformDirtyFlag) { return this.bounds; } diff --git a/packages/site/docs/reference/polyline.md b/packages/site/docs/reference/polyline.md index b828a83..642fe09 100644 --- a/packages/site/docs/reference/polyline.md +++ b/packages/site/docs/reference/polyline.md @@ -146,8 +146,8 @@ SVG 并不不存在同名属性,可选值包括 `center` `inner` 和 `outer` 参考:[fill for polyline] -[stroke-linecap]: (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap) -[stroke-linejoin]: (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin) +[stroke-linecap]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap +[stroke-linejoin]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin [stroke-miterlimit]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit [stroke-dashoffset]: https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/stroke-dashoffset [stroke-dasharray]: https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/stroke-dasharray diff --git a/packages/site/docs/zh/reference/polyline.md b/packages/site/docs/zh/reference/polyline.md index b828a83..642fe09 100644 --- a/packages/site/docs/zh/reference/polyline.md +++ b/packages/site/docs/zh/reference/polyline.md @@ -146,8 +146,8 @@ SVG 并不不存在同名属性,可选值包括 `center` `inner` 和 `outer` 参考:[fill for polyline] -[stroke-linecap]: (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap) -[stroke-linejoin]: (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin) +[stroke-linecap]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap +[stroke-linejoin]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin [stroke-miterlimit]: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit [stroke-dashoffset]: https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/stroke-dashoffset [stroke-dasharray]: https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/stroke-dasharray