Skip to content

Commit

Permalink
Add default value for fromEnd and toEnd.
Browse files Browse the repository at this point in the history
  • Loading branch information
lishid authored Apr 11, 2024
1 parent 8ca9fdc commit cb29ef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Edges are lines that connect one node to another.
- `right`
- `bottom`
- `left`
- `fromEnd` (optional, string) is the shape of the endpoint at the edge start. Valid values:
- `fromEnd` (optional, string) is the shape of the endpoint at the edge start. Defaults to `none` if not specified. Valid values:
- `none`
- `arrow`
- `toNode` (required, string) is the node `id` where the connection ends.
Expand All @@ -81,7 +81,7 @@ Edges are lines that connect one node to another.
- `right`
- `bottom`
- `left`
- `toEnd` (optional, string) is the shape of the endpoint at the edge end. Valid values:
- `toEnd` (optional, string) is the shape of the endpoint at the edge end. Defaults to `arrow` if not specified. Valid values:
- `none`
- `arrow`
- `color` (optional, `canvasColor`) is the color of the line, see the Color section.
Expand All @@ -99,4 +99,4 @@ The `canvasColor` type is used to encode color data for nodes and edges. Colors
- `"5"` cyan
- `"6"` purple

Specific values for the preset colors are intentionally not defined so that applications can tailor the presets to their specific brand colors or color scheme.
Specific values for the preset colors are intentionally not defined so that applications can tailor the presets to their specific brand colors or color scheme.

2 comments on commit cb29ef6

@duranbe
Copy link

@duranbe duranbe commented on cb29ef6 Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toEnd: Default to arrow if not specified ? why none is still in the possible values ?

@lishid
Copy link
Contributor Author

@lishid lishid commented on cb29ef6 Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If none is specified then no arrow is rendered.

Please sign in to comment.