mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 20:27:44 +08:00
Clean up stage persistence UI further
This commit is contained in:
@ -3,9 +3,10 @@
|
||||
stages.path = class PathStage extends stages.AbstractStage {
|
||||
constructor(glyph) {
|
||||
super('path');
|
||||
this.adjusted = glyph.stages.path;
|
||||
}
|
||||
refresh(glyph) {
|
||||
const d = glyph.stages.path;
|
||||
refreshUI() {
|
||||
const d = this.adjusted;
|
||||
Session.set('stage.paths', [{d: d, fill: 'gray', stroke: 'gray'}]);
|
||||
Session.set('stage.status',
|
||||
d ? [] : [{cls: 'error', message: 'No path data.'}]);
|
||||
|
||||
Reference in New Issue
Block a user