Skip to content

Commit 4259742

Browse files
committed
yFiles for HTML 2.4.0.1 demos
1 parent 7fc1f53 commit 4259742

File tree

448 files changed

+1729
-1098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

448 files changed

+1729
-1098
lines changed

demos/01-tutorial-getting-started/02-graph-element-creation/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
**
2828
***************************************************************************/
2929
import { FreeNodePortLocationModel, GraphComponent, License, Point, Rect } from 'yfiles'
30-
import { showApp } from '../../resources/demo-app.js'
30+
import { checkLicense, showApp } from '../../resources/demo-app.js'
3131
import loadJson from '../../resources/load-json.js'
3232

3333
/** @type {GraphComponent} */
@@ -121,4 +121,4 @@ function populateGraph() {
121121
// ////////////////////////////////////////////////////
122122

123123
// start tutorial
124-
loadJson().then(run)
124+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/02-graph-element-creation/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
**
2828
***************************************************************************/
2929
import { FreeNodePortLocationModel, GraphComponent, License, Point, Rect } from 'yfiles'
30-
import { showApp } from '../../resources/demo-app'
30+
import { checkLicense, showApp } from '../../resources/demo-app'
3131
import loadJson from '../../resources/load-json'
3232

3333
// @ts-ignore
@@ -118,4 +118,4 @@ function populateGraph(): void {
118118
// ////////////////////////////////////////////////////
119119

120120
// start tutorial
121-
loadJson().then(run)
121+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/03-managing-viewport/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
Rect
3838
} from 'yfiles'
3939

40-
import { bindCommand, showApp } from '../../resources/demo-app.js'
40+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4141
import loadJson from '../../resources/load-json.js'
4242

4343
/** @type {GraphComponent} */
@@ -188,4 +188,4 @@ function registerCommands() {
188188
}
189189

190190
// start tutorial
191-
loadJson().then(run)
191+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/03-managing-viewport/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
Rect
3838
} from 'yfiles'
3939

40-
import { bindCommand, showApp } from '../../resources/demo-app'
40+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4141
import loadJson from '../../resources/load-json'
4242

4343
// @ts-ignore
@@ -185,4 +185,4 @@ function registerCommands(): void {
185185
}
186186

187187
// start tutorial
188-
loadJson().then(run)
188+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/04-setting-styles/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {
4444
Size
4545
} from 'yfiles'
4646

47-
import { bindCommand, showApp } from '../../resources/demo-app.js'
47+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4848
import loadJson from '../../resources/load-json.js'
4949

5050
/** @type {GraphComponent} */
@@ -263,4 +263,4 @@ function registerCommands() {
263263
}
264264

265265
// start tutorial
266-
loadJson().then(run)
266+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/04-setting-styles/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {
4444
Size
4545
} from 'yfiles'
4646

47-
import { bindCommand, showApp } from '../../resources/demo-app'
47+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4848
import loadJson from '../../resources/load-json'
4949

5050
// @ts-ignore
@@ -260,4 +260,4 @@ function registerCommands(): void {
260260
}
261261

262262
// start tutorial
263-
loadJson().then(run)
263+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/05-label-placement/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {
4545
SmartEdgeLabelModel
4646
} from 'yfiles'
4747

48-
import { bindCommand, showApp } from '../../resources/demo-app.js'
48+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4949
import loadJson from '../../resources/load-json.js'
5050

5151
/** @type {GraphComponent} */
@@ -254,4 +254,4 @@ function registerCommands() {
254254
}
255255

256256
// start tutorial
257-
loadJson().then(run)
257+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/05-label-placement/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {
4545
SmartEdgeLabelModel
4646
} from 'yfiles'
4747

48-
import { bindCommand, showApp } from '../../resources/demo-app'
48+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4949
import loadJson from '../../resources/load-json'
5050

5151
// @ts-ignore
@@ -251,4 +251,4 @@ function registerCommands(): void {
251251
}
252252

253253
// start tutorial
254-
loadJson().then(run)
254+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/06-basic-interaction/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
Size
4343
} from 'yfiles'
4444

45-
import { bindCommand, showApp } from '../../resources/demo-app.js'
45+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4646
import loadJson from '../../resources/load-json.js'
4747

4848
/** @type {GraphComponent} */
@@ -251,4 +251,4 @@ function registerCommands() {
251251
}
252252

253253
// start tutorial
254-
loadJson().then(run)
254+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/06-basic-interaction/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
Size
4343
} from 'yfiles'
4444

45-
import { bindCommand, showApp } from '../../resources/demo-app'
45+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4646
import loadJson from '../../resources/load-json'
4747

4848
// @ts-ignore
@@ -248,4 +248,4 @@ function registerCommands(): void {
248248
}
249249

250250
// start tutorial
251-
loadJson().then(run)
251+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/07-undo-clipboard-support/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
Size
4343
} from 'yfiles'
4444

45-
import { bindCommand, showApp } from '../../resources/demo-app.js'
45+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4646
import loadJson from '../../resources/load-json.js'
4747

4848
/** @type {GraphComponent} */
@@ -318,4 +318,4 @@ function registerCommands() {
318318
}
319319

320320
// start tutorial
321-
loadJson().then(run)
321+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/07-undo-clipboard-support/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
Size
4444
} from 'yfiles'
4545

46-
import { bindCommand, showApp } from '../../resources/demo-app'
46+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4747
import loadJson from '../../resources/load-json'
4848

4949
// @ts-ignore
@@ -321,4 +321,4 @@ function registerCommands(): void {
321321
}
322322

323323
// start tutorial
324-
loadJson().then(run)
324+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/08-grouping/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {
4444
Size
4545
} from 'yfiles'
4646

47-
import { bindCommand, showApp } from '../../resources/demo-app.js'
47+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4848
import loadJson from '../../resources/load-json.js'
4949

5050
/** @type {GraphComponent} */
@@ -327,4 +327,4 @@ function registerCommands() {
327327
}
328328

329329
// start tutorial
330-
loadJson().then(run)
330+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/08-grouping/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {
4444
Size
4545
} from 'yfiles'
4646

47-
import { bindCommand, showApp } from '../../resources/demo-app'
47+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4848
import loadJson from '../../resources/load-json'
4949

5050
// @ts-ignore
@@ -324,4 +324,4 @@ function registerCommands(): void {
324324
}
325325

326326
// start tutorial
327-
loadJson().then(run)
327+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/09-data-binding/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import {
5454
} from 'yfiles'
5555

5656
import ContextMenu from '../../utils/ContextMenu.js'
57-
import { bindCommand, showApp } from '../../resources/demo-app.js'
57+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
5858
import loadJson from '../../resources/load-json.js'
5959

6060
/** @type {GraphComponent} */
@@ -473,4 +473,4 @@ function registerCommands() {
473473
}
474474

475475
// start tutorial
476-
loadJson().then(run)
476+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/09-data-binding/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import {
5454
} from 'yfiles'
5555

5656
import ContextMenu from '../../utils/ContextMenu'
57-
import { bindCommand, showApp } from '../../resources/demo-app'
57+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
5858
import loadJson from '../../resources/load-json'
5959

6060
// @ts-ignore
@@ -476,4 +476,4 @@ function registerCommands(): void {
476476
}
477477

478478
// start tutorial
479-
loadJson().then(run)
479+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/10-layout/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import {
5858
} from 'yfiles'
5959

6060
import ContextMenu from '../../utils/ContextMenu.js'
61-
import { bindAction, bindCommand, showApp } from '../../resources/demo-app.js'
61+
import { bindAction, bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
6262
import loadJson from '../../resources/load-json.js'
6363
import GraphBuilderData from './resources/graph.js'
6464

@@ -458,4 +458,4 @@ function registerCommands() {
458458
}
459459

460460
// start tutorial
461-
loadJson().then(run)
461+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/10-layout/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import {
5959
} from 'yfiles'
6060

6161
import ContextMenu from '../../utils/ContextMenu'
62-
import { bindAction, bindCommand, showApp } from '../../resources/demo-app'
62+
import { bindAction, bindCommand, checkLicense, showApp } from '../../resources/demo-app'
6363
import loadJson from '../../resources/load-json'
6464
import GraphBuilderData from './resources/graph'
6565

@@ -462,4 +462,4 @@ function registerCommands(): void {
462462
}
463463

464464
// start tutorial
465-
loadJson().then(run)
465+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/11-layout-data/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import {
5252
Size
5353
} from 'yfiles'
5454

55-
import { bindAction, bindCommand, showApp } from '../../resources/demo-app.js'
55+
import { bindAction, bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
5656
import loadJson from '../../resources/load-json.js'
5757
import GraphBuilderData from './resources/graph.js'
5858

@@ -352,4 +352,4 @@ function registerCommands() {
352352
}
353353

354354
// start tutorial
355-
loadJson().then(run)
355+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/11-layout-data/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import {
5353
Size
5454
} from 'yfiles'
5555

56-
import { bindAction, bindCommand, showApp } from '../../resources/demo-app'
56+
import { bindAction, bindCommand, checkLicense, showApp } from '../../resources/demo-app'
5757
import loadJson from '../../resources/load-json'
5858
import GraphBuilderData from './resources/graph'
5959

@@ -354,4 +354,4 @@ function registerCommands(): void {
354354
}
355355

356356
// start tutorial
357-
loadJson().then(run)
357+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/12-graph-analysis/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import {
6060
} from 'yfiles'
6161

6262
import ContextMenu from '../../utils/ContextMenu.js'
63-
import { bindAction, bindCommand, showApp } from '../../resources/demo-app.js'
63+
import { bindAction, bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
6464
import loadJson from '../../resources/load-json.js'
6565
import GraphBuilderData from '../10-layout/resources/graph.js'
6666

@@ -515,4 +515,4 @@ function registerCommands() {
515515
}
516516

517517
// start tutorial
518-
loadJson().then(run)
518+
loadJson().then(checkLicense).then(run)

demos/01-tutorial-getting-started/12-graph-analysis/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import {
6161
} from 'yfiles'
6262

6363
import ContextMenu from '../../utils/ContextMenu'
64-
import { bindAction, bindCommand, showApp } from '../../resources/demo-app'
64+
import { bindAction, bindCommand, checkLicense, showApp } from '../../resources/demo-app'
6565
import loadJson from '../../resources/load-json'
6666
import GraphBuilderData from '../10-layout/resources/graph'
6767

@@ -521,4 +521,4 @@ function registerCommands(): void {
521521
}
522522

523523
// start tutorial
524-
loadJson().then(run)
524+
loadJson().then(checkLicense).then(run)

demos/02-tutorial-custom-styles/01-custom-node-style/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
} from 'yfiles'
4444

4545
import MySimpleNodeStyle from './MySimpleNodeStyle.js'
46-
import { bindCommand, showApp } from '../../resources/demo-app.js'
46+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4747
import loadJson from '../../resources/load-json.js'
4848

4949
/** @type {GraphComponent} */
@@ -155,4 +155,4 @@ function createSampleGraph() {
155155
}
156156

157157
// Start demo
158-
loadJson().then(run)
158+
loadJson().then(checkLicense).then(run)

demos/02-tutorial-custom-styles/01-custom-node-style/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
} from 'yfiles'
4444

4545
import MySimpleNodeStyle from './MySimpleNodeStyle'
46-
import { bindCommand, showApp } from '../../resources/demo-app'
46+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4747
import loadJson from '../../resources/load-json'
4848

4949
// @ts-ignore
@@ -152,4 +152,4 @@ function createSampleGraph(): void {
152152
}
153153

154154
// Start demo
155-
loadJson().then(run)
155+
loadJson().then(checkLicense).then(run)

demos/02-tutorial-custom-styles/02-node-color/SampleApplication.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
} from 'yfiles'
4444

4545
import MySimpleNodeStyle from './MySimpleNodeStyle.js'
46-
import { bindCommand, showApp } from '../../resources/demo-app.js'
46+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app.js'
4747
import loadJson from '../../resources/load-json.js'
4848

4949
/** @type {GraphComponent} */
@@ -165,4 +165,4 @@ function createSampleGraph() {
165165
}
166166

167167
// Start demo
168-
loadJson().then(run)
168+
loadJson().then(checkLicense).then(run)

demos/02-tutorial-custom-styles/02-node-color/SampleApplication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
} from 'yfiles'
4444

4545
import MySimpleNodeStyle from './MySimpleNodeStyle'
46-
import { bindCommand, showApp } from '../../resources/demo-app'
46+
import { bindCommand, checkLicense, showApp } from '../../resources/demo-app'
4747
import loadJson from '../../resources/load-json'
4848

4949
// @ts-ignore
@@ -162,4 +162,4 @@ function createSampleGraph(): void {
162162
}
163163

164164
// Start demo
165-
loadJson().then(run)
165+
loadJson().then(checkLicense).then(run)

0 commit comments

Comments
 (0)