simulationjsv2 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/dist/graphics.js +2 -2
  2. package/package.json +1 -1
package/dist/graphics.js CHANGED
@@ -219,8 +219,8 @@ export class Square extends SimulationElement2d {
219
219
  */
220
220
  constructor(pos, width, height, color, rotation, vertexColors) {
221
221
  super(pos, rotation, color);
222
- this.width = width * devicePixelRatio;
223
- this.height = height * devicePixelRatio;
222
+ this.width = width;
223
+ this.height = height;
224
224
  this.vertexColors = this.cloneColorMap(vertexColors || {});
225
225
  this.geometry = new SquareGeometry(this.width, this.height);
226
226
  this.geometry.setVertexColorMap(this.vertexColors);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Jackson Otto",
7
7
  "description": "A simple graphics library using WebGPU",
8
- "version": "0.2.6",
8
+ "version": "0.2.7",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./dist/index.js",