mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 12:07:15 +08:00
Add code to generate new glyphs
This commit is contained in:
14
client/lib/path.js
Normal file
14
client/lib/path.js
Normal file
@ -0,0 +1,14 @@
|
||||
"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'}]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user