mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-02 04:37:30 +08:00
15 lines
399 B
JavaScript
15 lines
399 B
JavaScript
"use strict";
|
|
|
|
stages.path = class PathStage extends stages.AbstractStage {
|
|
constructor(glyph) {
|
|
super();
|
|
Session.set('stage.type', 'path');
|
|
Session.set('stage.instructions',
|
|
'Choose a source for glyph path data for this character:');
|
|
}
|
|
refresh(glyph) {
|
|
const d = glyph.stages.path;
|
|
Session.set('stage.paths', [{d: d, fill: 'gray', stroke: 'gray'}]);
|
|
}
|
|
}
|