Add Arrowheads to Arrows (#2452)

Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
Steve Ruiz 2020-12-08 15:02:55 +00:00 committed by GitHub
parent bd8e860d7f
commit c291edfc44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 711 additions and 101 deletions

View file

@ -7,6 +7,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": "arrow",
"endBinding": null,
"fillStyle": "hachure",
"groupIds": Array [],
@ -27,6 +28,7 @@ Object {
],
"roughness": 1,
"seed": 337897,
"startArrowhead": null,
"startBinding": null,
"strokeColor": "#000000",
"strokeSharpness": "round",
@ -102,6 +104,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": null,
"endBinding": null,
"fillStyle": "hachure",
"groupIds": Array [],
@ -122,6 +125,7 @@ Object {
],
"roughness": 1,
"seed": 337897,
"startArrowhead": null,
"startBinding": null,
"strokeColor": "#000000",
"strokeSharpness": "round",

View file

@ -139,6 +139,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": null,
"endBinding": Object {
"elementId": "id1",
"focus": -0.46666666666666673,
@ -163,6 +164,7 @@ Object {
],
"roughness": 1,
"seed": 401146281,
"startArrowhead": null,
"startBinding": Object {
"elementId": "id0",
"focus": -0.6000000000000001,

View file

@ -5,6 +5,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": "arrow",
"endBinding": null,
"fillStyle": "hachure",
"groupIds": Array [],
@ -32,6 +33,7 @@ Object {
],
"roughness": 1,
"seed": 337897,
"startArrowhead": null,
"startBinding": null,
"strokeColor": "#000000",
"strokeSharpness": "round",
@ -51,6 +53,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": null,
"endBinding": null,
"fillStyle": "hachure",
"groupIds": Array [],
@ -78,6 +81,7 @@ Object {
],
"roughness": 1,
"seed": 337897,
"startArrowhead": null,
"startBinding": null,
"strokeColor": "#000000",
"strokeSharpness": "round",

File diff suppressed because it is too large Load diff

View file

@ -5,6 +5,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": "arrow",
"endBinding": null,
"fillStyle": "hachure",
"groupIds": Array [],
@ -25,6 +26,7 @@ Object {
],
"roughness": 1,
"seed": 337897,
"startArrowhead": null,
"startBinding": null,
"strokeColor": "#000000",
"strokeSharpness": "round",
@ -44,6 +46,7 @@ Object {
"angle": 0,
"backgroundColor": "transparent",
"boundElementIds": null,
"endArrowhead": null,
"endBinding": null,
"fillStyle": "hachure",
"groupIds": Array [],
@ -64,6 +67,7 @@ Object {
],
"roughness": 1,
"seed": 337897,
"startArrowhead": null,
"startBinding": null,
"strokeColor": "#000000",
"strokeSharpness": "round",

View file

@ -130,6 +130,8 @@ export class API {
case "draw":
element = newLinearElement({
type: type as "arrow" | "line" | "draw",
startArrowhead: null,
endArrowhead: null,
...base,
});
break;