@wcardinal/wcardinal-ui 0.433.0 → 0.434.0

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
- Winter Cardinal UI v0.433.0
2
+ Winter Cardinal UI v0.434.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -56321,12 +56321,14 @@ var toGridScale$1 = function (scale) {
56321
56321
  if (scale <= 0 || 1 <= scale) {
56322
56322
  return 1;
56323
56323
  }
56324
- var target = 1 / scale;
56325
- var result = 1;
56326
- while (result < target && result < Number.MAX_SAFE_INTEGER) {
56327
- result <<= 1;
56328
- }
56329
- return result;
56324
+ var s = 1 / scale;
56325
+ s = s | (s >> 1);
56326
+ s = s | (s >> 2);
56327
+ s = s | (s >> 4);
56328
+ s = s | (s >> 8);
56329
+ s = s | (s >> 16);
56330
+ s = s | (s >> 32);
56331
+ return s - (s >> 1);
56330
56332
  };
56331
56333
  var toGridSize$1 = function (grid, width, height, scale) {
56332
56334
  var canvas = Math.max(width, height);
@@ -66866,12 +66868,14 @@ var toGridScale = function (scale) {
66866
66868
  if (scale <= 0 || 1 <= scale) {
66867
66869
  return 1;
66868
66870
  }
66869
- var target = 1 / scale;
66870
- var result = 1;
66871
- while (result < target && result < Number.MAX_SAFE_INTEGER) {
66872
- result <<= 1;
66873
- }
66874
- return result;
66871
+ var s = 1 / scale;
66872
+ s = s | (s >> 1);
66873
+ s = s | (s >> 2);
66874
+ s = s | (s >> 4);
66875
+ s = s | (s >> 8);
66876
+ s = s | (s >> 16);
66877
+ s = s | (s >> 32);
66878
+ return s - (s >> 1);
66875
66879
  };
66876
66880
  var toGridSize = function (grid, width, height, scale) {
66877
66881
  var canvas = Math.max(width, height);
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.433.0
2
+ Winter Cardinal UI v0.434.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.433.0
2
+ Winter Cardinal UI v0.434.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcardinal/wcardinal-ui",
3
- "version": "0.433.0",
3
+ "version": "0.434.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "A WebGL-based UI library",
6
6
  "homepage": "https://github.com/winter-cardinal/winter-cardinal-ui",