New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tldraw/primitives

Package Overview
Dependencies
Maintainers
4
Versions
461
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tldraw/primitives - npm Package Compare versions

Comparing version

to
2.0.0-canary.1e07ae51dcb3

62

CHANGELOG.md

@@ -0,1 +1,63 @@

# v2.0.0-alpha.13 (Wed Jun 28 2023)
### Release Notes
#### [refactor] snapping ([#1589](https://github.com/tldraw/tldraw/pull/1589))
- [editor] fix bug in snapping
#### Fix arrows with weird bends crashing ([#1540](https://github.com/tldraw/tldraw/pull/1540))
- Fixed a rare crash that could happen when you try to curve an arrow with zero distance.
#### [2/3] renderer changes to support "sandwich mode" highlighting ([#1418](https://github.com/tldraw/tldraw/pull/1418))
[not yet!]
#### Measure individual words instead of just line breaks for text exports ([#1397](https://github.com/tldraw/tldraw/pull/1397))
- Add a brief release note for your PR here.
#### avoid lazy race conditions ([#1364](https://github.com/tldraw/tldraw/pull/1364))
[internal only]
---
#### 🚀 Enhancement
- [2/3] renderer changes to support "sandwich mode" highlighting [#1418](https://github.com/tldraw/tldraw/pull/1418) ([@SomeHats](https://github.com/SomeHats))
#### 🐛 Bug Fix
- [refactor] snapping [#1589](https://github.com/tldraw/tldraw/pull/1589) ([@steveruizok](https://github.com/steveruizok))
- Fix arrows with weird bends crashing [#1540](https://github.com/tldraw/tldraw/pull/1540) ([@TodePond](https://github.com/TodePond))
- ensure that fixed points stay fixed [#1523](https://github.com/tldraw/tldraw/pull/1523) ([@steveruizok](https://github.com/steveruizok))
- Measure individual words instead of just line breaks for text exports [#1397](https://github.com/tldraw/tldraw/pull/1397) ([@SomeHats](https://github.com/SomeHats))
- readmes [#1195](https://github.com/tldraw/tldraw/pull/1195) ([@steveruizok](https://github.com/steveruizok))
- [chore] update lazyrepo [#1211](https://github.com/tldraw/tldraw/pull/1211) ([@ds300](https://github.com/ds300))
- Use `strokePathData` for `<ShapeFill/>` path to avoid bugs in the inner path algo [#1207](https://github.com/tldraw/tldraw/pull/1207) ([@orangemug](https://github.com/orangemug) [@steveruizok](https://github.com/steveruizok))
- [lite] upgrade lazyrepo [#1198](https://github.com/tldraw/tldraw/pull/1198) ([@ds300](https://github.com/ds300))
- transfer-out: transfer out [#1195](https://github.com/tldraw/tldraw/pull/1195) ([@SomeHats](https://github.com/SomeHats))
#### ⚠️ Pushed to `main`
- update lazyrepo ([@ds300](https://github.com/ds300))
#### 🏠 Internal
- replace console.log with nicelog [#1496](https://github.com/tldraw/tldraw/pull/1496) ([@steveruizok](https://github.com/steveruizok))
- [chore] remove benchmark [#1489](https://github.com/tldraw/tldraw/pull/1489) ([@steveruizok](https://github.com/steveruizok))
- avoid lazy race conditions [#1364](https://github.com/tldraw/tldraw/pull/1364) ([@SomeHats](https://github.com/SomeHats))
#### Authors: 5
- alex ([@SomeHats](https://github.com/SomeHats))
- David Sheldrick ([@ds300](https://github.com/ds300))
- Lu Wilson ([@TodePond](https://github.com/TodePond))
- Orange Mug ([@orangemug](https://github.com/orangemug))
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
---
# v2.0.0-alpha.12 (Mon Apr 03 2023)

@@ -2,0 +64,0 @@

3

dist-cjs/index.d.ts

@@ -250,3 +250,3 @@ import { Box2dModel } from '@tldraw/tlschema';

*/
export declare function canolicalizeRotation(a: number): number;
export declare function canonicalizeRotation(a: number): number;

@@ -1109,2 +1109,3 @@ /**

static ToAngle(A: VecLike): number;
static FromAngle(r: number, length?: number): Vec2d;
static ToArray(A: VecLike): number[];

@@ -1111,0 +1112,0 @@ static ToJson(A: VecLike): {

@@ -38,3 +38,3 @@ "use strict";

areAnglesCompatible: () => import_utils.areAnglesCompatible,
canolicalizeRotation: () => import_utils.canolicalizeRotation,
canonicalizeRotation: () => import_utils.canonicalizeRotation,
clamp: () => import_utils.clamp,

@@ -41,0 +41,0 @@ clampRadians: () => import_utils.clampRadians,

@@ -29,3 +29,3 @@ "use strict";

areAnglesCompatible: () => areAnglesCompatible,
canolicalizeRotation: () => canolicalizeRotation,
canonicalizeRotation: () => canonicalizeRotation,
clamp: () => clamp,

@@ -95,3 +95,3 @@ clampRadians: () => clampRadians,

}
function canolicalizeRotation(a) {
function canonicalizeRotation(a) {
a = a % PI2;

@@ -98,0 +98,0 @@ if (a < 0) {

@@ -410,2 +410,5 @@ "use strict";

}
static FromAngle(r, length = 1) {
return new Vec2d(Math.cos(r) * length, Math.sin(r) * length);
}
static ToArray(A) {

@@ -412,0 +415,0 @@ return [A.x, A.y, A.z];

{
"name": "@tldraw/primitives",
"description": "A tiny little drawing app (primitives).",
"version": "2.0.0-canary.1dede561319a",
"version": "2.0.0-canary.1e07ae51dcb3",
"packageManager": "yarn@3.5.0",

@@ -45,3 +45,3 @@ "author": {

"dependencies": {
"@tldraw/tlschema": "2.0.0-canary.1dede561319a"
"@tldraw/tlschema": "2.0.0-canary.1e07ae51dcb3"
},

@@ -48,0 +48,0 @@ "jest": {

@@ -58,3 +58,3 @@ export {

areAnglesCompatible,
canolicalizeRotation,
canonicalizeRotation,
clamp,

@@ -61,0 +61,0 @@ clampRadians,

@@ -91,3 +91,3 @@ import { Box2d } from './Box2d'

*/
export function canolicalizeRotation(a: number) {
export function canonicalizeRotation(a: number) {
a = a % PI2

@@ -94,0 +94,0 @@ if (a < 0) {

@@ -487,2 +487,6 @@ import { Vec2dModel } from '@tldraw/tlschema'

static FromAngle(r: number, length = 1) {
return new Vec2d(Math.cos(r) * length, Math.sin(r) * length)
}
static ToArray(A: VecLike) {

@@ -489,0 +493,0 @@ return [A.x, A.y, A.z!]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet