kopia lustrzana https://github.com/Tldraw/Tldraw
Merge branch 'main' into testing-30-transform-command
commit
2e7ed423ad
|
@ -1,2 +1,14 @@
|
|||
- name: Jest Annotations & Coverage
|
||||
uses: mattallty/jest-github-action@v1.0.3
|
||||
name: CI
|
||||
on: push
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install modules
|
||||
run: yarn
|
||||
# unit tests
|
||||
- name: Jest Annotations & Coverage
|
||||
uses: mattallty/jest-github-action@v1.0.3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -516,7 +516,13 @@ interface ShapeUtility<K extends Shape> {
|
|||
onHandleChange(
|
||||
this: ShapeUtility<K>,
|
||||
shape: Mutable<K>,
|
||||
handle: Partial<K['handles']>
|
||||
handle: Partial<K['handles']>,
|
||||
info?: Partial<{
|
||||
delta: number[]
|
||||
shiftKey: boolean
|
||||
altKey: boolean
|
||||
metaKey: boolean
|
||||
}>
|
||||
): ShapeUtility<K>
|
||||
|
||||
onDoublePointHandle(
|
||||
|
@ -1084,7 +1090,13 @@ interface ShapeUtility<K extends Shape> {
|
|||
onHandleChange(
|
||||
this: ShapeUtility<K>,
|
||||
shape: Mutable<K>,
|
||||
handle: Partial<K['handles']>
|
||||
handle: Partial<K['handles']>,
|
||||
info?: Partial<{
|
||||
delta: number[]
|
||||
shiftKey: boolean
|
||||
altKey: boolean
|
||||
metaKey: boolean
|
||||
}>
|
||||
): ShapeUtility<K>
|
||||
|
||||
onDoublePointHandle(
|
||||
|
@ -1663,7 +1675,7 @@ type RequiredKeys<T> = {
|
|||
const t = i / steps
|
||||
return t * t * t
|
||||
})
|
||||
.map((t) => [...Vec.lrp(a, b, t), (1 - t) / 2])
|
||||
.map((t) => Vec.round([...Vec.lrp(a, b, t), (1 - t) / 2]))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue