feat(core): Make goldenRatio named export
This commit is contained in:
parent
b3336e7518
commit
524a8494fc
2 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 //
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue