@ni/nimble-components 21.9.1 → 21.10.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.
@@ -16301,7 +16301,7 @@
16301
16301
 
16302
16302
  /**
16303
16303
  * Do not edit directly
16304
- * Generated on Wed, 06 Mar 2024 17:40:30 GMT
16304
+ * Generated on Thu, 07 Mar 2024 21:04:49 GMT
16305
16305
  */
16306
16306
 
16307
16307
  const Information100DarkUi = "#a46eff";
@@ -44081,7 +44081,7 @@ img.ProseMirror-separator {
44081
44081
  .map((c) => c.charCodeAt(0)));
44082
44082
 
44083
44083
  // Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
44084
- var _a$1;
44084
+ var _a$2;
44085
44085
  const decodeMap = new Map([
44086
44086
  [0, 65533],
44087
44087
  // C1 Unicode control character reference replacements
@@ -44118,7 +44118,7 @@ img.ProseMirror-separator {
44118
44118
  */
44119
44119
  const fromCodePoint$1 =
44120
44120
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
44121
- (_a$1 = String.fromCodePoint) !== null && _a$1 !== void 0 ? _a$1 : function (codePoint) {
44121
+ (_a$2 = String.fromCodePoint) !== null && _a$2 !== void 0 ? _a$2 : function (codePoint) {
44122
44122
  let output = "";
44123
44123
  if (codePoint > 0xffff) {
44124
44124
  codePoint -= 0x10000;
@@ -52696,7 +52696,7 @@ img.ProseMirror-separator {
52696
52696
  }
52697
52697
  }
52698
52698
 
52699
- var _a;
52699
+ var _a$1;
52700
52700
  /**
52701
52701
  * Provides markdown parser for rich text components
52702
52702
  */
@@ -52820,11 +52820,11 @@ img.ProseMirror-separator {
52820
52820
  RichTextMarkdownParser.mentionedHrefs.clear();
52821
52821
  }
52822
52822
  }
52823
- _a = RichTextMarkdownParser;
52823
+ _a$1 = RichTextMarkdownParser;
52824
52824
  RichTextMarkdownParser.mentionedHrefs = new Set();
52825
- RichTextMarkdownParser.updatedSchema = _a.getCustomSchemaConfiguration();
52826
- RichTextMarkdownParser.markdownParser = _a.initializeMarkdownParser();
52827
- RichTextMarkdownParser.domSerializer = DOMSerializer.fromSchema(_a.updatedSchema);
52825
+ RichTextMarkdownParser.updatedSchema = _a$1.getCustomSchemaConfiguration();
52826
+ RichTextMarkdownParser.markdownParser = _a$1.initializeMarkdownParser();
52827
+ RichTextMarkdownParser.domSerializer = DOMSerializer.fromSchema(_a$1.updatedSchema);
52828
52828
 
52829
52829
  /**
52830
52830
  * Provides markdown serializer for rich text components
@@ -75216,9 +75216,10 @@ img.ProseMirror-separator {
75216
75216
  }
75217
75217
  updateDiesRenderInfo() {
75218
75218
  this.d3ColorScale = this.createD3ColorScale(this.wafermap.colorScale, this.wafermap.colorScaleMode);
75219
+ const isDieRenderInfo = (info) => info !== null;
75219
75220
  this._diesRenderInfo = this.wafermap.dies
75220
75221
  .map(die => this.computeDieRenderInfo(die))
75221
- .filter(info => info !== null);
75222
+ .filter(isDieRenderInfo);
75222
75223
  }
75223
75224
  computeDieRenderInfo(die) {
75224
75225
  const margin = this.dataManager.margin;
@@ -75723,6 +75724,599 @@ img.ProseMirror-separator {
75723
75724
  }
75724
75725
  }
75725
75726
 
75727
+ // automatically generated by the FlatBuffers compiler, do not modify
75728
+ var UnionMode;
75729
+ (function (UnionMode) {
75730
+ UnionMode[UnionMode["Sparse"] = 0] = "Sparse";
75731
+ UnionMode[UnionMode["Dense"] = 1] = "Dense";
75732
+ })(UnionMode || (UnionMode = {}));
75733
+
75734
+ // automatically generated by the FlatBuffers compiler, do not modify
75735
+ var Precision;
75736
+ (function (Precision) {
75737
+ Precision[Precision["HALF"] = 0] = "HALF";
75738
+ Precision[Precision["SINGLE"] = 1] = "SINGLE";
75739
+ Precision[Precision["DOUBLE"] = 2] = "DOUBLE";
75740
+ })(Precision || (Precision = {}));
75741
+
75742
+ // automatically generated by the FlatBuffers compiler, do not modify
75743
+ var DateUnit;
75744
+ (function (DateUnit) {
75745
+ DateUnit[DateUnit["DAY"] = 0] = "DAY";
75746
+ DateUnit[DateUnit["MILLISECOND"] = 1] = "MILLISECOND";
75747
+ })(DateUnit || (DateUnit = {}));
75748
+
75749
+ // automatically generated by the FlatBuffers compiler, do not modify
75750
+ var TimeUnit;
75751
+ (function (TimeUnit) {
75752
+ TimeUnit[TimeUnit["SECOND"] = 0] = "SECOND";
75753
+ TimeUnit[TimeUnit["MILLISECOND"] = 1] = "MILLISECOND";
75754
+ TimeUnit[TimeUnit["MICROSECOND"] = 2] = "MICROSECOND";
75755
+ TimeUnit[TimeUnit["NANOSECOND"] = 3] = "NANOSECOND";
75756
+ })(TimeUnit || (TimeUnit = {}));
75757
+
75758
+ // automatically generated by the FlatBuffers compiler, do not modify
75759
+ var IntervalUnit;
75760
+ (function (IntervalUnit) {
75761
+ IntervalUnit[IntervalUnit["YEAR_MONTH"] = 0] = "YEAR_MONTH";
75762
+ IntervalUnit[IntervalUnit["DAY_TIME"] = 1] = "DAY_TIME";
75763
+ IntervalUnit[IntervalUnit["MONTH_DAY_NANO"] = 2] = "MONTH_DAY_NANO";
75764
+ })(IntervalUnit || (IntervalUnit = {}));
75765
+
75766
+ // Licensed to the Apache Software Foundation (ASF) under one
75767
+ // or more contributor license agreements. See the NOTICE file
75768
+ // distributed with this work for additional information
75769
+ // regarding copyright ownership. The ASF licenses this file
75770
+ // to you under the Apache License, Version 2.0 (the
75771
+ // "License"); you may not use this file except in compliance
75772
+ // with the License. You may obtain a copy of the License at
75773
+ //
75774
+ // http://www.apache.org/licenses/LICENSE-2.0
75775
+ //
75776
+ // Unless required by applicable law or agreed to in writing,
75777
+ // software distributed under the License is distributed on an
75778
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
75779
+ // KIND, either express or implied. See the License for the
75780
+ // specific language governing permissions and limitations
75781
+ // under the License.
75782
+ /**
75783
+ * Main data type enumeration.
75784
+ *
75785
+ * Data types in this library are all *logical*. They can be expressed as
75786
+ * either a primitive physical type (bytes or bits of some fixed size), a
75787
+ * nested type consisting of other data types, or another data type (e.g. a
75788
+ * timestamp encoded as an int64).
75789
+ *
75790
+ * **Note**: Only non-negative enum values are written to an Arrow IPC payload.
75791
+ *
75792
+ * The rest of the values are specified here so TypeScript can narrow the type
75793
+ * signatures further beyond the base Arrow Types. The Arrow DataTypes include
75794
+ * metadata like `bitWidth` that impact the type signatures of the values we
75795
+ * accept and return.
75796
+ *
75797
+ * For example, the `Int8Vector` reads 1-byte numbers from an `Int8Array`, an
75798
+ * `Int32Vector` reads a 4-byte number from an `Int32Array`, and an `Int64Vector`
75799
+ * reads a pair of 4-byte lo, hi 32-bit integers as a zero-copy slice from the
75800
+ * underlying `Int32Array`.
75801
+ *
75802
+ * Library consumers benefit by knowing the narrowest type, since we can ensure
75803
+ * the types across all public methods are propagated, and never bail to `any`.
75804
+ * These values are _never_ used at runtime, and they will _never_ be written
75805
+ * to the flatbuffers metadata of serialized Arrow IPC payloads.
75806
+ */
75807
+ var Type;
75808
+ (function (Type) {
75809
+ Type[Type["NONE"] = 0] = "NONE";
75810
+ Type[Type["Null"] = 1] = "Null";
75811
+ Type[Type["Int"] = 2] = "Int";
75812
+ Type[Type["Float"] = 3] = "Float";
75813
+ Type[Type["Binary"] = 4] = "Binary";
75814
+ Type[Type["Utf8"] = 5] = "Utf8";
75815
+ Type[Type["Bool"] = 6] = "Bool";
75816
+ Type[Type["Decimal"] = 7] = "Decimal";
75817
+ Type[Type["Date"] = 8] = "Date";
75818
+ Type[Type["Time"] = 9] = "Time";
75819
+ Type[Type["Timestamp"] = 10] = "Timestamp";
75820
+ Type[Type["Interval"] = 11] = "Interval";
75821
+ Type[Type["List"] = 12] = "List";
75822
+ Type[Type["Struct"] = 13] = "Struct";
75823
+ Type[Type["Union"] = 14] = "Union";
75824
+ Type[Type["FixedSizeBinary"] = 15] = "FixedSizeBinary";
75825
+ Type[Type["FixedSizeList"] = 16] = "FixedSizeList";
75826
+ Type[Type["Map"] = 17] = "Map";
75827
+ Type[Type["Duration"] = 18] = "Duration";
75828
+ Type[Type["LargeBinary"] = 19] = "LargeBinary";
75829
+ Type[Type["LargeUtf8"] = 20] = "LargeUtf8";
75830
+ Type[Type["Dictionary"] = -1] = "Dictionary";
75831
+ Type[Type["Int8"] = -2] = "Int8";
75832
+ Type[Type["Int16"] = -3] = "Int16";
75833
+ Type[Type["Int32"] = -4] = "Int32";
75834
+ Type[Type["Int64"] = -5] = "Int64";
75835
+ Type[Type["Uint8"] = -6] = "Uint8";
75836
+ Type[Type["Uint16"] = -7] = "Uint16";
75837
+ Type[Type["Uint32"] = -8] = "Uint32";
75838
+ Type[Type["Uint64"] = -9] = "Uint64";
75839
+ Type[Type["Float16"] = -10] = "Float16";
75840
+ Type[Type["Float32"] = -11] = "Float32";
75841
+ Type[Type["Float64"] = -12] = "Float64";
75842
+ Type[Type["DateDay"] = -13] = "DateDay";
75843
+ Type[Type["DateMillisecond"] = -14] = "DateMillisecond";
75844
+ Type[Type["TimestampSecond"] = -15] = "TimestampSecond";
75845
+ Type[Type["TimestampMillisecond"] = -16] = "TimestampMillisecond";
75846
+ Type[Type["TimestampMicrosecond"] = -17] = "TimestampMicrosecond";
75847
+ Type[Type["TimestampNanosecond"] = -18] = "TimestampNanosecond";
75848
+ Type[Type["TimeSecond"] = -19] = "TimeSecond";
75849
+ Type[Type["TimeMillisecond"] = -20] = "TimeMillisecond";
75850
+ Type[Type["TimeMicrosecond"] = -21] = "TimeMicrosecond";
75851
+ Type[Type["TimeNanosecond"] = -22] = "TimeNanosecond";
75852
+ Type[Type["DenseUnion"] = -23] = "DenseUnion";
75853
+ Type[Type["SparseUnion"] = -24] = "SparseUnion";
75854
+ Type[Type["IntervalDayTime"] = -25] = "IntervalDayTime";
75855
+ Type[Type["IntervalYearMonth"] = -26] = "IntervalYearMonth";
75856
+ Type[Type["DurationSecond"] = -27] = "DurationSecond";
75857
+ Type[Type["DurationMillisecond"] = -28] = "DurationMillisecond";
75858
+ Type[Type["DurationMicrosecond"] = -29] = "DurationMicrosecond";
75859
+ Type[Type["DurationNanosecond"] = -30] = "DurationNanosecond";
75860
+ })(Type || (Type = {}));
75861
+ var BufferType;
75862
+ (function (BufferType) {
75863
+ /**
75864
+ * used in List type, Dense Union and variable length primitive types (String, Binary)
75865
+ */
75866
+ BufferType[BufferType["OFFSET"] = 0] = "OFFSET";
75867
+ /**
75868
+ * actual data, either fixed width primitive types in slots or variable width delimited by an OFFSET vector
75869
+ */
75870
+ BufferType[BufferType["DATA"] = 1] = "DATA";
75871
+ /**
75872
+ * Bit vector indicating if each value is null
75873
+ */
75874
+ BufferType[BufferType["VALIDITY"] = 2] = "VALIDITY";
75875
+ /**
75876
+ * Type vector used in Union type
75877
+ */
75878
+ BufferType[BufferType["TYPE"] = 3] = "TYPE";
75879
+ })(BufferType || (BufferType = {}));
75880
+
75881
+ // Licensed to the Apache Software Foundation (ASF) under one
75882
+ // or more contributor license agreements. See the NOTICE file
75883
+ // distributed with this work for additional information
75884
+ // regarding copyright ownership. The ASF licenses this file
75885
+ // to you under the Apache License, Version 2.0 (the
75886
+ // "License"); you may not use this file except in compliance
75887
+ // with the License. You may obtain a copy of the License at
75888
+ //
75889
+ // http://www.apache.org/licenses/LICENSE-2.0
75890
+ //
75891
+ // Unless required by applicable law or agreed to in writing,
75892
+ // software distributed under the License is distributed on an
75893
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
75894
+ // KIND, either express or implied. See the License for the
75895
+ // specific language governing permissions and limitations
75896
+ // under the License.
75897
+ /**
75898
+ * Converts an integer as a number or bigint to a number, throwing an error if the input cannot safely be represented as a number.
75899
+ */
75900
+ function bigIntToNumber(number) {
75901
+ if (typeof number === 'bigint' && (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER)) {
75902
+ throw new TypeError(`${number} is not safe to convert to a number.`);
75903
+ }
75904
+ return Number(number);
75905
+ }
75906
+
75907
+ // Licensed to the Apache Software Foundation (ASF) under one
75908
+ // or more contributor license agreements. See the NOTICE file
75909
+ // distributed with this work for additional information
75910
+ // regarding copyright ownership. The ASF licenses this file
75911
+ // to you under the Apache License, Version 2.0 (the
75912
+ // "License"); you may not use this file except in compliance
75913
+ // with the License. You may obtain a copy of the License at
75914
+ //
75915
+ // http://www.apache.org/licenses/LICENSE-2.0
75916
+ //
75917
+ // Unless required by applicable law or agreed to in writing,
75918
+ // software distributed under the License is distributed on an
75919
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
75920
+ // KIND, either express or implied. See the License for the
75921
+ // specific language governing permissions and limitations
75922
+ // under the License.
75923
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
75924
+ /**
75925
+ * An abstract base class for classes that encapsulate metadata about each of
75926
+ * the logical types that Arrow can represent.
75927
+ */
75928
+ class DataType {
75929
+ /** @nocollapse */ static isNull(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Null; }
75930
+ /** @nocollapse */ static isInt(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Int; }
75931
+ /** @nocollapse */ static isFloat(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Float; }
75932
+ /** @nocollapse */ static isBinary(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Binary; }
75933
+ /** @nocollapse */ static isLargeBinary(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.LargeBinary; }
75934
+ /** @nocollapse */ static isUtf8(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Utf8; }
75935
+ /** @nocollapse */ static isLargeUtf8(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.LargeUtf8; }
75936
+ /** @nocollapse */ static isBool(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Bool; }
75937
+ /** @nocollapse */ static isDecimal(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Decimal; }
75938
+ /** @nocollapse */ static isDate(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Date; }
75939
+ /** @nocollapse */ static isTime(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Time; }
75940
+ /** @nocollapse */ static isTimestamp(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Timestamp; }
75941
+ /** @nocollapse */ static isInterval(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Interval; }
75942
+ /** @nocollapse */ static isDuration(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Duration; }
75943
+ /** @nocollapse */ static isList(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.List; }
75944
+ /** @nocollapse */ static isStruct(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Struct; }
75945
+ /** @nocollapse */ static isUnion(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Union; }
75946
+ /** @nocollapse */ static isFixedSizeBinary(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.FixedSizeBinary; }
75947
+ /** @nocollapse */ static isFixedSizeList(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.FixedSizeList; }
75948
+ /** @nocollapse */ static isMap(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Map; }
75949
+ /** @nocollapse */ static isDictionary(x) { return (x === null || x === void 0 ? void 0 : x.typeId) === Type.Dictionary; }
75950
+ /** @nocollapse */ static isDenseUnion(x) { return DataType.isUnion(x) && x.mode === UnionMode.Dense; }
75951
+ /** @nocollapse */ static isSparseUnion(x) { return DataType.isUnion(x) && x.mode === UnionMode.Sparse; }
75952
+ constructor(typeId) {
75953
+ this.typeId = typeId;
75954
+ }
75955
+ }
75956
+ _a = Symbol.toStringTag;
75957
+ DataType[_a] = ((proto) => {
75958
+ proto.children = null;
75959
+ proto.ArrayType = Array;
75960
+ proto.OffsetArrayType = Int32Array;
75961
+ return proto[Symbol.toStringTag] = 'DataType';
75962
+ })(DataType.prototype);
75963
+ /** @ignore */
75964
+ class Null extends DataType {
75965
+ constructor() {
75966
+ super(Type.Null);
75967
+ }
75968
+ toString() { return `Null`; }
75969
+ }
75970
+ _b = Symbol.toStringTag;
75971
+ Null[_b] = ((proto) => proto[Symbol.toStringTag] = 'Null')(Null.prototype);
75972
+ /** @ignore */
75973
+ class Int_ extends DataType {
75974
+ constructor(isSigned, bitWidth) {
75975
+ super(Type.Int);
75976
+ this.isSigned = isSigned;
75977
+ this.bitWidth = bitWidth;
75978
+ }
75979
+ get ArrayType() {
75980
+ switch (this.bitWidth) {
75981
+ case 8: return this.isSigned ? Int8Array : Uint8Array;
75982
+ case 16: return this.isSigned ? Int16Array : Uint16Array;
75983
+ case 32: return this.isSigned ? Int32Array : Uint32Array;
75984
+ case 64: return this.isSigned ? BigInt64Array : BigUint64Array;
75985
+ }
75986
+ throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`);
75987
+ }
75988
+ toString() { return `${this.isSigned ? `I` : `Ui`}nt${this.bitWidth}`; }
75989
+ }
75990
+ _c = Symbol.toStringTag;
75991
+ Int_[_c] = ((proto) => {
75992
+ proto.isSigned = null;
75993
+ proto.bitWidth = null;
75994
+ return proto[Symbol.toStringTag] = 'Int';
75995
+ })(Int_.prototype);
75996
+ /** @ignore */
75997
+ class Float extends DataType {
75998
+ constructor(precision) {
75999
+ super(Type.Float);
76000
+ this.precision = precision;
76001
+ }
76002
+ get ArrayType() {
76003
+ switch (this.precision) {
76004
+ case Precision.HALF: return Uint16Array;
76005
+ case Precision.SINGLE: return Float32Array;
76006
+ case Precision.DOUBLE: return Float64Array;
76007
+ }
76008
+ // @ts-ignore
76009
+ throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`);
76010
+ }
76011
+ toString() { return `Float${(this.precision << 5) || 16}`; }
76012
+ }
76013
+ _d = Symbol.toStringTag;
76014
+ Float[_d] = ((proto) => {
76015
+ proto.precision = null;
76016
+ return proto[Symbol.toStringTag] = 'Float';
76017
+ })(Float.prototype);
76018
+ /** @ignore */
76019
+ class Binary extends DataType {
76020
+ constructor() {
76021
+ super(Type.Binary);
76022
+ }
76023
+ toString() { return `Binary`; }
76024
+ }
76025
+ _e = Symbol.toStringTag;
76026
+ Binary[_e] = ((proto) => {
76027
+ proto.ArrayType = Uint8Array;
76028
+ return proto[Symbol.toStringTag] = 'Binary';
76029
+ })(Binary.prototype);
76030
+ /** @ignore */
76031
+ class LargeBinary extends DataType {
76032
+ constructor() {
76033
+ super(Type.LargeBinary);
76034
+ }
76035
+ toString() { return `LargeBinary`; }
76036
+ }
76037
+ _f = Symbol.toStringTag;
76038
+ LargeBinary[_f] = ((proto) => {
76039
+ proto.ArrayType = Uint8Array;
76040
+ proto.OffsetArrayType = BigInt64Array;
76041
+ return proto[Symbol.toStringTag] = 'LargeBinary';
76042
+ })(LargeBinary.prototype);
76043
+ /** @ignore */
76044
+ class Utf8 extends DataType {
76045
+ constructor() {
76046
+ super(Type.Utf8);
76047
+ }
76048
+ toString() { return `Utf8`; }
76049
+ }
76050
+ _g = Symbol.toStringTag;
76051
+ Utf8[_g] = ((proto) => {
76052
+ proto.ArrayType = Uint8Array;
76053
+ return proto[Symbol.toStringTag] = 'Utf8';
76054
+ })(Utf8.prototype);
76055
+ /** @ignore */
76056
+ class LargeUtf8 extends DataType {
76057
+ constructor() {
76058
+ super(Type.LargeUtf8);
76059
+ }
76060
+ toString() { return `LargeUtf8`; }
76061
+ }
76062
+ _h = Symbol.toStringTag;
76063
+ LargeUtf8[_h] = ((proto) => {
76064
+ proto.ArrayType = Uint8Array;
76065
+ proto.OffsetArrayType = BigInt64Array;
76066
+ return proto[Symbol.toStringTag] = 'LargeUtf8';
76067
+ })(LargeUtf8.prototype);
76068
+ /** @ignore */
76069
+ class Bool extends DataType {
76070
+ constructor() {
76071
+ super(Type.Bool);
76072
+ }
76073
+ toString() { return `Bool`; }
76074
+ }
76075
+ _j = Symbol.toStringTag;
76076
+ Bool[_j] = ((proto) => {
76077
+ proto.ArrayType = Uint8Array;
76078
+ return proto[Symbol.toStringTag] = 'Bool';
76079
+ })(Bool.prototype);
76080
+ /** @ignore */
76081
+ class Decimal extends DataType {
76082
+ constructor(scale, precision, bitWidth = 128) {
76083
+ super(Type.Decimal);
76084
+ this.scale = scale;
76085
+ this.precision = precision;
76086
+ this.bitWidth = bitWidth;
76087
+ }
76088
+ toString() { return `Decimal[${this.precision}e${this.scale > 0 ? `+` : ``}${this.scale}]`; }
76089
+ }
76090
+ _k = Symbol.toStringTag;
76091
+ Decimal[_k] = ((proto) => {
76092
+ proto.scale = null;
76093
+ proto.precision = null;
76094
+ proto.ArrayType = Uint32Array;
76095
+ return proto[Symbol.toStringTag] = 'Decimal';
76096
+ })(Decimal.prototype);
76097
+ /** @ignore */
76098
+ class Date_ extends DataType {
76099
+ constructor(unit) {
76100
+ super(Type.Date);
76101
+ this.unit = unit;
76102
+ }
76103
+ toString() { return `Date${(this.unit + 1) * 32}<${DateUnit[this.unit]}>`; }
76104
+ }
76105
+ _l = Symbol.toStringTag;
76106
+ Date_[_l] = ((proto) => {
76107
+ proto.unit = null;
76108
+ proto.ArrayType = Int32Array;
76109
+ return proto[Symbol.toStringTag] = 'Date';
76110
+ })(Date_.prototype);
76111
+ /** @ignore */
76112
+ class Time_ extends DataType {
76113
+ constructor(unit, bitWidth) {
76114
+ super(Type.Time);
76115
+ this.unit = unit;
76116
+ this.bitWidth = bitWidth;
76117
+ }
76118
+ toString() { return `Time${this.bitWidth}<${TimeUnit[this.unit]}>`; }
76119
+ get ArrayType() {
76120
+ switch (this.bitWidth) {
76121
+ case 32: return Int32Array;
76122
+ case 64: return BigInt64Array;
76123
+ }
76124
+ // @ts-ignore
76125
+ throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`);
76126
+ }
76127
+ }
76128
+ _m = Symbol.toStringTag;
76129
+ Time_[_m] = ((proto) => {
76130
+ proto.unit = null;
76131
+ proto.bitWidth = null;
76132
+ return proto[Symbol.toStringTag] = 'Time';
76133
+ })(Time_.prototype);
76134
+ /** @ignore */
76135
+ class Timestamp_ extends DataType {
76136
+ constructor(unit, timezone) {
76137
+ super(Type.Timestamp);
76138
+ this.unit = unit;
76139
+ this.timezone = timezone;
76140
+ }
76141
+ toString() { return `Timestamp<${TimeUnit[this.unit]}${this.timezone ? `, ${this.timezone}` : ``}>`; }
76142
+ }
76143
+ _o = Symbol.toStringTag;
76144
+ Timestamp_[_o] = ((proto) => {
76145
+ proto.unit = null;
76146
+ proto.timezone = null;
76147
+ proto.ArrayType = Int32Array;
76148
+ return proto[Symbol.toStringTag] = 'Timestamp';
76149
+ })(Timestamp_.prototype);
76150
+ /** @ignore */
76151
+ class Interval_ extends DataType {
76152
+ constructor(unit) {
76153
+ super(Type.Interval);
76154
+ this.unit = unit;
76155
+ }
76156
+ toString() { return `Interval<${IntervalUnit[this.unit]}>`; }
76157
+ }
76158
+ _p = Symbol.toStringTag;
76159
+ Interval_[_p] = ((proto) => {
76160
+ proto.unit = null;
76161
+ proto.ArrayType = Int32Array;
76162
+ return proto[Symbol.toStringTag] = 'Interval';
76163
+ })(Interval_.prototype);
76164
+ /** @ignore */
76165
+ class Duration extends DataType {
76166
+ constructor(unit) {
76167
+ super(Type.Duration);
76168
+ this.unit = unit;
76169
+ }
76170
+ toString() { return `Duration<${TimeUnit[this.unit]}>`; }
76171
+ }
76172
+ _q = Symbol.toStringTag;
76173
+ Duration[_q] = ((proto) => {
76174
+ proto.unit = null;
76175
+ proto.ArrayType = BigInt64Array;
76176
+ return proto[Symbol.toStringTag] = 'Duration';
76177
+ })(Duration.prototype);
76178
+ /** @ignore */
76179
+ class List extends DataType {
76180
+ constructor(child) {
76181
+ super(Type.List);
76182
+ this.children = [child];
76183
+ }
76184
+ toString() { return `List<${this.valueType}>`; }
76185
+ get valueType() { return this.children[0].type; }
76186
+ get valueField() { return this.children[0]; }
76187
+ get ArrayType() { return this.valueType.ArrayType; }
76188
+ }
76189
+ _r = Symbol.toStringTag;
76190
+ List[_r] = ((proto) => {
76191
+ proto.children = null;
76192
+ return proto[Symbol.toStringTag] = 'List';
76193
+ })(List.prototype);
76194
+ /** @ignore */
76195
+ class Struct extends DataType {
76196
+ constructor(children) {
76197
+ super(Type.Struct);
76198
+ this.children = children;
76199
+ }
76200
+ toString() { return `Struct<{${this.children.map((f) => `${f.name}:${f.type}`).join(`, `)}}>`; }
76201
+ }
76202
+ _s = Symbol.toStringTag;
76203
+ Struct[_s] = ((proto) => {
76204
+ proto.children = null;
76205
+ return proto[Symbol.toStringTag] = 'Struct';
76206
+ })(Struct.prototype);
76207
+ /** @ignore */
76208
+ class Union_ extends DataType {
76209
+ constructor(mode, typeIds, children) {
76210
+ super(Type.Union);
76211
+ this.mode = mode;
76212
+ this.children = children;
76213
+ this.typeIds = typeIds = Int32Array.from(typeIds);
76214
+ this.typeIdToChildIndex = typeIds.reduce((typeIdToChildIndex, typeId, idx) => (typeIdToChildIndex[typeId] = idx) && typeIdToChildIndex || typeIdToChildIndex, Object.create(null));
76215
+ }
76216
+ toString() {
76217
+ return `${this[Symbol.toStringTag]}<${this.children.map((x) => `${x.type}`).join(` | `)}>`;
76218
+ }
76219
+ }
76220
+ _t = Symbol.toStringTag;
76221
+ Union_[_t] = ((proto) => {
76222
+ proto.mode = null;
76223
+ proto.typeIds = null;
76224
+ proto.children = null;
76225
+ proto.typeIdToChildIndex = null;
76226
+ proto.ArrayType = Int8Array;
76227
+ return proto[Symbol.toStringTag] = 'Union';
76228
+ })(Union_.prototype);
76229
+ /** @ignore */
76230
+ class FixedSizeBinary extends DataType {
76231
+ constructor(byteWidth) {
76232
+ super(Type.FixedSizeBinary);
76233
+ this.byteWidth = byteWidth;
76234
+ }
76235
+ toString() { return `FixedSizeBinary[${this.byteWidth}]`; }
76236
+ }
76237
+ _u = Symbol.toStringTag;
76238
+ FixedSizeBinary[_u] = ((proto) => {
76239
+ proto.byteWidth = null;
76240
+ proto.ArrayType = Uint8Array;
76241
+ return proto[Symbol.toStringTag] = 'FixedSizeBinary';
76242
+ })(FixedSizeBinary.prototype);
76243
+ /** @ignore */
76244
+ class FixedSizeList extends DataType {
76245
+ constructor(listSize, child) {
76246
+ super(Type.FixedSizeList);
76247
+ this.listSize = listSize;
76248
+ this.children = [child];
76249
+ }
76250
+ get valueType() { return this.children[0].type; }
76251
+ get valueField() { return this.children[0]; }
76252
+ get ArrayType() { return this.valueType.ArrayType; }
76253
+ toString() { return `FixedSizeList[${this.listSize}]<${this.valueType}>`; }
76254
+ }
76255
+ _v = Symbol.toStringTag;
76256
+ FixedSizeList[_v] = ((proto) => {
76257
+ proto.children = null;
76258
+ proto.listSize = null;
76259
+ return proto[Symbol.toStringTag] = 'FixedSizeList';
76260
+ })(FixedSizeList.prototype);
76261
+ /** @ignore */
76262
+ class Map_ extends DataType {
76263
+ constructor(entries, keysSorted = false) {
76264
+ var _y, _z, _0;
76265
+ super(Type.Map);
76266
+ this.children = [entries];
76267
+ this.keysSorted = keysSorted;
76268
+ // ARROW-8716
76269
+ // https://github.com/apache/arrow/issues/17168
76270
+ if (entries) {
76271
+ entries['name'] = 'entries';
76272
+ if ((_y = entries === null || entries === void 0 ? void 0 : entries.type) === null || _y === void 0 ? void 0 : _y.children) {
76273
+ const key = (_z = entries === null || entries === void 0 ? void 0 : entries.type) === null || _z === void 0 ? void 0 : _z.children[0];
76274
+ if (key) {
76275
+ key['name'] = 'key';
76276
+ }
76277
+ const val = (_0 = entries === null || entries === void 0 ? void 0 : entries.type) === null || _0 === void 0 ? void 0 : _0.children[1];
76278
+ if (val) {
76279
+ val['name'] = 'value';
76280
+ }
76281
+ }
76282
+ }
76283
+ }
76284
+ get keyType() { return this.children[0].type.children[0].type; }
76285
+ get valueType() { return this.children[0].type.children[1].type; }
76286
+ get childType() { return this.children[0].type; }
76287
+ toString() { return `Map<{${this.children[0].type.children.map((f) => `${f.name}:${f.type}`).join(`, `)}}>`; }
76288
+ }
76289
+ _w = Symbol.toStringTag;
76290
+ Map_[_w] = ((proto) => {
76291
+ proto.children = null;
76292
+ proto.keysSorted = null;
76293
+ return proto[Symbol.toStringTag] = 'Map_';
76294
+ })(Map_.prototype);
76295
+ /** @ignore */
76296
+ const getId = ((atomicDictionaryId) => () => ++atomicDictionaryId)(-1);
76297
+ /** @ignore */
76298
+ class Dictionary extends DataType {
76299
+ constructor(dictionary, indices, id, isOrdered) {
76300
+ super(Type.Dictionary);
76301
+ this.indices = indices;
76302
+ this.dictionary = dictionary;
76303
+ this.isOrdered = isOrdered || false;
76304
+ this.id = id == null ? getId() : bigIntToNumber(id);
76305
+ }
76306
+ get children() { return this.dictionary.children; }
76307
+ get valueType() { return this.dictionary; }
76308
+ get ArrayType() { return this.dictionary.ArrayType; }
76309
+ toString() { return `Dictionary<${this.indices}, ${this.dictionary}>`; }
76310
+ }
76311
+ _x = Symbol.toStringTag;
76312
+ Dictionary[_x] = ((proto) => {
76313
+ proto.id = null;
76314
+ proto.indices = null;
76315
+ proto.isOrdered = null;
76316
+ proto.dictionary = null;
76317
+ return proto[Symbol.toStringTag] = 'Dictionary';
76318
+ })(Dictionary.prototype);
76319
+
75726
76320
  /**
75727
76321
  * Helper class for the nimble-wafer-map to validate that the wafer maps's grid dimensions
75728
76322
  * configuration is valid and report which aspects of the configuration are valid or invalid.
@@ -75731,10 +76325,12 @@ img.ProseMirror-separator {
75731
76325
  constructor(wafermap) {
75732
76326
  this.wafermap = wafermap;
75733
76327
  this.invalidGridDimensions = false;
76328
+ this.invalidDiesTableSchema = false;
75734
76329
  }
75735
76330
  getValidity() {
75736
76331
  return {
75737
- invalidGridDimensions: this.invalidGridDimensions
76332
+ invalidGridDimensions: this.invalidGridDimensions,
76333
+ invalidDiesTableSchema: this.invalidDiesTableSchema
75738
76334
  };
75739
76335
  }
75740
76336
  isValid() {
@@ -75758,6 +76354,81 @@ img.ProseMirror-separator {
75758
76354
  }
75759
76355
  return !this.invalidGridDimensions;
75760
76356
  }
76357
+ validateDiesTableSchema() {
76358
+ this.invalidDiesTableSchema = false;
76359
+ if (this.wafermap.diesTable === undefined) {
76360
+ this.invalidDiesTableSchema = false;
76361
+ }
76362
+ else {
76363
+ const colIndexField = this.wafermap.diesTable.schema.fields.findIndex(f => f.name === 'colIndex');
76364
+ const rowIndexField = this.wafermap.diesTable.schema.fields.findIndex(f => f.name === 'rowIndex');
76365
+ const valueField = this.wafermap.diesTable.schema.fields.findIndex(f => f.name === 'value');
76366
+ if (this.wafermap.diesTable.numCols < 3
76367
+ || colIndexField === -1
76368
+ || rowIndexField === -1
76369
+ || valueField === -1
76370
+ || !DataType.isInt(this.wafermap.diesTable.schema.fields[colIndexField].type)
76371
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
76372
+ || this.wafermap.diesTable.schema.fields[colIndexField].type
76373
+ .bitWidth !== 32
76374
+ || !DataType.isInt(this.wafermap.diesTable.schema.fields[rowIndexField].type)
76375
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
76376
+ || this.wafermap.diesTable.schema.fields[rowIndexField].type
76377
+ .bitWidth !== 32
76378
+ || !DataType.isFloat(this.wafermap.diesTable.schema.fields[valueField].type)
76379
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
76380
+ || this.wafermap.diesTable.schema.fields[valueField].type
76381
+ .precision !== Precision.DOUBLE) {
76382
+ this.invalidDiesTableSchema = true;
76383
+ }
76384
+ }
76385
+ return !this.invalidDiesTableSchema;
76386
+ }
76387
+ }
76388
+
76389
+ /**
76390
+ * Responsible for drawing the dies inside the wafer map, adding dieText and scaling the canvas
76391
+ */
76392
+ class WorkerRenderer {
76393
+ constructor(wafermap) {
76394
+ this.wafermap = wafermap;
76395
+ }
76396
+ updateSortedDiesAndDrawWafer() {
76397
+ // redundant function for backwards compatibility
76398
+ this.drawWafer();
76399
+ }
76400
+ drawWafer() {
76401
+ // rendering will be implemented in a future PR
76402
+ this.renderHover();
76403
+ }
76404
+ renderHover() {
76405
+ this.wafermap.hoverWidth = this.wafermap.dataManager.dieDimensions.width
76406
+ * this.wafermap.transform.k;
76407
+ this.wafermap.hoverHeight = this.wafermap.dataManager.dieDimensions.height
76408
+ * this.wafermap.transform.k;
76409
+ this.wafermap.hoverOpacity = this.wafermap.hoverDie === undefined
76410
+ ? HoverDieOpacity.hide
76411
+ : HoverDieOpacity.show;
76412
+ this.wafermap.hoverTransform = this.calculateHoverTransform();
76413
+ }
76414
+ calculateHoverTransform() {
76415
+ if (this.wafermap.hoverDie !== undefined) {
76416
+ const scaledX = this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x);
76417
+ if (scaledX === undefined) {
76418
+ return '';
76419
+ }
76420
+ const scaledY = this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y);
76421
+ if (scaledY === undefined) {
76422
+ return '';
76423
+ }
76424
+ const transformedPoint = this.wafermap.transform.apply([
76425
+ scaledX + this.wafermap.dataManager.margin.left,
76426
+ scaledY + this.wafermap.dataManager.margin.top
76427
+ ]);
76428
+ return `translate(${transformedPoint[0]}, ${transformedPoint[1]})`;
76429
+ }
76430
+ return '';
76431
+ }
75761
76432
  }
75762
76433
 
75763
76434
  /**
@@ -75788,7 +76459,12 @@ img.ProseMirror-separator {
75788
76459
  /**
75789
76460
  * @internal
75790
76461
  */
75791
- this.renderer = new RenderingModule(this);
76462
+ this.mainRenderer = new RenderingModule(this);
76463
+ /**
76464
+ * @internal
76465
+ */
76466
+ this.workerRenderer = new WorkerRenderer(this);
76467
+ this.renderer = this.mainRenderer;
75792
76468
  /**
75793
76469
  * @internal
75794
76470
  */
@@ -75847,9 +76523,12 @@ img.ProseMirror-separator {
75847
76523
  * The hover does not require an event update, but it's also the last update in the sequence.
75848
76524
  */
75849
76525
  update() {
76526
+ this.validate();
76527
+ if (this.validity.invalidDiesTableSchema) {
76528
+ return;
76529
+ }
75850
76530
  if (this.waferMapUpdateTracker.requiresEventsUpdate) {
75851
76531
  this.eventCoordinator.detachEvents();
75852
- this.waferMapValidator.validateGridDimensions();
75853
76532
  if (this.waferMapUpdateTracker.requiresContainerDimensionsUpdate) {
75854
76533
  this.dataManager.updateContainerDimensions();
75855
76534
  this.renderer.updateSortedDiesAndDrawWafer();
@@ -75875,6 +76554,10 @@ img.ProseMirror-separator {
75875
76554
  this.renderer.renderHover();
75876
76555
  }
75877
76556
  }
76557
+ validate() {
76558
+ this.waferMapValidator.validateGridDimensions();
76559
+ this.waferMapValidator.validateDiesTableSchema();
76560
+ }
75878
76561
  createResizeObserver() {
75879
76562
  const resizeObserver = new ResizeObserver(entries => {
75880
76563
  const entry = entries[0];
@@ -75933,6 +76616,16 @@ img.ProseMirror-separator {
75933
76616
  }
75934
76617
  diesChanged() {
75935
76618
  this.waferMapUpdateTracker.track('dies');
76619
+ this.renderer = this.diesTable === undefined
76620
+ ? this.mainRenderer
76621
+ : this.workerRenderer;
76622
+ this.waferMapUpdateTracker.queueUpdate();
76623
+ }
76624
+ diesTableChanged() {
76625
+ this.waferMapUpdateTracker.track('dies');
76626
+ this.renderer = this.diesTable === undefined
76627
+ ? this.mainRenderer
76628
+ : this.workerRenderer;
75936
76629
  this.waferMapUpdateTracker.queueUpdate();
75937
76630
  }
75938
76631
  colorScaleChanged() {
@@ -75987,6 +76680,9 @@ img.ProseMirror-separator {
75987
76680
  __decorate$1([
75988
76681
  attr({ attribute: 'color-scale-mode' })
75989
76682
  ], WaferMap.prototype, "colorScaleMode", void 0);
76683
+ __decorate$1([
76684
+ observable
76685
+ ], WaferMap.prototype, "renderer", void 0);
75990
76686
  __decorate$1([
75991
76687
  observable
75992
76688
  ], WaferMap.prototype, "canvasWidth", void 0);
@@ -76017,6 +76713,9 @@ img.ProseMirror-separator {
76017
76713
  __decorate$1([
76018
76714
  observable
76019
76715
  ], WaferMap.prototype, "dies", void 0);
76716
+ __decorate$1([
76717
+ observable
76718
+ ], WaferMap.prototype, "diesTable", void 0);
76020
76719
  __decorate$1([
76021
76720
  observable
76022
76721
  ], WaferMap.prototype, "colorScale", void 0);