Skip to content

Commit

Permalink
fix @OverRide; export link attachment policy public
Browse files Browse the repository at this point in the history
  • Loading branch information
Arokip committed Apr 13, 2021
1 parent e08c78c commit 36cfcf8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

# 0.0.4

* Other link attachment policies.

# 0.0.3

* Fix example.

# 0.0.2

* Add example.
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

[![pub package](https://img.shields.io/pub/v/diagram_editor.svg)](https://pub.dev/packages/diagram_editor)

[Github](https://github.com/Arokip/fdl)

Flutter diagram editor library for showing and editing diagrams of custom type. It provides DiagramEditor widget and a possibility to customize all editor design and behavior.

<img src="https://user-images.githubusercontent.com/20387953/114435850-f1f20f00-9bc4-11eb-8d97-a16c40c326cb.png">
Expand All @@ -13,8 +11,6 @@ Flutter diagram editor library for showing and editing diagrams of custom type.

## Getting Started

Simple example of this package usage is in [`/example`](https://github.com/Arokip/fdl/tree/master/example) folder.

Use of `DiagramEditor` widget:

```dart
Expand Down
2 changes: 2 additions & 0 deletions lib/diagram_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export 'src/abstraction_layer/policy/base/link_widgets_policy.dart';
export 'src/abstraction_layer/policy/base/policy_set.dart';
export 'src/abstraction_layer/policy/defaults/canvas_control_policy.dart';
export 'src/abstraction_layer/policy/defaults/link_attachment_rect_policy.dart';
export 'src/abstraction_layer/policy/defaults/link_attachment_oval_policy.dart';
export 'src/abstraction_layer/policy/defaults/link_attachment_crystal_policy.dart';
export 'src/abstraction_layer/policy/defaults/link_control_policy.dart';
export 'src/abstraction_layer/policy/defaults/link_joint_control_policy.dart';
export 'src/canvas_context/diagram_editor_context.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';

/// Attaches a link endpoint to border of an crystal shape.
mixin LinkAttachmentCrystalPolicy implements LinkAttachmentPolicy {
@override
Alignment getLinkEndpointAlignment(
ComponentData componentData,
Offset targetPoint,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';

/// Attaches a link endpoint to border of an oval.
mixin LinkAttachmentOvalPolicy implements LinkAttachmentPolicy {
@override
Alignment getLinkEndpointAlignment(
ComponentData componentData,
Offset targetPoint,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';

/// Attaches a link endpoint to border of a rectangle.
mixin LinkAttachmentRectPolicy implements LinkAttachmentPolicy {
@override
Alignment getLinkEndpointAlignment(
ComponentData componentData,
Offset targetPoint,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: diagram_editor
description: A flutter diagram editor library that provides DiagramEditor widget and a possibility to customize all editor design and behavior.
version: 0.0.2
version: 0.0.4
homepage: https://github.com/Arokip/fdl

environment:
Expand Down

0 comments on commit 36cfcf8

Please sign in to comment.