Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Nov 30, 2024
1 parent 3742e63 commit 80b9afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var SetTransform = function (line, bounds) {
var SetSizeFromBounds = function (line, bounds) {
// Size
var bounds = this.bounds;
var radius = this.pointRadius;
Expand All @@ -15,4 +15,4 @@ var SetTransform = function (line, bounds) {
line.offset(-x, -y);
}

export default SetTransform;
export default SetSizeFromBounds;
4 changes: 2 additions & 2 deletions plugins/gameobjects/shape/line/methods/ShapesUpdateMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import DrawSpinleCurve from './DrawSpinleCurve.js';
import DrawStraightLine from './DrawStraightLine.js';
import DrawPolyLine from './DrawPolyLine.js';
import GetBounds from './GetBounds.js';
import SetTransform from './SetTransform.js';
import SetSizeFromBounds from './SetSizeFromBounds.js';

export default {
buildShapes() {
Expand Down Expand Up @@ -41,6 +41,6 @@ export default {
}

this.bounds = GetBounds.call(this, line.pathData, true);
SetTransform.call(this, line);
SetSizeFromBounds.call(this, line);
}
}

0 comments on commit 80b9afb

Please sign in to comment.