From f7bd2137ecbb81f3ed50ae9ccaaee27ae855c11a Mon Sep 17 00:00:00 2001
From: Sean Missingham <smissingham@users.noreply.github.com>
Date: Mon, 01 Jul 2024 03:58:34 +0000
Subject: [PATCH] Permit Manual (and Scripted) Trigger of CI Job (#1251)
---
quartz/components/Graph.tsx | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx
index 9fce9bd..f7ebcc9 100644
--- a/quartz/components/Graph.tsx
+++ b/quartz/components/Graph.tsx
@@ -1,4 +1,4 @@
-import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
+import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
// @ts-ignore
import script from "./scripts/graph.inline"
import style from "./styles/graph.scss"
@@ -17,6 +17,7 @@
opacityScale: number
removeTags: string[]
showTags: boolean
+ focusOnHover?: boolean
}
interface GraphOptions {
@@ -37,6 +38,7 @@
opacityScale: 1,
showTags: true,
removeTags: [],
+ focusOnHover: false,
},
globalGraph: {
drag: true,
@@ -50,11 +52,12 @@
opacityScale: 1,
showTags: true,
removeTags: [],
+ focusOnHover: true,
},
}
export default ((opts?: GraphOptions) => {
- function Graph({ displayClass, cfg }: QuartzComponentProps) {
+ const Graph: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
const localGraph = { ...defaultOptions.localGraph, ...opts?.localGraph }
const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph }
return (
--
Gitblit v1.10.0