1.0.6 • Published 10 months ago

uml-diagram-editor v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Rifora UMLDiagram

A simple, lightweight lib to use UML diagram and edit them.

An extension

  • A new shape have to extends superclass Shape from domain.

  • The shape class have to have init field with unique name which will be used to access and restore this shapes.

  • The view part of the shape has to contain ShapeProps props. The view part can use only themselves or extend.

  • The view part and the shape logic must be registered in a Register class. The Register class have to be extend by CoreRegister and all shapes have to be write as a class' fields. After this need to connect field name (written above) with class logic name (init's value). An example:

export class Register extends CoreRegister {
  rect: ShapeRegistryEntry<Rect> = { logic: classBuilder(Rect), view: RectView };

  circle: ShapeRegistryEntry<Circle> = { logic: classBuilder(Circle), view: CircleView };
}

const register = new Register();

register.registerEntries([{ fieldName: 'rect', initName: 'rect' }, { fieldName: 'circle', initName: 'circle' }]);

Release

  • Change the version in package.json
  • Use npm run build
  • Use npm publish

Rollup

Rollup lib is used to prepare the release. Change the rollup.config.js if you need to tune the release.

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

0.1.14

10 months ago

0.1.13

10 months ago

0.1.12

10 months ago

0.1.11

10 months ago

0.1.10

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago