feat(core): Added scale setting
This commit is contained in:
parent
724d5a8075
commit
e4a87f3324
2 changed files with 3 additions and 1 deletions
|
@ -60,6 +60,7 @@ export default function Pattern(config = { options: {} }) {
|
|||
margin: 2,
|
||||
layout: true,
|
||||
debug: true,
|
||||
scale: 1,
|
||||
options: {},
|
||||
absoluteOptions: {},
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@ import { round } from './utils'
|
|||
import { version } from '../package.json'
|
||||
|
||||
function Svg(pattern) {
|
||||
console.log(pattern)
|
||||
this.openGroups = []
|
||||
this.layout = {}
|
||||
this.freeId = 0
|
||||
this.body = ''
|
||||
this.style = ''
|
||||
this.style = `svg.freesewing.pattern { --pattern-scale: ${pattern.settings.scale} }`
|
||||
this.script = ''
|
||||
this.defs = ''
|
||||
this.pattern = pattern // Needed to expose pattern to hooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue