Merge branch 'main' into testing-30-transform-command
This commit is contained in:
commit
2e7ed423ad
2 changed files with 29 additions and 5 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -1,2 +1,14 @@
|
||||||
- name: Jest Annotations & Coverage
|
name: CI
|
||||||
uses: mattallty/jest-github-action@v1.0.3
|
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(
|
onHandleChange(
|
||||||
this: ShapeUtility<K>,
|
this: ShapeUtility<K>,
|
||||||
shape: Mutable<K>,
|
shape: Mutable<K>,
|
||||||
handle: Partial<K['handles']>
|
handle: Partial<K['handles']>,
|
||||||
|
info?: Partial<{
|
||||||
|
delta: number[]
|
||||||
|
shiftKey: boolean
|
||||||
|
altKey: boolean
|
||||||
|
metaKey: boolean
|
||||||
|
}>
|
||||||
): ShapeUtility<K>
|
): ShapeUtility<K>
|
||||||
|
|
||||||
onDoublePointHandle(
|
onDoublePointHandle(
|
||||||
|
@ -1084,7 +1090,13 @@ interface ShapeUtility<K extends Shape> {
|
||||||
onHandleChange(
|
onHandleChange(
|
||||||
this: ShapeUtility<K>,
|
this: ShapeUtility<K>,
|
||||||
shape: Mutable<K>,
|
shape: Mutable<K>,
|
||||||
handle: Partial<K['handles']>
|
handle: Partial<K['handles']>,
|
||||||
|
info?: Partial<{
|
||||||
|
delta: number[]
|
||||||
|
shiftKey: boolean
|
||||||
|
altKey: boolean
|
||||||
|
metaKey: boolean
|
||||||
|
}>
|
||||||
): ShapeUtility<K>
|
): ShapeUtility<K>
|
||||||
|
|
||||||
onDoublePointHandle(
|
onDoublePointHandle(
|
||||||
|
@ -1663,7 +1675,7 @@ type RequiredKeys<T> = {
|
||||||
const t = i / steps
|
const t = i / steps
|
||||||
return t * t * t
|
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]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue