@ni/nimble-components 24.0.0 → 24.0.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/dist/all-components-bundle.js +269 -33
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +62 -50
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/wafer-map/index.d.ts +7 -1
- package/dist/esm/wafer-map/index.js +10 -1
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/experimental/computations.d.ts +31 -0
- package/dist/esm/wafer-map/modules/experimental/computations.js +158 -0
- package/dist/esm/wafer-map/modules/experimental/computations.js.map +1 -0
- package/dist/esm/wafer-map/modules/experimental/data-manager.d.ts +27 -0
- package/dist/esm/wafer-map/modules/experimental/data-manager.js +59 -0
- package/dist/esm/wafer-map/modules/experimental/data-manager.js.map +1 -0
- package/dist/esm/wafer-map/modules/experimental/hover-handler.js +22 -14
- package/dist/esm/wafer-map/modules/experimental/hover-handler.js.map +1 -1
- package/dist/esm/wafer-map/modules/hover-handler.js +22 -13
- package/dist/esm/wafer-map/modules/hover-handler.js.map +1 -1
- package/dist/esm/wafer-map/modules/prerendering.js +1 -1
- package/dist/esm/wafer-map/modules/prerendering.js.map +1 -1
- package/package.json +1 -1
|
@@ -12810,7 +12810,7 @@ e=[]
|
|
|
12810
12810
|
for(let n of t)null==n||isNaN(n=+n)||e.push(n)
|
|
12811
12811
|
return e.sort(nH),o()},r.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.quantiles=function(){return i.slice()},r.copy=function(){return ZH().domain(e).range(n).unknown(t)},bH.apply(r,arguments)}LH=qH({thousands:",",grouping:[3],currency:["$",""]}),zH=LH.format,VH=LH.formatPrefix
|
|
12812
12812
|
const GH="bottom-left",KH="bottom-right",JH="top-left",XH="top",YH="show",QH="hide",tB="linear",eB="ordinal"
|
|
12813
|
-
|
|
12813
|
+
let nB=class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12814
12814
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
|
|
12815
12815
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
12816
12816
|
this._radius=o/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -12822,16 +12822,26 @@ return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e)
|
|
|
12822
12822
|
return t===GH||t===JH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=ZH().domain([0,n])
|
|
12823
12823
|
return t===GH||t===JH?i.range(vH(e.origin.x,e.origin.x+e.cols)):i.range(vH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=xH().domain(vH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
12824
12824
|
return t===GH||t===KH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=ZH().domain([0,n])
|
|
12825
|
-
return t===GH||t===KH?i.range(vH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(vH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}
|
|
12825
|
+
return t===GH||t===KH?i.range(vH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(vH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}
|
|
12826
|
+
class iB{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
|
|
12826
12827
|
this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
|
|
12827
12828
|
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?WH().domain(t.values.map((t=>+t))).range(t.colors):wH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
|
|
12828
12829
|
const o=`${t}${i}`
|
|
12829
|
-
return o.length
|
|
12830
|
+
return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
|
|
12830
12831
|
const n=new Set(e)
|
|
12831
12832
|
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===tB}isColorScaleOrdinal(t){return t===eB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
|
|
12832
12833
|
if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
|
|
12833
12834
|
let r=Zo(o)
|
|
12834
|
-
return null===r?this.emptyDieColor:(r=new zo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}
|
|
12835
|
+
return null===r?this.emptyDieColor:(r=new zo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}let oB=class{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new nB(t),this.prerendering=new iB(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}
|
|
12836
|
+
class rB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12837
|
+
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin),this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(),n=this.wafermap.originLocation
|
|
12838
|
+
this._horizontalScale=this.createHorizontalScale(n,e,t),this._verticalScale=this.createVerticalScale(n,e,t),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))}}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}calculateGridDimensionsFromBoundingBox(){const t={origin:{x:0,y:0},rows:0,cols:0}
|
|
12839
|
+
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12840
|
+
const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
|
|
12841
|
+
for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
|
|
12842
|
+
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=WH()
|
|
12843
|
+
return t===GH||t===JH?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=WH()
|
|
12844
|
+
return t===GH||t===KH?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class sB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new rB(t),this.prerendering=new iB(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}class aB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?QH:YH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12835
12845
|
if(void 0===t)return""
|
|
12836
12846
|
const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12837
12847
|
if(void 0===e)return""
|
|
@@ -12844,68 +12854,70 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
12844
12854
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
12845
12855
|
const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
12846
12856
|
r[0]-=t,r[1]-=e
|
|
12847
|
-
for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const
|
|
12848
|
-
class
|
|
12849
|
-
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(
|
|
12850
|
-
class
|
|
12851
|
-
class
|
|
12852
|
-
class
|
|
12857
|
+
for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const lB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
12858
|
+
class cB extends oI{constructor(t){super(lB),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var dB,hB,uB,pB,fB,mB,gB,vB,bB
|
|
12859
|
+
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(dB||(dB={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(hB||(hB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(uB||(uB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(pB||(pB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(fB||(fB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(mB||(mB={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(gB||(gB={}))
|
|
12860
|
+
class yB{static isNull(t){return(null==t?void 0:t.typeId)===mB.Null}static isInt(t){return(null==t?void 0:t.typeId)===mB.Int}static isFloat(t){return(null==t?void 0:t.typeId)===mB.Float}static isBinary(t){return(null==t?void 0:t.typeId)===mB.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===mB.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===mB.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===mB.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===mB.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===mB.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===mB.Date}static isTime(t){return(null==t?void 0:t.typeId)===mB.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===mB.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===mB.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===mB.Duration}static isList(t){return(null==t?void 0:t.typeId)===mB.List}static isStruct(t){return(null==t?void 0:t.typeId)===mB.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===mB.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===mB.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===mB.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===mB.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===mB.Dictionary}static isDenseUnion(t){return yB.isUnion(t)&&t.mode===dB.Dense}static isSparseUnion(t){return yB.isUnion(t)&&t.mode===dB.Sparse}constructor(t){this.typeId=t}}vB=Symbol.toStringTag,yB[vB]=((bB=yB.prototype).children=null,bB.ArrayType=Array,bB.OffsetArrayType=Int32Array,bB[Symbol.toStringTag]="DataType")
|
|
12861
|
+
class wB extends yB{constructor(){super(mB.Null)}toString(){return"Null"}}wB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(wB.prototype)
|
|
12862
|
+
class xB extends yB{constructor(t,e){super(mB.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
12853
12863
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
12854
12864
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
12855
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
12856
|
-
class
|
|
12857
|
-
case
|
|
12858
|
-
case
|
|
12859
|
-
class
|
|
12860
|
-
class
|
|
12861
|
-
class
|
|
12862
|
-
class
|
|
12863
|
-
class
|
|
12864
|
-
class
|
|
12865
|
-
class
|
|
12866
|
-
class
|
|
12867
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
12868
|
-
class
|
|
12869
|
-
class
|
|
12870
|
-
class
|
|
12871
|
-
class
|
|
12872
|
-
class
|
|
12873
|
-
class
|
|
12874
|
-
class
|
|
12875
|
-
class
|
|
12876
|
-
class
|
|
12877
|
-
if(super(
|
|
12865
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}xB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(xB.prototype)
|
|
12866
|
+
class CB extends yB{constructor(t){super(mB.Float),this.precision=t}get ArrayType(){switch(this.precision){case hB.HALF:return Uint16Array
|
|
12867
|
+
case hB.SINGLE:return Float32Array
|
|
12868
|
+
case hB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}CB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(CB.prototype)
|
|
12869
|
+
class kB extends yB{constructor(){super(mB.Binary)}toString(){return"Binary"}}kB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(kB.prototype)
|
|
12870
|
+
class SB extends yB{constructor(){super(mB.LargeBinary)}toString(){return"LargeBinary"}}SB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(SB.prototype)
|
|
12871
|
+
class $B extends yB{constructor(){super(mB.Utf8)}toString(){return"Utf8"}}$B[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))($B.prototype)
|
|
12872
|
+
class MB extends yB{constructor(){super(mB.LargeUtf8)}toString(){return"LargeUtf8"}}MB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(MB.prototype)
|
|
12873
|
+
class _B extends yB{constructor(){super(mB.Bool)}toString(){return"Bool"}}_B[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(_B.prototype)
|
|
12874
|
+
class EB extends yB{constructor(t,e,n=128){super(mB.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}EB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(EB.prototype)
|
|
12875
|
+
class IB extends yB{constructor(t){super(mB.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${uB[this.unit]}>`}}IB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(IB.prototype)
|
|
12876
|
+
class DB extends yB{constructor(t,e){super(mB.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${pB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
12877
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}DB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(DB.prototype)
|
|
12878
|
+
class AB extends yB{constructor(t,e){super(mB.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${pB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}AB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(AB.prototype)
|
|
12879
|
+
class TB extends yB{constructor(t){super(mB.Interval),this.unit=t}toString(){return`Interval<${fB[this.unit]}>`}}TB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(TB.prototype)
|
|
12880
|
+
class OB extends yB{constructor(t){super(mB.Duration),this.unit=t}toString(){return`Duration<${pB[this.unit]}>`}}OB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(OB.prototype)
|
|
12881
|
+
class RB extends yB{constructor(t){super(mB.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}RB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(RB.prototype)
|
|
12882
|
+
class FB extends yB{constructor(t){super(mB.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}FB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(FB.prototype)
|
|
12883
|
+
class NB extends yB{constructor(t,e,n){super(mB.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}NB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(NB.prototype)
|
|
12884
|
+
class PB extends yB{constructor(t){super(mB.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}PB[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(PB.prototype)
|
|
12885
|
+
class LB extends yB{constructor(t,e){super(mB.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}LB[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(LB.prototype)
|
|
12886
|
+
class zB extends yB{constructor(t,e=!1){var n,i,o
|
|
12887
|
+
if(super(mB.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
|
|
12878
12888
|
e&&(e.name="key")
|
|
12879
12889
|
const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
|
|
12880
|
-
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}
|
|
12881
|
-
const
|
|
12882
|
-
var
|
|
12883
|
-
class
|
|
12884
|
-
return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}
|
|
12885
|
-
class
|
|
12890
|
+
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}zB[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(zB.prototype)
|
|
12891
|
+
const VB=(HB=-1,()=>++HB)
|
|
12892
|
+
var HB
|
|
12893
|
+
class BB extends yB{constructor(t,e,n,i){super(mB.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?VB():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
|
|
12894
|
+
return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}BB[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(BB.prototype)
|
|
12895
|
+
class qB{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
|
|
12886
12896
|
else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
|
|
12887
|
-
e&&n&&i&&
|
|
12897
|
+
e&&n&&i&&yB.isInt(e.type)&&32===e.type.bitWidth&&yB.isInt(n.type)&&32===n.type.bitWidth&&yB.isFloat(i.type)&&i.type.precision===hB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class UB{constructor(t){this.wafermap=t}updateSortedDiesAndDrawWafer(){this.drawWafer()}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?QH:YH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12888
12898
|
if(void 0===t)return""
|
|
12889
12899
|
const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12890
12900
|
if(void 0===e)return""
|
|
12891
12901
|
const n=this.wafermap.transform.apply([t+this.wafermap.dataManager.margin.left,e+this.wafermap.dataManager.margin.top])
|
|
12892
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}let
|
|
12902
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}let jB=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalRenderer())return
|
|
12893
12903
|
const e={x:t.offsetX,y:t.offsetY}
|
|
12894
12904
|
if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
|
|
12895
12905
|
const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
12896
|
-
this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){const e=this.wafermap.originLocation,n=e===GH||e===JH?Math.floor:Math.ceil,i=e===GH||e===KH?Math.floor:Math.ceil
|
|
12897
|
-
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
|
|
12906
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalRenderer()&&this.wafermap.dataManager instanceof oB){const e=this.wafermap.originLocation,n=e===GH||e===JH?Math.floor:Math.ceil,i=e===GH||e===KH?Math.floor:Math.ceil
|
|
12907
|
+
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
|
|
12898
12908
|
let n=0
|
|
12899
12909
|
for(const t of e)n+=t
|
|
12900
12910
|
return n>0}}
|
|
12901
|
-
class
|
|
12902
|
-
const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
|
|
12911
|
+
class WB{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalRenderer())return
|
|
12912
|
+
const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
|
|
12913
|
+
if(void 0===n)return void(this.wafermap.hoverDie=void 0)
|
|
12914
|
+
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
12903
12915
|
for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
|
|
12904
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){const e=this.wafermap.originLocation,n=e===GH||e===JH?Math.floor:Math.ceil,i=e===GH||e===KH?Math.
|
|
12905
|
-
return{x:n(this.wafermap.dataManager.
|
|
12916
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalRenderer()&&this.wafermap.dataManager instanceof sB){const e=this.wafermap.originLocation,n=e===GH||e===JH?Math.floor:Math.ceil,i=e===GH||e===KH?Math.ceil:Math.floor
|
|
12917
|
+
return{x:n(this.wafermap.dataManager.horizontalScale.invert(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.verticalScale.invert(t.y-this.wafermap.dataManager.margin.top))}}}}class ZB{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){QV().on("zoom",null)(AL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){QV().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(AL(this.wafermap))}}class GB extends Le{constructor(){super(...arguments),this.waferMapUpdateTracker=new cB(this.asRequiredFieldsWaferMap),this.originLocation=GH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=XH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=tB,this.stableDataManager=new oB(this.asRequiredFieldsWaferMap),this.experimentalDataManager=new sB(this.asRequiredFieldsWaferMap),this.dataManager=this.stableDataManager,this.mainRenderer=new aB(this.asRequiredFieldsWaferMap),this.workerRenderer=new UB(this.asRequiredFieldsWaferMap),this.renderer=this.mainRenderer,this.renderQueued=!1,this.transform=UV,this.hoverTransform="",this.hoverOpacity=QH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new jB(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new WB(this.asRequiredFieldsWaferMap),this.zoomHandler=new ZB(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new qB(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}update(){this.validate(),this.validity.invalidDiesTableSchema||(this.renderer=this.isExperimentalRenderer()?this.workerRenderer:this.mainRenderer,this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.dataManager=this.isExperimentalRenderer()?this.experimentalDataManager:this.stableDataManager,this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover())}isExperimentalRenderer(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
|
|
12906
12918
|
if(void 0===e)return
|
|
12907
12919
|
const{height:n,width:i}=e.contentRect
|
|
12908
|
-
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([st({attribute:"origin-location"})],
|
|
12909
|
-
const
|
|
12910
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12920
|
+
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([st({attribute:"origin-location"})],GB.prototype,"originLocation",void 0),t([st({attribute:"grid-min-x",converter:ot})],GB.prototype,"gridMinX",void 0),t([st({attribute:"grid-max-x",converter:ot})],GB.prototype,"gridMaxX",void 0),t([st({attribute:"grid-min-y",converter:ot})],GB.prototype,"gridMinY",void 0),t([st({attribute:"grid-max-y",converter:ot})],GB.prototype,"gridMaxY",void 0),t([st],GB.prototype,"orientation",void 0),t([st({attribute:"max-characters",converter:ot})],GB.prototype,"maxCharacters",void 0),t([st({attribute:"die-labels-hidden",mode:"boolean"})],GB.prototype,"dieLabelsHidden",void 0),t([st({attribute:"die-labels-suffix"})],GB.prototype,"dieLabelsSuffix",void 0),t([st({attribute:"color-scale-mode"})],GB.prototype,"colorScaleMode",void 0),t([g],GB.prototype,"renderer",void 0),t([g],GB.prototype,"canvasWidth",void 0),t([g],GB.prototype,"canvasHeight",void 0),t([g],GB.prototype,"transform",void 0),t([g],GB.prototype,"hoverTransform",void 0),t([g],GB.prototype,"hoverOpacity",void 0),t([g],GB.prototype,"hoverWidth",void 0),t([g],GB.prototype,"hoverHeight",void 0),t([g],GB.prototype,"hoverDie",void 0),t([g],GB.prototype,"highlightedTags",void 0),t([g],GB.prototype,"dies",void 0),t([g],GB.prototype,"diesTable",void 0),t([g],GB.prototype,"colorScale",void 0)
|
|
12921
|
+
const KB=GB.compose({baseName:"wafer-map",template:tH,styles:eH})
|
|
12922
|
+
bi.getOrCreate().withPrefix("nimble").register(KB())}()
|
|
12911
12923
|
//# sourceMappingURL=all-components-bundle.min.js.map
|