You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+87-48Lines changed: 87 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,71 +15,107 @@ user experience and facilitates an intuitive exploration of complex manufacturin
15
15
16
16
## Getting Started
17
17
18
-
1.**Installation:**
19
-
Install the component via npm by running the following command in your project directory:
20
-
```bash
21
-
npm install @yworks/react-yfiles-supply-chain
18
+
### Prerequisites
19
+
20
+
To use the Supply Chain component, [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) is required.
21
+
You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).
22
+
See [Licensing](https://docs.yworks.com/react-yfiles-supply-chain/introduction/licensing) for more information on this topic.
23
+
24
+
You can learn how to work with the yFiles npm module in our [Developer’s Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module). A convenient way of getting access to yFiles is to use the [yFiles Dev Suite](https://www.npmjs.com/package/yfiles-dev-suite).
25
+
26
+
27
+
### Project Setup
28
+
29
+
1.**Installation**
30
+
31
+
In addition to yFiles, the Supply Chain component requires React to be installed in your project.
32
+
If you want to start your project from scratch, we recommend using vite:
Copy file name to clipboardExpand all lines: docs/introduction/GettingStarted.mdx
+79-38Lines changed: 79 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,65 +9,103 @@ import TypeLink from '../../components/TypeLink.astro'
9
9
10
10
## Prerequisites
11
11
12
-
For using the component, [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) is required. You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL). See [Licensing](licensing) for more information on this topic.
12
+
To use the Supply Chain component, [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) is required.
13
+
You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).
14
+
See [Licensing](https://docs.yworks.com/react-yfiles-supply-chain/introduction/licensing) for more information on this topic.
13
15
14
-
## Project setup
16
+
You can learn how to work with the yFiles npm module in our [Developer’s Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module). A convenient way of getting access to yFiles is to use the [yFiles Dev Suite](https://www.npmjs.com/package/yfiles-dev-suite).
15
17
16
-
1.**Installation:**
17
-
Install the component via npm by running the following command in your project directory:
18
-
```bash
19
-
npm install @yworks/react-yfiles-supply-chain
18
+
19
+
## Project Setup
20
+
21
+
1.**Installation**
22
+
23
+
In addition to yFiles, the Supply Chain component requires React to be installed in your project.
24
+
If you want to start your project from scratch, we recommend using vite:
The supply-chain module has some peer dependencies that must be installed somewhere in your project. Since it is a React module, `react` and `react-dom` dependencies are needed.
34
+
<details>
23
35
24
-
Additionally, the component relies on the [yFiles](https://www.yworks.com/yfiles-overview) library which is not published to the public npm registry. You can learn how to work with the yFiles npm module in our [Developer's Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module).
Be sure to invoke <TypeLinktype="registerLicense" /> before using the Supply Chain React component.
56
+
When evaluating yFiles, the license JSON file is found in the `lib/` folder of the yFiles for HTML evaluation package.
57
+
For licensed users, the license data is provided separately.
58
+
59
+
<details>
60
+
61
+
<summary>License registration</summary>
62
+
63
+
Importorpasteyourlicensedataandregisterthelicense, e.g. in`App.tsx`:
64
+
65
+
```js
66
+
importyFilesLicensefrom'./license.json'
67
+
68
+
registerLicense(yFilesLicense)
69
+
```
70
+
</details>
71
+
72
+
3.**Stylesheet**
39
73
40
-
2.**License:**
41
-
Be sure to invoke the <TypeLinktype="registerLicense" /> function to activate the license for the application before using the company-ownership component.
74
+
Make sure to import the CSS stylesheet as well:
42
75
43
-
3.**Usage:**
44
-
Utilize the component in your application. Make sure to import the CSS stylesheet.
@@ -79,5 +117,8 @@ For using the component, [yFiles for HTML](https://www.yworks.com/products/yfile
79
117
80
118
Explore the possibilities of visualizing supply chain diagrams with the yFiles Supply Chain Component. For further information about [yFiles for HTML](https://www.yworks.com/yfiles-overview) and our company, please visit [yWorks.com](https://www.yworks.com).
81
119
120
+
If you are exploring a different use case and require another React component,
121
+
please take a look at the available [React components](https://www.yworks.com/yfiles-react-components) powered by yFiles!
122
+
82
123
For support or feedback, please reach out to [our support team](https://website.yworks.home/contact) or open an issue on GitHub. Happy diagramming!
0 commit comments