update bezier-js deps

This commit is contained in:
be5invis 2016-04-04 10:57:44 +08:00
parent 1a65eabee7
commit a2613bb53e
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"dependencies": {
"patel": ">=0.30.0",
"node-sfnt": ">=0.0.20",
"bezier-js": "*",
"bezier-js": "^2.0.0",
"yargs": "*",
"libspiro-js": ">=0.3.0",
"toml": ">=2.3.0",

View File

@ -190,7 +190,7 @@ export all : class Glyph
local p2 ocontour.(j + 1)
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 ts [strand.inflections].y
local ts [strand.extremas].y
piecewise
(!ts || ts.length < 1) : contour.push p1 p2 p3
true : begin
@ -210,7 +210,7 @@ export all : class Glyph
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
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
(!ts || ts.length < 1) : contour.push p1 p2
true : begin