prototypo-library
Version:
This is prototypo parametric font library
29 lines (22 loc) • 419 B
JavaScript
export default class Constant {
constructor(value, cursor) {
this.cursor = cursor;
this.value = value;
}
analyzeDependency() {
return undefined;
}
getResult() {
return this.value;
}
getNecessaryOperation() {
return [];
}
solveOperationOrder(glyph, operationOrder) {
const result = [];
if (operationOrder.indexOf(this.cursor) === -1) {
result.push(this.cursor);
}
return result;
}
}