Skip to content

Commit

Permalink
chore: prerelease
Browse files Browse the repository at this point in the history
* chore: prerelease

* Chore: prerelease

Release-As: 0.0.2-rc1

* fix: test changes

* Chore: prerelease

Release-As: 0.0.2-rc1

* fix: various changes

* Chore: prerelease

Release-As: 0.0.2-rc3

* fix: add extra drag

* fix: filter colour changes

---------

Signed-off-by: BMPMS-Telicent <135822574+BMPMS-Telicent@users.noreply.github.com>
  • Loading branch information
BMPMS-Telicent committed Mar 21, 2024
1 parent 556a4eb commit ae34ca1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/OntologyHierarchy/OntologyHierarchy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ const OntologyHierarchy: React.FC<OntologyHierarchyProps> = ({
if(isDraggable || isClickable){
d3.select(event.currentTarget)
.select(".expandLabel")
.attr("font-weight", 600);
.attr("font-weight", 500);
}
})
.on("mouseout", (event: React.MouseEvent<HTMLElement>, d) => {
svg.selectAll(".expandLabel")
.attr("font-weight", (d: any) => d.data.id && filterIds.includes(d.data.id) ? 500 : 400)
.attr("font-weight", 400);

})
.on("dragstart", (event: React.DragEvent<HTMLElement>, d) => {
Expand Down Expand Up @@ -245,10 +245,10 @@ const OntologyHierarchy: React.FC<OntologyHierarchyProps> = ({

treeGroup.select(".expandLabel")
.attr("pointer-events", "none")
.attr("font-weight", (d) => d.data.id && filterIds.includes(d.data.id) ? 500 : 400)
.attr("font-weight", 400)
.attr("x", (d) => 22)
.attr("y", (d) => 4 + rowHeight/2)
.attr("fill", "white")
.attr("fill", (d) => d.data.id && d.data.ontology && filterIds.includes(d.data.id) ? d.data.ontology.color : "white")
.attr("font-size", 12)
.text((d) => d.data.expandLabel || "")

Expand Down
2 changes: 2 additions & 0 deletions src/components/OntologyHierarchy/OntologyHierarchyDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const OntologyHierarchyDisplay = (inputs: { instanceId: string }) => {
isDraggable={true}
filterIds={[
"http://ies.data.gov.uk/ontology/ies4#RealEstate",
"http://ies.data.gov.uk/ontology/ies4#PersonState",
"http://ies.data.gov.uk/ontology/ies4#ParticularPeriod",
]}
expandAll={true}
expandElement={false}
Expand Down

0 comments on commit ae34ca1

Please sign in to comment.