:wip: Working on design theme
This needs to be taken out of this repo later
This commit is contained in:
parent
659e57916c
commit
2160980ed4
9 changed files with 222 additions and 7 deletions
17
lib/snippet.ts
Normal file
17
lib/snippet.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { Point } from './point'
|
||||
import { Attributes } from './attributes'
|
||||
|
||||
export class Snippet {
|
||||
anchor: Point;
|
||||
def: string;
|
||||
attributes: Attributes = new Attributes();
|
||||
description: string | false;
|
||||
|
||||
constructor(anchor: Point, def: string, description: string | false = false) {
|
||||
this.anchor = anchor;
|
||||
this.def = def;
|
||||
this.description = description;
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue