Skip to content

Commit

Permalink
Fixed wrong usage (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal authored May 6, 2024
1 parent 9ade389 commit d80ccc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const nodes: MyNode[] = [
];

const orb = new Orb<MyNode, MyEdge>(container);
orb.setDefaultStyle({
orb.data.setDefaultStyle({
getNodeStyle: (node) => {
return {
...node.style,
Expand Down Expand Up @@ -341,16 +341,16 @@ whole graph you can use the view settings to enable/disable shadows globally:
// Change on view init
orb.setView((context) => new DefaultView(context, {
render: {
shadowsIsEnabled: true,
shadowsOnEventIsEnabled: true,
shadowIsEnabled: true,
shadowOnEventIsEnabled: true,
},
}));

// Change anytime for the current view
orb.view.setSettings({
render: {
shadowsIsEnabled: true,
shadowsOnEventIsEnabled: true,
shadowIsEnabled: true,
shadowOnEventIsEnabled: true,
},
});
```
Expand Down

0 comments on commit d80ccc0

Please sign in to comment.