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.
- package/dist/graphics.js +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
|
|
223
|
-
this.height = height
|
|
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);
|