MCPcopy Create free account
hub / github.com/alignoth/alignoth / _render

Method _render

resources/vega.min.js:15260–15286  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

15258 return this._text;
15259 }
15260 _render(t) {
15261 const e = n_();
15262 e.open(
15263 "svg",
15264 ot({}, uy, {
15265 class: "marks",
15266 width: this._width * this._scale,
15267 height: this._height * this._scale,
15268 viewBox: `0 0 ${this._width} ${this._height}`,
15269 }),
15270 );
15271 const n = this._bgcolor;
15272 return (
15273 n &&
15274 "transparent" !== n &&
15275 "none" !== n &&
15276 e
15277 .open("rect", { width: this._width, height: this._height, fill: n })
15278 .close(),
15279 e.open("g", s_, { transform: "translate(" + this._origin + ")" }),
15280 this.mark(e, t),
15281 e.close(),
15282 this.defs(e),
15283 (this._text = e.close() + ""),
15284 this
15285 );
15286 }
15287 mark(t, e) {
15288 const n = Hy[e.marktype],
15289 r = n.tag,

Callers

nothing calls this directly

Calls 4

markMethod · 0.95
defsMethod · 0.95
n_Function · 0.85
otFunction · 0.70

Tested by

no test coverage detected