@nightingale-elements/nightingale-track
Advanced tools
Comparing version 4.2.2-alpha.0 to 4.3.0-4.4.0-alpha.0.0
@@ -6,4 +6,3 @@ import NightingaleTrack from "./nightingale-track"; | ||
export type { LayoutOptions } from "./DefaultLayout"; | ||
export type { Shapes } from "./FeatureShape"; | ||
export default NightingaleTrack; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -65,7 +65,2 @@ import { Selection } from "d3"; | ||
export { getColorByType }; | ||
declare global { | ||
interface HTMLElementTagNameMap { | ||
"nightingale-track": NightingaleTrack; | ||
} | ||
} | ||
//# sourceMappingURL=nightingale-track.d.ts.map |
{ | ||
"name": "@nightingale-elements/nightingale-track", | ||
"version": "4.2.2-alpha.0", | ||
"version": "4.3.0-4.4.0-alpha.0.0", | ||
"description": "Basic track type of the viewer.", | ||
@@ -35,7 +35,7 @@ "files": [ | ||
"dependencies": { | ||
"@nightingale-elements/nightingale-new-core": "^4.2.2-alpha.0", | ||
"d3": "7.8.3", | ||
"@nightingale-elements/nightingale-new-core": "^4.3.0-4.4.0-alpha.0.0", | ||
"d3": "7.8.5", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"gitHead": "e4511f5ac19c04d89db334172e541bc69f222501" | ||
"gitHead": "cf26b5f2042eedb559f1ea7136e095414c1f4eca" | ||
} |
@@ -9,3 +9,3 @@ import { config } from "./config"; | ||
const info = Object.values(config).find( | ||
(typeInfo) => typeInfo.name.toUpperCase() === type.toUpperCase() | ||
(typeInfo) => typeInfo.name.toUpperCase() === type.toUpperCase(), | ||
); | ||
@@ -23,3 +23,3 @@ if (info) { | ||
const info = Object.values(config).find( | ||
(typeInfo) => typeInfo.name.toUpperCase() === type.toUpperCase() | ||
(typeInfo) => typeInfo.name.toUpperCase() === type.toUpperCase(), | ||
); | ||
@@ -26,0 +26,0 @@ if (!info) { |
@@ -56,5 +56,5 @@ import { Feature } from "./nightingale-track"; | ||
this.minHeight, | ||
this.layoutHeight - this.margin.top - this.margin.bottom | ||
this.layoutHeight - this.margin.top - this.margin.bottom, | ||
); | ||
} | ||
} |
@@ -78,3 +78,3 @@ const symbolSize = 10; | ||
ftLength: number, | ||
shape: Shapes | ||
shape: Shapes, | ||
) { | ||
@@ -81,0 +81,0 @@ shape = shape || "rectangle"; |
@@ -6,4 +6,3 @@ import NightingaleTrack from "./nightingale-track"; | ||
export type { LayoutOptions } from "./DefaultLayout"; | ||
export type { Shapes } from "./FeatureShape"; | ||
export default NightingaleTrack; |
@@ -55,6 +55,6 @@ import { select, Selection } from "d3"; | ||
withMargin( | ||
withPosition(withDimensions(withHighlight(NightingaleElement))) | ||
) | ||
) | ||
) | ||
withPosition(withDimensions(withHighlight(NightingaleElement))), | ||
), | ||
), | ||
), | ||
) { | ||
@@ -165,3 +165,3 @@ @property({ type: String }) | ||
oldValue: string | null, | ||
newValue: string | null | ||
newValue: string | null, | ||
): void { | ||
@@ -226,3 +226,3 @@ super.attributeChangedCallback(name, oldValue, newValue); | ||
return getShapeByType( | ||
(f as { feature: Feature }).feature.type as string | ||
(f as { feature: Feature }).feature.type as string, | ||
) as Shapes; | ||
@@ -267,4 +267,4 @@ } | ||
feature: d, | ||
}) | ||
) | ||
}), | ||
), | ||
) | ||
@@ -281,4 +281,4 @@ .enter() | ||
feature: d.feature, | ||
}) | ||
) | ||
}), | ||
), | ||
) | ||
@@ -297,4 +297,4 @@ .enter() | ||
f.end ? f.end - f.start + 1 : 1, | ||
this.getShape(f) | ||
) | ||
this.getShape(f), | ||
), | ||
) | ||
@@ -306,3 +306,3 @@ .attr( | ||
this.layoutObj?.getFeatureYPos(f.feature) || 0 | ||
})` | ||
})`, | ||
) | ||
@@ -312,6 +312,6 @@ .style("fill", (f) => this.getFeatureFillColor(f)) | ||
.style("fill-opacity", ({ feature }) => | ||
feature.opacity ? feature.opacity : 0.9 | ||
feature.opacity ? feature.opacity : 0.9, | ||
) | ||
.style("stroke-opacity", ({ feature }) => | ||
feature.opacity ? feature.opacity : 0.9 | ||
feature.opacity ? feature.opacity : 0.9, | ||
); | ||
@@ -325,4 +325,4 @@ | ||
0, | ||
this.getSingleBaseWidth() * (f.end ? f.end - f.start + 1 : 1) | ||
) | ||
this.getSingleBaseWidth() * (f.end ? f.end - f.start + 1 : 1), | ||
), | ||
) | ||
@@ -335,3 +335,3 @@ .attr("height", this.layoutObj?.getFeatureHeight() || 0) | ||
this.layoutObj?.getFeatureYPos(f.feature) || 0 | ||
})` | ||
})`, | ||
) | ||
@@ -373,10 +373,10 @@ .style("fill", "transparent") | ||
feature: f, | ||
}) | ||
) | ||
}), | ||
), | ||
), | ||
[] | ||
) | ||
[], | ||
), | ||
), | ||
[] | ||
) | ||
[], | ||
), | ||
); | ||
@@ -391,4 +391,4 @@ | ||
f?.end && f?.start ? f.end - f.start + 1 : 1, | ||
this.getShape(f) | ||
) | ||
this.getShape(f), | ||
), | ||
) | ||
@@ -399,4 +399,4 @@ .attr( | ||
`translate(${this.getXFromSeqPosition( | ||
f.start || 0 | ||
)},${this.layoutObj?.getFeatureYPos(f.feature as Feature)})` | ||
f.start || 0, | ||
)},${this.layoutObj?.getFeatureYPos(f.feature as Feature)})`, | ||
); | ||
@@ -410,4 +410,4 @@ | ||
this.getSingleBaseWidth() * | ||
(f?.end && f?.start ? f.end - f.start + 1 : 1) | ||
) | ||
(f?.end && f?.start ? f.end - f.start + 1 : 1), | ||
), | ||
) | ||
@@ -420,3 +420,3 @@ .attr("height", this.layoutObj?.getFeatureHeight() || 0) | ||
this.layoutObj?.getFeatureYPos(f.feature as Feature) || 0 | ||
})` | ||
})`, | ||
); | ||
@@ -450,3 +450,3 @@ } | ||
.attr("width", (d) => | ||
Math.max(0, this.getSingleBaseWidth() * (d.end - d.start + 1)) | ||
Math.max(0, this.getSingleBaseWidth() * (d.end - d.start + 1)), | ||
); | ||
@@ -453,0 +453,0 @@ |
@@ -28,3 +28,3 @@ import DefaultLayout, { LayoutOptions } from "./DefaultLayout"; | ||
const rowIndex = this.#rows.findIndex( | ||
(row) => !featureOvelapsInRow(feature, row) | ||
(row) => !featureOvelapsInRow(feature, row), | ||
); | ||
@@ -41,3 +41,3 @@ if (rowIndex >= 0) { | ||
this.layoutHeight / this.#rows.length, | ||
this.minHeight | ||
this.minHeight, | ||
); | ||
@@ -44,0 +44,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
401679
1920
- Removedd3@7.8.3(transitive)
Updated@nightingale-elements/nightingale-new-core@^4.3.0-4.4.0-alpha.0.0
Updatedd3@7.8.5