mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Declare all Character/ParagraphStyle properties that change GEOMETRY.
Fixing a failing test that showed up after debugging code was removed in recent commit, which disabled speed optimisations.
This commit is contained in:
parent
0fcee7d8df
commit
16113d5462
2 changed files with 9 additions and 1 deletions
|
@ -43,7 +43,12 @@ var CharacterStyle = this.CharacterStyle = PathStyle.extend(/** @lends Character
|
|||
fontSize: 12,
|
||||
leading: null,
|
||||
font: 'sans-serif'
|
||||
})
|
||||
}),
|
||||
_flags: {
|
||||
fontSize: Change.GEOMETRY,
|
||||
leading: Change.GEOMETRY,
|
||||
font: Change.GEOMETRY
|
||||
}
|
||||
|
||||
/**
|
||||
* CharacterStyle objects don't need to be created directly. Just pass an
|
||||
|
|
|
@ -35,6 +35,9 @@ var ParagraphStyle = this.ParagraphStyle = Style.extend(/** @lends ParagraphStyl
|
|||
_style: 'paragraphStyle',
|
||||
_defaults: {
|
||||
justification: 'left'
|
||||
},
|
||||
_flags: {
|
||||
justification: Change.GEOMETRY
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue