1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 03:59:58 +02:00

missed a css var

This commit is contained in:
Pomax
2020-01-05 12:08:35 -08:00
parent f4e9f77f9c
commit 076958dc79
5 changed files with 78825 additions and 5 deletions

View File

@@ -204,7 +204,6 @@ var API = {
var cvs = this.refs.canvas;
cvs.style.width = this.panelCount * w + "px";
cvs.style.height = h + "px";
cvs.parentNode.style.setProperty(`--figurewidth`, cvs.style.width);
var dpr = this.getPixelRatio();
@@ -270,6 +269,7 @@ var API = {
var cvs = this.refs.canvas;
cvs.width = c * this.defaultWidth * this.getPixelRatio();
cvs.style.width = c * this.defaultWidth + "px";
cvs.parentNode.style.setProperty(`--figurewidth`, cvs.style.width);
},
setOffset: function(f) {