mirror of https://github.com/lgc-4/DataTools3.git
fix the zoom
This commit is contained in:
parent
eb0bc9d9b9
commit
02502bf4e9
|
@ -15,7 +15,7 @@ function draw() {
|
|||
|
||||
// draw connections
|
||||
c.strokeStyle = "white";
|
||||
c.lineWidth = 3;
|
||||
c.lineWidth = 3 * Camera.zoom;
|
||||
|
||||
for (let box of Box.instances) {
|
||||
for (let input of box.inputs) {
|
||||
|
|
14
style.css
14
style.css
|
@ -50,8 +50,9 @@ body {
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: none;
|
||||
zoom: var(--zoom);
|
||||
font-size: calc(1em * var(--zoom));
|
||||
transform: scale(var(--zoom));
|
||||
transform-origin: top left;
|
||||
/* font-size: calc(1em * var(--zoom));*/
|
||||
}
|
||||
|
||||
|
||||
|
@ -132,6 +133,15 @@ textarea {
|
|||
min-width: 200px;
|
||||
}
|
||||
|
||||
/*#playground input,
|
||||
#playground textarea,
|
||||
#playground select,
|
||||
#playground button,
|
||||
#playground .connectorLabel,
|
||||
#playground .boxTitle {
|
||||
scale: var(--zoom);
|
||||
}*/
|
||||
|
||||
.boxConnectorContainer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
Loading…
Reference in New Issue