Optimize the garbage collector to produce smaller files

This commit is contained in:
be5invis 2023-08-25 03:11:15 -07:00
parent a3836f8144
commit 80700d9dc8
8 changed files with 322 additions and 70 deletions

View file

@ -1,3 +1,5 @@
import * as util from "util";
import { Anchor } from "../geometry/anchor.mjs";
import * as Geom from "../geometry/index.mjs";
import { Point, Vec2 } from "../geometry/point.mjs";
@ -23,6 +25,10 @@ export class Glyph {
this.ctxTag = null;
}
[util.inspect.custom](depth, options) {
return options.stylize(this.toString(), "special");
}
toString() {
return `<Glyph ${this._m_identifier}>`;
}