🚧 Working on themes
This commit is contained in:
parent
4f39f5e357
commit
ccd95c612d
12 changed files with 241 additions and 25 deletions
11
lib/path.ts
11
lib/path.ts
|
@ -3,10 +3,7 @@ import { Attributes } from './attributes'
|
|||
|
||||
|
||||
export class Path {
|
||||
constructor() {
|
||||
return this;
|
||||
}
|
||||
|
||||
render: boolean = true;
|
||||
ops: {
|
||||
type: "move" | "line" | "curve" | "close";
|
||||
to?: Point;
|
||||
|
@ -69,10 +66,4 @@ export class Path {
|
|||
return d;
|
||||
}
|
||||
|
||||
/** Returns SVG code for this path */
|
||||
render(): string {
|
||||
this.attributes.add('d', this.asPathstring());
|
||||
return `<path ${this.render()} />`;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue