cpee 1.3.181 → 1.3.183
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/ui.css +19 -60
- data/cockpit/css/wfadaptor.css +11 -0
- data/cockpit/index.html +45 -71
- data/cockpit/js/details.js +50 -139
- data/cockpit/js/instance.js +133 -185
- data/cockpit/js/parameters.js +57 -55
- data/cockpit/js/ui.js +4 -29
- data/cockpit/js/wfadaptor.js +190 -108
- data/cockpit/rngs/attributes.rng +8 -0
- data/cockpit/rngs/dataelements.rng +8 -0
- data/cockpit/rngs/endpoints.rng +8 -0
- data/cockpit/testsets/Concurrent.xml +6 -6
- data/cockpit/testsets/Coopis Testset.xml +12 -12
- data/cockpit/testsets/ICSOC Testset.xml +27 -27
- data/cockpit/testsets/Infinity.xml +4 -4
- data/cockpit/testsets/Linear.xml +10 -10
- data/cockpit/testsets/Mangler 1.xml +20 -20
- data/cockpit/testsets/Mangler 2.xml +18 -18
- data/cockpit/testsets/Promise.xml +258 -0
- data/cockpit/testsets/SOPROMO Test Sonification.xml +11 -11
- data/cockpit/testsets/Syncing P34 1.xml +12 -12
- data/cockpit/testsets/Syncing P34 2.xml +12 -12
- data/cockpit/testsets/Syncing P34 3.xml +12 -12
- data/cockpit/testsets/Syncing P34.xml +12 -12
- data/cockpit/testsets/TEST - Bad Loop.xml +39 -39
- data/cockpit/testsets/Update.xml +1 -1
- data/cockpit/testsets/Worklist Parallel.xml +8 -8
- data/cockpit/testsets/Worklist Test CPEE.xml +2 -2
- data/cockpit/testsets/Worklist Test.xml +2 -2
- data/cockpit/testsets/testsets.xml +2 -0
- data/cockpit/themes/adventure/rngs/alternative.rng +5 -0
- data/cockpit/themes/adventure/rngs/call.rng +29 -0
- data/cockpit/{rngtest2.rng → themes/adventure/rngs/callmanipulate.rng} +9 -9
- data/cockpit/themes/adventure/rngs/choose.rng +8 -0
- data/cockpit/themes/adventure/rngs/critical.rng +5 -0
- data/cockpit/themes/adventure/rngs/escape.rng +1 -0
- data/cockpit/themes/adventure/rngs/finalize.rng +6 -0
- data/cockpit/themes/adventure/rngs/group.rng +3 -0
- data/cockpit/themes/adventure/rngs/loop.rng +11 -0
- data/cockpit/themes/adventure/rngs/manipulate.rng +6 -0
- data/cockpit/themes/adventure/rngs/otherwise.rng +1 -0
- data/cockpit/themes/adventure/rngs/parallel.rng +5 -0
- data/cockpit/themes/adventure/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/adventure/rngs/update.rng +6 -0
- data/cockpit/themes/adventure/symbols/alternative.svg +4 -0
- data/cockpit/themes/adventure/symbols/call.svg +4 -0
- data/cockpit/themes/adventure/symbols/callmanipulate.svg +6 -0
- data/cockpit/themes/adventure/symbols/choose.svg +5 -0
- data/cockpit/themes/adventure/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/adventure/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/adventure/symbols/critical.svg +4 -0
- data/cockpit/themes/adventure/symbols/escape.svg +5 -0
- data/cockpit/themes/adventure/symbols/loop.svg +5 -0
- data/cockpit/themes/adventure/symbols/manipulate.svg +4 -0
- data/cockpit/themes/adventure/symbols/otherwise.svg +4 -0
- data/cockpit/themes/adventure/symbols/parallel.svg +5 -0
- data/cockpit/themes/adventure/symbols/parallel_branch.svg +4 -0
- data/cockpit/themes/adventure/symbols/scripts.svg +4 -0
- data/cockpit/themes/adventure/symbols/start.svg +3 -0
- data/cockpit/themes/adventure/theme.js +729 -0
- data/cockpit/themes/default/rngs/alternative.rng +5 -0
- data/cockpit/themes/default/rngs/call.rng +29 -0
- data/cockpit/themes/default/rngs/callmanipulate.rng +41 -0
- data/cockpit/themes/default/rngs/choose.rng +8 -0
- data/cockpit/themes/default/rngs/critical.rng +5 -0
- data/cockpit/themes/default/rngs/escape.rng +1 -0
- data/cockpit/themes/default/rngs/finalize.rng +6 -0
- data/cockpit/themes/default/rngs/group.rng +3 -0
- data/cockpit/themes/default/rngs/loop.rng +11 -0
- data/cockpit/themes/default/rngs/manipulate.rng +6 -0
- data/cockpit/themes/default/rngs/otherwise.rng +1 -0
- data/cockpit/themes/default/rngs/parallel.rng +5 -0
- data/cockpit/themes/default/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/default/rngs/update.rng +6 -0
- data/cockpit/themes/default/symbols/alternative.svg +4 -0
- data/cockpit/themes/default/symbols/call.svg +4 -0
- data/cockpit/themes/default/symbols/callmanipulate.svg +6 -0
- data/cockpit/themes/default/symbols/choose.svg +5 -0
- data/cockpit/themes/default/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/default/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/default/symbols/critical.svg +4 -0
- data/cockpit/themes/default/symbols/escape.svg +5 -0
- data/cockpit/themes/default/symbols/loop.svg +5 -0
- data/cockpit/themes/default/symbols/manipulate.svg +4 -0
- data/cockpit/themes/default/symbols/otherwise.svg +4 -0
- data/cockpit/themes/default/symbols/parallel.svg +5 -0
- data/cockpit/themes/default/symbols/parallel_branch.svg +4 -0
- data/cockpit/themes/default/symbols/scripts.svg +4 -0
- data/cockpit/themes/default/symbols/start.svg +3 -0
- data/cockpit/themes/default/theme.js +729 -0
- data/cockpit/themes/lego/rngs/alternative.rng +5 -0
- data/cockpit/themes/lego/rngs/call.rng +41 -0
- data/cockpit/themes/lego/rngs/choose.rng +8 -0
- data/cockpit/themes/lego/rngs/critical.rng +5 -0
- data/cockpit/themes/lego/rngs/loop.rng +11 -0
- data/cockpit/themes/lego/rngs/manipulate.rng +6 -0
- data/cockpit/themes/lego/rngs/parallel.rng +5 -0
- data/cockpit/themes/lego/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/lego/symbols/alternative.svg +4 -0
- data/cockpit/themes/lego/symbols/call.svg +4 -0
- data/cockpit/themes/lego/symbols/callmanipulate.svg +6 -0
- data/cockpit/themes/lego/symbols/callori.svg +4 -0
- data/cockpit/themes/lego/symbols/choose.svg +4 -0
- data/cockpit/themes/lego/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/lego/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/lego/symbols/critical.svg +4 -0
- data/cockpit/themes/lego/symbols/escape.svg +5 -0
- data/cockpit/themes/lego/symbols/lego.svg +72 -0
- data/cockpit/themes/lego/symbols/loop.svg +5 -0
- data/cockpit/themes/lego/symbols/manipulate.svg +4 -0
- data/cockpit/themes/lego/symbols/otherwise.svg +4 -0
- data/cockpit/themes/lego/symbols/parallel.svg +6 -0
- data/cockpit/themes/lego/symbols/parallel_branch.svg +4 -0
- data/cockpit/themes/lego/symbols/scripts.svg +4 -0
- data/cockpit/themes/lego/symbols/start.svg +3 -0
- data/cockpit/themes/lego/theme.js +742 -0
- data/cockpit/themes/promise/rngs/alternative.rng +5 -0
- data/cockpit/themes/promise/rngs/call.rng +41 -0
- data/cockpit/themes/promise/rngs/choose.rng +8 -0
- data/cockpit/themes/promise/rngs/critical.rng +5 -0
- data/cockpit/themes/promise/rngs/loop.rng +11 -0
- data/cockpit/themes/promise/rngs/manipulate.rng +6 -0
- data/cockpit/themes/promise/rngs/parallel.rng +5 -0
- data/cockpit/themes/promise/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/promise/symbols/alternative.svg +4 -0
- data/cockpit/themes/promise/symbols/call.svg +4 -0
- data/cockpit/themes/promise/symbols/callmanipulate.svg +6 -0
- data/cockpit/themes/promise/symbols/choose.svg +4 -0
- data/cockpit/themes/promise/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/promise/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/promise/symbols/critical.svg +4 -0
- data/cockpit/themes/promise/symbols/escape.svg +5 -0
- data/cockpit/themes/promise/symbols/loop.svg +5 -0
- data/cockpit/themes/promise/symbols/manipulate.svg +4 -0
- data/cockpit/themes/promise/symbols/otherwise.svg +4 -0
- data/cockpit/themes/promise/symbols/parallel.svg +6 -0
- data/cockpit/themes/promise/symbols/parallel_branch.svg +4 -0
- data/cockpit/themes/promise/symbols/preminder.svg +6 -0
- data/cockpit/themes/promise/symbols/scripts.svg +4 -0
- data/cockpit/themes/promise/symbols/start.svg +3 -0
- data/cockpit/themes/promise/theme.js +742 -0
- data/cpee.gemspec +2 -2
- data/lib/cpee/implementation.rb +15 -15
- data/server/handlerwrappers/default.rb +19 -19
- data/server/handlerwrappers/log.rb +264 -0
- data/server/instances/10/properties.xml +148 -0
- data/server/instances/11/properties.xml +149 -0
- data/server/instances/12/properties.xml +149 -0
- data/server/instances/13/properties.xml +149 -0
- data/server/instances/14/properties.xml +111 -0
- data/server/instances/15/properties.xml +113 -0
- data/server/instances/16/properties.xml +113 -0
- data/server/instances/17/properties.xml +149 -0
- data/server/instances/18/properties.xml +149 -0
- data/server/instances/19/properties.xml +114 -0
- data/server/instances/2/properties.xml +1 -1
- data/server/instances/20/properties.xml +113 -0
- data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret +1 -0
- data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret +1 -0
- data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml +6 -0
- data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret +1 -0
- data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret +1 -0
- data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml +23 -0
- data/server/instances/21/properties.xml +149 -0
- data/server/instances/22/properties.xml +113 -0
- data/server/instances/23/properties.xml +88 -0
- data/server/instances/24/properties.xml +168 -0
- data/server/instances/25/properties.xml +149 -0
- data/server/instances/26/properties.xml +113 -0
- data/server/instances/27/properties.xml +141 -0
- data/server/instances/3/properties.xml +46 -0
- data/server/instances/4/properties.xml +148 -0
- data/server/instances/5/properties.xml +148 -0
- data/server/instances/6/properties.xml +148 -0
- data/server/instances/7/properties.xml +148 -0
- data/server/instances/8/properties.xml +148 -0
- data/server/instances/9/properties.xml +46 -0
- data/server/resources/properties.init +2 -1
- data/server/resources/transformation_dslx.xsl +12 -12
- data/server/server.pid +1 -0
- data/server/server.rb +2 -0
- metadata +152 -12
- data/cockpit/js/wfadaptor.cpee.js +0 -936
- data/cockpit/rngtest1.html +0 -53
- data/cockpit/rngtest1.rng +0 -38
- data/cockpit/rngtest1.xml +0 -16
- data/cockpit/rngtest2.html +0 -53
- data/cockpit/rngtest2.xml +0 -11
- data/cockpit/test.html +0 -46
@@ -0,0 +1,5 @@
|
|
1
|
+
<element rngui:version="1.2" name="alternative" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="condition" rngui:label="Condition">
|
3
|
+
<data type="string" rngui:label="Condition"/>
|
4
|
+
</attribute>
|
5
|
+
</element>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
|
3
|
+
<data type="string" rngui:readonly="true"/>
|
4
|
+
</attribute>
|
5
|
+
<attribute name="endpoint" rngui:label="Endpoint">
|
6
|
+
<data type="string"/>
|
7
|
+
</attribute>
|
8
|
+
<element name='parameters' rngui:header="Parameters">
|
9
|
+
<element name="label" rngui:label="Label">
|
10
|
+
<data type="string" rngui:label="Short description of the task"/>
|
11
|
+
</element>
|
12
|
+
<element name="method" rngui:label="Method">
|
13
|
+
<choice>
|
14
|
+
<value>:post</value>
|
15
|
+
<value>:get</value>
|
16
|
+
<value>:put</value>
|
17
|
+
<value>:delete</value>
|
18
|
+
</choice>
|
19
|
+
</element>
|
20
|
+
<element name="arguments" rngui:header="Arguments">
|
21
|
+
<zeroOrMore rngui:label="Create Argument Pair">
|
22
|
+
<element rngui:label='Name'>
|
23
|
+
<anyName/>
|
24
|
+
<data type="string" rngui:label="Value"/>
|
25
|
+
</element>
|
26
|
+
</zeroOrMore>
|
27
|
+
</element>
|
28
|
+
</element>
|
29
|
+
<element name="finalize" rngui:header="Finalize" rngui:label="Code">
|
30
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
31
|
+
<data type="string" rngui:readonly="true"/>
|
32
|
+
</attribute>
|
33
|
+
<text rngui:label='Script that is executed, when a service returns data'/>
|
34
|
+
</element>
|
35
|
+
<element name="update" rngui:header="Update" rngui:label="Code">
|
36
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
37
|
+
<data type="string" rngui:readonly="true"/>
|
38
|
+
</attribute>
|
39
|
+
<text rngui:label='Script that is executed, when a service sends intermediate data'/>
|
40
|
+
</element>
|
41
|
+
</element>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<element rngui:version="1.2" name="choose" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="mode" rngui:label="Mode" rngui:default="exclusive">
|
3
|
+
<choice>
|
4
|
+
<value>exclusive</value>
|
5
|
+
<value>inclusive</value>
|
6
|
+
</choice>
|
7
|
+
</attribute>
|
8
|
+
</element>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<element rngui:version="1.2" name="critical" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="sid" rngui:label="SID" rngui:default="section" rngui:hint="Identical SID's shared by between differnt 'critical' elements define mutual exclusive areas.">
|
3
|
+
<data type="string"/>
|
4
|
+
</attribute>
|
5
|
+
</element>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<element rngui:version="1.2" name="loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="mode" rngui:label="Mode" rngui:default="pre_test">
|
3
|
+
<choice>
|
4
|
+
<value>pre_test</value>
|
5
|
+
<value>post_test</value>
|
6
|
+
</choice>
|
7
|
+
</attribute>
|
8
|
+
<attribute name="condition" rngui:label="Condition">
|
9
|
+
<data type="string" rngui:label="Condition"/>
|
10
|
+
</attribute>
|
11
|
+
</element>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<element rngui:version="1.2" name="manipulate" rngui:label="Script" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
|
3
|
+
<data type="string" rngui:readonly="true"/>
|
4
|
+
</attribute>
|
5
|
+
<text rngui:label='Script that is executed'/>
|
6
|
+
</element>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<element rngui:version="1.2" name="parallel" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="wait" rngui:label="Wait" rngui:default="-1" rngui:hint="-1 to wait for all branches.">
|
3
|
+
<data type="integer"/>
|
4
|
+
</attribute>
|
5
|
+
</element>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<element rngui:version="1.2" name="parallel_branch" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="pass" rngui:label="Pass to branch">
|
3
|
+
<data type="string" rngui:label="Data element passed to the local scope, thus not affected by global changes ..."/>
|
4
|
+
</attribute>
|
5
|
+
<attribute name="local" rngui:label="Local scope">
|
6
|
+
<data type="string" rngui:label="Name of the passed data element in the local scope ..."/>
|
7
|
+
</attribute>
|
8
|
+
</element>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>
|
3
|
+
<path class="normal" style="fill:#000000;" d="m 21.561187,10.184155 c 0,-0.03232 0,-0.03232 0,-0.03232 C 21.076371,9.5054099 20.494591,8.9559512 19.815848,8.4388133 l 0,0.032323 C 19.266389,8.891311 18.71693,9.3438064 18.199794,9.7963017 17.973545,9.6670167 17.779619,9.5700535 17.585693,9.4730903 17.327124,9.3438064 17.068556,9.2145213 16.777665,9.1498799 16.680695,9.1175569 16.583739,9.0852339 16.486775,9.0852339 16.422135,8.3741695 16.357491,7.6631063 16.260528,6.952042 15.937318,6.887396 15.614106,6.887396 15.258574,6.855073 c -0.09697,0 -0.193926,0 -0.258569,0 -0.09697,0 -0.193925,0 -0.258568,0 -0.323211,0.032323 -0.614101,0.032323 -0.90499,0.096969 -0.09697,0.6787425 -0.161606,1.3898068 -0.193927,2.1008712 -0.129284,0 -0.226248,0.032323 -0.355532,0.064646 -0.03232,0 -0.06465,0 -0.09697,0.032323 -0.258568,0.064646 -0.517136,0.1939264 -0.775704,0.3232103 -0.226249,0.096969 -0.420175,0.1939264 -0.614102,0.3232114 -0.549458,-0.4524953 -1.066595,-0.87267 -1.616054,-1.3251654 0,0 0,0 -0.03232,-0.032323 C 10.022552,8.5357845 9.8932693,8.6327419 9.7963053,8.7297051 9.5700583,8.8913109 9.3761314,9.0852373 9.2145262,9.2791637 8.9236366,9.5377327 8.6973883,9.8609431 8.4388194,10.184155 c 0,0 0,0 0.032323,0 0.4201747,0.549459 0.87267,1.066596 1.325166,1.616054 -0.129285,0.193927 -0.258569,0.420175 -0.355533,0.614101 -0.129285,0.258569 -0.226248,0.549459 -0.2908894,0.808028 -0.064646,0.129284 -0.096969,0.258568 -0.096969,0.355531 -0.7110644,0.06465 -1.4221288,0.129285 -2.1008713,0.226248 -0.064646,0.323211 -0.096969,0.646422 -0.096969,1.001954 0,0.484816 0.032323,0.969632 0.1292839,1.422128 0.6787437,0.06465 1.3574862,0.129284 2.0685505,0.193926 0,0.129284 0.032323,0.258569 0.096969,0.355532 0.064646,0.29089 0.1616049,0.549459 0.2908899,0.840349 0.129284,0.226247 0.2262471,0.452495 0.387853,0.646421 -0.452496,0.549459 -0.9049912,1.066596 -1.3251647,1.616054 0.484816,0.678744 1.0665957,1.260523 1.7453387,1.74534 l 0,-0.03232 c 0.517137,-0.420175 1.066596,-0.87267 1.583733,-1.325166 l 0.03232,0 c 0.161605,0.09697 0.355532,0.193928 0.517136,0.290891 0.290891,0.129284 0.614101,0.258568 0.904991,0.32321 0.129284,0.03232 0.226248,0.06465 0.32321,0.09697 0.06465,0.678743 0.129285,1.389807 0.226249,2.100871 0.290889,0.03232 0.581779,0.06465 0.90499,0.06465 0.06465,0 0.258568,0 0.484817,0 0.355532,0 0.711064,-0.03232 1.066595,-0.09697 0.06465,-0.678742 0.129285,-1.389807 0.193926,-2.10087 0.09697,-0.03232 0.193927,-0.06465 0.29089,-0.09697 l 0,0 c 0.290891,-0.06464 0.549459,-0.161605 0.808028,-0.290889 0.226248,-0.09697 0.452495,-0.226248 0.678743,-0.387854 0,0.03232 0,0.03232 0.03232,0.03232 0.517137,0.452495 1.066596,0.904989 1.616054,1.325164 0.09697,-0.06465 0.193927,-0.129284 0.323212,-0.226247 0.193926,-0.161606 0.387852,-0.355532 0.549458,-0.549459 0.29089,-0.290889 0.58178,-0.614101 0.840348,-0.969633 -0.452495,-0.549459 -0.90499,-1.098917 -1.357486,-1.616054 0,-0.03232 0,-0.03232 0,-0.03232 0.09697,-0.161605 0.193927,-0.355531 0.29089,-0.549457 0.09696,-0.258569 0.226248,-0.517138 0.29089,-0.775707 0,-0.03232 0,-0.06465 0.03232,-0.06465 0,-0.129285 0.03232,-0.226248 0.06465,-0.290891 0.711065,-0.06465 1.422129,-0.129284 2.100872,-0.193926 0.06464,-0.323211 0.06464,-0.646422 0.09697,-0.969632 0,-0.09697 0,-0.193927 0,-0.29089 0,-0.06465 0,-0.161606 0,-0.258569 -0.03232,-0.323212 -0.03232,-0.646422 -0.09697,-0.969633 -0.678743,-0.06465 -1.389807,-0.129284 -2.100872,-0.193927 -0.03232,-0.09697 -0.06465,-0.193926 -0.06465,-0.290889 -0.09697,-0.29089 -0.193927,-0.58178 -0.323212,-0.872669 -0.09697,-0.193927 -0.226247,-0.420175 -0.32321,-0.614102 0.420173,-0.517136 0.872669,-1.066595 1.325164,-1.616054 z m -8.629731,2.682651 c 0.581779,-0.614101 1.292844,-0.904991 2.100871,-0.87267 0.840348,-0.03232 1.519091,0.258569 2.133192,0.87267 0.581779,0.581779 0.872669,1.292843 0.872669,2.10087 0,0.840348 -0.29089,1.519092 -0.872669,2.133192 -0.614101,0.58178 -1.292844,0.87267 -2.133192,0.87267 -0.808027,0 -1.519092,-0.29089 -2.100871,-0.87267 -0.581779,-0.6141 -0.872669,-1.292844 -0.872669,-2.133192 0,-0.808027 0.29089,-1.519091 0.872669,-2.10087 z"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>
|
3
|
+
<path class="normal" transform="translate(-2,-2)" style="fill:#000000;" d="m 21.561187,10.184155 c 0,-0.03232 0,-0.03232 0,-0.03232 C 21.076371,9.5054099 20.494591,8.9559512 19.815848,8.4388133 l 0,0.032323 C 19.266389,8.891311 18.71693,9.3438064 18.199794,9.7963017 17.973545,9.6670167 17.779619,9.5700535 17.585693,9.4730903 17.327124,9.3438064 17.068556,9.2145213 16.777665,9.1498799 16.680695,9.1175569 16.583739,9.0852339 16.486775,9.0852339 16.422135,8.3741695 16.357491,7.6631063 16.260528,6.952042 15.937318,6.887396 15.614106,6.887396 15.258574,6.855073 c -0.09697,0 -0.193926,0 -0.258569,0 -0.09697,0 -0.193925,0 -0.258568,0 -0.323211,0.032323 -0.614101,0.032323 -0.90499,0.096969 -0.09697,0.6787425 -0.161606,1.3898068 -0.193927,2.1008712 -0.129284,0 -0.226248,0.032323 -0.355532,0.064646 -0.03232,0 -0.06465,0 -0.09697,0.032323 -0.258568,0.064646 -0.517136,0.1939264 -0.775704,0.3232103 -0.226249,0.096969 -0.420175,0.1939264 -0.614102,0.3232114 -0.549458,-0.4524953 -1.066595,-0.87267 -1.616054,-1.3251654 0,0 0,0 -0.03232,-0.032323 C 10.022552,8.5357845 9.8932693,8.6327419 9.7963053,8.7297051 9.5700583,8.8913109 9.3761314,9.0852373 9.2145262,9.2791637 8.9236366,9.5377327 8.6973883,9.8609431 8.4388194,10.184155 c 0,0 0,0 0.032323,0 0.4201747,0.549459 0.87267,1.066596 1.325166,1.616054 -0.129285,0.193927 -0.258569,0.420175 -0.355533,0.614101 -0.129285,0.258569 -0.226248,0.549459 -0.2908894,0.808028 -0.064646,0.129284 -0.096969,0.258568 -0.096969,0.355531 -0.7110644,0.06465 -1.4221288,0.129285 -2.1008713,0.226248 -0.064646,0.323211 -0.096969,0.646422 -0.096969,1.001954 0,0.484816 0.032323,0.969632 0.1292839,1.422128 0.6787437,0.06465 1.3574862,0.129284 2.0685505,0.193926 0,0.129284 0.032323,0.258569 0.096969,0.355532 0.064646,0.29089 0.1616049,0.549459 0.2908899,0.840349 0.129284,0.226247 0.2262471,0.452495 0.387853,0.646421 -0.452496,0.549459 -0.9049912,1.066596 -1.3251647,1.616054 0.484816,0.678744 1.0665957,1.260523 1.7453387,1.74534 l 0,-0.03232 c 0.517137,-0.420175 1.066596,-0.87267 1.583733,-1.325166 l 0.03232,0 c 0.161605,0.09697 0.355532,0.193928 0.517136,0.290891 0.290891,0.129284 0.614101,0.258568 0.904991,0.32321 0.129284,0.03232 0.226248,0.06465 0.32321,0.09697 0.06465,0.678743 0.129285,1.389807 0.226249,2.100871 0.290889,0.03232 0.581779,0.06465 0.90499,0.06465 0.06465,0 0.258568,0 0.484817,0 0.355532,0 0.711064,-0.03232 1.066595,-0.09697 0.06465,-0.678742 0.129285,-1.389807 0.193926,-2.10087 0.09697,-0.03232 0.193927,-0.06465 0.29089,-0.09697 l 0,0 c 0.290891,-0.06464 0.549459,-0.161605 0.808028,-0.290889 0.226248,-0.09697 0.452495,-0.226248 0.678743,-0.387854 0,0.03232 0,0.03232 0.03232,0.03232 0.517137,0.452495 1.066596,0.904989 1.616054,1.325164 0.09697,-0.06465 0.193927,-0.129284 0.323212,-0.226247 0.193926,-0.161606 0.387852,-0.355532 0.549458,-0.549459 0.29089,-0.290889 0.58178,-0.614101 0.840348,-0.969633 -0.452495,-0.549459 -0.90499,-1.098917 -1.357486,-1.616054 0,-0.03232 0,-0.03232 0,-0.03232 0.09697,-0.161605 0.193927,-0.355531 0.29089,-0.549457 0.09696,-0.258569 0.226248,-0.517138 0.29089,-0.775707 0,-0.03232 0,-0.06465 0.03232,-0.06465 0,-0.129285 0.03232,-0.226248 0.06465,-0.290891 0.711065,-0.06465 1.422129,-0.129284 2.100872,-0.193926 0.06464,-0.323211 0.06464,-0.646422 0.09697,-0.969632 0,-0.09697 0,-0.193927 0,-0.29089 0,-0.06465 0,-0.161606 0,-0.258569 -0.03232,-0.323212 -0.03232,-0.646422 -0.09697,-0.969633 -0.678743,-0.06465 -1.389807,-0.129284 -2.100872,-0.193927 -0.03232,-0.09697 -0.06465,-0.193926 -0.06465,-0.290889 -0.09697,-0.29089 -0.193927,-0.58178 -0.323212,-0.872669 -0.09697,-0.193927 -0.226247,-0.420175 -0.32321,-0.614102 0.420173,-0.517136 0.872669,-1.066595 1.325164,-1.616054 z m -8.629731,2.682651 c 0.581779,-0.614101 1.292844,-0.904991 2.100871,-0.87267 0.840348,-0.03232 1.519091,0.258569 2.133192,0.87267 0.581779,0.581779 0.872669,1.292843 0.872669,2.10087 0,0.840348 -0.29089,1.519092 -0.872669,2.133192 -0.614101,0.58178 -1.292844,0.87267 -2.133192,0.87267 -0.808027,0 -1.519092,-0.29089 -2.100871,-0.87267 -0.581779,-0.6141 -0.872669,-1.292844 -0.872669,-2.133192 0,-0.808027 0.29089,-1.519091 0.872669,-2.10087 z"/>
|
4
|
+
<circle cx="28" cy="27" r="9" class="rfill stand"/>
|
5
|
+
<text transform="translate(28,31)" class="small">s</text>
|
6
|
+
</svg>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>
|
3
|
+
<path class="normal" style="fill:#000000;" d="m 21.561187,10.184155 c 0,-0.03232 0,-0.03232 0,-0.03232 C 21.076371,9.5054099 20.494591,8.9559512 19.815848,8.4388133 l 0,0.032323 C 19.266389,8.891311 18.71693,9.3438064 18.199794,9.7963017 17.973545,9.6670167 17.779619,9.5700535 17.585693,9.4730903 17.327124,9.3438064 17.068556,9.2145213 16.777665,9.1498799 16.680695,9.1175569 16.583739,9.0852339 16.486775,9.0852339 16.422135,8.3741695 16.357491,7.6631063 16.260528,6.952042 15.937318,6.887396 15.614106,6.887396 15.258574,6.855073 c -0.09697,0 -0.193926,0 -0.258569,0 -0.09697,0 -0.193925,0 -0.258568,0 -0.323211,0.032323 -0.614101,0.032323 -0.90499,0.096969 -0.09697,0.6787425 -0.161606,1.3898068 -0.193927,2.1008712 -0.129284,0 -0.226248,0.032323 -0.355532,0.064646 -0.03232,0 -0.06465,0 -0.09697,0.032323 -0.258568,0.064646 -0.517136,0.1939264 -0.775704,0.3232103 -0.226249,0.096969 -0.420175,0.1939264 -0.614102,0.3232114 -0.549458,-0.4524953 -1.066595,-0.87267 -1.616054,-1.3251654 0,0 0,0 -0.03232,-0.032323 C 10.022552,8.5357845 9.8932693,8.6327419 9.7963053,8.7297051 9.5700583,8.8913109 9.3761314,9.0852373 9.2145262,9.2791637 8.9236366,9.5377327 8.6973883,9.8609431 8.4388194,10.184155 c 0,0 0,0 0.032323,0 0.4201747,0.549459 0.87267,1.066596 1.325166,1.616054 -0.129285,0.193927 -0.258569,0.420175 -0.355533,0.614101 -0.129285,0.258569 -0.226248,0.549459 -0.2908894,0.808028 -0.064646,0.129284 -0.096969,0.258568 -0.096969,0.355531 -0.7110644,0.06465 -1.4221288,0.129285 -2.1008713,0.226248 -0.064646,0.323211 -0.096969,0.646422 -0.096969,1.001954 0,0.484816 0.032323,0.969632 0.1292839,1.422128 0.6787437,0.06465 1.3574862,0.129284 2.0685505,0.193926 0,0.129284 0.032323,0.258569 0.096969,0.355532 0.064646,0.29089 0.1616049,0.549459 0.2908899,0.840349 0.129284,0.226247 0.2262471,0.452495 0.387853,0.646421 -0.452496,0.549459 -0.9049912,1.066596 -1.3251647,1.616054 0.484816,0.678744 1.0665957,1.260523 1.7453387,1.74534 l 0,-0.03232 c 0.517137,-0.420175 1.066596,-0.87267 1.583733,-1.325166 l 0.03232,0 c 0.161605,0.09697 0.355532,0.193928 0.517136,0.290891 0.290891,0.129284 0.614101,0.258568 0.904991,0.32321 0.129284,0.03232 0.226248,0.06465 0.32321,0.09697 0.06465,0.678743 0.129285,1.389807 0.226249,2.100871 0.290889,0.03232 0.581779,0.06465 0.90499,0.06465 0.06465,0 0.258568,0 0.484817,0 0.355532,0 0.711064,-0.03232 1.066595,-0.09697 0.06465,-0.678742 0.129285,-1.389807 0.193926,-2.10087 0.09697,-0.03232 0.193927,-0.06465 0.29089,-0.09697 l 0,0 c 0.290891,-0.06464 0.549459,-0.161605 0.808028,-0.290889 0.226248,-0.09697 0.452495,-0.226248 0.678743,-0.387854 0,0.03232 0,0.03232 0.03232,0.03232 0.517137,0.452495 1.066596,0.904989 1.616054,1.325164 0.09697,-0.06465 0.193927,-0.129284 0.323212,-0.226247 0.193926,-0.161606 0.387852,-0.355532 0.549458,-0.549459 0.29089,-0.290889 0.58178,-0.614101 0.840348,-0.969633 -0.452495,-0.549459 -0.90499,-1.098917 -1.357486,-1.616054 0,-0.03232 0,-0.03232 0,-0.03232 0.09697,-0.161605 0.193927,-0.355531 0.29089,-0.549457 0.09696,-0.258569 0.226248,-0.517138 0.29089,-0.775707 0,-0.03232 0,-0.06465 0.03232,-0.06465 0,-0.129285 0.03232,-0.226248 0.06465,-0.290891 0.711065,-0.06465 1.422129,-0.129284 2.100872,-0.193926 0.06464,-0.323211 0.06464,-0.646422 0.09697,-0.969632 0,-0.09697 0,-0.193927 0,-0.29089 0,-0.06465 0,-0.161606 0,-0.258569 -0.03232,-0.323212 -0.03232,-0.646422 -0.09697,-0.969633 -0.678743,-0.06465 -1.389807,-0.129284 -2.100872,-0.193927 -0.03232,-0.09697 -0.06465,-0.193926 -0.06465,-0.290889 -0.09697,-0.29089 -0.193927,-0.58178 -0.323212,-0.872669 -0.09697,-0.193927 -0.226247,-0.420175 -0.32321,-0.614102 0.420173,-0.517136 0.872669,-1.066595 1.325164,-1.616054 z m -8.629731,2.682651 c 0.581779,-0.614101 1.292844,-0.904991 2.100871,-0.87267 0.840348,-0.03232 1.519091,0.258569 2.133192,0.87267 0.581779,0.581779 0.872669,1.292843 0.872669,2.10087 0,0.840348 -0.29089,1.519092 -0.872669,2.133192 -0.614101,0.58178 -1.292844,0.87267 -2.133192,0.87267 -0.808027,0 -1.519092,-0.29089 -2.100871,-0.87267 -0.581779,-0.6141 -0.872669,-1.292844 -0.872669,-2.133192 0,-0.808027 0.29089,-1.519091 0.872669,-2.10087 z"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>
|
3
|
+
<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
|
4
|
+
<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>
|
3
|
+
<g
|
4
|
+
transform="matrix(0.04552902,0,0,0.04846124,1.0658792,0.450243)"
|
5
|
+
style="clip-rule:evenodd;fill-rule:evenodd;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision">
|
6
|
+
<path
|
7
|
+
style="fill:#1f1a17"
|
8
|
+
id="_78231184"
|
9
|
+
class="fil0"
|
10
|
+
d="m 374.505,99.6 69.3495,49.524 c 10.4685,3.9915 20.6985,10.272 27.3315,19.5135 L 546.498,223.242 514.6305,386.685 205.5045,521.476 83.8825,306.692 53.5015,150.133 110.854,135.61 c 12.921,-25.455 73.8345,-29.0865 88.506,-21.435 l 60.582,-14.055 c 15.495,-30.7545 98.0265,-26.664 114.563,-0.5205 z" />
|
11
|
+
<polygon
|
12
|
+
style="fill:#7b0101"
|
13
|
+
id="_78794960"
|
14
|
+
class="fil1"
|
15
|
+
points="95.2905,302.486 210.62,506.156 193.382,348.102 67.4415,158.973 " />
|
16
|
+
<path
|
17
|
+
style="fill:#7b0101"
|
18
|
+
id="_77500208"
|
19
|
+
class="fil1"
|
20
|
+
d="m 118.309,161.991 2.673,17.4015 -1.8795,-0.732 c 4.305,6.4305 2.7105,10.9575 11.6325,15.354 4.9875,2.4585 13.284,6.87 20.1165,6.87 l 2.5785,-0.024 -3.393,-27.645 -2.3595,-0.906 c -13.272,0 -23.859,-7.827 -30.1635,-15.081 l 0.795,4.7625 z" />
|
21
|
+
<path
|
22
|
+
style="fill:#7b0101"
|
23
|
+
id="_77621680"
|
24
|
+
class="fil1"
|
25
|
+
d="m 350.084,207.236 c 0.2715,12.2055 16.5345,26.1825 26.1945,26.9865 l 1.587,-29.3685 c -4.749,-1.107 -11.1045,-4.755 -14.754,-7.4715 -5.217,-3.8835 -7.944,-8.976 -10.6455,-10.785 l -0.795,-3.969 -1.587,24.6075 z" />
|
26
|
+
<path
|
27
|
+
style="fill:#7b0101"
|
28
|
+
id="_78135248"
|
29
|
+
class="fil1"
|
30
|
+
d="m 269.121,135.005 -0.7935,-11.907 0.7935,11.907 0.7935,6.3495 c 7.353,10.9785 8.8725,9.435 20.6385,15.081 l 0,-26.988 c -2.745,-0.639 -10.5405,-4.1415 -12.5775,-5.679 -4.518,-3.408 -6.8835,-7.164 -8.8545,-8.6085 l 0,19.845 z" />
|
31
|
+
<path
|
32
|
+
style="fill:#7b0101"
|
33
|
+
id="_76234600"
|
34
|
+
class="fil1"
|
35
|
+
d="m 183.396,246.923 1.5885,15.081 0,4.7625 c 1.632,7.008 7.8645,17.553 14.2875,19.05 l -1.5885,-29.3685 -0.7935,-0.7935 c -10.4715,-5.541 -8.565,-7.641 -14.2875,-15.876 l 0.7935,7.1445 z" />
|
36
|
+
<polygon
|
37
|
+
style="fill:#ad0101"
|
38
|
+
id="_77301376"
|
39
|
+
class="fil2"
|
40
|
+
points="210.62,506.156 504.058,378.204 533.255,228.462 193.382,348.102 " />
|
41
|
+
<path
|
42
|
+
style="fill:#ad0101"
|
43
|
+
id="_78258624"
|
44
|
+
class="fil2"
|
45
|
+
d="m 197.683,256.447 -0.7935,-0.7935 0.7935,0.7935 1.5885,29.3685 c 4.113,5.616 28.368,11.907 38.8935,11.907 l 3.174,0 c 28.65,0 58.9095,-11.8095 64.2945,-34.926 L 304.84,235.81 c -1.6395,2.358 -1.8465,5.211 -3.7395,7.3725 -2.091,2.388 -3.054,3.3315 -5.1885,5.925 -1.0215,1.242 -11.541,7.767 -13.5375,8.6865 -8.9655,4.1265 -23.538,8.178 -36.273,8.178 l -10.3185,0 c -15.7245,0 -27.816,-4.083 -38.1,-9.525 z" />
|
46
|
+
<path
|
47
|
+
style="fill:#ad0101"
|
48
|
+
id="_77500776"
|
49
|
+
class="fil2"
|
50
|
+
d="m 462.003,212.791 0.7935,-3.1755 0,-3.1755 0.7935,-3.174 0,-11.1135 c -4.746,3.4785 -6.1455,9.3525 -15.153,12.6285 -5.406,1.9665 -15.558,5.409 -22.1235,5.658 -17.2155,0.654 -35.9805,0.396 -48.4485,-5.586 l -1.587,29.3685 c 5.145,4.473 26.463,6.351 37.305,6.351 l 3.969,0 c 20.5905,0 36.0075,-9.6165 44.451,-22.2255 l 0,-2.382 0,-3.174 z m 1.587,-11.907 0.7935,-3.174 -0.7935,3.174 z" />
|
51
|
+
<path
|
52
|
+
style="fill:#ad0101"
|
53
|
+
id="_78207744"
|
54
|
+
class="fil2"
|
55
|
+
d="m 223.084,147.703 c -8.1255,11.694 -5.949,11.2725 -19.839,18.2625 -5.658,2.847 -21.5415,7.137 -30.168,7.137 l -18.2565,0 -7.143,-0.7935 2.3595,0.906 3.393,27.645 -2.5785,0.024 21.4185,1.815 0.807,-0.2265 c 6.5055,0 25.9005,-5.421 31.218,-7.677 11.184,-4.746 14.217,-8.5275 20.376,-17.724 l 0.7935,-7.143 -1.0185,-1.026 -0.5685,-6.912 -0.7935,-14.2875 z" />
|
56
|
+
<path
|
57
|
+
style="fill:#ad0101"
|
58
|
+
id="_47303792"
|
59
|
+
class="fil2"
|
60
|
+
d="m 290.553,129.447 0,26.988 25.3995,3.969 c 8.493,1.3335 26.3595,-2.73 31.8645,-4.6485 11.1045,-3.8655 13.932,-8.121 18.936,-17.577 l -0.6255,-11.826 0.6255,-11.9865 c -6.033,8.6805 -4.4895,7.8585 -14.79,12.993 -3.1485,1.569 -17.6055,5.2635 -21.723,5.2635 l -24.606,0 c -2.124,0 -12.2625,-2.5185 -15.081,-3.1755 z" />
|
61
|
+
<path
|
62
|
+
style="fill:#ff0101"
|
63
|
+
id="_75510104"
|
64
|
+
class="fil3"
|
65
|
+
d="m 305.634,262.797 c -5.385,23.1165 -35.6445,34.926 -64.2945,34.926 l -3.174,0 c -10.5255,0 -34.7805,-6.291 -38.8935,-11.907 -6.423,-1.497 -12.6555,-12.042 -14.2875,-19.05 l -0.795,-0.7935 -0.7935,-3.969 -1.587,-15.081 -0.7935,-8.7315 0,-3.1755 c 0,-24.243 36.0525,-38.1 61.9125,-38.1 l 10.3185,0 c 18.2655,0 34.101,6.7935 44.2455,15.2865 6.048,5.0625 8.958,10.365 8.9355,21.2265 -0.012,6.333 1.665,25.494 -0.7935,29.3685 z M 182.602,239.778 c 5.7225,8.235 3.816,10.335 14.2875,15.876 l 0.7935,0.7935 c 10.284,5.442 22.3755,9.525 38.1,9.525 l 10.3185,0 c 12.735,0 27.3075,-4.0515 36.273,-8.178 1.9965,-0.9195 12.516,-7.4445 13.5375,-8.6865 2.1345,-2.5935 3.0975,-3.537 5.1885,-5.925 1.893,-2.1615 2.1,-5.0145 3.7395,-7.3725 2.3505,-28.2585 -30.4365,-38.1 -59.532,-38.1 l -6.3495,0 c -10.281,0 -31.2645,7.4565 -38.4285,11.577 -10.8315,6.234 -19.1985,15.231 -17.928,30.4905 z m 169.863,-62.706 -0.795,3.1755 0,2.3805 0.795,3.969 c 2.7015,1.809 5.4285,6.9015 10.6455,10.785 3.6495,2.7165 10.005,6.3645 14.754,7.4715 12.468,5.982 31.233,6.24 48.4485,5.586 6.5655,-0.249 16.7175,-3.6915 22.1235,-5.658 9.0075,-3.276 10.407,-9.15 15.153,-12.6285 0,-8.7315 1.5165,-12.2775 -3.3645,-18.066 -3.2385,-3.84 -8.0805,-7.7955 -12.765,-10.254 -8.151,-4.2765 -25.0245,-9.78 -37.0515,-9.78 l -13.494,0 c -8.9595,0 -20.9745,3.1035 -27.699,5.6385 -10.2285,3.8565 -12.324,8.1555 -16.7505,17.3805 z m 16.668,-66.6645 -1.587,15.8655 -0.246,8.8875 -0.5475,3.018 c -5.004,9.456 -7.8315,13.7115 -18.936,17.577 -5.505,1.9185 -23.3715,5.982 -31.8645,4.6485 l -25.3995,-3.969 c -11.766,-5.646 -13.2855,-4.1025 -20.6385,-15.081 l -0.7935,-6.3495 -0.7935,-11.907 -0.1725,-12.447 -63.3705,14.589 c 10.314,6.0015 16.3005,8.553 19.0935,19.29 l 0.7935,5.556 0.7935,12.699 0,5.556 0,1.5885 -0.7935,7.143 c -6.159,9.1965 -9.192,12.978 -20.376,17.724 -5.3175,2.256 -24.7125,7.677 -31.218,7.677 l -0.807,0.2265 -21.4185,-1.815 c -6.8325,0 -15.129,-4.4115 -20.1165,-6.87 -8.922,-4.3965 -7.3275,-8.9235 -11.6325,-15.354 l -0.7935,-5.5575 -1.5885,-11.112 c -0.2715,-3.261 -0.7935,-1.773 -0.7935,-4.7625 l 0,-3.1755 0,-3.9675 0.339,-3.522 -48.825,12.4095 125.94,189.129 339.873,-119.64 -67.2795,-48.78 -1.5915,18.0285 -0.7935,3.174 0,2.382 -0.7935,3.174 0,3.1755 -0.7935,3.1755 0,3.174 0,2.382 c -8.4435,12.609 -23.8605,22.2255 -44.451,22.2255 l -3.969,0 c -10.842,0 -32.16,-1.878 -37.305,-6.351 -9.66,-0.804 -25.923,-14.781 -26.1945,-26.9865 -2.247,-3.5415 0,-21 0,-26.988 l 0.7935,-2.382 c 3.999,-17.166 25.2825,-25.3995 46.038,-25.3995 l 11.16,-0.291 c 8.52,0.5745 17.0385,2.1435 25.5585,4.392 l -64.5,-46.1595 z m -248.9,32.6085 c -0.9915,1.4445 -1.8915,3.5205 -2.7195,7.0695 l 0,7.143 c 6.3045,7.254 16.8915,15.081 30.1635,15.081 l 7.143,0.7935 18.2565,0 c 8.6265,0 24.51,-4.29 30.168,-7.137 13.89,-6.99 11.7135,-6.5685 19.839,-18.2625 0,-7.029 -4.1145,-11.6985 -9.897,-15.39 -9.597,-6.1245 -26.8815,-9.5985 -44.2905,-9.009 -19.731,0.669 -39.6225,6.555 -48.663,19.7115 z" />
|
66
|
+
<path
|
67
|
+
style="fill:#ff0101"
|
68
|
+
id="_75139072"
|
69
|
+
class="fil3"
|
70
|
+
d="m 269.121,109.604 0,5.556 c 1.971,1.4445 4.3365,5.2005 8.8545,8.6085 2.037,1.5375 9.8325,5.04 12.5775,5.679 2.8185,0.657 12.957,3.1755 15.081,3.1755 l 24.606,0 c 4.1175,0 18.5745,-3.6945 21.723,-5.2635 10.3005,-5.1345 8.757,-4.3125 14.79,-12.993 0,-4.7595 -1.5105,-8.007 -3.855,-10.434 -9.0075,-9.3225 -27.6435,-12.966 -39.918,-13.425 -13.8345,-0.516 -50.6175,-0.0735 -53.859,19.0965 z" />
|
71
|
+
</g>
|
72
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>
|
3
|
+
<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
|
4
|
+
<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>
|
3
|
+
<text transform="translate(12,25)" class="normallarge">+</text>
|
4
|
+
<text transform="translate(18,16)" class="small">=</text>
|
5
|
+
</svg>
|
6
|
+
|
@@ -0,0 +1,742 @@
|
|
1
|
+
function WFAdaptorManifestation(adaptor) {
|
2
|
+
this.adaptor = adaptor;
|
3
|
+
this.elements = elements = {};
|
4
|
+
this.events = events = {};
|
5
|
+
|
6
|
+
this.noarrow = noarrow = ['alternative', 'otherwise'];
|
7
|
+
this.description_extract = function(rng) {
|
8
|
+
return new RelaxNGui(rng,null).example();
|
9
|
+
}
|
10
|
+
|
11
|
+
// Events
|
12
|
+
this.events.mousedown = function(svgid, e, child, sibling) { // {{{
|
13
|
+
if(e.button == 0) { // left-click
|
14
|
+
} else if(e.button == 1) { // middle-click
|
15
|
+
} else if(e.button == 2) { // right-click
|
16
|
+
var xml_node = adaptor.description.get_node_by_svg_id(svgid);
|
17
|
+
var group = null;
|
18
|
+
var menu = {};
|
19
|
+
|
20
|
+
if(child) {
|
21
|
+
group = elements[xml_node.get(0).tagName].permissible_children(xml_node);
|
22
|
+
if(group.length > 0) menu['Insert into'] = group;
|
23
|
+
}
|
24
|
+
if(sibling) {
|
25
|
+
group = elements[xml_node.parent().get(0).tagName].permissible_children(xml_node);
|
26
|
+
if(group.length > 0) menu['Insert after'] = group;
|
27
|
+
}
|
28
|
+
|
29
|
+
if(xml_node.get(0).tagName != 'description' && !elements[xml_node.get(0).tagName].neverdelete)
|
30
|
+
menu['Remove Element'] = [{'label': 'Actual Element',
|
31
|
+
'function_call': adaptor.description.remove,
|
32
|
+
'menu_icon': function() {
|
33
|
+
var icon = elements[xml_node.get(0).tagName].illustrator.svg();
|
34
|
+
icon.children('.rfill').css({'fill':'red','fill-opacity':'0.5'});
|
35
|
+
return icon;
|
36
|
+
},
|
37
|
+
'params': [null, xml_node]}];
|
38
|
+
if($('> manipulate', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
|
39
|
+
menu['Remove Element'].push({'label': 'Remove Scripts',
|
40
|
+
'function_call': adaptor.description.remove,
|
41
|
+
'menu_icon': function() {
|
42
|
+
var icon = elements.callmanipulate.illustrator.svg();
|
43
|
+
icon.children('.rfill:last').css({'fill':'red','fill-opacity':'0.5'});
|
44
|
+
return icon;
|
45
|
+
},
|
46
|
+
'params': ['> manipulate', xml_node]});
|
47
|
+
}
|
48
|
+
new CustomMenu(e).contextmenu(menu);
|
49
|
+
}
|
50
|
+
return false;
|
51
|
+
} // }}}
|
52
|
+
this.events.click = function(svgid, e) { // {{{
|
53
|
+
if (adaptor.description.get_node_by_svg_id(svgid).length == 0) {
|
54
|
+
return;
|
55
|
+
}
|
56
|
+
|
57
|
+
if ($('#state').text() != 'finished')
|
58
|
+
$('#main ui-behind button').show();
|
59
|
+
if ($('#main ui-behind button').hasClass('highlight')) {
|
60
|
+
var check = confirm("Discard changes?");
|
61
|
+
if (check)
|
62
|
+
$('#main ui-behind button').removeClass('highlight');
|
63
|
+
else
|
64
|
+
return;
|
65
|
+
}
|
66
|
+
|
67
|
+
var visid = 'details';
|
68
|
+
var tab = $('#dat_' + visid);
|
69
|
+
var node = adaptor.description.get_node_by_svg_id(svgid).get(0);
|
70
|
+
|
71
|
+
save[visid + '_target'] = { 'svgid': svgid, 'model': adaptor.description };
|
72
|
+
|
73
|
+
tab.empty();
|
74
|
+
$.ajax({
|
75
|
+
type: "GET",
|
76
|
+
url: adaptor.theme_dir + "rngs/" + node.nodeName + ".rng",
|
77
|
+
success: function(rng){
|
78
|
+
save[visid] = new RelaxNGui(rng,tab);
|
79
|
+
save[visid].content(node,adaptor.description.context_eval);
|
80
|
+
}
|
81
|
+
});
|
82
|
+
} // }}}
|
83
|
+
this.events.dblclick = function(svgid, e) { // {{{
|
84
|
+
} // }}}
|
85
|
+
this.events.mouseover = function(svgid, e) { // {{{
|
86
|
+
$('.tile[element-id = "' + svgid + '"]').css('display','block');
|
87
|
+
return false;
|
88
|
+
} // }}}
|
89
|
+
this.events.mouseout = function(svgid, e) { // {{{
|
90
|
+
$('.tile[element-id = "' + svgid + '"]').css('display','none');
|
91
|
+
return false;
|
92
|
+
} // }}}
|
93
|
+
this.events.dragstart = function (svgid, e) { //{{{
|
94
|
+
} //}}}
|
95
|
+
|
96
|
+
// Abstract Elements (they only have an illustrator)
|
97
|
+
this.elements.callmanipulate = { /*{{{*/
|
98
|
+
'illustrator': {//{{{
|
99
|
+
'type' : 'abstract',
|
100
|
+
'svg': adaptor.theme_dir + 'symbols/callmanipulate.svg'
|
101
|
+
},//}}}
|
102
|
+
}; /*}}}*/
|
103
|
+
this.elements.choose_inclusive = { /*{{{*/
|
104
|
+
'illustrator': {//{{{
|
105
|
+
'type' : 'abstract',
|
106
|
+
'svg': adaptor.theme_dir + 'symbols/choose_inclusive.svg'
|
107
|
+
},//}}}
|
108
|
+
}; /*}}}*/
|
109
|
+
this.elements.choose_exclusive = { /*{{{*/
|
110
|
+
'illustrator': {//{{{
|
111
|
+
'type' : 'abstract',
|
112
|
+
'svg': adaptor.theme_dir + 'symbols/choose_exclusive.svg'
|
113
|
+
},//}}}
|
114
|
+
}; /*}}}*/
|
115
|
+
this.elements.callassline = { /*{{{*/
|
116
|
+
'illustrator': {//{{{
|
117
|
+
'type' : 'abstract',
|
118
|
+
'svg': adaptor.theme_dir + 'symbols/lego.svg'
|
119
|
+
},//}}}
|
120
|
+
}; /*}}}*/
|
121
|
+
|
122
|
+
// Primitive Elements
|
123
|
+
this.elements.call = { /*{{{*/
|
124
|
+
'illustrator': {//{{{
|
125
|
+
'type' : 'primitive',
|
126
|
+
'endnodes' : 'this',
|
127
|
+
'resolve_symbol' : function(node) {
|
128
|
+
if($(node).attr('endpoint') == 'instantiation') {
|
129
|
+
return 'callinstantiation';
|
130
|
+
} else if($(node).attr('endpoint') == 'assline') {
|
131
|
+
return 'callassline';
|
132
|
+
} else if($('parameters > service', node).length > 0) {
|
133
|
+
return 'callinjection';
|
134
|
+
} else if($('finalize,update', node).length > 0) {
|
135
|
+
return 'callmanipulate';
|
136
|
+
} else {
|
137
|
+
return'call';
|
138
|
+
}
|
139
|
+
},
|
140
|
+
'svg': adaptor.theme_dir + 'symbols/call.svg'
|
141
|
+
},//}}}
|
142
|
+
'description': '<call id="###" endpoint="" xmlns="http://cpee.org/ns/description/1.0"><parameters xmlns="http://cpee.org/ns/description/1.0"><label>""</label><method>:post</method><parameters/></parameters></call>',
|
143
|
+
'permissible_children': function(node) { //{{{
|
144
|
+
if(node.children('finalize,update').length < 1)
|
145
|
+
return [
|
146
|
+
{'label': 'Scripts',
|
147
|
+
'function_call': adaptor.description.insert_last_into,
|
148
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
149
|
+
'params': [adaptor.description.elements.scripts, node]}
|
150
|
+
];
|
151
|
+
return [];
|
152
|
+
}, //}}}
|
153
|
+
'adaptor' : {//{{{
|
154
|
+
'mousedown': function (node, e) { events.mousedown(node,e,true, true); },
|
155
|
+
'click': events.click,
|
156
|
+
'dragstart': events.dragstart,
|
157
|
+
}//}}}
|
158
|
+
}; /*}}}*/
|
159
|
+
this.elements.scripts = { /*{{{*/
|
160
|
+
'illustrator': {//{{{
|
161
|
+
'type' : 'primitive',
|
162
|
+
'endnodes' : 'this',
|
163
|
+
'svg': adaptor.theme_dir + 'symbols/scripts.svg'
|
164
|
+
},//}}}
|
165
|
+
'description': ['<finalize xmlns="http://cpee.org/ns/description/1.0"/>','<update xmlns="http://cpee.org/ns/description/1.0"/>'],
|
166
|
+
'permissible_children': function(node) { //{{{
|
167
|
+
return [];
|
168
|
+
}, //}}}
|
169
|
+
'adaptor': { //{{{
|
170
|
+
'mousedown': function (node, e) { events.mousedown(node,e,false, true); },
|
171
|
+
'click': events.click,
|
172
|
+
} //}}}
|
173
|
+
}; /*}}}*/
|
174
|
+
this.elements.manipulate = { /*{{{*/
|
175
|
+
'illustrator': {//{{{
|
176
|
+
'type' : 'primitive',
|
177
|
+
'endnodes' : 'this',
|
178
|
+
'svg': adaptor.theme_dir + 'symbols/manipulate.svg'
|
179
|
+
},//}}}
|
180
|
+
'description': '<manipulate id="###" xmlns="http://cpee.org/ns/description/1.0"/>',
|
181
|
+
'permissible_children': function(node) { //{{{
|
182
|
+
return [];
|
183
|
+
}, //}}}
|
184
|
+
'adaptor' : {//{{{
|
185
|
+
'mousedown': function (node, e) { events.mousedown(node,e,false, true); },
|
186
|
+
'click': events.click,
|
187
|
+
}//}}}
|
188
|
+
}; /*}}}*/
|
189
|
+
this.elements.escape = { /*{{{*/
|
190
|
+
'illustrator': {//{{{
|
191
|
+
'type' : 'primitive',
|
192
|
+
'endnodes' : 'this',
|
193
|
+
'svg': adaptor.theme_dir + 'symbols/escape.svg'
|
194
|
+
},//}}}
|
195
|
+
'description': '<escape xmlns="http://cpee.org/ns/description/1.0"/>',
|
196
|
+
'permissible_children': function(node) { //{{{
|
197
|
+
return [];
|
198
|
+
}, //}}}
|
199
|
+
'adaptor' : {//{{{
|
200
|
+
'mousedown': function (node, e) { events.mousedown(node,e,false, true); },
|
201
|
+
'click': events.click,
|
202
|
+
}//}}}
|
203
|
+
}; /*}}}*/
|
204
|
+
|
205
|
+
// Complex Elements
|
206
|
+
this.elements.choose = { /*{{{*/
|
207
|
+
'illustrator': {//{{{
|
208
|
+
'type' : 'complex',
|
209
|
+
'endnodes' : 'aggregate',
|
210
|
+
'closeblock': false,
|
211
|
+
'expansion' : function(node) {
|
212
|
+
return 'horizontal';
|
213
|
+
},
|
214
|
+
'resolve_symbol' : function(node) {
|
215
|
+
if($(node).attr('mode') == 'exclusive') {
|
216
|
+
return 'choose_exclusive';
|
217
|
+
} else {
|
218
|
+
return 'choose_inclusive';
|
219
|
+
}
|
220
|
+
},
|
221
|
+
'col_shift' : function(node) {
|
222
|
+
return false;
|
223
|
+
},
|
224
|
+
'svg': adaptor.theme_dir + 'symbols/choose.svg'
|
225
|
+
},//}}}
|
226
|
+
'description': '<choose mode="exclusive" xmlns="http://cpee.org/ns/description/1.0"><otherwise/></choose>',
|
227
|
+
'permissible_children': function(node) { //{{{
|
228
|
+
var func = null;
|
229
|
+
if(node.get(0).tagName == 'choose') { func = adaptor.description.insert_first_into }
|
230
|
+
else { func = adaptor.description.insert_after }
|
231
|
+
if(node.children('parallel_branch').length > 0) {
|
232
|
+
return [{'label': 'Parallel Branch',
|
233
|
+
'function_call': func,
|
234
|
+
'menu_icon': elements.parallel_branch.illustrator.svg,
|
235
|
+
'params': [adaptor.description.elements.parallel_branch, node]}];
|
236
|
+
}
|
237
|
+
var childs = [{'label': 'Alternative',
|
238
|
+
'function_call': func,
|
239
|
+
'menu_icon': elements.alternative.illustrator.svg,
|
240
|
+
'params': [adaptor.description.elements.alternative, node]}];
|
241
|
+
if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length)
|
242
|
+
childs.push({'label': 'Otherwise',
|
243
|
+
'function_call': func,
|
244
|
+
'menu_icon': elements.otherwise.illustrator.svg,
|
245
|
+
'params': [adaptor.description.elements.otherwise, node]});
|
246
|
+
if(node.parents('parallel').length > node.parents('parallel_branch').length)
|
247
|
+
childs.push({'label': 'Parallel Branch',
|
248
|
+
'function_call': func,
|
249
|
+
'menu_icon': elements.parallel_branch.illustrator.svg,
|
250
|
+
'params': [adaptor.description.elements.parallel_branch, node]});
|
251
|
+
return childs;
|
252
|
+
}, //}}}
|
253
|
+
'adaptor' : {//{{{
|
254
|
+
'mousedown': function (node, e) {
|
255
|
+
events.mousedown(node,e,true, true);
|
256
|
+
},
|
257
|
+
'click': events.click,
|
258
|
+
'dblclick': events.dblclick,
|
259
|
+
'mouseover': events.mouseover,
|
260
|
+
'mouseout': events.mouseout,
|
261
|
+
}//}}}
|
262
|
+
}; /*}}}*/
|
263
|
+
this.elements.otherwise = { /*{{{*/
|
264
|
+
'illustrator': {//{{{
|
265
|
+
'type' : 'complex',
|
266
|
+
'endnodes' : 'passthrough',
|
267
|
+
'closeblock': false,
|
268
|
+
'expansion' : function(node) {
|
269
|
+
return 'vertical';
|
270
|
+
},
|
271
|
+
'col_shift' : function(node) {
|
272
|
+
return false;
|
273
|
+
},
|
274
|
+
'svg': adaptor.theme_dir + 'symbols/otherwise.svg'
|
275
|
+
},//}}}
|
276
|
+
'description': '<otherwise xmlns="http://cpee.org/ns/description/1.0"/>',
|
277
|
+
'neverdelete': true,
|
278
|
+
'permissible_children': function(node) { //{{{
|
279
|
+
var func = null;
|
280
|
+
var childs = null;
|
281
|
+
if(node.get(0).tagName == 'otherwise') { func = adaptor.description.insert_first_into }
|
282
|
+
else { func = adaptor.description.insert_after }
|
283
|
+
return [
|
284
|
+
{'label': 'Service Call with Scripts',
|
285
|
+
'function_call': func,
|
286
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
287
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
288
|
+
{'label': 'Service Call',
|
289
|
+
'function_call': func,
|
290
|
+
'menu_icon': elements.call.illustrator.svg,
|
291
|
+
'params': [adaptor.description.elements.call, node]},
|
292
|
+
{'label': 'Script',
|
293
|
+
'function_call': func,
|
294
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
295
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
296
|
+
{'label': 'Parallel',
|
297
|
+
'function_call': func,
|
298
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
299
|
+
'params': [adaptor.description.elements.parallel, node]},
|
300
|
+
{'label': 'Choose',
|
301
|
+
'function_call': func,
|
302
|
+
'menu_icon': elements.choose.illustrator.svg,
|
303
|
+
'params': [adaptor.description.elements.choose, node]},
|
304
|
+
{'label': 'Loop',
|
305
|
+
'function_call': func,
|
306
|
+
'menu_icon': elements.loop.illustrator.svg,
|
307
|
+
'params': [adaptor.description.elements.loop, node]},
|
308
|
+
{'label': 'Critical',
|
309
|
+
'function_call': func,
|
310
|
+
'menu_icon': elements.critical.illustrator.svg,
|
311
|
+
'params': [adaptor.description.elements.critical, node]}
|
312
|
+
];
|
313
|
+
}, //}}}
|
314
|
+
'adaptor' : {//{{{
|
315
|
+
'mousedown': function (node, e) {
|
316
|
+
events.mousedown(node,e,true, false);
|
317
|
+
},
|
318
|
+
'click': events.click,
|
319
|
+
'dblclick': events.dblclick,
|
320
|
+
'mouseover': events.mouseover,
|
321
|
+
'mouseout': events.mouseout,
|
322
|
+
}//}}}
|
323
|
+
}; /*}}}*/
|
324
|
+
this.elements.alternative = { /*{{{*/
|
325
|
+
'illustrator': {//{{{
|
326
|
+
'type' : 'complex',
|
327
|
+
'endnodes' : 'passthrough',
|
328
|
+
'closeblock':false,
|
329
|
+
'expansion' : function(node) {
|
330
|
+
return 'vertical';
|
331
|
+
},
|
332
|
+
'col_shift' : function(node) {
|
333
|
+
return false;
|
334
|
+
},
|
335
|
+
'svg': adaptor.theme_dir + 'symbols/alternative.svg'
|
336
|
+
},//}}}
|
337
|
+
'description': '<alternative condition="" xmlns="http://cpee.org/ns/description/1.0"/>',
|
338
|
+
'permissible_children': function(node) { //{{{
|
339
|
+
if(node.get(0).tagName == 'alternative') { func = adaptor.description.insert_first_into }
|
340
|
+
else { func = adaptor.description.insert_after }
|
341
|
+
if(node.parents('parallel').length > node.parents('parallel_branch').length && node.get(0).tagName == 'alternative') {
|
342
|
+
return [{'label': 'Parallel Branch',
|
343
|
+
'function_call': func,
|
344
|
+
'menu_icon': elements.parallel_branch.illustrator.svg,
|
345
|
+
'params': [adaptor.description.elements.parallel_branch, node]}];
|
346
|
+
}
|
347
|
+
return [
|
348
|
+
{'label': 'Service Call with Scripts',
|
349
|
+
'function_call': func,
|
350
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
351
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
352
|
+
{'label': 'Service Call',
|
353
|
+
'function_call': func,
|
354
|
+
'menu_icon': elements.call.illustrator.svg,
|
355
|
+
'params': [adaptor.description.elements.call, node]},
|
356
|
+
{'label': 'Script',
|
357
|
+
'function_call': func,
|
358
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
359
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
360
|
+
{'label': 'Parallel',
|
361
|
+
'function_call': func,
|
362
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
363
|
+
'params': [adaptor.description.elements.parallel, node]},
|
364
|
+
{'label': 'Choose',
|
365
|
+
'function_call': func,
|
366
|
+
'menu_icon': elements.choose.illustrator.svg,
|
367
|
+
'params': [adaptor.description.elements.choose, node]},
|
368
|
+
{'label': 'Loop',
|
369
|
+
'function_call': func,
|
370
|
+
'menu_icon': elements.loop.illustrator.svg,
|
371
|
+
'params': [adaptor.description.elements.loop, node]},
|
372
|
+
{'label': 'Critical',
|
373
|
+
'function_call': func,
|
374
|
+
'menu_icon': elements.critical.illustrator.svg,
|
375
|
+
'params': [adaptor.description.elements.critical, node]}
|
376
|
+
];
|
377
|
+
}, //}}}
|
378
|
+
'adaptor' : {//{{{
|
379
|
+
'mousedown': function (node, e) {
|
380
|
+
events.mousedown(node,e,true, false);
|
381
|
+
},
|
382
|
+
'click': events.click,
|
383
|
+
'dblclick': events.dblclick,
|
384
|
+
'mouseover': events.mouseover,
|
385
|
+
'mouseout': events.mouseout,
|
386
|
+
}//}}}
|
387
|
+
}; /*}}}*/
|
388
|
+
this.elements.loop = { /*{{{*/
|
389
|
+
'illustrator': {//{{{
|
390
|
+
'type' : 'complex',
|
391
|
+
'endnodes' : 'this',
|
392
|
+
'closeblock' : true,
|
393
|
+
'expansion' : function(node) {
|
394
|
+
return 'vertical';
|
395
|
+
},
|
396
|
+
'col_shift' : function(node) {
|
397
|
+
return true;
|
398
|
+
},
|
399
|
+
'svg': adaptor.theme_dir + 'symbols/loop.svg'
|
400
|
+
},// }}}
|
401
|
+
'description': '<loop pre_test="" xmlns="http://cpee.org/ns/description/1.0"/>',
|
402
|
+
'permissible_children': function(node) { //{{{
|
403
|
+
var func = null;
|
404
|
+
if(node.get(0).tagName == 'loop') { func = adaptor.description.insert_first_into }
|
405
|
+
else { func = adaptor.description.insert_after }
|
406
|
+
var childs = [
|
407
|
+
{'label': 'Service Call with Scripts',
|
408
|
+
'function_call': func,
|
409
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
410
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
411
|
+
{'label': 'Service Call',
|
412
|
+
'function_call': func,
|
413
|
+
'menu_icon': elements.call.illustrator.svg,
|
414
|
+
'params': [adaptor.description.elements.call, node]},
|
415
|
+
{'label': 'Manipulate',
|
416
|
+
'function_call': func,
|
417
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
418
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
419
|
+
{'label': 'Choose',
|
420
|
+
'function_call': func,
|
421
|
+
'menu_icon': elements.choose.illustrator.svg,
|
422
|
+
'params': [adaptor.description.elements.choose, node]},
|
423
|
+
{'label': 'Loop',
|
424
|
+
'function_call': func,
|
425
|
+
'menu_icon': elements.loop.illustrator.svg,
|
426
|
+
'params': [adaptor.description.elements.loop, node]},
|
427
|
+
{'label': 'Critical',
|
428
|
+
'function_call': func,
|
429
|
+
'menu_icon': elements.critical.illustrator.svg,
|
430
|
+
'params': [adaptor.description.elements.critical, node]}
|
431
|
+
];
|
432
|
+
if(node.parent('parallel').length > node.parent('parallel_branch').length) {
|
433
|
+
childs.push({'label': 'Parallel Branch',
|
434
|
+
'function_call': func,
|
435
|
+
'menu_icon': elements.parallel_branch.illustrator.svg,
|
436
|
+
'params': [adaptor.description.elements.parallel_branch, node]}
|
437
|
+
);
|
438
|
+
} else {
|
439
|
+
childs.push({'label': 'Parallel',
|
440
|
+
'function_call': func,
|
441
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
442
|
+
'params': [adaptor.description.elements.parallel, node]}
|
443
|
+
);
|
444
|
+
}
|
445
|
+
return childs;
|
446
|
+
}, //}}}
|
447
|
+
'adaptor' : {//{{{
|
448
|
+
'mousedown': function (node, e) {
|
449
|
+
events.mousedown(node,e,true, true);
|
450
|
+
},
|
451
|
+
'click': events.click,
|
452
|
+
'dblclick': events.dblclick,
|
453
|
+
'mouseover': events.mouseover,
|
454
|
+
'mouseout': events.mouseout,
|
455
|
+
}//}}}
|
456
|
+
}; /*}}}*/
|
457
|
+
this.elements.parallel = { /*{{{*/
|
458
|
+
'illustrator': {//{{{
|
459
|
+
'type' : 'complex',
|
460
|
+
'endnodes' : 'this',
|
461
|
+
'closeblock' : false,
|
462
|
+
'border': true,
|
463
|
+
'expansion' : function(node) {
|
464
|
+
// check if any sibling other than 'parallel_branch' is present
|
465
|
+
if($(node).children(':not(parallel_branch)').length > 0) return 'vertical';
|
466
|
+
return 'horizontal';
|
467
|
+
},
|
468
|
+
'col_shift' : function(node) {
|
469
|
+
return true;
|
470
|
+
},
|
471
|
+
'svg': adaptor.theme_dir + 'symbols/parallel.svg'
|
472
|
+
},//}}}
|
473
|
+
'description': '<parallel xmlns="http://cpee.org/ns/description/1.0"/>',
|
474
|
+
'permissible_children': function(node) { //{{{
|
475
|
+
var childs = [
|
476
|
+
{'label': 'Service Call with Scripts',
|
477
|
+
'function_call': adaptor.description.insert_last_into,
|
478
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
479
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
480
|
+
{'label': 'Service Call',
|
481
|
+
'function_call': adaptor.description.insert_last_into,
|
482
|
+
'menu_icon': elements.call.illustrator.svg,
|
483
|
+
'params': [adaptor.description.elements.call, node]},
|
484
|
+
{'label': 'Manipulate',
|
485
|
+
'function_call': adaptor.description.insert_last_into,
|
486
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
487
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
488
|
+
{'label': 'Choose',
|
489
|
+
'function_call': adaptor.description.insert_last_into,
|
490
|
+
'menu_icon': elements.choose.illustrator.svg,
|
491
|
+
'params': [adaptor.description.elements.choose, node]},
|
492
|
+
{'label': 'Loop',
|
493
|
+
'function_call': adaptor.description.insert_last_into,
|
494
|
+
'menu_icon': elements.loop.illustrator.svg,
|
495
|
+
'params': [adaptor.description.elements.loop, node]},
|
496
|
+
{'label': 'Critical',
|
497
|
+
'function_call': adaptor.description.insert_last_into,
|
498
|
+
'menu_icon': elements.critical.illustrator.svg,
|
499
|
+
'params': [adaptor.description.elements.critical, node]},
|
500
|
+
{'label': 'Parallel Branch',
|
501
|
+
'function_call': adaptor.description.insert_last_into,
|
502
|
+
'menu_icon': elements.parallel_branch.illustrator.svg,
|
503
|
+
'params': [adaptor.description.elements.parallel_branch, node]}
|
504
|
+
];
|
505
|
+
if(node.get(0).tagName != 'parallel')
|
506
|
+
childs.push({'label': 'Parallel',
|
507
|
+
'function_call': adaptor.description.insert_last_into,
|
508
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
509
|
+
'params': [adaptor.description.elements.parallel, node]});
|
510
|
+
return childs;
|
511
|
+
}, //}}}
|
512
|
+
'adaptor' : {//{{{
|
513
|
+
'mousedown': function (node, e) {
|
514
|
+
events.mousedown(node,e,true, true);
|
515
|
+
},
|
516
|
+
'click': events.click,
|
517
|
+
'dblclick': events.dblclick,
|
518
|
+
'mouseover': events.mouseover,
|
519
|
+
'mouseout': events.mouseout,
|
520
|
+
}//}}}
|
521
|
+
}; /*}}}*/
|
522
|
+
this.elements.parallel_branch = { /*{{{*/
|
523
|
+
'illustrator': {//{{{
|
524
|
+
'type' : 'complex',
|
525
|
+
'endnodes' : 'this',
|
526
|
+
'closeblock' : false,
|
527
|
+
'expansion' : function(node) {
|
528
|
+
return 'vertical';
|
529
|
+
},
|
530
|
+
'col_shift' : function(node) {
|
531
|
+
if(node.parentNode.tagName == 'choose') return false;
|
532
|
+
if($(node).parents('parallel').first().children(':not(parallel_branch)').length > 0) return true;
|
533
|
+
return false;
|
534
|
+
},
|
535
|
+
'svg': adaptor.theme_dir + 'symbols/parallel_branch.svg'
|
536
|
+
},//}}}
|
537
|
+
'description': '<parallel_branch xmlns="http://cpee.org/ns/description/1.0"/>',
|
538
|
+
'permissible_children': function(node) { //{{{
|
539
|
+
var func = null;
|
540
|
+
var childs = null;
|
541
|
+
if(node.get(0).tagName == 'parallel_branch') { func = adaptor.description.insert_first_into }
|
542
|
+
else { func = adaptor.description.insert_after }
|
543
|
+
childs = [
|
544
|
+
{'label': 'Service Call with Scripts',
|
545
|
+
'function_call': func,
|
546
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
547
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
548
|
+
{'label': 'Service Call',
|
549
|
+
'function_call': func,
|
550
|
+
'menu_icon': elements.call.illustrator.svg,
|
551
|
+
'params': [adaptor.description.elements.call, node]},
|
552
|
+
{'label': 'Script',
|
553
|
+
'function_call': func,
|
554
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
555
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
556
|
+
{'label': 'Parallel',
|
557
|
+
'function_call': func,
|
558
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
559
|
+
'params': [adaptor.description.elements.parallel, node]},
|
560
|
+
{'label': 'Choose',
|
561
|
+
'function_call': func,
|
562
|
+
'menu_icon': elements.choose.illustrator.svg,
|
563
|
+
'params': [adaptor.description.elements.choose, node]},
|
564
|
+
{'label': 'Loop',
|
565
|
+
'function_call': func,
|
566
|
+
'menu_icon': elements.loop.illustrator.svg,
|
567
|
+
'params': [adaptor.description.elements.loop, node]},
|
568
|
+
{'label': 'Critical',
|
569
|
+
'function_call': func,
|
570
|
+
'menu_icon': elements.critical.illustrator.svg,
|
571
|
+
'params': [adaptor.description.elements.critical, node]},
|
572
|
+
];
|
573
|
+
if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
|
574
|
+
return [{'label': 'Alternative',
|
575
|
+
'function_call': func,
|
576
|
+
'menu_icon': elements.alternative.illustrator.svg,
|
577
|
+
'params': [adaptor.description.elements.alternative, node]}];
|
578
|
+
}
|
579
|
+
return childs;
|
580
|
+
}, //}}}
|
581
|
+
'adaptor' : {//{{{
|
582
|
+
'mousedown': function (node, e) {
|
583
|
+
events.mousedown(node,e,true, false);
|
584
|
+
},
|
585
|
+
'click': events.click,
|
586
|
+
'dblclick': events.dblclick,
|
587
|
+
'mouseover': events.mouseover,
|
588
|
+
'mouseout': events.mouseout,
|
589
|
+
}//}}}
|
590
|
+
}; /*}}}*/
|
591
|
+
this.elements.critical = { /*{{{*/
|
592
|
+
'illustrator': {//{{{
|
593
|
+
'type' : 'complex',
|
594
|
+
'endnodes' : 'aggregate',
|
595
|
+
'closeblock' : false,
|
596
|
+
'border': true,
|
597
|
+
'expansion' : function(node) {
|
598
|
+
return 'vertical';
|
599
|
+
},
|
600
|
+
'col_shift' : function(node) {
|
601
|
+
return true;
|
602
|
+
},
|
603
|
+
'svg': adaptor.theme_dir + 'symbols/critical.svg'
|
604
|
+
},//}}}
|
605
|
+
'description': '<critical sid="section" xmlns="http://cpee.org/ns/description/1.0"/>',
|
606
|
+
'permissible_children': function(node) { //{{{
|
607
|
+
var func = null;
|
608
|
+
if(node.get(0).tagName == 'critical') { func = adaptor.description.insert_first_into }
|
609
|
+
else { func = adaptor.description.insert_after }
|
610
|
+
return [
|
611
|
+
{'label': 'Service Call with Scripts',
|
612
|
+
'function_call': func,
|
613
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
614
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
615
|
+
{'label': 'Service Call',
|
616
|
+
'function_call': func,
|
617
|
+
'menu_icon': elements.call.illustrator.svg,
|
618
|
+
'params': [adaptor.description.elements.call, node]},
|
619
|
+
{'label': 'Script',
|
620
|
+
'function_call': func,
|
621
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
622
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
623
|
+
{'label': 'Parallel',
|
624
|
+
'function_call': func,
|
625
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
626
|
+
'params': [adaptor.description.elements.parallel, node]},
|
627
|
+
{'label': 'Choose',
|
628
|
+
'function_call': func,
|
629
|
+
'menu_icon': elements.choose.illustrator.svg,
|
630
|
+
'params': [adaptor.description.elements.choose, node]},
|
631
|
+
{'label': 'Loop',
|
632
|
+
'function_call': func,
|
633
|
+
'menu_icon': elements.loop.illustrator.svg,
|
634
|
+
'params': [adaptor.description.elements.loop, node]},
|
635
|
+
{'label': 'Critical',
|
636
|
+
'function_call': func,
|
637
|
+
'menu_icon': elements.critical.illustrator.svg,
|
638
|
+
'params': [adaptor.description.elements.critical, node]},
|
639
|
+
];
|
640
|
+
}, //}}}
|
641
|
+
'adaptor' : {//{{{
|
642
|
+
'mousedown': function (node, e) {
|
643
|
+
events.mousedown(node,e,true, true);
|
644
|
+
},
|
645
|
+
'click': events.click,
|
646
|
+
'dblclick': events.dblclick,
|
647
|
+
'mouseover': events.mouseover,
|
648
|
+
'mouseout': events.mouseout,
|
649
|
+
}//}}}
|
650
|
+
}; /*}}}*/
|
651
|
+
this.elements.group = { /*{{{*/
|
652
|
+
'illustrator': {//{{{
|
653
|
+
'type' : 'complex',
|
654
|
+
'endnodes' : 'aggregate',
|
655
|
+
'closeblock' : false,
|
656
|
+
'border': 'injectiongroup', // other value than true,false inidcates the used class for the svg-object
|
657
|
+
'expansion' : function(node) {
|
658
|
+
return 'vertical';
|
659
|
+
},
|
660
|
+
'col_shift' : function(node) {
|
661
|
+
return true;
|
662
|
+
},
|
663
|
+
'svg': null
|
664
|
+
},//}}}
|
665
|
+
'description': '<group xmlns="http://cpee.org/ns/description/1.0"/>',
|
666
|
+
'permissible_children': function(node) { //{{{
|
667
|
+
var func = null;
|
668
|
+
if(node.get(0).tagName == 'group') { func = adaptor.description.insert_first_into }
|
669
|
+
else { func = adaptor.description.insert_after }
|
670
|
+
return [
|
671
|
+
];
|
672
|
+
}, //}}}
|
673
|
+
'adaptor' : {//{{{
|
674
|
+
'mousedown': function (node, e) {
|
675
|
+
events.mousedown(node,e,true, true);
|
676
|
+
},
|
677
|
+
'click': events.click,
|
678
|
+
'dblclick': events.dblclick,
|
679
|
+
'mouseover': events.mouseover,
|
680
|
+
'mouseout': events.mouseout,
|
681
|
+
}//}}}
|
682
|
+
}; /*}}}*/
|
683
|
+
this.elements.start = this.elements.description = { /*{{{*/
|
684
|
+
'illustrator': {//{{{
|
685
|
+
'type' : 'description',
|
686
|
+
'endnodes' : 'passthrough',
|
687
|
+
'closeblock' : false,
|
688
|
+
'expansion' : function(node) {
|
689
|
+
return 'vertical';
|
690
|
+
},
|
691
|
+
'col_shift' : function(node) {
|
692
|
+
return true;
|
693
|
+
},
|
694
|
+
'svg': adaptor.theme_dir + 'symbols/start.svg'
|
695
|
+
},//}}}
|
696
|
+
'description': null,
|
697
|
+
'permissible_children': function(node) { //{{{
|
698
|
+
var func = null;
|
699
|
+
if(node.get(0).tagName == 'description') { func = adaptor.description.insert_first_into }
|
700
|
+
else { func = adaptor.description.insert_after }
|
701
|
+
return [
|
702
|
+
{'label': 'Service Call with Scripts',
|
703
|
+
'function_call': func,
|
704
|
+
'menu_icon': elements.callmanipulate.illustrator.svg,
|
705
|
+
'params': [adaptor.description.elements.callmanipulate, node]},
|
706
|
+
{'label': 'Service Call',
|
707
|
+
'function_call': func,
|
708
|
+
'menu_icon': elements.call.illustrator.svg,
|
709
|
+
'params': [adaptor.description.elements.call, node]},
|
710
|
+
{'label': 'Script Task',
|
711
|
+
'function_call': func,
|
712
|
+
'menu_icon': elements.manipulate.illustrator.svg,
|
713
|
+
'params': [adaptor.description.elements.manipulate, node]},
|
714
|
+
{'label': 'Parallel',
|
715
|
+
'function_call': func,
|
716
|
+
'menu_icon': elements.parallel.illustrator.svg,
|
717
|
+
'params': [adaptor.description.elements.parallel, node]},
|
718
|
+
{'label': 'Choose',
|
719
|
+
'function_call': func,
|
720
|
+
'menu_icon': elements.choose.illustrator.svg,
|
721
|
+
'params': [adaptor.description.elements.choose, node]},
|
722
|
+
{'label': 'Loop',
|
723
|
+
'function_call': func,
|
724
|
+
'menu_icon': elements.loop.illustrator.svg,
|
725
|
+
'params': [adaptor.description.elements.loop, node]},
|
726
|
+
{'label': 'Critical',
|
727
|
+
'function_call': func,
|
728
|
+
'menu_icon': elements.critical.illustrator.svg,
|
729
|
+
'params': [adaptor.description.elements.critical, node]}
|
730
|
+
];
|
731
|
+
}, //}}}
|
732
|
+
'adaptor' : {//{{{
|
733
|
+
'mousedown': function (node, e) {
|
734
|
+
events.mousedown(node,e,true, false);
|
735
|
+
},
|
736
|
+
'click': events.click,
|
737
|
+
'dblclick': events.dblclick,
|
738
|
+
'mouseover': events.mouseover,
|
739
|
+
'mouseout': events.mouseout,
|
740
|
+
}//}}}
|
741
|
+
}; /*}}}*/
|
742
|
+
}
|