Anatoliy Mayorov
5a29d2fa1a
refactor: fix eslint errors
...
Eliminate unnecessary code
Eliminate var usage
2022-11-20 14:02:48 +03:00
Anatoliy Mayorov
fa67c24df3
chore: eslint - switch no-this-alias error to warn
...
Switch rule to warn for now - too many
complicated code that uses `self` alias for this
2022-11-20 13:59:21 +03:00
Thomas Bouffard
97d3ea76d1
ci: check that there is no lint errors
2022-11-07 18:20:38 +01:00
Anatoliy Mayorov
2ad1395aab
refactor: run eslint and prettier on codebase
2022-10-29 22:53:09 +03:00
Anatoliy Mayorov
41c5e468ed
chore: add missing eslint deps
2022-10-29 22:49:23 +03:00
Анатолий Майоров
9428ba2a4a
fix: DynamicLoading story, Codec and parseXml ( #125 )
...
Fix `DynamicLoading` story
Restored backward compatibility when using `parseXml`
Possible fix for `Codec.decode` method issue
2022-10-28 15:37:02 +02:00
Thomas Bouffard
5e05ba17c2
chore(tsconfig): add base tsconfig.json ( #129 )
...
Add base `tsconfig.json` to root of repository and extend packages upon
it. Refactoring `src` values of `tsconfig.json` of packages.
- Moved repeating declarations in base `tsconfig.json`
- Removed `ESNext` target/module/lib from `ts-example`, which will lead
to use of `es2020` from base `tsconfig.json`
2022-10-23 11:18:38 +02:00
Anatoliy Mayorov
d53ea1ad2b
chore(tsconfig): move baseUrl to base tsconfig
2022-10-23 11:56:07 +03:00
Анатолий Майоров
3527a77eb6
chore: configure eslint ( #123 )
...
Added `eslint` to project and configured it. The fixes will be applied later.
```
Found 1855 problems (709 errors, 1146 warnings) 🙈
628 errors and 291 warnings potentially fixable with the `--fix` option.
```
2022-10-23 09:41:41 +02:00
Anatoliy Mayorov
7e5360ad97
chore(tsconfig): add base tsconfig.json
2022-10-23 10:33:45 +03:00
Thomas Bouffard
1eabc24777
deps: bump typescript to 4.8, fix Dictionary typings ( #109 )
...
- Bumped Typescript to 4.8.3 and typedoc to 0.23.15
- Moved types IdentityObject and IdentityFunction to types.ts
- Renamed const FIELD_NAME to IDENTITY_FIELD_NAME and moved it to
util/Constants.ts
- Set Cell and CellOverlay to implement IdentityObject (found only them
using in Dictionary as key)
2022-10-22 11:57:52 +02:00
Thomas Bouffard
ef76a1db87
Merge branch 'development' into development
2022-10-22 10:41:32 +02:00
Thomas Bouffard
5b1369b019
Merge pull request #119 from mayorovad/edge-mixin-typo
...
Fix wrong method signature in EdgeMixin (resetEdgesOnMove).
2022-10-10 07:22:42 +02:00
Thomas Bouffard
f08b041c3d
Merge pull request #121 from mayorovad/overlays-stories-fix
...
Fix stories with overlays usage
2022-10-10 07:14:30 +02:00
Thomas Bouffard
4622527af8
Merge pull request #124 from mayorovad/issue-96
2022-10-09 22:32:39 +02:00
Thomas Bouffard
a617bb644a
Merge pull request #113 from mayorovad/visibility-story-fix
...
Fixed `Visibility` story
2022-10-09 20:05:57 +02:00
Thomas Bouffard
4804767baf
Merge pull request #117 from mayorovad/guides-fix
...
Fixed `Guides` story.
2022-10-09 20:05:29 +02:00
Thomas Bouffard
57a8d63ff3
Merge pull request #108 from maxGraph/svgcanvas
...
Fixes null checks in SvgCanvas2D.
2022-10-09 19:39:49 +02:00
Thomas Bouffard
c4f537203b
Move layout types to a dedicated types file
...
These types are only used in the layout classes, so keep them located closed in the folder where they are used.
2022-10-09 19:08:12 +02:00
Thomas Bouffard
7c4b1111ee
Apply prettier rules on layout types
2022-10-09 19:02:24 +02:00
Thomas Bouffard
133199bf47
docs: no more skipLibCheck needed for TS integration
2022-10-09 18:56:53 +02:00
Thomas Bouffard
b16fa54411
Merge branch 'development' into development
2022-10-09 18:31:25 +02:00
Thomas Bouffard
d0a01c2d44
Merge branch 'development' into edge-mixin-typo
2022-10-09 18:30:35 +02:00
Anatoliy Mayorov
1603729a9b
fix: types of Hierarchical and Swimlane Layout #96
2022-10-08 21:43:35 +03:00
Thomas Bouffard
61ab219b4f
Merge pull request #110 from mayorovad/graph-model-typings
...
Changed the type of `cells` in `GraphDataModel`
2022-10-07 16:42:36 +02:00
Anatoliy Mayorov
deda3ec03f
Fix absolute import path to relative (PR #109 )
2022-10-06 16:38:08 +03:00
Anatoliy Mayorov
eee2fc8509
Fix stories with overlays usage
2022-10-06 10:58:33 +03:00
Anatoliy Mayorov
19273293a1
Fixed typo in typings of EdgeMixin
2022-10-05 16:50:46 +03:00
mayorovad
38117aefb2
Fixed Guides story
2022-10-04 11:47:03 +03:00
mayorovad
699fbc9590
Fixed Visibility story
2022-10-03 11:07:39 +03:00
mayorovad
f84a4a5836
Changed the type of cells map in GraphDataModel
2022-09-26 11:54:20 +03:00
Anatoliy Mayorov
b62eb538f7
deps: bump typescript to 4.8.3, fix Dictionary typings
...
When running `generate-types` script in core package
there is typescript error TS2345 in src/util/Dictionary.ts,
added changes to fix it.
- Moved types IdentityObject and IdentityFunction to types.ts
- Renamed const FIELD_NAME to IDENTITY_FIELD_NAME and
moved it to util/Constants.ts
- Set Cell and CellOverlay to implement IdentityObject
2022-09-24 14:20:53 +03:00
Thomas Bouffard
b7cfeebd23
ts-example: restore the rounded shape in the custom rectangle
2022-09-24 11:16:26 +02:00
Thomas Bouffard
8c29223b98
Remove remaining commented method signatures including types (dated from the JS to TS migration)
2022-09-24 11:10:04 +02:00
Junsik Shim
e986c8ea31
Fixes null checks in SvgCanvas2D #107
2022-09-24 10:58:41 +09:00
Junsik Shim
02ea6f1ceb
Merge pull request #101 from maxGraph/cellarray
...
Fixes CellArray related warnings. #96
2022-09-19 13:24:04 +09:00
Junsik Shim
b5216d34ff
Merge branch 'development' into cellarray
2022-09-17 19:33:56 +09:00
Junsik Shim
83fba5edf6
Merge branch 'cellarray' of https://github.com/maxGraph/maxGraph into cellarray
2022-09-17 19:33:44 +09:00
Junsik Shim
0a1e797bbc
Remove CellArray leftovers.
2022-09-17 19:33:16 +09:00
Thomas Bouffard
c7276e1419
docs: warn about current TS type errors in README ( #106 )
...
Warn users to prevent them to open new tickets about this topic.
Also fix a broken link at the bottom of the file.
2022-09-17 12:11:46 +02:00
Junsik Shim
985fc75139
Remove CellArray leftovers.
2022-09-17 19:08:41 +09:00
Junsik Shim
b182f41569
Merge branch 'cellarray' of https://github.com/maxGraph/maxGraph into cellarray
2022-09-17 19:03:11 +09:00
Junsik Shim
ec7a525ea0
Change CellArray to cellArrayUtils.
2022-09-17 18:58:30 +09:00
Junsik Shim
722021006d
Fix CellArray related warnings. #96
2022-09-17 18:57:00 +09:00
Junsik Shim
3cc2713704
Change CellArray to cellArrayUtils.
2022-09-17 11:30:23 +09:00
Thomas Bouffard
af9a0e148a
docs: introduce the maxGraph changelog ( #103 )
...
Remove mxGraph changelog as it is not accurate anymore, but put a link to archive versions in the new changelog.
2022-09-14 13:15:52 +02:00
Thomas Bouffard
ea836a1fb5
chore: improve vite config in ts-example ( #104 )
...
bump vite from 2.9.12 to 3.1.0
add vite config to generate a dedicated chunk for maxgraph@core. It lets know the size the produced bundle in an
external application and if tree shaking works.
2022-09-14 13:15:04 +02:00
Thomas Bouffard
f9d757548e
doc: update copyright and license in source file headers ( #100 )
...
Ensure that all source files contain the Apache-2.0 license and that the 'maxGraph Contributors' are mentioned.
2022-08-30 17:36:33 +02:00
Junsik Shim
0591c37a11
Fix CellArray related warnings. #96
2022-08-13 17:51:39 +09:00
Thomas Bouffard
ea9a6dd260
chore: restore Apache 2.0 license + add a NOTICE file ( #95 )
...
- Create a NOTICE file. It references the list of contributors that re-licensed their commits to Apache License, Version 2.0.
- So we can restore the Apache-2.0 license.
- Also update the README and the Pull Request template as there is no more warning about the license.
2022-08-11 14:05:56 +02:00