zimjs 16.2.8 → 16.2.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/zim.js +13 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zimjs",
3
- "version": "16.2.8",
3
+ "version": "16.2.9",
4
4
  "type": "module",
5
5
  "main": "./src/zim.js",
6
6
  "types": "./ts-src/typings/zim",
package/src/zim.js CHANGED
@@ -32,7 +32,7 @@ Node module - also see ES6 modules at https://zimjs.com/cdn
32
32
  // Thanks to Karel Rosseel for proof-reading the site
33
33
  // Thanks Ami Hanya and team for such prolific work with ZIM and all the suggestions
34
34
  // Of course, thanks to all the ZIM users - it is always nice to hear from you
35
- // at https://zimjs.com/slack and https://zimjs.com/discord
35
+ // at https://forum.zimjs.com and https://zimjs.com/discord
36
36
  // There are several dozen thanks through out the code as well - cheers!
37
37
 
38
38
  // This is used for the build but in a browser would be
@@ -36177,6 +36177,11 @@ NOTE: as of ZIM 5.5.0 the zim namespace is no longer required (unless zns is set
36177
36177
 
36178
36178
  EXAMPLE
36179
36179
  const label = new Label("").pos(0,100,CENTER);
36180
+
36181
+ // The NumPad is built in to the Keyboard
36182
+ // To set the parameters, such as titleBar, use STYLE before making the Keyboard
36183
+ STYLE = {titleBar:"CALCULATE", align:CENTER};
36184
+
36180
36185
  const keyboard = new Keyboard({
36181
36186
  labels:label,
36182
36187
  numPadScale:.75,
@@ -36193,7 +36198,7 @@ PARAMETERS
36193
36198
  ** supports OCT - parameter defaults can be set with STYLE control (like CSS)
36194
36199
  advanced - (default false) set to true to add one more row of round brackets, exponential and percent or modulus
36195
36200
  or set to "simple" to show only numbers, backspace and return
36196
- titleBar - |ZIM VEE| (default "PANEL") a String or ZIM Label title for the panel that will be presented on a titleBar across the top
36201
+ titleBar - |ZIM VEE| (default "NUMPAD") a String or ZIM Label title that will be presented on a titleBar across the top
36197
36202
  titleBarColor - |ZIM VEE| (default black) the text color of the titleBar if a titleBar is requested
36198
36203
  titleBarBackgroundColor - |ZIM VEE| (default "rgba(0,0,0,.2)") the background color of the titleBar if a titleBar is requested
36199
36204
  titleBarHeight - (default fit label) the height of the titleBar if a titleBar is requested
@@ -36291,7 +36296,6 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
36291
36296
  this.type = "NumPad";
36292
36297
 
36293
36298
  var that = this;
36294
-
36295
36299
 
36296
36300
  function ms(letter, color) {
36297
36301
  if (zot(color)) color = mist;
@@ -68781,7 +68785,11 @@ dispatches a "moving" event if target is moving and "startmoving" and "stopmovin
68781
68785
  if (container && container.backing) this.mousedownIncludes.push(container.backing);
68782
68786
  // this.mousedownExcludes = mousedownExcludes;
68783
68787
  if (zot(dampKeyup)) dampKeyup = .3;
68784
-
68788
+
68789
+ if (boundary && boundary.type!="Blob") {
68790
+ target.x = zim.constrain(target.x, boundary.x, boundary.x+boundary.width);
68791
+ target.y = zim.constrain(target.y, boundary.y, boundary.y+boundary.height);
68792
+ }
68785
68793
 
68786
68794
  that.dampKeyup = dampKeyup;
68787
68795
  this.dirX = 0;
@@ -91133,4 +91141,4 @@ export let Ticker = zim.Ticker;
91133
91141
  export let Style = zim.Style;
91134
91142
  export let assets = zim.assets;
91135
91143
  export let assetIDs = zim.assetIDs;
91136
- export let ZIMON = zim.ZIMON;
91144
+ export let ZIMON = zim.ZIMON;