Skip to content

Commit

Permalink
add flyTo to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lixuanxian committed Apr 9, 2021
1 parent ebf4d37 commit 57744b0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,26 @@ graphXR.injectionApiCommand(':getGraph', iframeElem)
```

#### 2.5 flyTo

```
graphXR.injectionApiCommand(':getGraph', iframeElem)
.then((resData) => {
console.warn("Receive all data:", resData.content)
const {nodes, edges} = resData.content;
let flyToNode = nodes[0];
if(!flyToNode){
return
}
graphXR.injectionApiFunc(
"flyTo",
flyToNode._GXRID,
iframeElem
);
})
```

### 3. event, only support ['change','select']


Expand Down

0 comments on commit 57744b0

Please sign in to comment.