mirror of
				https://github.com/skishore/makemeahanzi.git
				synced 2025-10-31 10:56:39 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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'}],
 | |
| });
 | 
