@ni/nimble-components 16.1.4 → 16.1.6

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.
@@ -4725,10 +4725,17 @@ const mg=ve`
4725
4725
  ${fs("flex")}
4726
4726
 
4727
4727
  .table-container {
4728
+ display: flex;
4729
+ flex-direction: column;
4728
4730
  width: 100%;
4729
- height: 100%;
4730
4731
  font: ${qa};
4731
4732
  color: ${ja};
4733
+ overflow: auto;
4734
+ }
4735
+
4736
+ .header-container {
4737
+ position: sticky;
4738
+ top: 0;
4732
4739
  }
4733
4740
 
4734
4741
  .header-row {
@@ -4805,7 +4812,7 @@ no.getOrCreate().withPrefix("nimble").register(zg())
4805
4812
  const Mg=U`
4806
4813
  <template role="table">
4807
4814
  <div class="table-container">
4808
- <div role="rowgroup">
4815
+ <div role="rowgroup" class="header-container">
4809
4816
  <div class="header-row" role="row">
4810
4817
  ${He((e=>e.columnHeaders),U`
4811
4818
  <${no.tagFor(wg)} class="header">
@@ -5812,22 +5819,37 @@ no.getOrCreate().withPrefix("nimble").register(dv())
5812
5819
  const hv=U`
5813
5820
  <div class="wafer-map-container">
5814
5821
  <svg class="svg-root ${e=>e.orientation}">
5815
- <g class="zoom-container">
5816
- <svg class="circle-base" version="1.1" x="0px" y="0px" viewbox="1 .45 20 21">
5817
- <path class="circle-drawing-path" d="m 21 12 a 10 10 330 1 1 0 -1.98 a 1 1 0 0 0 0 2"/>
5822
+ <g class="zoom-container">
5823
+ <svg
5824
+ class="circle-base"
5825
+ version="1.1"
5826
+ x="0px"
5827
+ y="0px"
5828
+ viewBox="1 .45 20 21"
5829
+ >
5830
+ <path
5831
+ class="circle-drawing-path"
5832
+ d="m 21 12 a 10 10 330 1 1 0 -1.98 a 1 1 0 0 0 0 2"
5833
+ />
5818
5834
  </svg>
5819
5835
  </g>
5820
5836
  </svg>
5821
- <div class="wafer-map-area" style="left: 0px; top: 0px">
5822
- <canvas width=500 height="500" ${Se("canvas")}>
5837
+ <div class="wafer-map-area">
5838
+ <canvas class="wafer-map-canvas" ${Se("canvas")}></canvas>
5823
5839
  </div>
5824
5840
  </div>
5825
5841
  `,uv=ve`
5826
- .wafer-map-container {
5842
+ :host {
5843
+ display: inline-block;
5827
5844
  width: 500px;
5828
5845
  height: 500px;
5846
+ }
5847
+
5848
+ .wafer-map-container {
5849
+ width: 100%;
5850
+ padding-bottom: 100%;
5829
5851
  position: relative;
5830
- display: flex;
5852
+ display: inline-block;
5831
5853
  justify-content: center;
5832
5854
  align-items: center;
5833
5855
  }
@@ -5835,6 +5857,7 @@ const hv=U`
5835
5857
  .svg-root {
5836
5858
  width: 100%;
5837
5859
  height: 100%;
5860
+ position: absolute;
5838
5861
  }
5839
5862
 
5840
5863
  .svg-root.top {
@@ -5856,13 +5879,14 @@ const hv=U`
5856
5879
  .zoom-container {
5857
5880
  width: 100%;
5858
5881
  height: 100%;
5882
+ position: absolute;
5859
5883
  }
5860
5884
 
5861
5885
  .circle-base {
5862
5886
  width: 100%;
5863
5887
  height: 100%;
5864
5888
  position: absolute;
5865
- fill: white;
5889
+ fill: transparent;
5866
5890
  }
5867
5891
 
5868
5892
  .circle-drawing-path {
@@ -5874,6 +5898,16 @@ const hv=U`
5874
5898
 
5875
5899
  .wafer-map-area {
5876
5900
  position: absolute;
5901
+ justify-content: center;
5902
+ align-items: center;
5903
+ width: 100%;
5904
+ height: 100%;
5905
+ }
5906
+
5907
+ .wafer-map-canvas {
5908
+ display: inline-block;
5909
+ width: 100%;
5910
+ height: 100%;
5877
5911
  }
5878
5912
  `,pv="bottom-left",gv="bottom-right",vv="top-left",mv="top",bv="linear",fv="ordinal"
5879
5913
  function wv(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xv(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yv(e){let t,i,o
@@ -6042,8 +6076,10 @@ let s=bb(o)
6042
6076
  return null===s?this.emptyDieColor:(s=new db(s.r,s.g,s.b,this.calculateOpacity(e,i)),s.toStringWebRGBA())}}class wb{constructor(e,t,i,o,s,n,r,a,l){this.computations=new nb(e,t,i),this.prerendering=new fb(e,o,s,this.computations.horizontalScale,this.computations.verticalScale,n,r,a,l,this.computations.dieDimensions,this.computations.margin)}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 verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get mainCircleLocation(){return{x:this.computations.containerDimensions.width/2,y:this.computations.containerDimensions.height/2}}}class xb{constructor(e,t){this.waferData=e,this.context=t.getContext("2d")}drawWafer(){const e=this.waferData.diesRenderInfo,t=this.waferData.dieDimensions
6043
6077
  for(const i of e){this.context.fillStyle=i.fillStyle,this.context?.fillRect(i.x,i.y,t.width,t.height),this.context.font=this.waferData.labelsFontSize.toString(),this.context.fillStyle="#ffffff",this.context.textAlign="center"
6044
6078
  const e=this.context.measureText("M")
6045
- this.context.fillText(i.text,i.x+t.width/2,i.y+t.height/2+e.width/2)}}clearCanvas(){this.context.clearRect(0,0,this.waferData.containerDimensions.width,this.waferData.containerDimensions.height)}}class yb extends St{constructor(){super(...arguments),this.quadrant=vv,this.orientation=mv,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=bv,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.renderQueued=!1}connectedCallback(){super.connectedCallback(),this.queueRender()}render(){this.renderQueued=!1,this.dataManager=new wb(this.dies,this.quadrant,{width:500,height:500},this.colorScale,this.highlightedValues,this.colorScaleMode,this.dieLabelsHidden,this.dieLabelsSuffix,this.maxCharacters)
6046
- new xb(this.dataManager,this.canvas).drawWafer()}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}}e([oe],yb.prototype,"quadrant",void 0),e([oe],yb.prototype,"orientation",void 0),e([oe({attribute:"max-characters",converter:te})],yb.prototype,"maxCharacters",void 0),e([oe({attribute:"die-labels-hidden",mode:"boolean"})],yb.prototype,"dieLabelsHidden",void 0),e([oe({attribute:"die-labels-suffix"})],yb.prototype,"dieLabelsSuffix",void 0),e([oe({attribute:"color-scale-mode"})],yb.prototype,"canvas",void 0),e([m],yb.prototype,"colorScaleMode",void 0),e([m],yb.prototype,"highlightedValues",void 0),e([m],yb.prototype,"dies",void 0),e([m],yb.prototype,"colorScale",void 0)
6079
+ this.context.fillText(i.text,i.x+t.width/2,i.y+t.height/2+e.width/2)}}clearCanvas(e,t){this.context.clearRect(0,0,e,t)}}class yb extends St{constructor(){super(...arguments),this.quadrant=vv,this.orientation=mv,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=bv,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.renderQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((e=>{const t=e[0]
6080
+ if(void 0===t)return
6081
+ const{height:i,width:o}=t.contentRect
6082
+ this.canvasSideLength=Math.min(i,o)})),this.resizeObserver.observe(this),this.queueRender()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,void 0!==this.canvasSideLength&&0!==this.canvasSideLength&&(this.renderer?.clearCanvas(this.canvasSideLength,this.canvasSideLength),this.dataManager=new wb(this.dies,this.quadrant,{width:this.canvasSideLength,height:this.canvasSideLength},this.colorScale,this.highlightedValues,this.colorScaleMode,this.dieLabelsHidden,this.dieLabelsSuffix,this.maxCharacters),this.renderer=new xb(this.dataManager,this.canvas),this.renderer.drawWafer())}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}canvasSideLengthChanged(){void 0!==this.canvasSideLength&&0!==this.canvasSideLength&&(this.canvas.width=this.canvasSideLength,this.canvas.height=this.canvasSideLength),this.queueRender()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}}e([oe],yb.prototype,"quadrant",void 0),e([oe],yb.prototype,"orientation",void 0),e([oe({attribute:"max-characters",converter:te})],yb.prototype,"maxCharacters",void 0),e([oe({attribute:"die-labels-hidden",mode:"boolean"})],yb.prototype,"dieLabelsHidden",void 0),e([oe({attribute:"die-labels-suffix"})],yb.prototype,"dieLabelsSuffix",void 0),e([oe({attribute:"color-scale-mode"})],yb.prototype,"canvas",void 0),e([m],yb.prototype,"canvasSideLength",void 0),e([m],yb.prototype,"colorScaleMode",void 0),e([m],yb.prototype,"highlightedValues",void 0),e([m],yb.prototype,"dies",void 0),e([m],yb.prototype,"colorScale",void 0)
6047
6083
  const $b=yb.compose({baseName:"wafer-map",template:hv,styles:uv})
6048
6084
  no.getOrCreate().withPrefix("nimble").register($b())}()
6049
6085
  //# sourceMappingURL=all-components-bundle.min.js.map