jssm 5.100.0 → 5.102.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.
- package/CHANGELOG.md +48 -47
- package/README.md +2 -2
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.cjs +1 -1
- package/dist/jssm.es5.iife.nonmin.cjs +14 -16
- package/dist/jssm.es5.nonmin.cjs +14 -16
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm.es6.nonmin.cjs +14 -14
- package/jssm.es5.d.cts +12 -33
- package/jssm.es6.d.ts +12 -33
- package/package.json +7 -7
- package/rollup.config.deno.js +0 -1
- package/rollup.config.es5.js +3 -1
- package/rollup.config.es6.js +3 -1
|
@@ -20647,29 +20647,29 @@ var jssm = (function (exports) {
|
|
|
20647
20647
|
|
|
20648
20648
|
var constants = /*#__PURE__*/Object.freeze({
|
|
20649
20649
|
__proto__: null,
|
|
20650
|
-
NegInfinity: NegInfinity,
|
|
20651
|
-
PosInfinity: PosInfinity,
|
|
20652
|
-
Epsilon: Epsilon,
|
|
20653
|
-
Pi: Pi,
|
|
20654
20650
|
E: E,
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
Ln2: Ln2,
|
|
20651
|
+
Epsilon: Epsilon,
|
|
20652
|
+
EulerC: EulerC,
|
|
20658
20653
|
Ln10: Ln10,
|
|
20659
|
-
|
|
20654
|
+
Ln2: Ln2,
|
|
20660
20655
|
Log10E: Log10E,
|
|
20661
|
-
|
|
20662
|
-
MinSafeInt: MinSafeInt,
|
|
20656
|
+
Log2E: Log2E,
|
|
20663
20657
|
MaxPosNum: MaxPosNum,
|
|
20658
|
+
MaxSafeInt: MaxSafeInt,
|
|
20664
20659
|
MinPosNum: MinPosNum,
|
|
20660
|
+
MinSafeInt: MinSafeInt,
|
|
20661
|
+
NegInfinity: NegInfinity,
|
|
20665
20662
|
Phi: Phi,
|
|
20666
|
-
|
|
20663
|
+
Pi: Pi,
|
|
20664
|
+
PosInfinity: PosInfinity,
|
|
20665
|
+
Root2: Root2,
|
|
20666
|
+
RootHalf: RootHalf,
|
|
20667
20667
|
gviz_shapes: gviz_shapes$1,
|
|
20668
|
-
|
|
20669
|
-
|
|
20668
|
+
named_colors: named_colors$1,
|
|
20669
|
+
shapes: shapes$1
|
|
20670
20670
|
});
|
|
20671
20671
|
|
|
20672
|
-
const version = "5.
|
|
20672
|
+
const version = "5.102.0", build_time = 1729454870660;
|
|
20673
20673
|
|
|
20674
20674
|
// whargarbl lots of these return arrays could/should be sets
|
|
20675
20675
|
const { shapes, gviz_shapes, named_colors } = constants;
|
|
@@ -23175,8 +23175,6 @@ var jssm = (function (exports) {
|
|
|
23175
23175
|
exports.weighted_rand_select = weighted_rand_select;
|
|
23176
23176
|
exports.weighted_sample_select = weighted_sample_select;
|
|
23177
23177
|
|
|
23178
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
23179
|
-
|
|
23180
23178
|
return exports;
|
|
23181
23179
|
|
|
23182
23180
|
})({});
|
package/dist/jssm.es5.nonmin.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
class circular_buffer{constructor(uCapacity){if(!Number.isInteger(uCapacity)){throw new RangeError(`Capacity must be an integer, received ${uCapacity}`)}if(uCapacity<0){throw new RangeError(`Capacity must be a non-negative integer, received ${uCapacity}`)}this._values=new Array(uCapacity);this._capacity=uCapacity;this._cursor=0;this._offset=0;this._length=0;}get capacity(){return this._capacity}set capacity(newSize){this.resize(newSize);}get length(){return this._length}set length(newLength){if(newLength>this._capacity){throw new RangeError(`Requested new length [${newLength}] exceeds container capacity [${this._capacity}]`)}if(newLength<0){throw new RangeError(`Requested new length [${newLength}] cannot be negative`)}if(!Number.isInteger(newLength)){throw new RangeError(`Requested new length [${newLength}] must be an integer`)}if(this._length<=newLength){return}this._length=newLength;}get available(){return this._capacity-this._length}get isEmpty(){return this._length===0}get isFull(){return this._length===this._capacity}get first(){if(this.isEmpty){throw new RangeError("Cannot return first element of an empty container")}return this.at(0)}get last(){if(this.isEmpty){throw new RangeError("Cannot return last element of an empty container")}return this.at(this.length-1)}static from(i,map_fn,t){const new_array=map_fn?Array.from(i,map_fn,t):Array.from(i);const target_length=new_array.length;const ncb=new circular_buffer(target_length);ncb._values=new_array;ncb._length=target_length;return ncb}push(v){if(this.isFull){throw new RangeError(`Cannot push, structure is full to capacity`)}this._values[(this._cursor+this._length++)%this._capacity]=v;return v}shove(v){let shoved;if(this._capacity===0){throw new RangeError(`Cannot shove, structure is zero-capacity`)}if(this.isFull){shoved=this.pop();}this.push(v);return shoved}fill(x){for(let i=0;i<this._capacity;i++){this._values[i]=x;}this._length=this._capacity;return this._values}indexOf(searchElement,fromIndex){const normalized=this.toArray();return normalized.indexOf(searchElement,fromIndex)}find(predicate,thisArg){return this.toArray().find(predicate,thisArg)}every(functor,thisArg){const normalized=this.toArray(),res=normalized.every(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}some(functor,thisArg){const normalized=this.toArray(),res=normalized.some(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}reverse(){const normalized=this.toArray();this._values=normalized.reverse();this._values.length=this._capacity;this._cursor=0;return this}clear(){const old=this.toArray();this._length=0;return old}pop(){if(this._length<=0){throw new RangeError(`Cannot pop, structure is empty`)}const cache=this.at(0);--this._length;++this._offset;++this._cursor;if(this._cursor>=this._capacity){this._cursor-=this._capacity;}return cache}at(i){if(i<0){throw new RangeError(`circular_buffer does not support negative traversals; called at(${i})`)}if(!Number.isInteger(i)){throw new RangeError(`Accessors must be non-negative integers; called at(${i})`)}if(i>=this._capacity){throw new RangeError(`Requested cell ${i} exceeds container permanent capacity`)}if(i>=this._length){throw new RangeError(`Requested cell ${i} exceeds container current length`)}return this._values[(this._cursor+i)%this._capacity]}pos(i){return this.at(i-this.offset())}offset(){return this._offset}resize(newSize,preferEnd=false){this._values=this.toArray();this._cursor=0;const oldSize=this._length;this._length=Math.min(this._length,newSize);this._capacity=newSize;if(newSize>=oldSize){this._values.length=newSize;}else {if(preferEnd){const tmp=this._values.slice(oldSize-newSize);this._values=tmp;}else {this._values.length=newSize;}}}toArray(){const startPoint=this._cursor%this._capacity;if(this._capacity>startPoint+this._length){return this._values.slice(startPoint,startPoint+this._length)}else {const base=this._values.slice(startPoint,this._capacity);base.push(...this._values.slice(0,this.length-(this._capacity-startPoint)));return base}}}
|
|
6
4
|
|
|
7
5
|
const FslDirections = ['up', 'right', 'down', 'left'];
|
|
@@ -20648,29 +20646,29 @@ const named_colors$1 = [
|
|
|
20648
20646
|
|
|
20649
20647
|
var constants = /*#__PURE__*/Object.freeze({
|
|
20650
20648
|
__proto__: null,
|
|
20651
|
-
NegInfinity: NegInfinity,
|
|
20652
|
-
PosInfinity: PosInfinity,
|
|
20653
|
-
Epsilon: Epsilon,
|
|
20654
|
-
Pi: Pi,
|
|
20655
20649
|
E: E,
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
Ln2: Ln2,
|
|
20650
|
+
Epsilon: Epsilon,
|
|
20651
|
+
EulerC: EulerC,
|
|
20659
20652
|
Ln10: Ln10,
|
|
20660
|
-
|
|
20653
|
+
Ln2: Ln2,
|
|
20661
20654
|
Log10E: Log10E,
|
|
20662
|
-
|
|
20663
|
-
MinSafeInt: MinSafeInt,
|
|
20655
|
+
Log2E: Log2E,
|
|
20664
20656
|
MaxPosNum: MaxPosNum,
|
|
20657
|
+
MaxSafeInt: MaxSafeInt,
|
|
20665
20658
|
MinPosNum: MinPosNum,
|
|
20659
|
+
MinSafeInt: MinSafeInt,
|
|
20660
|
+
NegInfinity: NegInfinity,
|
|
20666
20661
|
Phi: Phi,
|
|
20667
|
-
|
|
20662
|
+
Pi: Pi,
|
|
20663
|
+
PosInfinity: PosInfinity,
|
|
20664
|
+
Root2: Root2,
|
|
20665
|
+
RootHalf: RootHalf,
|
|
20668
20666
|
gviz_shapes: gviz_shapes$1,
|
|
20669
|
-
|
|
20670
|
-
|
|
20667
|
+
named_colors: named_colors$1,
|
|
20668
|
+
shapes: shapes$1
|
|
20671
20669
|
});
|
|
20672
20670
|
|
|
20673
|
-
const version = "5.
|
|
20671
|
+
const version = "5.102.0", build_time = 1729454870660;
|
|
20674
20672
|
|
|
20675
20673
|
// whargarbl lots of these return arrays could/should be sets
|
|
20676
20674
|
const { shapes, gviz_shapes, named_colors } = constants;
|