Skip to content

Commit c22433e

Browse files
committed
Update for yFiles for HTML 3.0.0.4
1 parent 73412e7 commit c22433e

File tree

12 files changed

+50
-37
lines changed

12 files changed

+50
-37
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<img src="./src/assets/yfiles-logo.svg" alt="yFiles logo" height="100"/>
22

3-
# yFiles integration for Angular CLI
3+
# yFiles integration for Angular
44

5-
This sample application serves as a basic scaffold of how to integrate [yFiles for HTML](https://www.yfiles.com/the-yfiles-sdk/web/yfiles-for-html) in an [Angular CLI](https://cli.angular.io/) application.
5+
This sample application serves as a basic scaffold of how to integrate [yFiles for HTML](https://www.yfiles.com/the-yfiles-sdk/web/yfiles-for-html) in an [Angular](https://angular.dev/) application.
66

77
**To run this project, a valid [yFiles for HTML](https://www.yfiles.com/the-yfiles-sdk/web/yfiles-for-html) version is required. You can evaluate yFiles 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).**
88

integration-howto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Adding yFiles as a dependency is almost as easy as installing an external librar
2424
```
2525
"dependencies": {
2626
...
27-
"@yfiles/yfiles": "../yFiles-for-HTML-Complete-3.0.0.3-Evaluation/lib/yfiles-30.0.3+eval-dev.tgz"
27+
"@yfiles/yfiles": "../yFiles-for-HTML-Complete-3.0.0.4-Evaluation/lib/yfiles-30.0.4+eval-dev.tgz"
2828
},
2929
```
3030

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@yfiles/yfiles-angular-integration-basic",
3-
"version": "30.0.3",
3+
"version": "30.0.4",
44
"author": "yWorks GmbH <yfileshtml@yworks.com>",
55
"scripts": {
66
"ng": "ng",
@@ -9,7 +9,7 @@
99
"watch": "ng build --watch --configuration development",
1010
"test": "ng test",
1111
"postinstall": "npm run copy-eval-license",
12-
"copy-eval-license": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-3.0.0.3-Evaluation/lib/license.json','./src/license.json')\""
12+
"copy-eval-license": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-3.0.0.4-Evaluation/lib/license.json','./src/license.json')\""
1313
},
1414
"private": true,
1515
"dependencies": {
@@ -23,7 +23,7 @@
2323
"rxjs": "~7.8.1",
2424
"tslib": "^2.8.1",
2525
"zone.js": "~0.15.0",
26-
"@yfiles/yfiles": "../yFiles-for-HTML-Complete-3.0.0.3-Evaluation/lib/yfiles-30.0.3+eval-dev.tgz"
26+
"@yfiles/yfiles": "../yFiles-for-HTML-Complete-3.0.0.4-Evaluation/lib/yfiles-30.0.4+eval-dev.tgz"
2727
},
2828
"devDependencies": {
2929
"@angular-devkit/build-angular": "^20.1.4",

src/app/app.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
2-
import { provideRouter } from '@angular/router';
1+
import { type ApplicationConfig, provideZoneChangeDetection } from '@angular/core'
2+
import { provideRouter } from '@angular/router'
33

4-
import { routes } from './app.routes';
4+
import { routes } from './app.routes'
55

66
export const appConfig: ApplicationConfig = {
77
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]

src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { Routes } from '@angular/router';
1+
import { type Routes } from '@angular/router'
22

33
export const routes: Routes = [];

src/app/graph-component/graph-component.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentFixture, TestBed } from '@angular/core/testing'
1+
import { type ComponentFixture, TestBed } from '@angular/core/testing'
22

33
import { GraphComponentComponent } from './graph-component.component'
44

src/app/graph-component/graph-component.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'
2-
import { GraphComponent, GraphEditorInputMode, IGraph, License, Point, Rect } from '@yfiles/yfiles'
1+
import { type AfterViewInit, Component, type ElementRef, ViewChild } from '@angular/core'
2+
import { GraphComponent, GraphEditorInputMode, type IGraph, License, Point, Rect } from '@yfiles/yfiles'
33
import licenseData from '../../license.json'
44

55
License.value = licenseData

src/assets/yfiles-logo.svg

Lines changed: 2 additions & 2 deletions
Loading

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { bootstrapApplication } from '@angular/platform-browser';
2-
import { appConfig } from './app/app.config';
3-
import { AppComponent } from './app/app.component';
1+
import { bootstrapApplication } from '@angular/platform-browser'
2+
import { appConfig } from './app/app.config'
3+
import { AppComponent } from './app/app.component'
44

55
bootstrapApplication(AppComponent, appConfig)
66
.catch((err) => console.error(err));

tsconfig.app.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
13
{
24
"extends": "./tsconfig.json",
35
"compilerOptions": {
46
"outDir": "./out-tsc/app",
57
"types": []
68
},
7-
"files": ["src/main.ts"],
8-
"include": ["src/**/*.d.ts"]
9+
"include": [
10+
"src/**/*.ts"
11+
],
12+
"exclude": [
13+
"src/**/*.spec.ts"
14+
]
915
}

0 commit comments

Comments
 (0)