Skip to content

Commit 350398a

Browse files
committed
Update for yFiles for HTML 3.0
1 parent 6c1a898 commit 350398a

15 files changed

+59
-66
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This sample application serves as a basic scaffold of how to integrate [yFiles f
88

99
## Version Information
1010

11-
- Angular CLI v16.0
12-
- yFiles for HTML 2.6
11+
- Angular CLI 19
12+
- yFiles for HTML 3.0
1313

1414
## Getting Started
1515

@@ -19,7 +19,7 @@ Just clone this repository with
1919
git clone https://github.com/yWorks/yfiles-angular-integration-basic
2020
```
2121

22-
Then, extract a yFiles Evaluation package beside it and run
22+
Then, extract a yFiles Evaluation package besides it and run
2323

2424
```
2525
npm install

angular.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"prefix": "app",
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
1616
"outputPath": "dist/yfiles-angular-integration-basic",
1717
"index": "src/index.html",
18-
"main": "src/main.ts",
18+
"browser": "src/main.ts",
1919
"polyfills": ["zone.js"],
2020
"tsConfig": "tsconfig.app.json",
2121
"assets": ["src/favicon.ico", "src/assets"],
@@ -27,12 +27,9 @@
2727
"outputHashing": "all"
2828
},
2929
"development": {
30-
"buildOptimizer": false,
3130
"optimization": false,
32-
"vendorChunk": true,
3331
"extractLicenses": false,
34-
"sourceMap": true,
35-
"namedChunks": true
32+
"sourceMap": true
3633
}
3734
},
3835
"defaultConfiguration": "production"
@@ -41,19 +38,16 @@
4138
"builder": "@angular-devkit/build-angular:dev-server",
4239
"configurations": {
4340
"production": {
44-
"browserTarget": "yfiles-angular-integration-basic:build:production"
41+
"buildTarget": "yfiles-angular-integration-basic:build:production"
4542
},
4643
"development": {
47-
"browserTarget": "yfiles-angular-integration-basic:build:development"
44+
"buildTarget": "yfiles-angular-integration-basic:build:development"
4845
}
4946
},
5047
"defaultConfiguration": "development"
5148
},
5249
"extract-i18n": {
53-
"builder": "@angular-devkit/build-angular:extract-i18n",
54-
"options": {
55-
"browserTarget": "yfiles-angular-integration-basic:build"
56-
}
50+
"builder": "@angular-devkit/build-angular:extract-i18n"
5751
},
5852
"test": {
5953
"builder": "@angular-devkit/build-angular:karma",

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-for-HTML-Complete-2.6.0.4-Evaluation/lib-dev/yfiles-26.0.4+eval-dev.tgz"
27+
"@yfiles/yfiles": "../yFiles-for-HTML-Complete-3.0-Evaluation/lib-dev/yfiles-30.0.0+eval-dev.tgz"
2828
},
2929
```
3030

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "yfiles-angular-integration-basic",
3-
"version": "26.0.4",
2+
"name": "@yfiles/yfiles-angular-integration-basic",
3+
"version": "30.0.0",
44
"author": "yWorks GmbH <[email protected]>",
55
"scripts": {
66
"ng": "ng",
@@ -9,34 +9,34 @@
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-2.6.0.4-Evaluation/lib/license.json','./src/license.json')\""
12+
"copy-eval-license": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-3.0-Evaluation/lib/license.json','./src/license.json')\""
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/animations": "^17.3.6",
17-
"@angular/common": "~17.3.6",
18-
"@angular/compiler": "~17.3.6",
19-
"@angular/core": "~17.3.6",
20-
"@angular/forms": "~17.3.6",
21-
"@angular/platform-browser": "~17.3.6",
22-
"@angular/platform-browser-dynamic": "~17.3.6",
23-
"@angular/router": "^17.3.6",
16+
"@angular/animations": "^19.1.5",
17+
"@angular/common": "^19.1.5",
18+
"@angular/compiler": "^19.1.5",
19+
"@angular/core": "^19.1.5",
20+
"@angular/forms": "^19.1.5",
21+
"@angular/platform-browser": "^19.1.5",
22+
"@angular/platform-browser-dynamic": "^19.1.5",
23+
"@angular/router": "^19.1.5",
2424
"rxjs": "~7.8.1",
25-
"tslib": "^2.6.2",
26-
"yfiles": "../yFiles-for-HTML-Complete-2.6.0.4-Evaluation/lib-dev/yfiles-26.0.4+eval-dev.tgz",
27-
"zone.js": "~0.14.2"
25+
"tslib": "^2.8.1",
26+
"zone.js": "~0.15.0",
27+
"@yfiles/yfiles": "../yFiles-for-HTML-Complete-3.0-Evaluation/lib-dev/yfiles-30.0.3+eval-dev.tgz"
2828
},
2929
"devDependencies": {
30-
"@angular-devkit/build-angular": "^17.3.6",
31-
"@angular/cli": "~17.3.6",
32-
"@angular/compiler-cli": "^17.3.6",
33-
"@types/jasmine": "~5.1.4",
34-
"jasmine-core": "~5.1.1",
35-
"karma": "~6.4.2",
30+
"@angular-devkit/build-angular": "^19.1.6",
31+
"@angular/cli": "^19.1.6",
32+
"@angular/compiler-cli": "^19.1.5",
33+
"@types/jasmine": "~5.1.5",
34+
"jasmine-core": "~5.6.0",
35+
"karma": "~6.4.4",
3636
"karma-chrome-launcher": "~3.2.0",
3737
"karma-coverage": "~2.2.1",
3838
"karma-jasmine": "~5.1.0",
3939
"karma-jasmine-html-reporter": "~2.1.0",
40-
"typescript": "~5.2.2"
40+
"typescript": "~5.7.3"
4141
}
4242
}

src/app/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('AppComponent', () => {
55
beforeEach(() =>
66
TestBed.configureTestingModule({
77
declarations: [AppComponent],
8-
})
8+
}),
99
)
1010

1111
it('should create the app', () => {
@@ -25,7 +25,7 @@ describe('AppComponent', () => {
2525
fixture.detectChanges()
2626
const compiled = fixture.nativeElement as HTMLElement
2727
expect(compiled.querySelector('.content span')?.textContent).toContain(
28-
'yfiles-angular-integration-basic app is running!'
28+
'yfiles-angular-integration-basic app is running!',
2929
)
3030
})
3131
})

src/app/app.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { Component } from '@angular/core'
2+
import { GraphComponentComponent } from './graph-component/graph-component.component'
23

34
@Component({
45
selector: 'app-root',
6+
imports: [GraphComponentComponent],
57
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css'],
8+
styleUrl: './app.component.css'
79
})
810
export class AppComponent {
911
title = 'yfiles-angular-integration-basic'

src/app/app.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
3+
4+
import { routes } from './app.routes';
5+
6+
export const appConfig: ApplicationConfig = {
7+
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]
8+
};

src/app/app.module.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/app/app.routes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Routes } from '@angular/router';
2+
3+
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
@@ -8,7 +8,7 @@ describe('GraphComponentComponent', () => {
88

99
beforeEach(() => {
1010
TestBed.configureTestingModule({
11-
declarations: [GraphComponentComponent],
11+
declarations: [GraphComponentComponent]
1212
})
1313
fixture = TestBed.createComponent(GraphComponentComponent)
1414
component = fixture.componentInstance

0 commit comments

Comments
 (0)