-
Notifications
You must be signed in to change notification settings - Fork 1
/
EditObjects.tid
117 lines (114 loc) · 3.63 KB
/
EditObjects.tid
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
caption: Edit Objects
title: $:/plugins/inmysocks/SnapSVG/EditObjects
Select type to edit:
<$select tiddler='$:/state/SnapSVG/EditObjects' field='what_to_edit'>
<option value=''>
--
</option>
<option>
SVG Image
</option>
<option>
SVG Element
</option>
<option>
SVG Group
</option>
<option>
SVG Animation
</option>
<option>
SVG Transform
</option>
</$select>
<$reveal type='match' state='$:/state/SnapSVG/EditObjects!!what_to_edit' text=''>
Select the type you want to edit.
</$reveal>
<$reveal type='match' state='$:/state/SnapSVG/EditObjects!!what_to_edit' text='SVG Image'>
<$select tiddler='$:/state/SnapSVG/EditObjects' field='selected_object'>
<option value=''>
--
</option>
<$list filter='[all[tiddlers+system+shadows]type[SVG Image]]'>
<option>
<$view field='title'/>
</option>
</$list>
</$select>
<br>
<$tiddler tiddler={{$:/state/SnapSVG/EditObjects!!selected_object}}>
{{||$:/plugins/inmysocks/SnapSVG/SVGSurfaceEditTemplate}}
</$tiddler>
</$reveal>
<$reveal type='match' state='$:/state/SnapSVG/EditObjects!!what_to_edit' text='SVG Element'>
<$select tiddler='$:/state/SnapSVG/EditObjects' field='selected_object'>
<option value=''>
--
</option>
<$list filter='[type[SVG Element]has[element_type]each[element_type]get[element_type]]'>
<optgroup label=<<currentTiddler>>>
<$list filter='[type[SVG Element]element_type<currentTiddler>]'>
<option value={{!!title}}>
<$view field='object_name'/>
</option>
</$list>
</optgroup>
</$list>
</$select>
<$tiddler tiddler={{$:/state/SnapSVG/EditObjects!!selected_object}}>
<$reveal type='match' state='!!element_type' text='circle'>
{{||$:/plugins/inmysocks/SnapSVG/CircleControlTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='ellipse'>
{{||$:/plugins/inmysocks/SnapSVG/EllipseControlTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='polygon'>
{{||$:/plugins/inmysocks/SnapSVG/PolygonControlTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='rect'>
{{||$:/plugins/inmysocks/SnapSVG/RectangleControlTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='text'>
{{||$:/plugins/inmysocks/SnapSVG/TextControlTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='line'>
{{||$:/plugins/inmysocks/SnapSVG/LineEditTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='image'>
{{||$:/plugins/inmysocks/SnapSVG/ExternalImageControlTemplate}}
</$reveal>
<$reveal type='match' state='!!element_type' text='tiddler'>
{{||$:/plugins/inmysocks/SnapSVG/SVGTiddlerControlTemplate}}
</$reveal>
</$tiddler>
</$reveal>
<$reveal type='match' state='$:/state/SnapSVG/EditObjects!!what_to_edit' text='SVG Group'>
<$select tiddler='$:/state/SnapSVG/EditObjects' field='selected_object'>
<option value=''>
--
</option>
<$list filter='[type[Group]]'>
<option value=<<currentTiddler>>>
<$view field='object_name'/>
</option>
</$list>
</$select>
<$tiddler tiddler={{$:/state/SnapSVG/EditObjects!!selected_object}}>
{{||$:/plugins/inmysocks/SnapSVG/GroupEditTemplate}}
</$tiddler>
</$reveal>
<$reveal type='match' state='$:/state/SnapSVG/EditObjects!!what_to_edit' text='Animation'>
<$select tiddler='$:/state/SnapSVG/EditObjects' field='selected_object'>
<option value=''>
--
</option>
<$list filter='[type[Animation]]'>
<option value={{!!title}}>
<$view field='animation_name'/>
</option>
</$list>
</$select>
<$tiddler tiddler={{$:/state/SnapSVG/EditObjects!!selected_object}}>
{{||$:/plugins/inmysocks/SnapSVG/AnimationControlTemplate}}
</$tiddler>
</$reveal>