Optimize the garbage collector to produce smaller files
This commit is contained in:
parent
a3836f8144
commit
80700d9dc8
8 changed files with 322 additions and 70 deletions
|
@ -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}>`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue