Skip to content

Commit 7bf6c99

Browse files
committed
Update refs
1 parent 258de78 commit 7bf6c99

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

example/camera-auto-orbit/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
const distance = 1400;
2222

2323
const CameraOrbit = () => {
24-
const fgRef = useRef(null);
24+
const fgRef = useRef();
2525

2626
useEffect(() => {
2727
fgRef.current.cameraPosition({ z: distance });

example/click-to-focus/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
fetch('../datasets/miserables.json').then(res => res.json()).then(data => {
1919
const FocusGraph = () => {
20-
const fgRef = useRef(null);
20+
const fgRef = useRef();
2121

2222
const handleClick = useCallback(node => {
2323
// Aim at node from outside it

example/collision-detection/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
const { useState, useEffect, useRef } = React;
2020

2121
const CollisionDetectionFG = () => {
22-
const fgRef = useRef(null);
22+
const fgRef = useRef();
2323

2424
const [graphData, setGraphData] = useState({ nodes: [], links: [] });
2525

example/dynamic/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
const DynamicGraph = () => {
1919
const [data, setData] = useState({ nodes: [{ id: 0 }], links: [] });
20-
const fgRef = useRef(null);
20+
const fgRef = useRef();
2121

2222
useEffect(() => {
2323
setInterval(() => {

example/tree/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
};
2727

2828
const ForceTree = ({ data }) => {
29-
const fgRef = useRef(null);
29+
const fgRef = useRef();
3030

3131
const [controls] = useState({ 'DAG Orientation': 'td'});
3232
const forceUpdate = useForceUpdate();

0 commit comments

Comments
 (0)