opentypejs / opentype.js

Read and write OpenType fonts using JavaScript.
https://opentype.js.org/
MIT License
4.38k stars 468 forks source link

Incorrect constant name or value in code example: #407

Closed ryami333 closed 4 years ago

ryami333 commented 4 years ago

https://github.com/opentypejs/opentype.js/blob/89939f159597b841e9465bf897591813c3be2ad1/src/glyph.js#L279

Should either be:

const TWO_PI = Math.PI * 2;

OR:

const PI_SQ = Math.pow(Math.PI, 2);

Not sure which is incorrect, the math or the const name.

Jolg42 commented 4 years ago

I removed the var 😄