1.0.6 • Published 1 year ago

uml-diagram-editor v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago