Skip to content

Commit 697498b

Browse files
committed
yFiles for HTML 2.3.0.3 demos
1 parent f76427e commit 697498b

File tree

133 files changed

+1652
-937
lines changed

Some content is hidden

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

133 files changed

+1652
-937
lines changed

demos/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

demos/.eslintrc.json

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

demos/02-tutorial-custom-styles/20-custom-arrow/MySimpleArrow.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ import {
4747
/**
4848
* A simple IArrow implementation that renders the arrow as a custom filled shape.
4949
*/
50-
export default class MySimpleArrow
51-
extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
52-
IArrow,
53-
IVisualCreator,
54-
IBoundsProvider
55-
)
56-
implements IArrow, IVisualCreator, IBoundsProvider {
50+
export default class MySimpleArrow extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
51+
IArrow,
52+
IVisualCreator,
53+
IBoundsProvider
54+
) {
5755
anchor: Point
5856
direction: Point
5957
private $arrowFigure: GeneralPath | null
@@ -217,8 +215,7 @@ export default class MySimpleArrow
217215
* the defs elements, those have to implement {@link ISvgDefsCreator} that offers a
218216
* defined interface to deal with.
219217
*/
220-
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator)
221-
implements ISvgDefsCreator {
218+
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator) {
222219
gradient: SVGElement
223220

224221
constructor(gradient: SVGElement) {

demos/02-tutorial-custom-styles/21-edge-performance/MySimpleArrow.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ import {
4848
/**
4949
* A simple IArrow implementation that renders the arrow as a custom filled shape.
5050
*/
51-
export default class MySimpleArrow
52-
extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
53-
IArrow,
54-
IVisualCreator,
55-
IBoundsProvider
56-
)
57-
implements IArrow, IVisualCreator, IBoundsProvider {
51+
export default class MySimpleArrow extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
52+
IArrow,
53+
IVisualCreator,
54+
IBoundsProvider
55+
) {
5856
anchor: Point
5957
direction: Point
6058
private $arrowFigure: GeneralPath | null
@@ -236,8 +234,7 @@ export default class MySimpleArrow
236234
* the defs elements, those have to implement {@link ISvgDefsCreator} that offers a
237235
* defined interface to deal with.
238236
*/
239-
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator)
240-
implements ISvgDefsCreator {
237+
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator) {
241238
gradient: SVGElement
242239

243240
constructor(gradient: SVGElement) {

demos/02-tutorial-custom-styles/22-arrow-thickness/MySimpleArrow.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ import MySimpleEdgeStyle from './MySimpleEdgeStyle'
5050
/**
5151
* A simple IArrow implementation that renders the arrow as a custom filled shape.
5252
*/
53-
export default class MySimpleArrow
54-
extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
55-
IArrow,
56-
IVisualCreator,
57-
IBoundsProvider
58-
)
59-
implements IArrow, IVisualCreator, IBoundsProvider {
53+
export default class MySimpleArrow extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
54+
IArrow,
55+
IVisualCreator,
56+
IBoundsProvider
57+
) {
6058
anchor: Point
6159
direction: Point
6260
private $thickness: number
@@ -329,8 +327,7 @@ export default class MySimpleArrow
329327
* the defs elements, those have to implement {@link ISvgDefsCreator} that offers a
330328
* defined interface to deal with.
331329
*/
332-
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator)
333-
implements ISvgDefsCreator {
330+
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator) {
334331
gradient: SVGElement
335332

336333
constructor(gradient: SVGElement) {

demos/02-tutorial-custom-styles/23-custom-ports/MySimpleArrow.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ import MySimpleEdgeStyle from './MySimpleEdgeStyle'
5050
/**
5151
* A simple IArrow implementation that renders the arrow as a custom filled shape.
5252
*/
53-
export default class MySimpleArrow
54-
extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
55-
IArrow,
56-
IVisualCreator,
57-
IBoundsProvider
58-
)
59-
implements IArrow, IVisualCreator, IBoundsProvider {
53+
export default class MySimpleArrow extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
54+
IArrow,
55+
IVisualCreator,
56+
IBoundsProvider
57+
) {
6058
anchor: Point
6159
direction: Point
6260
private $thickness: number
@@ -303,8 +301,7 @@ export default class MySimpleArrow
303301
* the defs elements, those have to implement {@link ISvgDefsCreator} that offers a
304302
* defined interface to deal with.
305303
*/
306-
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator)
307-
implements ISvgDefsCreator {
304+
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator) {
308305
gradient: SVGElement
309306

310307
constructor(gradient: SVGElement) {

demos/02-tutorial-custom-styles/24-style-decorator/MySimpleArrow.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ import MySimpleEdgeStyle from './MySimpleEdgeStyle'
5050
/**
5151
* A simple IArrow implementation that renders the arrow as a custom filled shape.
5252
*/
53-
export default class MySimpleArrow
54-
extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
55-
IArrow,
56-
IVisualCreator,
57-
IBoundsProvider
58-
)
59-
implements IArrow, IVisualCreator, IBoundsProvider {
53+
export default class MySimpleArrow extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
54+
IArrow,
55+
IVisualCreator,
56+
IBoundsProvider
57+
) {
6058
anchor: Point
6159
direction: Point
6260
private $thickness: number
@@ -303,8 +301,7 @@ export default class MySimpleArrow
303301
* the defs elements, those have to implement {@link ISvgDefsCreator} that offers a
304302
* defined interface to deal with.
305303
*/
306-
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator)
307-
implements ISvgDefsCreator {
304+
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator) {
308305
gradient: SVGElement
309306

310307
constructor(gradient: SVGElement) {

demos/02-tutorial-custom-styles/25-custom-group-style/MyGroupNodeStyle.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
GeneralPath,
3333
GraphComponent,
3434
IInputModeContext,
35-
ILayoutGroupBoundsCalculator,
3635
INode,
3736
INodeInsetsProvider,
3837
INodeSizeConstraintProvider,
@@ -61,9 +60,7 @@ const INSET = 2
6160
* This implementation uses the convenience class
6261
* {@link NodeStyleBase} as the base class since
6362
* this makes customizations easy. Additionally, it uses a couple of inner
64-
* classes to customize certain aspects of the user interaction behavior, for
65-
* example a {@link ILayoutGroupBoundsCalculator} that takes the node labels
66-
* into account.
63+
* classes to customize certain aspects of the user interaction behavior.
6764
*/
6865
export default class MyGroupNodeStyle extends NodeStyleBase {
6966
constructor() {

demos/02-tutorial-custom-styles/25-custom-group-style/MyGroupNodeStyle.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
GeneralPath,
3434
GraphComponent,
3535
IInputModeContext,
36-
ILayoutGroupBoundsCalculator,
3736
INode,
3837
INodeInsetsProvider,
3938
INodeSizeConstraintProvider,
@@ -62,9 +61,7 @@ const INSET = 2
6261
* This implementation uses the convenience class
6362
* {@link NodeStyleBase} as the base class since
6463
* this makes customizations easy. Additionally, it uses a couple of inner
65-
* classes to customize certain aspects of the user interaction behavior, for
66-
* example a {@link ILayoutGroupBoundsCalculator} that takes the node labels
67-
* into account.
64+
* classes to customize certain aspects of the user interaction behavior.
6865
*/
6966
export default class MyGroupNodeStyle extends NodeStyleBase {
7067
private $nodeColor: string

demos/02-tutorial-custom-styles/25-custom-group-style/MySimpleArrow.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ import MySimpleEdgeStyle from './MySimpleEdgeStyle'
5050
/**
5151
* A simple IArrow implementation that renders the arrow as a custom filled shape.
5252
*/
53-
export default class MySimpleArrow
54-
extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
55-
IArrow,
56-
IVisualCreator,
57-
IBoundsProvider
58-
)
59-
implements IArrow, IVisualCreator, IBoundsProvider {
53+
export default class MySimpleArrow extends BaseClass<IArrow, IVisualCreator, IBoundsProvider>(
54+
IArrow,
55+
IVisualCreator,
56+
IBoundsProvider
57+
) {
6058
anchor: Point
6159
direction: Point
6260
private $thickness: number
@@ -303,8 +301,7 @@ export default class MySimpleArrow
303301
* the defs elements, those have to implement {@link ISvgDefsCreator} that offers a
304302
* defined interface to deal with.
305303
*/
306-
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator)
307-
implements ISvgDefsCreator {
304+
class MyGradientSupport extends BaseClass<ISvgDefsCreator>(ISvgDefsCreator) {
308305
gradient: SVGElement
309306

310307
constructor(gradient: SVGElement) {

0 commit comments

Comments
 (0)