@m2c2kit/addons 0.3.21 → 0.3.22

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/index.js CHANGED
@@ -2810,8 +2810,16 @@ class LocalePicker extends Composite {
2810
2810
  text: this.LEFT_SELECTION_INDICATOR,
2811
2811
  fontSize: this.fontSize,
2812
2812
  fontColor: this.fontColor,
2813
+ /**
2814
+ * We subtract half the fontSize from the x position via
2815
+ * "- this.fontSize / 2" so that the left selection indicator is
2816
+ * positioned slightly to the left of the svg text. Half the font
2817
+ * size seems to be a good amount to make the left selection
2818
+ * indicator appear before the text, and it will scale with font
2819
+ * size changes (unlike a hard-coded value).
2820
+ */
2813
2821
  position: {
2814
- x: sceneCenter.x - localeOption.svg.width / 2,
2822
+ x: sceneCenter.x - localeOption.svg.width / 2 - this.fontSize / 2,
2815
2823
  y: sceneCenter.y + i * lineHeight - dialogHeight / 2 + lineHeight / 2
2816
2824
  },
2817
2825
  hidden: true,
@@ -2824,7 +2832,8 @@ class LocalePicker extends Composite {
2824
2832
  fontSize: this._fontSize,
2825
2833
  fontColor: this.fontColor,
2826
2834
  position: {
2827
- x: sceneCenter.x + localeOption.svg.width / 2,
2835
+ // see above explanation of "- this.fontSize / 2"
2836
+ x: sceneCenter.x + localeOption.svg.width / 2 + this.fontSize / 2,
2828
2837
  y: sceneCenter.y + i * lineHeight - dialogHeight / 2 + lineHeight / 2
2829
2838
  },
2830
2839
  hidden: true,
@@ -3444,7 +3453,7 @@ M2c2KitHelpers.registerM2NodeClass(
3444
3453
  CountdownTimer
3445
3454
  );
3446
3455
 
3447
- console.log("\u26AA @m2c2kit/addons version 0.3.21 (6bd16a4e)");
3456
+ console.log("\u26AA @m2c2kit/addons version 0.3.22 (b4419e1c)");
3448
3457
 
3449
3458
  export { Button, CountdownScene, CountdownTimer, Dialog, DialogResult, DrawPad, DrawPadEventType, DrawPadItemEventType, Grid, Instructions, LocalePicker, VirtualKeyboard };
3450
3459
  //# sourceMappingURL=index.js.map