Commit Graph

77 Commits (d9b85945f88f122028415ad02b69b088db004428)

Author SHA1 Message Date
Thomas Bouffard 6e6009aebd
docs: build the user documentation with Docusaurus (#264)
Initiate the website with Docusaurus v3.
Setup the site and includes the content that was already available in
the `docs` package.
The currently implementation mainly uses the default theme available
when using the Docusaurus scaffolding. It was initiated with:
`npx create-docusaurus@3.0.0 my-website classic`
2023-11-27 18:53:52 +01:00
Tim Nelson 43e84c49e8
docs: improve instructions for setting up a dev environment (#262)
There was missing information in the documentation.
Add `npm pack` command to instructions for setting up a dev environment.
2023-11-09 10:40:07 +01:00
Thomas Bouffard 92759df232
feat: include default css and images in the npm package (#225)
Providing these resources simplify the `maxGraph` integration.

Use the default CSS in ts-example to illustrate how to override defaults
Initiate a documentation to start guiding users.
2023-07-13 12:25:10 +02:00
Thomas Bouffard 03f59aa130
refactor: improve examples in README and ts-example (#223)
ts-example
  - improve the position of the ellipse labels
  - introduce a shared style for ellipse vertices
  - bump vite from 4.3.9 to 4.4.2
  - work when not deployed in the "root" context of the site

README
  - improve the position of the ellipse label
  - display rounded orthogonal edge
  - fix the style configuration to match the rendering shown in the gif
2023-07-10 07:07:19 +02:00
Thomas Bouffard e82abd6da3
feat: improve the EdgeMixin type (#212)
The methods defined in the `EdgeMixin` type were not documented.
The signature of the `insertEdge` method was using a spread `any`
parameter, so it provided no guidance nor guard.
Instead, the type now declares the various form of the methods with the
right signature.
2023-07-07 07:56:01 +02:00
Thomas Bouffard cdd8830b5c
feat: improve the VertexMixin type (#211)
The methods defined in the `VertexMixin` type were not documented.
The signature of the `insertVertex` method was using a spread `any`
parameter, so it provided no guidance nor guard.

Instead, the type now declares the various form of the methods with the
right signature.
2023-07-07 07:41:49 +02:00
Thomas Bouffard d5c1d4dc21
docs(release): add task for the "examples" repository (#215)
Also improve the main README
  - improve the paragraph about how to build the npm package locally
  - use the "application" wording instead "project" when required
  - highlight mxGraph and maxGraph
2023-07-07 07:06:09 +02:00
Thomas Bouffard 8146158fde
docs(dev): explain NodeJS requirements (#202) 2023-06-07 08:43:26 +02:00
Thomas Bouffard 13211edb28
docs: improve the release process (#177)
Clarify some git operations.
Also
- move an image to the packages/docs for future reuse in the
documentation.
- don't run the GitHub "build" workflow when the docs package or some
markdown files change.
2023-05-22 16:13:33 +02:00
Thomas Bouffard 1447fd29fc
docs: reorganize the "migration from mxGraph" documentation (#171)
Move everything from the README to the dedicated migration doc.
Clarify the existing content.

Co-authored-by: Souchet Céline <4921914+csouchet@users.noreply.github.com>
2023-01-30 15:01:55 +01:00
Thomas Bouffard c4efba2952
docs: add the release process (#176)
It includes
  - code update
  - milestone and release notes management
  - npm package publish

Co-authored-by: Souchet Céline <4921914+csouchet@users.noreply.github.com>
2023-01-30 14:19:01 +01:00
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