Files
2015-10-28 23:07:10 -04:00

19 lines
476 B
JavaScript

"use strict";
stages.path = class PathStage extends stages.AbstractStage {
constructor(glyph) {
super('path');
this.adjusted = 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.'}]);
}
}
Template.path_stage.helpers({
options: () => [{label: 'gkai'}, {label: 'UKaiCN'}],
});