kopia lustrzana https://github.com/Tldraw/Tldraw
3ceebc82f8
This PR makes a small improvement to the way we measure distances. (Often we measure distances multiple times per frame per shape on the screen). In many cases, we compare a minimum distance. This makes those checks faster by avoiding a square root. ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `improvement` — Improving existing features ### Release Notes - Improve performance of minimum distance checks. |
||
---|---|---|
.. | ||
freehand | ||
BrokenAssetIcon.tsx | ||
HyperlinkButton.tsx | ||
ShapeFill.tsx | ||
SvgTextLabel.tsx | ||
TextHelpers.ts | ||
TextLabel.tsx | ||
createTextJsxFromSpans.tsx | ||
default-shape-constants.ts | ||
defaultStyleDefs.tsx | ||
getBrowserCanvasMaxSize.tsx | ||
getPerfectDashProps.ts | ||
legacyProps.ts | ||
polygon-helpers.ts | ||
resizeBox.ts | ||
resizeScaled.ts | ||
rotated-box-shadow.ts | ||
useColorSpace.tsx | ||
useEditableText.ts | ||
useForceSolid.ts | ||
usePrefersReducedMotion.tsx |