Add code to generate new glyphs

This commit is contained in:
Shaunak Kishore
2015-10-01 01:42:08 -04:00
parent f60d9132f0
commit 858c0bf411
2 changed files with 27 additions and 1 deletions

14
client/lib/path.js Normal file
View 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'}]);
}
}