We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8322050 commit ccfb173Copy full SHA for ccfb173
src/Goban/SVGRenderer.ts
@@ -4611,6 +4611,9 @@ class GCell {
4611
public get g(): SVGGraphicsElement {
4612
if (!this._g) {
4613
this._g = document.createElementNS("http://www.w3.org/2000/svg", "g");
4614
+ if (this._transform) {
4615
+ this.g.setAttribute("transform", this._transform);
4616
+ }
4617
this.renderer.grid_layer!.appendChild(this._g);
4618
}
4619
return this._g;
@@ -4623,6 +4626,11 @@ class GCell {
4623
4626
4624
4627
this._transform = transform;
4625
4628
4629
+ if (!this._g) {
4630
+ // be lazy if we haven't already created the g element
4631
+ return;
4632
4633
+
4634
this.g.setAttribute("transform", transform);
4635
4636
if (this.last_stone_shadow) {
0 commit comments