Socket
Socket
Sign inDemoInstall

@maxgraph/core

Package Overview
Dependencies
0
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @maxgraph/core

maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.


Version published
Weekly downloads
770
increased by6.65%
Maintainers
2
Install size
3.18 MB
Created
Weekly downloads
 

Changelog

Source

0.8.0

Release date: 2024-02-14

For more details, see the 0.8.0 Changelog on the GitHub release page.

This release contains new features and bug fixes.

Breaking Changes They mainly impacts TypeScript users and impacts are limited:

  • rename the StyleArrayValue type into StyleArrowValue. This only has an impact on TypeScript users who use this type explicitly, which should happen rarely.
  • Perimeter is no longer a class but a value object. This only impact users that had extended the Perimeter class. Regular user that define perimeter style properties using function provided by maxGraph are not impacted by this change.
  • CellState.perimeter no longer accept Function, but only the PerimeterFunction.
    • Passing an arbitrary Function was incorrect and always failed at runtime.
    • This change should not impact people using working implementation of perimeter function (including these provided by maxGraph) as they already have the right signature. Implementers of custom perimeter in TypeScript may have to slightly update their perimeter function declaration.
  • CellStateStyle.loopStyle no longer accept Function, but only the EdgeStyleFunction (limited impacts like on the perimeter property)
  • Graph.createEdgeHandler only accepts EdgeStyleFunction for the edgeStyle parameter.
  • GraphView signature method changes
    • getPerimeterPoint can now return null
    • getPerimeterBounds no longer accept null CellState and no longer returns null
  • Some internal methods of EdgeStyle are no longer available:
    • scaleCellState
    • scalePointArray

Readme

Source

@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

Getting started

All the information is available in the README of the GitHub repository.

Keywords

FAQs

Last updated on 14 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc