Introduced libspiro-js into Iosevka.
This commit is contained in:
parent
0ffc4f58cf
commit
14acdd1f1e
7 changed files with 284 additions and 107 deletions
|
@ -3,7 +3,8 @@ exports.transformPoint = function(tfm, pt){
|
|||
x : pt.x * tfm.xx + pt.y * tfm.yx + tfm.x,
|
||||
y : pt.x * tfm.xy + pt.y * tfm.yy + tfm.y,
|
||||
onCurve: pt.onCurve,
|
||||
cubic: pt.cubic
|
||||
cubic: pt.cubic,
|
||||
subdivided: pt.subdivided
|
||||
}
|
||||
}
|
||||
exports.inverse = function(tfm){
|
||||
|
@ -25,6 +26,7 @@ exports.untransform = function(tfm, pt){
|
|||
x : (xx * tfm.yy - yy * tfm.yx) / denom,
|
||||
y : (yy * tfm.xx - xx * tfm.xy) / denom,
|
||||
onCurve: pt.onCurve,
|
||||
cubic: pt.cubic
|
||||
cubic: pt.cubic,
|
||||
subdivided: pt.subdivided
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue