graph: text nodes are rectangles
This commit is contained in:
parent
cd8ec99d13
commit
e383d513f8
1 changed files with 6 additions and 2 deletions
|
@ -83,7 +83,7 @@
|
||||||
fill: green; /* TODO */
|
fill: green; /* TODO */
|
||||||
}
|
}
|
||||||
|
|
||||||
.selected > ellipse {
|
.selected > ellipse, .selected > rect {
|
||||||
stroke-width: 4px;
|
stroke-width: 4px;
|
||||||
stroke: red;
|
stroke: red;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,11 @@
|
||||||
{task.title == null ? task.id : task.title}
|
{task.title == null ? task.id : task.title}
|
||||||
</text>
|
</text>
|
||||||
{:else}
|
{:else}
|
||||||
<ellipse class="taskNode" rx={ellipse_rx} ry={20} {cx} {cy} />
|
{#if task.type == "text"}
|
||||||
|
<rect class="taskNode" x={cx-ellipse_rx} y={cy-20} height={40} width={2*ellipse_rx} rx={3} />
|
||||||
|
{:else}
|
||||||
|
<ellipse class="taskNode" rx={ellipse_rx} ry={20} {cx} {cy} />
|
||||||
|
{/if}
|
||||||
<text
|
<text
|
||||||
bind:this={text_element}
|
bind:this={text_element}
|
||||||
x={cx}
|
x={cx}
|
||||||
|
|
Reference in a new issue