update bezier-js deps
This commit is contained in:
parent
1a65eabee7
commit
a2613bb53e
|
@ -5,7 +5,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"patel": ">=0.30.0",
|
"patel": ">=0.30.0",
|
||||||
"node-sfnt": ">=0.0.20",
|
"node-sfnt": ">=0.0.20",
|
||||||
"bezier-js": "*",
|
"bezier-js": "^2.0.0",
|
||||||
"yargs": "*",
|
"yargs": "*",
|
||||||
"libspiro-js": ">=0.3.0",
|
"libspiro-js": ">=0.3.0",
|
||||||
"toml": ">=2.3.0",
|
"toml": ">=2.3.0",
|
||||||
|
|
|
@ -190,7 +190,7 @@ export all : class Glyph
|
||||||
local p2 ocontour.(j + 1)
|
local p2 ocontour.(j + 1)
|
||||||
local p3 ocontour.(j + 2)
|
local p3 ocontour.(j + 2)
|
||||||
local strand : new Bezier p0.x p0.y p1.x p1.y p2.x p2.y p3.x p3.y
|
local strand : new Bezier p0.x p0.y p1.x p1.y p2.x p2.y p3.x p3.y
|
||||||
local ts [strand.inflections].y
|
local ts [strand.extremas].y
|
||||||
piecewise
|
piecewise
|
||||||
(!ts || ts.length < 1) : contour.push p1 p2 p3
|
(!ts || ts.length < 1) : contour.push p1 p2 p3
|
||||||
true : begin
|
true : begin
|
||||||
|
@ -210,7 +210,7 @@ export all : class Glyph
|
||||||
local p2 ocontour.(j + 1)
|
local p2 ocontour.(j + 1)
|
||||||
if [not p2.onCurve] : set p2 : new Point [mix p1.x p2.x 0.5] [mix p1.y p2.y 0.5] true
|
if [not p2.onCurve] : set p2 : new Point [mix p1.x p2.x 0.5] [mix p1.y p2.y 0.5] true
|
||||||
local strand : new Bezier p0.x p0.y p1.x p1.y p2.x p2.y
|
local strand : new Bezier p0.x p0.y p1.x p1.y p2.x p2.y
|
||||||
local ts [strand.inflections].y
|
local ts [strand.extremas].y
|
||||||
piecewise
|
piecewise
|
||||||
(!ts || ts.length < 1) : contour.push p1 p2
|
(!ts || ts.length < 1) : contour.push p1 p2
|
||||||
true : begin
|
true : begin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user