Skip to content

Commit 0cda302

Browse files
committed
increased rendering precision
1 parent ce67975 commit 0cda302

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

morphic.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@
13061306

13071307
/*jshint esversion: 11, bitwise: false*/
13081308

1309-
var morphicVersion = '2023-March-16';
1309+
var morphicVersion = '2023-July-13';
13101310
var modules = {}; // keep track of additional loaded modules
13111311
var useBlurredShadows = true;
13121312

@@ -2765,7 +2765,7 @@ Rectangle.prototype.boundingBox = function () {
27652765

27662766
Rectangle.prototype.center = function () {
27672767
return this.origin.add(
2768-
this.corner.subtract(this.origin).floorDivideBy(2)
2768+
this.corner.subtract(this.origin).divideBy(2)
27692769
);
27702770
};
27712771

@@ -3464,15 +3464,15 @@ Morph.prototype.setBottom = function (y) {
34643464
Morph.prototype.setCenter = function (aPoint) {
34653465
this.setPosition(
34663466
aPoint.subtract(
3467-
this.extent().floorDivideBy(2)
3467+
this.extent().divideBy(2)
34683468
)
34693469
);
34703470
};
34713471

34723472
Morph.prototype.setFullCenter = function (aPoint) {
34733473
this.setPosition(
34743474
aPoint.subtract(
3475-
this.fullBounds().extent().floorDivideBy(2)
3475+
this.fullBounds().extent().divideBy(2)
34763476
)
34773477
);
34783478
};
@@ -8261,7 +8261,7 @@ MenuMorph.prototype.adjustWidths = function () {
82618261
if (item === this.label) {
82628262
item.text.setPosition(
82638263
item.center().subtract(
8264-
item.text.extent().floorDivideBy(2)
8264+
item.text.extent().divideBy(2)
82658265
)
82668266
);
82678267
}
@@ -9919,7 +9919,7 @@ TriggerMorph.prototype.createLabel = function () {
99199919
TriggerMorph.prototype.fixLayout = function () {
99209920
this.label.setPosition(
99219921
this.center().subtract(
9922-
this.label.extent().floorDivideBy(2)
9922+
this.label.extent().divideBy(2)
99239923
)
99249924
);
99259925
};

0 commit comments

Comments
 (0)