Skip to content

Commit 3626e3e

Browse files
committed
yFiles for HTML 2.3.0.4 demos
1 parent 697498b commit 3626e3e

File tree

1,565 files changed

+3334
-2231
lines changed

Some content is hidden

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

1,565 files changed

+3334
-2231
lines changed

demos/01-tutorial-getting-started/01-graphcomponent/SampleApplication.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

demos/01-tutorial-getting-started/01-graphcomponent/SampleApplication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

demos/01-tutorial-getting-started/01-graphcomponent/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- ////////////////////////////////////////////////////////////////////////
1010
// @license
1111
// This demo file is part of yFiles for HTML 2.3.
12-
// Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
12+
// Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
1313
// 72070 Tuebingen, Germany. All rights reserved.
1414
//
1515
// yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

demos/01-tutorial-getting-started/02-graph-element-creation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- ////////////////////////////////////////////////////////////////////////
99
// @license
1010
// This demo file is part of yFiles for HTML 2.3.
11-
// Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
11+
// Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
1212
// 72070 Tuebingen, Germany. All rights reserved.
1313
//
1414
// yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

demos/01-tutorial-getting-started/03-managing-viewport/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- ////////////////////////////////////////////////////////////////////////
99
// @license
1010
// This demo file is part of yFiles for HTML 2.3.
11-
// Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
11+
// Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
1212
// 72070 Tuebingen, Germany. All rights reserved.
1313
//
1414
// yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
** @license
33
** This demo file is part of yFiles for HTML 2.3.
4-
** Copyright (c) 2000-2020 by yWorks GmbH, Vor dem Kreuzberg 28,
4+
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
55
** 72070 Tuebingen, Germany. All rights reserved.
66
**
77
** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
@@ -195,7 +195,7 @@ function populateGraph() {
195195
*/
196196
function setDefaultStyles() {
197197
const graph = graphComponent.graph
198-
// Sets the default style for nodes
198+
199199
// Creates a nice ShinyPlateNodeStyle instance, using an orange Fill.
200200
// Sets this style as the default for all nodes that don't have another
201201
// style assigned explicitly
@@ -204,20 +204,16 @@ function setDefaultStyles() {
204204
stroke: 'white'
205205
})
206206

207-
// Sets the default size explicitly to 40x40
207+
// Sets the default size for nodes explicitly to 40x40
208208
graph.nodeDefaults.size = new Size(40, 40)
209-
graph.nodeDefaults.labels.style = new DefaultLabelStyle({
210-
verticalTextAlignment: 'center',
211-
wrapping: 'word-ellipsis'
212-
})
213-
// Sets the default style for labels
214-
// Creates a label style with the label text color set to dark red
209+
210+
// Creates a label style with the label font set to Tahoma and a black text color
215211
const defaultLabelStyle = new DefaultLabelStyle({
216212
font: '12px Tahoma',
217-
textFill: Fill.BLACK
213+
textFill: 'black'
218214
})
219215

220-
// Sets the defined style as the default for both edge and node labels:
216+
// Sets the defined style as the default for both edge and node labels
221217
graph.edgeDefaults.labels.style = defaultLabelStyle
222218
graph.nodeDefaults.labels.style = defaultLabelStyle
223219
}

0 commit comments

Comments
 (0)