Skip to content

Commit dde43cd

Browse files
committed
feat: Update Graph component with default options
1 parent 88b650f commit dde43cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quartz/components/Graph.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
22
// @ts-ignore
3-
import script from "./scripts/graph.inline"
4-
import style from "./styles/graph.scss"
53
import { i18n } from "../i18n"
64
import { classNames } from "../util/lang"
5+
import script from "./scripts/graph.inline"
6+
import style from "./styles/graph.scss"
77

88
export interface D3Config {
99
drag: boolean
@@ -20,12 +20,12 @@ export interface D3Config {
2020
focusOnHover?: boolean
2121
}
2222

23-
interface GraphOptions {
23+
export interface GraphOptions {
2424
localGraph: Partial<D3Config> | undefined
2525
globalGraph: Partial<D3Config> | undefined
2626
}
2727

28-
const defaultOptions: GraphOptions = {
28+
export const defaultOptions: GraphOptions = {
2929
localGraph: {
3030
drag: true,
3131
zoom: true,

0 commit comments

Comments
 (0)