1
0
Fork 0

feat(core): Make goldenRatio named export

This commit is contained in:
joostdecock 2023-09-20 18:56:00 +02:00
parent b3336e7518
commit 524a8494fc
2 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,7 @@ import {
splitCurve, splitCurve,
stretchToScale, stretchToScale,
units, units,
goldenRatio,
} from './utils.mjs' } from './utils.mjs'
import { version } from '../data.mjs' import { version } from '../data.mjs'
@ -83,4 +84,5 @@ export {
splitCurve, splitCurve,
stretchToScale, stretchToScale,
units, units,
goldenRatio,
} }

View file

@ -2,6 +2,8 @@ import { Bezier } from 'bezier-js'
import { Path } from './path.mjs' import { Path } from './path.mjs'
import { Point } from './point.mjs' import { Point } from './point.mjs'
export const goldenRatio = 1.618034
////////////////////////////////////////////// //////////////////////////////////////////////
// PUBLIC METHODS // // PUBLIC METHODS //
////////////////////////////////////////////// //////////////////////////////////////////////