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

Immutable canonical model and geometry for Vyuh Diagram.

Vyuh Diagram

vyuh_diagram_types version

vyuh_diagram_types

The immutable document model and geometry of Vyuh Diagram, in pure Dart.

Vyuh Diagram · Docs · Examples · API reference

Documents, shapes, text, connectors, styles, selections and geometry, shared by the engine, the Flutter canvas and the codecs. Applications usually reach these types through vyuh_diagram_flutter or vyuh_diagram_core, which re-export them.

Connector intent uses ConnectorElement.route and routeOptions. In 2.11 the Dart field formerly named router becomes route; the JSON codec keeps its format-1 wire key router for saved-document compatibility.

Install #

dart pub add vyuh_diagram_types --hosted-url https://pub.vyuh.tech

Register your registry token first with dart pub token add https://pub.vyuh.tech; see package access.

Usage #

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),
    ),
  ],
);

Learn more #

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