vyuh_diagram_types 2.17.0 copy "vyuh_diagram_types: ^2.17.0" to clipboard
vyuh_diagram_types: ^2.17.0 copied to clipboard

Immutable canonical model and geometry for Vyuh Diagram.

vyuh_diagram_types #

pub.dev

Immutable documents, shapes, text, connectors and geometry in pure Dart. Core and Flutter re-export these types, so most apps need no separate import.

Install #

dart pub add vyuh_diagram_types

Build a document #

import 'package:vyuh_diagram_types/vyuh_diagram_types.dart';

final document = DiagramDocument(
  id: 'plan',
  revision: 0,
  elements: [
    ShapeElement(
      id: 'start',
      type: Shapes.rectangle,
      frame: const DiagramRect.fromLTWH(0, 0, 160, 80),
    ),
  ],
);

Use a controller to edit a document. Explore shapes and the JSON format.

License #

Licensed under the Apache License, Version 2.0. Third-party materials retain their own licenses and notices.

0
likes
0
points
892
downloads

Publisher

verified publishervyuh.tech

Weekly Downloads

Immutable canonical model and geometry for Vyuh Diagram.

Homepage

License

unknown (license)

More

Packages that depend on vyuh_diagram_types