From d80ccc0350598dd41d0dc9025bdb9855efffc190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0tefa=C5=88=C3=A1k?= Date: Mon, 6 May 2024 11:37:43 +0200 Subject: [PATCH] Fixed wrong usage (#101) --- docs/styles.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/styles.md b/docs/styles.md index e3c1037..887f7a7 100644 --- a/docs/styles.md +++ b/docs/styles.md @@ -91,7 +91,7 @@ const nodes: MyNode[] = [ ]; const orb = new Orb(container); -orb.setDefaultStyle({ +orb.data.setDefaultStyle({ getNodeStyle: (node) => { return { ...node.style, @@ -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, }, }); ```