Skip to content

Commit f76427e

Browse files
committed
yFiles for HTML 2.3.0.2 demos
1 parent 825c949 commit f76427e

File tree

330 files changed

+62176
-8758
lines changed

Some content is hidden

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

330 files changed

+62176
-8758
lines changed

demos/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/test/*.js

demos/.eslintrc.json

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
2-
"plugins": ["prettier", "standard", "wdio"],
2+
"root": true,
33
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint", "react", "standard", "wdio"],
45
"extends": [
56
"standard",
6-
"plugin:prettier/recommended",
7-
"prettier/standard",
8-
"plugin:wdio/recommended"
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:react/recommended",
9+
"plugin:wdio/recommended",
10+
"prettier",
11+
"prettier/@typescript-eslint",
12+
"prettier/react",
13+
"prettier/standard"
914
],
1015
"env": {
1116
"amd": true,
@@ -14,40 +19,14 @@
1419
"node": true
1520
},
1621
"rules": {
17-
"prettier/prettier": "warn",
22+
"@typescript-eslint/ban-ts-ignore": "off",
23+
"@typescript-eslint/member-delimiter-style": "off",
24+
"@typescript-eslint/no-non-null-assertion": "off",
25+
"@typescript-eslint/no-unused-vars": "off",
26+
"@typescript-eslint/no-use-before-define": "off",
27+
"no-multi-str": "off",
28+
"no-unused-vars": "off",
1829
"no-var": "error",
19-
"no-unused-vars": [
20-
"warn",
21-
{
22-
"varsIgnorePattern": "[A-Z]\\w+",
23-
"argsIgnorePattern": ".*"
24-
}
25-
],
2630
"prefer-const": "error"
27-
},
28-
"overrides": [
29-
{
30-
"files": ["*.ts", "*.tsx", ".*.ts", ".*.tsx"],
31-
"extends": [
32-
"standard",
33-
"plugin:prettier/recommended",
34-
"prettier/standard",
35-
"plugin:@typescript-eslint/recommended",
36-
"plugin:wdio/recommended"
37-
],
38-
"rules": {
39-
"@typescript-eslint/ban-ts-ignore": "off",
40-
"@typescript-eslint/no-use-before-define": "off",
41-
"@typescript-eslint/no-non-null-assertion": "off",
42-
"@typescript-eslint/member-delimiter-style": "off",
43-
"@typescript-eslint/no-unused-vars": [
44-
"warn",
45-
{
46-
"varsIgnorePattern": "[A-Z]\\w+",
47-
"argsIgnorePattern": ".*"
48-
}
49-
]
50-
}
51-
}
52-
]
31+
}
5332
}

demos/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
**/node_modules/
22
**/dist/
3+
**/*.html
4+
**/*.md
35
view/largegraphs/resources/*.json

demos/.prettierrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"printWidth": 100,
33
"tabWidth": 2,
4+
"endOfLine": "auto",
45
"useTabs": false,
56
"semi": false,
67
"singleQuote": true,
78
"bracketSpacing": true,
8-
"arrowParens": "avoid",
9-
"disableLanguages": ["html"]
9+
"trailingComma": "none",
10+
"arrowParens": "avoid"
1011
}

demos/02-tutorial-custom-styles/07-drop-shadow-performance/MySimpleNodeStyle.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ export default class MySimpleNodeStyle extends NodeStyleBase {
8989
use.href.baseVal = `#${defsId}`
9090
use.setAttribute(
9191
'transform',
92-
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX -
93-
tileSize2 * xScaleFactor} ${offsetY - tileSize2 * yScaleFactor})`
92+
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX - tileSize2 * xScaleFactor} ${
93+
offsetY - tileSize2 * yScaleFactor
94+
})`
9495
)
9596
visual.appendChild(use)
9697
}

demos/02-tutorial-custom-styles/07-drop-shadow-performance/MySimpleNodeStyle.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ export default class MySimpleNodeStyle extends NodeStyleBase {
9090
use.href.baseVal = `#${defsId}`
9191
use.setAttribute(
9292
'transform',
93-
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX -
94-
tileSize2 * xScaleFactor} ${offsetY - tileSize2 * yScaleFactor})`
93+
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX - tileSize2 * xScaleFactor} ${
94+
offsetY - tileSize2 * yScaleFactor
95+
})`
9596
)
9697
visual.appendChild(use)
9798
}

demos/02-tutorial-custom-styles/08-edge-from-node-to-label/MySimpleNodeStyle.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ export default class MySimpleNodeStyle extends NodeStyleBase {
385385
use.href.baseVal = `#${defsId}`
386386
use.setAttribute(
387387
'transform',
388-
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX -
389-
tileSize2 * xScaleFactor} ${offsetY - tileSize2 * yScaleFactor})`
388+
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX - tileSize2 * xScaleFactor} ${
389+
offsetY - tileSize2 * yScaleFactor
390+
})`
390391
)
391392
visual.appendChild(use)
392393
}

demos/02-tutorial-custom-styles/08-edge-from-node-to-label/MySimpleNodeStyle.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ export default class MySimpleNodeStyle extends NodeStyleBase {
369369
use.href.baseVal = `#${defsId}`
370370
use.setAttribute(
371371
'transform',
372-
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX -
373-
tileSize2 * xScaleFactor} ${offsetY - tileSize2 * yScaleFactor})`
372+
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX - tileSize2 * xScaleFactor} ${
373+
offsetY - tileSize2 * yScaleFactor
374+
})`
374375
)
375376
visual.appendChild(use)
376377
}

demos/02-tutorial-custom-styles/09-is-visible/MySimpleNodeStyle.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ export default class MySimpleNodeStyle extends NodeStyleBase {
360360
use.href.baseVal = `#${defsId}`
361361
use.setAttribute(
362362
'transform',
363-
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX -
364-
tileSize2 * xScaleFactor} ${offsetY - tileSize2 * yScaleFactor})`
363+
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX - tileSize2 * xScaleFactor} ${
364+
offsetY - tileSize2 * yScaleFactor
365+
})`
365366
)
366367
visual.appendChild(use)
367368
}

demos/02-tutorial-custom-styles/09-is-visible/MySimpleNodeStyle.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,9 @@ export default class MySimpleNodeStyle extends NodeStyleBase {
344344
use.href.baseVal = `#${defsId}`
345345
use.setAttribute(
346346
'transform',
347-
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX -
348-
tileSize2 * xScaleFactor} ${offsetY - tileSize2 * yScaleFactor})`
347+
`matrix(${xScaleFactor} ${0} ${0} ${yScaleFactor} ${offsetX - tileSize2 * xScaleFactor} ${
348+
offsetY - tileSize2 * yScaleFactor
349+
})`
349350
)
350351
visual.appendChild(use)
351352
}

0 commit comments

Comments
 (0)