maxGraph/packages/core
Thomas Bouffard 3fff754cd6
fix: correctly manage the markers fill style (#157)
Previously, when setting startFill/endFill, the display was inverted
comparing to the configuration.
The marker was filled when set to false, not filled when set to true.
When not set, the marker was filled, which is the expected default.

The issue came from a wrong condition to manage the default value and
was reproduced with the Markers Story.

In addition to the code fix, update the Markers.stories.js to fix style
configurations
  - use number instead of string for markers size
  - use boolean instead of number for start/end fill
2023-01-06 16:53:54 +01:00
..
__tests__/view fix: improve style configuration extensibility (#163) 2023-01-06 10:52:53 +01:00
css Finish converting core to ts, JSDoc conversion, consistency+convention changes, example bugfixes (#70) 2022-01-08 12:49:35 +11:00
images - Add css support in storybook. 2021-04-24 21:30:30 +09:00
src fix: correctly manage the markers fill style (#157) 2023-01-06 16:53:54 +01:00
LICENSE docs: include License and Readme files in the npm package (#144) 2022-11-22 07:49:05 +01:00
README.md docs: include License and Readme files in the npm package (#144) 2022-11-22 07:49:05 +01:00
index.txt Finish converting core to ts, JSDoc conversion, consistency+convention changes, example bugfixes (#70) 2022-01-08 12:49:35 +11:00
jest.config.cjs fix: CellOverlay constructor use all parameters to set properties (#159) 2022-12-16 16:51:51 +01:00
package.json fix: CellOverlay constructor use all parameters to set properties (#159) 2022-12-16 16:51:51 +01:00
replace_comment_params.py Finish converting core to ts, JSDoc conversion, consistency+convention changes, example bugfixes (#70) 2022-01-08 12:49:35 +11:00
replace_defs.py - Restructure into a monorepo. 2021-04-15 13:12:12 +09:00
tsconfig.json chore(tsconfig): move baseUrl to base tsconfig 2022-10-23 11:56:07 +03:00
typed_mxgraph_defs.json Finish converting core to ts, JSDoc conversion, consistency+convention changes, example bugfixes (#70) 2022-01-08 12:49:35 +11:00
webpack.config.js - Trying to get the stories working... 2021-09-01 23:04:33 +09:00

README.md

@maxgraph/core

maxGraph is a TypeScript library which can display and allow interaction with vector diagrams. At a high level, it provides:

  • Nodes, also known as vertices which are typically represented by shapes like rectangles.
  • Edges which can be lines and arrows which normally point between one node and another.

It provides many of the diagramming features which would be expected by a piece of presentation software like Microsoft® PowerPoint™ or LibreOffice® Impress such as being able to resize, move or rotate nodes, but has a stronger focus on automatic layout algorithms and applications of Graph Theory. It is suited towards software which requires finer-grained customization of functionality than off-the-shelf packages.

For more details, see the maxGraph GitHub repository.

Install

npm install @maxgraph/core