simulationjsv2 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TODO.md +2 -2
- package/dist/graphics.js +2 -2
- package/package.json +1 -1
package/TODO.md
CHANGED
package/dist/graphics.js
CHANGED
|
@@ -375,8 +375,8 @@ export class Square extends SimulationElement2d {
|
|
|
375
375
|
*/
|
|
376
376
|
constructor(pos, width, height, color, rotation) {
|
|
377
377
|
super(pos, vector3(0, 0, rotation), color);
|
|
378
|
-
this.width = width;
|
|
379
|
-
this.height = height;
|
|
378
|
+
this.width = width / devicePixelRatio;
|
|
379
|
+
this.height = height / devicePixelRatio;
|
|
380
380
|
this.geometry = new SquareGeometry(this.width, this.height);
|
|
381
381
|
}
|
|
382
382
|
getWidth() {
|