vyuh_diagram_types 2.17.0
vyuh_diagram_types: ^2.17.0 copied to clipboard
Immutable canonical model and geometry for Vyuh Diagram.
vyuh_diagram_types #
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.