melonjs 10.6.0 → 10.6.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * melonJS Game Engine - v10.6.0
2
+ * melonJS Game Engine - v10.6.1
3
3
  * http://www.melonjs.org
4
4
  * melonjs is licensed under the MIT License.
5
5
  * http://www.opensource.org/licenses/mit-license
@@ -31930,10 +31930,10 @@ class BasePlugin {
31930
31930
  * this can be overridden by the plugin
31931
31931
  * @public
31932
31932
  * @type {string}
31933
- * @default "10.6.0"
31933
+ * @default "10.6.1"
31934
31934
  * @name plugin.Base#version
31935
31935
  */
31936
- this.version = "10.6.0";
31936
+ this.version = "10.6.1";
31937
31937
  }
31938
31938
  }
31939
31939
 
@@ -33679,11 +33679,6 @@ class BitmapText extends Renderable {
33679
33679
  this.floating = !!settings.floating;
33680
33680
  }
33681
33681
 
33682
- // resize if necessary
33683
- if (typeof settings.size === "number" && settings.size !== 1.0) {
33684
- this.resize(settings.size);
33685
- }
33686
-
33687
33682
  // apply given fillstyle
33688
33683
  if (typeof settings.fillStyle !== "undefined") {
33689
33684
  if (settings.fillStyle instanceof Color) {
@@ -33704,6 +33699,11 @@ class BitmapText extends Renderable {
33704
33699
  // instance to text metrics functions
33705
33700
  this.metrics = new TextMetrics(this);
33706
33701
 
33702
+ // resize if necessary
33703
+ if (typeof settings.size === "number" && settings.size !== 1.0) {
33704
+ this.resize(settings.size);
33705
+ }
33706
+
33707
33707
  // set the text
33708
33708
  this.setText(settings.text);
33709
33709
  }
@@ -36537,7 +36537,7 @@ class DroptargetEntity extends DropTarget {
36537
36537
  * @name version
36538
36538
  * @type {string}
36539
36539
  */
36540
- const version = "10.6.0";
36540
+ const version = "10.6.1";
36541
36541
 
36542
36542
 
36543
36543
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "melonjs",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "melonJS Game Engine",
5
5
  "homepage": "http://www.melonjs.org/",
6
6
  "keywords": [
@@ -117,11 +117,6 @@ class BitmapText extends Renderable {
117
117
  this.floating = !!settings.floating;
118
118
  }
119
119
 
120
- // resize if necessary
121
- if (typeof settings.size === "number" && settings.size !== 1.0) {
122
- this.resize(settings.size);
123
- }
124
-
125
120
  // apply given fillstyle
126
121
  if (typeof settings.fillStyle !== "undefined") {
127
122
  if (settings.fillStyle instanceof Color) {
@@ -142,6 +137,11 @@ class BitmapText extends Renderable {
142
137
  // instance to text metrics functions
143
138
  this.metrics = new TextMetrics(this);
144
139
 
140
+ // resize if necessary
141
+ if (typeof settings.size === "number" && settings.size !== 1.0) {
142
+ this.resize(settings.size);
143
+ }
144
+
145
145
  // set the text
146
146
  this.setText(settings.text);
147
147
  }