chore(examples): update RGB examples

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-05-11 15:33:42 +02:00
committed by Braks
parent 09e63e0ad6
commit d470ce1f92
6 changed files with 105 additions and 51 deletions
+9 -4
View File
@@ -41,15 +41,20 @@ export default {
<template>
<path
:id="id"
:id="`${id}-${data.color}`"
class="vue-flow__edge-path"
:style="{ stroke: data?.color, strokeWidth: '3' }"
:style="{ stroke: data.color, strokeWidth: '3' }"
:d="edgePath[0]"
:marker-end="markerEnd"
/>
<text>
<textPath :href="`#${id}`" :style="{ fontSize: '1.25rem', fill: 'white' }" startOffset="50%" text-anchor="middle">
{{ data?.text }}
<textPath
:href="`#${id}-${data.color}`"
:style="{ fontSize: '1.25rem', fill: 'white' }"
startOffset="50%"
text-anchor="middle"
>
{{ data.text }}
</textPath>
</text>
</template>
+1 -1
View File
@@ -26,7 +26,7 @@ function onChange(e: InputEvent) {
<div class="text-md font-semibold text-center" :style="{ color: currentColor }">{{ `${currentColor}`.toUpperCase() }}</div>
<input
:model-value="amount[currentColor]"
:value="amount[currentColor]"
class="slider nodrag"
:style="{ '--color': currentColor }"
type="range"