Skip to content

Commit 68f86c2

Browse files
committed
small fixes
1 parent 7214bf2 commit 68f86c2

File tree

5 files changed

+12
-7880
lines changed

5 files changed

+12
-7880
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ npm run start
3333

3434
## Under the Hood
3535

36-
This project is a default Angular CLI application, where yFiles was added as additional dependency to integrate a basic graph component.
36+
This project is a default Angular CLI application, where yFiles was added as an additional dependency to integrate a basic graph component.
3737

3838
A step-by-step description of how to integrate yFiles in an Angular application can be found [here](integration-howto.md).
3939

@@ -49,4 +49,5 @@ Furthermore, there is an extensive [Developer's Guide](https://docs.yworks.com/y
4949

5050
## Support
5151

52-
If you need help with your setup or a certain feature, don't hesitate to contact our support through the [Evaluation Center](https://my.yworks.com/) or by email [email protected].
52+
If you need help with your setup or a certain feature, don't hesitate to contact our support
53+
through our [Customer Center](https://my.yworks.com/) or by email [[email protected]](mailto:[email protected]).

integration-howto.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ Adding yFiles as a dependency is as easy as installing an external library from
1919

2020
1. Add yFiles for HTML as npm dependency to the created project:
2121

22-
- If you have a fresh yFiles for HTML package, you need to `npm pack` the library first by running `npm pack` in `<yfiles-package>/lib/es-module/`. This creates a tar-ball that can be installed as npm dependency in other projects. See also [Working with the yFiles npm Module](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module#yfiles_npm_module).
22+
- If you have a fresh yFiles for HTML package, you need to `npm pack` the library first by running `npm pack`
23+
in `<yfiles-package>/lib/es-modules/`. This creates a tarball that can be installed as npm dependency in
24+
other projects. See also [Working with the yFiles npm Module](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module#yfiles_npm_module).
2325

2426
Note: This sample project runs `npm pack` as `preinstall` script in the `package.json`.
2527

@@ -32,7 +34,7 @@ Adding yFiles as a dependency is as easy as installing an external library from
3234
```
3335
3436
2. Now install the newly added dependency with `npm install`.
35-
3. Include `yfiles.css`, which is an integral part of yFiles for HTML. For example add `@import '~yfiles/yfiles.css';'` global style in `styles.css`.
37+
3. Include `yfiles.css`, which is an integral part of yFiles for HTML. For example add `@import '~yfiles/yfiles.css';'` to the global styles in `styles.css`.
3638
3739
After installing the dependency, you can import classes from `yfiles` in your project. Since yFiles is installed as proper npm dependency, IDEs provide full code-completion and automatic imports out of the box to easily work with the library.
3840
@@ -42,9 +44,10 @@ With the yFiles dependency, you can easily create a new Angular component that c
4244
4345
1. Run `ng generate component graph-component` to scaffold a new Angular component.
4446
2. Then add a container `div` in the `graph-component.component.html` that hosts the yFiles GraphComponent and specify a size in `graph-component.component.css` for it.
45-
3. In `graph-component.component.ts`, instantiate a new GraphComponent in the container `div` with editing capabilities and a basic sample graph. See the content of `/src/app/graph-component/graph-component.component.ts` in this repository for the full implementation.
47+
3. In `graph-component.component.ts`, instantiate a new GraphComponent in the container `div` with editing capabilities
48+
and a basic sample graph. See the contents of `/src/app/graph-component/graph-component.component.ts` in this repository for the full implementation.
4649
47-
Also, make sure to configure your `license.json` at the library (see `graph-component.component.ts`).
50+
Also, make sure to configure your `license.json` for the library (see `graph-component.component.ts`).
4851
4952
4. Add the new component to the `/src/app/app.component.html` that was created by the Angular CLI.
5053

src/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/* yfiles.css is an integral part of the library and must be loaded wherever a yFiles GraphComponent is created */
1+
/* yfiles.css is an integral part of the yFiles for HTML library and must be loaded wherever a yFiles GraphComponent is created */
22
@import '~yfiles/yfiles.css';

0 commit comments

Comments
 (0)