@ni/nimble-components 15.3.2 → 15.5.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.
- package/dist/all-components-bundle.js +173 -88
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +5 -1
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +1 -0
- package/dist/esm/all-components.js +1 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/wafer-map/index.d.ts +21 -0
- package/dist/esm/wafer-map/index.js +70 -0
- package/dist/esm/wafer-map/index.js.map +1 -0
- package/dist/esm/wafer-map/modules/computations.d.ts +25 -0
- package/dist/esm/wafer-map/modules/computations.js +117 -0
- package/dist/esm/wafer-map/modules/computations.js.map +1 -0
- package/dist/esm/wafer-map/styles.d.ts +1 -0
- package/dist/esm/wafer-map/styles.js +3 -0
- package/dist/esm/wafer-map/styles.js.map +1 -0
- package/dist/esm/wafer-map/template.d.ts +2 -0
- package/dist/esm/wafer-map/template.js +3 -0
- package/dist/esm/wafer-map/template.js.map +1 -0
- package/dist/esm/wafer-map/types.d.ts +38 -0
- package/dist/esm/wafer-map/types.js +17 -0
- package/dist/esm/wafer-map/types.js.map +1 -0
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,QAAQ,CAAC;AAChB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,QAAQ,CAAC;AAChB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,QAAQ,CAAC;AAChB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,QAAQ,CAAC;AAChB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { WaferMapColorsScale, WaferMapColorsScaleMode, WaferMapDie, WaferMapOrientation, WaferMapQuadrant } from './types';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'nimble-wafer-map': WaferMap;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A nimble-styled WaferMap
|
|
10
|
+
*/
|
|
11
|
+
export declare class WaferMap extends FoundationElement {
|
|
12
|
+
quadrant: WaferMapQuadrant;
|
|
13
|
+
orientation: WaferMapOrientation;
|
|
14
|
+
maxCharacters: number;
|
|
15
|
+
dieLabelsHidden: boolean;
|
|
16
|
+
dieLabelsSuffix: string;
|
|
17
|
+
colorsScaleMode: WaferMapColorsScaleMode;
|
|
18
|
+
highlightedValues: number[];
|
|
19
|
+
dies: WaferMapDie[];
|
|
20
|
+
colorScale: WaferMapColorsScale;
|
|
21
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr, nullableNumberConverter, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { DesignSystem, FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
import { template } from './template';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
import { WaferMapColorsScaleMode, WaferMapOrientation, WaferMapQuadrant } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* A nimble-styled WaferMap
|
|
9
|
+
*/
|
|
10
|
+
export class WaferMap extends FoundationElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.quadrant = WaferMapQuadrant.topLeft;
|
|
14
|
+
this.orientation = WaferMapOrientation.top;
|
|
15
|
+
this.maxCharacters = 4;
|
|
16
|
+
this.dieLabelsHidden = false;
|
|
17
|
+
this.dieLabelsSuffix = '';
|
|
18
|
+
this.colorsScaleMode = WaferMapColorsScaleMode.linear;
|
|
19
|
+
this.highlightedValues = [];
|
|
20
|
+
this.dies = [];
|
|
21
|
+
this.colorScale = {
|
|
22
|
+
colors: [],
|
|
23
|
+
values: []
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
attr
|
|
29
|
+
], WaferMap.prototype, "quadrant", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
attr
|
|
32
|
+
], WaferMap.prototype, "orientation", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
attr({
|
|
35
|
+
attribute: 'max-characters',
|
|
36
|
+
converter: nullableNumberConverter
|
|
37
|
+
})
|
|
38
|
+
], WaferMap.prototype, "maxCharacters", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
attr({
|
|
41
|
+
attribute: 'die-labels-hidden',
|
|
42
|
+
mode: 'boolean'
|
|
43
|
+
})
|
|
44
|
+
], WaferMap.prototype, "dieLabelsHidden", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
attr({
|
|
47
|
+
attribute: 'die-labels-suffix'
|
|
48
|
+
})
|
|
49
|
+
], WaferMap.prototype, "dieLabelsSuffix", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
attr({
|
|
52
|
+
attribute: 'colors-scale-mode'
|
|
53
|
+
})
|
|
54
|
+
], WaferMap.prototype, "colorsScaleMode", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
observable
|
|
57
|
+
], WaferMap.prototype, "highlightedValues", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
observable
|
|
60
|
+
], WaferMap.prototype, "dies", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
observable
|
|
63
|
+
], WaferMap.prototype, "colorScale", void 0);
|
|
64
|
+
const nimbleWaferMap = WaferMap.compose({
|
|
65
|
+
baseName: 'wafer-map',
|
|
66
|
+
template,
|
|
67
|
+
styles
|
|
68
|
+
});
|
|
69
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wafer-map/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,IAAI,EACJ,uBAAuB,EACvB,UAAU,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAEH,uBAAuB,EAEvB,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,SAAS,CAAC;AAQjB;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,iBAAiB;IAA/C;;QAEW,aAAQ,GAAqB,gBAAgB,CAAC,OAAO,CAAC;QAGtD,gBAAW,GAAwB,mBAAmB,CAAC,GAAG,CAAC;QAM3D,kBAAa,GAAG,CAAC,CAAC;QAMlB,oBAAe,GAAG,KAAK,CAAC;QAKxB,oBAAe,GAAG,EAAE,CAAC;QAKrB,oBAAe,GAA4B,uBAAuB,CAAC,MAAM,CAAC;QAE9D,sBAAiB,GAAa,EAAE,CAAC;QACjC,SAAI,GAAkB,EAAE,CAAC;QACzB,eAAU,GAAwB;YACjD,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,EAAE;SACb,CAAC;IACN,CAAC;CAAA;AAjCG;IADC,IAAI;0CACwD;AAG7D;IADC,IAAI;6CAC6D;AAMlE;IAJC,IAAI,CAAC;QACF,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,uBAAuB;KACrC,CAAC;+CACuB;AAMzB;IAJC,IAAI,CAAC;QACF,SAAS,EAAE,mBAAmB;QAC9B,IAAI,EAAE,SAAS;KAClB,CAAC;iDAC6B;AAK/B;IAHC,IAAI,CAAC;QACF,SAAS,EAAE,mBAAmB;KACjC,CAAC;iDAC0B;AAK5B;IAHC,IAAI,CAAC;QACF,SAAS,EAAE,mBAAmB;KACjC,CAAC;iDAC+E;AAErE;IAAX,UAAU;mDAAyC;AACxC;IAAX,UAAU;sCAAiC;AAChC;IAAX,UAAU;4CAGT;AAGN,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,WAAW;IACrB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ScaleLinear } from 'd3-scale';
|
|
2
|
+
import type { WaferMapDie } from '../types';
|
|
3
|
+
import { Dimensions, Margin, WaferMapQuadrant } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Computations calculates and stores different measures which are used in the Wafermap
|
|
6
|
+
*/
|
|
7
|
+
export declare class Computations {
|
|
8
|
+
readonly containerDimensions: Dimensions;
|
|
9
|
+
readonly dieDimensions: Dimensions;
|
|
10
|
+
readonly radius: number;
|
|
11
|
+
readonly margin: Margin;
|
|
12
|
+
readonly horizontalScale: ScaleLinear<number, number>;
|
|
13
|
+
readonly verticalScale: ScaleLinear<number, number>;
|
|
14
|
+
private readonly baseMargin;
|
|
15
|
+
private readonly dieSizeFactor;
|
|
16
|
+
private readonly defaultAlign;
|
|
17
|
+
constructor(dies: Readonly<Readonly<WaferMapDie>[]>, axisLocation: Readonly<WaferMapQuadrant>, canvasDimensions: Readonly<Dimensions>);
|
|
18
|
+
private calculateMapDimensions;
|
|
19
|
+
private calculateContainerDimensions;
|
|
20
|
+
private createHorizontalScale;
|
|
21
|
+
private createVerticalScale;
|
|
22
|
+
private calculateGridWidth;
|
|
23
|
+
private calculateGridHeight;
|
|
24
|
+
private calculateMarginWithAddition;
|
|
25
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { scaleBand, scaleLinear } from 'd3-scale';
|
|
2
|
+
import { WaferMapQuadrant } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Computations calculates and stores different measures which are used in the Wafermap
|
|
5
|
+
*/
|
|
6
|
+
export class Computations {
|
|
7
|
+
constructor(dies, axisLocation, canvasDimensions) {
|
|
8
|
+
this.baseMargin = {
|
|
9
|
+
top: 20,
|
|
10
|
+
right: 20,
|
|
11
|
+
bottom: 20,
|
|
12
|
+
left: 20
|
|
13
|
+
};
|
|
14
|
+
this.dieSizeFactor = 1.5;
|
|
15
|
+
this.defaultAlign = 0.5;
|
|
16
|
+
this.margin = this.baseMargin;
|
|
17
|
+
const gridMapDimensions = this.calculateMapDimensions(dies);
|
|
18
|
+
this.containerDimensions = this.calculateContainerDimensions(canvasDimensions, this.margin);
|
|
19
|
+
this.horizontalScale = this.createHorizontalScale(axisLocation, gridMapDimensions, this.containerDimensions.width);
|
|
20
|
+
this.dieDimensions = {
|
|
21
|
+
width: this.calculateGridWidth(gridMapDimensions.cols, this.containerDimensions.width),
|
|
22
|
+
height: 0
|
|
23
|
+
};
|
|
24
|
+
this.radius = this.containerDimensions.width / 2
|
|
25
|
+
+ this.dieDimensions.width * this.dieSizeFactor;
|
|
26
|
+
if (this.radius > canvasDimensions.width / 2) {
|
|
27
|
+
this.margin = this.calculateMarginWithAddition(this.radius - canvasDimensions.width / 2);
|
|
28
|
+
this.containerDimensions = this.calculateContainerDimensions(canvasDimensions, this.margin);
|
|
29
|
+
this.horizontalScale = this.createHorizontalScale(axisLocation, gridMapDimensions, this.containerDimensions.width);
|
|
30
|
+
this.dieDimensions = {
|
|
31
|
+
width: this.calculateGridWidth(gridMapDimensions.cols, this.containerDimensions.width),
|
|
32
|
+
height: 0
|
|
33
|
+
};
|
|
34
|
+
this.radius = this.containerDimensions.width / 2
|
|
35
|
+
+ this.dieDimensions.width * this.dieSizeFactor;
|
|
36
|
+
}
|
|
37
|
+
this.verticalScale = this.createVerticalScale(axisLocation, gridMapDimensions, this.containerDimensions.height);
|
|
38
|
+
this.dieDimensions = {
|
|
39
|
+
width: this.dieDimensions.width,
|
|
40
|
+
height: this.calculateGridHeight(gridMapDimensions.rows, this.containerDimensions.height)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
calculateMapDimensions(dies) {
|
|
44
|
+
if (dies.length === 0 || dies[0] === undefined)
|
|
45
|
+
return { origin: { x: 0, y: 0 }, rows: 0, cols: 0 };
|
|
46
|
+
const minPoint = { x: dies[0].x, y: dies[0].y };
|
|
47
|
+
const maxPoint = { x: dies[0].x, y: dies[0].y };
|
|
48
|
+
for (const die of dies) {
|
|
49
|
+
if (die.x < minPoint.x)
|
|
50
|
+
minPoint.x = die.x;
|
|
51
|
+
if (die.y < minPoint.y)
|
|
52
|
+
minPoint.y = die.y;
|
|
53
|
+
if (die.x > maxPoint.x)
|
|
54
|
+
maxPoint.x = die.x;
|
|
55
|
+
if (die.y > maxPoint.y)
|
|
56
|
+
maxPoint.y = die.y;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
origin: minPoint,
|
|
60
|
+
rows: maxPoint.y - minPoint.y + 1,
|
|
61
|
+
cols: maxPoint.x - minPoint.x + 1
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
calculateContainerDimensions(canvasDimensions, margin) {
|
|
65
|
+
return {
|
|
66
|
+
width: canvasDimensions.width - margin.left - margin.right,
|
|
67
|
+
height: canvasDimensions.height - margin.top - margin.bottom
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
createHorizontalScale(axisLocation, grid, containerWidth) {
|
|
71
|
+
if (axisLocation === WaferMapQuadrant.bottomLeft
|
|
72
|
+
|| axisLocation === WaferMapQuadrant.topLeft) {
|
|
73
|
+
return scaleLinear()
|
|
74
|
+
.domain([grid.origin.x, grid.origin.x + grid.cols])
|
|
75
|
+
.range([0, containerWidth]);
|
|
76
|
+
}
|
|
77
|
+
return scaleLinear()
|
|
78
|
+
.domain([grid.origin.x - 1, grid.origin.x + grid.cols - 1])
|
|
79
|
+
.range([containerWidth, 0]);
|
|
80
|
+
}
|
|
81
|
+
createVerticalScale(axisLocation, grid, containerHeight) {
|
|
82
|
+
if (axisLocation === WaferMapQuadrant.bottomLeft
|
|
83
|
+
|| axisLocation === WaferMapQuadrant.bottomRight) {
|
|
84
|
+
return scaleLinear()
|
|
85
|
+
.domain([grid.origin.y - 1, grid.origin.y + grid.rows - 1])
|
|
86
|
+
.range([containerHeight, 0]);
|
|
87
|
+
}
|
|
88
|
+
return scaleLinear()
|
|
89
|
+
.domain([grid.origin.y, grid.origin.y + grid.rows])
|
|
90
|
+
.range([0, containerHeight]);
|
|
91
|
+
}
|
|
92
|
+
calculateGridWidth(cols, containerWidth) {
|
|
93
|
+
return scaleBand()
|
|
94
|
+
.align(this.defaultAlign)
|
|
95
|
+
.padding(0)
|
|
96
|
+
.domain(this.horizontalScale.ticks(cols))
|
|
97
|
+
.range([0, containerWidth])
|
|
98
|
+
.bandwidth();
|
|
99
|
+
}
|
|
100
|
+
calculateGridHeight(rows, containerHeight) {
|
|
101
|
+
return scaleBand()
|
|
102
|
+
.align(this.defaultAlign)
|
|
103
|
+
.padding(0)
|
|
104
|
+
.domain(this.verticalScale.ticks(rows))
|
|
105
|
+
.range([0, containerHeight])
|
|
106
|
+
.bandwidth();
|
|
107
|
+
}
|
|
108
|
+
calculateMarginWithAddition(baseAddition = 0) {
|
|
109
|
+
return {
|
|
110
|
+
top: this.baseMargin.top + baseAddition,
|
|
111
|
+
right: this.baseMargin.right + baseAddition,
|
|
112
|
+
bottom: this.baseMargin.bottom + baseAddition,
|
|
113
|
+
left: this.baseMargin.top + baseAddition
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=computations.js.map
|
|
@@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AAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC;IACrC,CAAC;IAEO,kBAAkB,CAAC,IAAY,EAAE,cAAsB;QAC3D,OAAO,SAAS,EAAU;aACrB,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;aACxB,OAAO,CAAC,CAAC,CAAC;aACV,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACxC,KAAK,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;aAC1B,SAAS,EAAE,CAAC;IACrB,CAAC;IAEO,mBAAmB,CAAC,IAAY,EAAE,eAAuB;QAC7D,OAAO,SAAS,EAAU;aACrB,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;aACxB,OAAO,CAAC,CAAC,CAAC;aACV,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACtC,KAAK,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;aAC3B,SAAS,EAAE,CAAC;IACrB,CAAC;IAEO,2BAA2B,CAAC,YAAY,GAAG,CAAC;QAMhD,OAAO;YACH,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,YAAY;YACvC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,YAAY;YAC3C,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,YAAY;YAC7C,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,YAAY;SAC3C,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/wafer-map/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/wafer-map/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const WaferMapQuadrant: {
|
|
2
|
+
readonly bottomLeft: "bottom-left";
|
|
3
|
+
readonly bottomRight: "bottom-right";
|
|
4
|
+
readonly topLeft: "top-left";
|
|
5
|
+
readonly topRight: "top-right";
|
|
6
|
+
};
|
|
7
|
+
export declare type WaferMapQuadrant = typeof WaferMapQuadrant[keyof typeof WaferMapQuadrant];
|
|
8
|
+
export declare const WaferMapOrientation: {
|
|
9
|
+
readonly top: "top";
|
|
10
|
+
readonly bottom: "bottom";
|
|
11
|
+
readonly left: "left";
|
|
12
|
+
readonly right: "right";
|
|
13
|
+
};
|
|
14
|
+
export declare type WaferMapOrientation = typeof WaferMapOrientation[keyof typeof WaferMapOrientation];
|
|
15
|
+
export declare const WaferMapColorsScaleMode: {
|
|
16
|
+
readonly linear: "linear";
|
|
17
|
+
readonly ordinal: "ordinal";
|
|
18
|
+
};
|
|
19
|
+
export declare type WaferMapColorsScaleMode = typeof WaferMapColorsScaleMode[keyof typeof WaferMapColorsScaleMode];
|
|
20
|
+
export interface WaferMapDie {
|
|
21
|
+
value: number;
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}
|
|
25
|
+
export interface WaferMapColorsScale {
|
|
26
|
+
colors: string[];
|
|
27
|
+
values: number[];
|
|
28
|
+
}
|
|
29
|
+
export interface Dimensions {
|
|
30
|
+
readonly width: number;
|
|
31
|
+
readonly height: number;
|
|
32
|
+
}
|
|
33
|
+
export interface Margin {
|
|
34
|
+
readonly top: number;
|
|
35
|
+
readonly right: number;
|
|
36
|
+
readonly bottom: number;
|
|
37
|
+
readonly left: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const WaferMapQuadrant = {
|
|
2
|
+
bottomLeft: 'bottom-left',
|
|
3
|
+
bottomRight: 'bottom-right',
|
|
4
|
+
topLeft: 'top-left',
|
|
5
|
+
topRight: 'top-right'
|
|
6
|
+
};
|
|
7
|
+
export const WaferMapOrientation = {
|
|
8
|
+
top: 'top',
|
|
9
|
+
bottom: 'bottom',
|
|
10
|
+
left: 'left',
|
|
11
|
+
right: 'right'
|
|
12
|
+
};
|
|
13
|
+
export const WaferMapColorsScaleMode = {
|
|
14
|
+
linear: 'linear',
|
|
15
|
+
ordinal: 'ordinal'
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/wafer-map/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,WAAW;CACf,CAAC;AAKX,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAKX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.5.0",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"@microsoft/fast-foundation": "^2.46.11",
|
|
51
51
|
"@microsoft/fast-web-utilities": "^5.4.1",
|
|
52
52
|
"@ni/nimble-tokens": "^4.3.0",
|
|
53
|
+
"@types/d3-scale": "^4.0.2",
|
|
54
|
+
"d3-scale": "^4.0.2",
|
|
53
55
|
"hex-rgb": "^5.0.0",
|
|
54
56
|
"tslib": "^2.2.0"
|
|
55
57
|
},
|