Skip to content

Commit

Permalink
fix broken TrackView#renderSVGContext (#1845)
Browse files Browse the repository at this point in the history
Signed-off-by: eternal-flame-AD <[email protected]>
  • Loading branch information
eternal-flame-AD authored Jul 12, 2024
1 parent b4cafb1 commit b59d29d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/sample/sampleInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@ class SampleInfo {
this.sampleMappingDictionary = {}
this.colorDictionary = {}
this.attributeRangeLUT = {}
this.initialized = false
}

get attributeCount() {
return this.attributeNames ? this.attributeNames.length : 0
}

isInitialized() {
return this.initialized
}

hasAttributes() {
return this.attributeCount > 0
}
Expand Down Expand Up @@ -96,6 +101,8 @@ class SampleInfo {
}
}

this.initialized = true

}

getAttributeColor(attribute, value) {
Expand Down

0 comments on commit b59d29d

Please sign in to comment.