Commit Graph

66 Commits (3095aef7e63aa59dbc6184159ff4521acffaae38)

Author SHA1 Message Date
Thomas Bouffard ca1914b582
refactor(style)!: rename/remove properties and types (#165)
Remove the `StyleMap` class. It is not used anymore since the
introduction of the `CellStateStyle` interface.

Changes in `CellStateStyle`
- remove `defaultEdge` and `defaultVertex` that have been introduced by
mistake. They have never been used.
- rename `autosize` into `autoSize` for naming consistency. All
properties use camelCase.
- change types from "number" to "boolean" + fix default management in
the Shape classes
    - `backgroundOutline`
    - `absoluteArcSize`

Other `CellStateStyle` changes: remove a property in favor of another
property
The following properties were introduced by mistake while removing
mxConstants.STYLE_* references in
707605cedd (2021-05-02). Their counterpart
was used in `mxGraph` and is used in all
`maxGraph` examples
- `backgroundColor` in favor of `labelBackgroundColor`. The
`STYLE_LABEL_BACKGROUNDCOLOR` constant was replaced by
  'backgroundColor' instead of 'labelBackgroundColor'
- `loop` in favor of `loopStyle`. The `STYLE_LOOP` constant was replaced
by 'loop' instead of 'loopStyle'

Other types that changed
- `CellStateStyle`: better type guidance for the `indicatorShape`
property
- `CanvasState`: order properties alphabetically + add JSDoc on some
properties
- Rename `ArrowType` into `ArrowValue` for consistency with other types
(they all end with the 'Value' post-fix)

Documentation update
  - CHANGELOG.md: mention the breaking changes
- Initiate a specific document to help migration from mxGraph: start by
adding the changes on style


--------------------------------------------------------------------------------

**BREAKING CHANGES**: some `CellStateStyle` properties and types have
been removed/renamed.
2023-01-30 11:44:06 +01:00
Thomas Bouffard 7e9bc662be
docs: update README after the first public release (#145)
Update the project status.
npm package availability:
- add a badge to display the latest version available in the npm
registry.
  - explain how to install maxGraph in applications.
2022-11-22 10:45:15 +01:00
Thomas Bouffard 36c775bc37
docs: include License and Readme files in the npm package (#144)
The README included in the npm package contains mainly an extract of the
README of the repository and a link to it to avoid too many duplicates.
2022-11-22 07:49:05 +01:00
Thomas Bouffard e45b405c68
docs: list former mxGraph tags in CHANGELOG.md (#140)
The former mxGraph tags have been removed. List them in the changelog
for history.
Also update the project status in the README as there is no more
blocking issue for a first release.
2022-11-22 07:07:34 +01:00
Thomas Bouffard 27f75a59f3
docs: set the minimum TypeScript requirement to 3.8 (#128)
We use a recent TypeScript version to build maxGraph but applications
that integrates it may be forced to use old TypeScript versions.
We never explain what is the minimum TypeScript version requires to use
`maxGraph`. The changes proposed here are a first step to make this
information available.
It is only informative for now (mentioned in the README) and the minimum
TypeScript version is tested in the `ts-support` package (part of the
'build' GitHub workflow).
2022-11-07 18:31:40 +01:00
Thomas Bouffard 133199bf47 docs: no more skipLibCheck needed for TS integration 2022-10-09 18:56:53 +02: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
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 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
Thomas Bouffard 893ad44ff2
chore: improve the configuration to build the npm package (#87)
Root and all package.json files
  - Fix license, version and authors
  - Remove the non-relevant .npmignore file at the project. It was designed for mxgraph, the whole directory structure
  changed, and we don't plan to publish the root package

`core` package
  - Generate type definition and javascript files for ESM output
    - dedicated folder for `esm` and `types` in the `dist` folder to clearly separate concerns
    - exported in the package.json
  - Add npm script for `npm pack` configuration
  - Drop the `postinstall` npm script that built the `core` bundle. It would have been run when the package is installed
  in dependent projects at dependencies install. And it would have failed as it tries to build the project from TypeScript
  sources that are not available in the npm package.

fix: ConstraintHandler now loads image as everywhere else in the code using `Client.imageBasePath`
Using import doesn't work as the image is not available in the npm package. It generated error like this in ViteJS
project:
Failed to resolve import "../../../images/point.gif" from "../core/dist/esm/view/handler/ConstraintHandler.js". Does the file exist?
This gif import had been introduced to make `Anchors.stories.js` retrieve the gif file. Configuring `imageBasePath` as
already done in other stories fixes the issue.

Don't export EditorCodec and StylesheetCodec as they generate errors.
This is a temporary solution to avoid error in dependent project (at least, with ViteJS projects).
2022-07-05 08:08:25 +02:00
Thomas Bouffard 6180434a5f
doc: explain the maxGraph mission and status in the README (#93)
The README is the main entry point of the lib. It should provide the main information about the project and should attract potential users.
Previously, it was a mix of technical information and outdated sentences about the good old mxGraph.

This is a first attempt to improve things. In short
- First present what the lib does and the project status.
- Then, provide a code example and a gif to let potential users see the rendering at a glance.
- Remove inaccurate content and refresh the project history.
2022-07-04 19:49:49 +02:00
Amine B. Hassouna c858f9413b
Add section about Apache 2.0 license transition to README.md (#90) 2022-06-07 06:16:31 +02:00
Junsik Shim a22a610096 Update readme.md 2021-04-15 13:13:13 +09:00
Jon Gadsden 441bc9036b default branch name is now 'main' 2021-04-15 13:11:48 +09:00
Jon Gadsden 539c4c0ab3
Merge pull request #16 from mcyph/master
refactored to be ES9; converted some files to TypeScript; added documentation from typed-mxgraph
2021-04-13 22:06:35 +01:00
David Benson ff141aab15
Update README.md 2020-11-13 09:04:55 +00:00
David Benson bd8642d05a
Update README.md 2020-11-13 09:04:46 +00:00
Colin Claverie ccf599b5a5
Update README.md 2020-11-12 13:51:32 +00:00
Colin Claverie 7296e6006c
Update README.md 2020-11-12 13:46:06 +00:00
Colin Claverie c60dfa8dff
Update README.md 2020-11-12 13:45:04 +00:00
David Benson 0ecfedc47d
Set project to EOL 2020-11-09 10:24:48 +00:00
David Benson e640d60366
Update README.md 2020-10-29 07:43:19 +00:00
David Benson 693c67a81e
Update README.md 2020-07-01 21:51:35 +01:00
David Benson dfe93c6499
Update README.md 2020-07-01 21:32:49 +01:00
David Benson 95bf281e41
Update README.md 2020-07-01 21:32:24 +01:00
David Benson 68e55ae449
Update README.md 2020-06-07 09:01:58 +01:00
David Benson 94fc85adf4
Added comment regarding Java and .NET support 2019-11-27 22:49:11 +00:00
David Benson ed83b49f3f
Update README.md 2019-10-11 17:45:39 +01:00
David Benson c78914fefb
Updates 2019-10-09 17:46:15 +01:00
David Benson 99adf11983
Update README.md 2019-10-04 09:08:22 +01:00
David Benson 7dd840fd7b
Update README.md 2019-08-20 13:16:39 +01:00
David Benson b06fc998d9
Update README.md 2019-07-08 16:42:12 +01:00
David Benson 139385c65c
Update README.md 2019-06-14 09:15:17 +01:00
David Benson c59c080684
Update README.md 2018-07-31 10:14:04 +01:00
Marc Laporte 7ca4827e1f
No open positions at the moment
That URL indicates "We do not have any open positions. We did not post the listing on the Remote OK site and they have been asked to remove it"
2018-03-24 21:03:59 +08:00
David Benson 96dbdafe6b
Update README.md 2018-02-26 11:53:32 +00:00
David Benson 62a68f356b
Update README.md 2018-01-20 15:37:32 +00:00
David Benson b75438b1a3
Update README.md 2018-01-20 15:32:07 +00:00
David Benson e8443a9e3d
Update README.md 2017-12-13 14:34:45 +00:00
David Benson f4ff6074fc Update README.md 2017-10-18 23:31:13 +01:00
David Benson 8b220929ac Update README.md 2017-06-27 13:57:57 +01:00
David Benson db950e1437 Update README.md 2017-06-27 13:56:33 +01:00
David Benson 771c3cfedd Update README.md 2017-05-29 22:27:19 +01:00
David Benson 42792c7ecf Update README.md 2017-05-29 22:26:26 +01:00
David Benson 3d48f447c4 Update README.md 2017-05-29 22:25:51 +01:00
David Benson da756afb0f Update README.md 2017-03-10 20:24:40 +00:00
David Benson 9f7b00a5c3 Update README.md 2017-02-27 16:13:53 +00:00
David Benson eeb9524f84 Updated browser list 2017-01-09 12:02:05 +00:00
David Edwards 2579e089d6 Update README.md
Typo
2016-11-18 06:25:01 +00:00
David Benson 76637f6a89 Update README.md 2016-10-27 13:24:01 +01:00