Skip to content

Commit

Permalink
export variable aliases with three hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg authored Apr 10, 2024
1 parent 3000cb4 commit 23b22c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ export function updateBounds(s: State): void {
s.dom.bounds.clear();

s.addDimensionsCssVarsTo?.style.setProperty('--cg-width', width + 'px');
s.addDimensionsCssVarsTo?.style.setProperty('---cg-width', width + 'px');
s.addDimensionsCssVarsTo?.style.setProperty('--cg-height', height + 'px');
s.addDimensionsCssVarsTo?.style.setProperty('---cg-height', height + 'px');
}

const isPieceNode = (el: cg.PieceNode | cg.SquareNode): el is cg.PieceNode => el.tagName === 'PIECE';
Expand Down

0 comments on commit 23b22c5

Please sign in to comment.