Skip to content

Commit 6c7c8e1

Browse files
committed
Update for yFiles for HTML 2.6
1 parent e28da2d commit 6c7c8e1

14 files changed

+43
-210
lines changed

.browserslistrc

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

README.md

Lines changed: 2 additions & 2 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 v14.1
12-
- yFiles for HTML 2.5
11+
- Angular CLI v16.0
12+
- yFiles for HTML 2.6
1313

1414
## Getting Started
1515

angular.json

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,14 @@
1616
"outputPath": "dist/yfiles-angular-integration-basic",
1717
"index": "src/index.html",
1818
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
19+
"polyfills": ["zone.js"],
2020
"tsConfig": "tsconfig.app.json",
2121
"assets": ["src/favicon.ico", "src/assets"],
2222
"styles": ["src/styles.css"],
2323
"scripts": []
2424
},
2525
"configurations": {
2626
"production": {
27-
"budgets": [
28-
{
29-
"type": "initial",
30-
"maximumWarning": "3mb",
31-
"maximumError": "5mb"
32-
},
33-
{
34-
"type": "anyComponentStyle",
35-
"maximumWarning": "2kb",
36-
"maximumError": "4kb"
37-
}
38-
],
39-
"fileReplacements": [
40-
{
41-
"replace": "src/environments/environment.ts",
42-
"with": "src/environments/environment.prod.ts"
43-
}
44-
],
4527
"outputHashing": "all"
4628
},
4729
"development": {
@@ -76,19 +58,14 @@
7658
"test": {
7759
"builder": "@angular-devkit/build-angular:karma",
7860
"options": {
79-
"main": "src/test.ts",
80-
"polyfills": "src/polyfills.ts",
61+
"polyfills": ["zone.js", "zone.js/testing"],
8162
"tsConfig": "tsconfig.spec.json",
82-
"karmaConfig": "karma.conf.js",
8363
"assets": ["src/favicon.ico", "src/assets"],
8464
"styles": ["src/styles.css"],
8565
"scripts": []
8666
}
8767
}
8868
}
8969
}
90-
},
91-
"cli": {
92-
"analytics": false
9370
}
9471
}

integration-howto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and start importing yFiles classes in your project.
88

99
## Running the CLI
1010

11-
Run @angular/cli with `> ng new yfiles-angular-cli-integration` and select following options:
11+
Run @angular/cli with `> ng new yfiles-angular-integration-basic` and select following options:
1212

1313
- `? Would you like to add Angular routing?` No
1414
- `? Which stylesheet format whould you like to use?` CSS
@@ -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.5.0.4-Evaluation/lib-dev/yfiles-25.0.4+eval-dev.tgz"
27+
"yfiles": "../yFiles-for-HTML-Complete-2.6-Evaluation/lib-dev/yfiles-26.0.0+eval-dev.tgz"
2828
},
2929
```
3030

karma.conf.js

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

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yfiles-angular-integration-basic",
3-
"version": "25.0.4",
3+
"version": "26.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.5.0.4-Evaluation/lib/license.json','./src/license.json')\""
12+
"copy-eval-license": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.6-Evaluation/lib/license.json','./src/license.json')\""
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/animations": "^14.1.0",
17-
"@angular/common": "^14.1.0",
18-
"@angular/compiler": "^14.1.0",
19-
"@angular/core": "^14.1.0",
20-
"@angular/forms": "^14.1.0",
21-
"@angular/platform-browser": "^14.1.0",
22-
"@angular/platform-browser-dynamic": "^14.1.0",
23-
"@angular/router": "^14.1.0",
24-
"rxjs": "~7.5.0",
16+
"@angular/animations": "^16.0.0",
17+
"@angular/common": "^16.0.0",
18+
"@angular/compiler": "^16.0.0",
19+
"@angular/core": "^16.0.0",
20+
"@angular/forms": "^16.0.0",
21+
"@angular/platform-browser": "^16.0.0",
22+
"@angular/platform-browser-dynamic": "^16.0.0",
23+
"@angular/router": "^16.0.0",
24+
"rxjs": "~7.8.0",
2525
"tslib": "^2.3.0",
26-
"yfiles": "../yFiles-for-HTML-Complete-2.5.0.4-Evaluation/lib-dev/yfiles-25.0.4+eval-dev.tgz",
27-
"zone.js": "~0.11.4"
26+
"zone.js": "~0.13.0",
27+
"yfiles": "../yFiles-for-HTML-Complete-2.6-Evaluation/lib-dev/yfiles-26.0.0+eval-dev.tgz"
2828
},
2929
"devDependencies": {
30-
"@angular-devkit/build-angular": "^14.1.0",
31-
"@angular/cli": "~14.1.0",
32-
"@angular/compiler-cli": "^14.1.0",
33-
"@types/jasmine": "~4.0.0",
34-
"jasmine-core": "~4.2.0",
30+
"@angular-devkit/build-angular": "^16.0.5",
31+
"@angular/cli": "~16.0.5",
32+
"@angular/compiler-cli": "^16.0.0",
33+
"@types/jasmine": "~4.3.0",
34+
"jasmine-core": "~4.6.0",
3535
"karma": "~6.4.0",
36-
"karma-chrome-launcher": "~3.1.0",
36+
"karma-chrome-launcher": "~3.2.0",
3737
"karma-coverage": "~2.2.0",
3838
"karma-jasmine": "~5.1.0",
3939
"karma-jasmine-html-reporter": "~2.0.0",
40-
"typescript": "~4.7.2"
40+
"typescript": "~5.1.6"
4141
}
4242
}

src/app/app.component.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { TestBed } from '@angular/core/testing'
22
import { AppComponent } from './app.component'
33

44
describe('AppComponent', () => {
5-
beforeEach(async () => {
6-
await TestBed.configureTestingModule({
5+
beforeEach(() =>
6+
TestBed.configureTestingModule({
77
declarations: [AppComponent],
8-
}).compileComponents()
9-
})
8+
})
9+
)
1010

1111
it('should create the app', () => {
1212
const fixture = TestBed.createComponent(AppComponent)

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ describe('GraphComponentComponent', () => {
66
let component: GraphComponentComponent
77
let fixture: ComponentFixture<GraphComponentComponent>
88

9-
beforeEach(async () => {
10-
await TestBed.configureTestingModule({
11-
declarations: [GraphComponentComponent],
12-
}).compileComponents()
13-
})
14-
159
beforeEach(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [GraphComponentComponent],
12+
})
1613
fixture = TestBed.createComponent(GraphComponentComponent)
1714
component = fixture.componentInstance
1815
fixture.detectChanges()

src/main.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import { enableProdMode } from '@angular/core';
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
32

4-
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
3+
import { AppModule } from './app/app.module'
64

7-
if (environment.production) {
8-
enableProdMode();
9-
}
10-
11-
platformBrowserDynamic().bootstrapModule(AppModule)
12-
.catch(err => console.error(err));
5+
platformBrowserDynamic()
6+
.bootstrapModule(AppModule)
7+
.catch((err) => console.error(err))

src/polyfills.ts

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

0 commit comments

Comments
 (0)