-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcode.ts
37 lines (37 loc) · 1.2 KB
/
code.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export default `<v-surface :width="360" :height="360">
<v-rect :x="10" :y="220" :width="30" :height="30" color="cyan" :style="'fill'" />
<v-line :strokeWidth="8" color="black" :p1="[100, 260]" :p2="[50, 285]" />
<v-round-rect :x="220" :y="50" :width="80" :height="80" :r="10" color="fuchsia" :style="'stroke'" />
<v-points :points="[
[138, 10],
[178, 90],
[266, 103],
[202, 165],
[217, 254],
[138, 212],
[59, 254],
[74, 165],
[10, 103],
[98, 90],
]" :style="'fill'" :strokeWidth="1" :color="'rgba(200, 255, 0, 0.7)'" />
<v-image
:x="30"
:y="40"
:image="'https://raw.githubusercontent.com/rustq/vue-skia/main/vue-playground/src/assets/logo.png'"
:width="70"
:height="70"
v-bind:blur="10"
:grayscale="false"
:brighten="80"
:invert="false"
></v-image>
<v-group :x="200" :y="160" color="violet" :style="'stroke'" :invertClip="true">
<template #clip>
<v-circle :cx="8" :cy="68" :r="40" />
</template>
<v-circle :cx="0" :cy="60" :r="50" :style="'fill'" />
<v-circle :cx="0" :cy="60" :r="70" />
<v-text :x="80" :y="0" :fontSize="16" color="black" text="Hello World!" :maxWidth="50"></v-text>
</v-group>
</v-surface>
`;