cpee 1.3.170 → 1.3.171
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 +4 -5
- data/cockpit/index.html +4 -2
- data/cockpit/js/details.js +4 -4
- data/cockpit/js/instance.js +13 -20
- data/cockpit/js/parameters.js +3 -3
- data/cockpit/js/ui.js +2 -3
- data/cockpit/lib/jquery-ui.custom.min.js +8 -259
- data/cockpit/lib/jquery.browser.js +40 -0
- data/cockpit/lib/jquery.min.js +4 -4
- data/cockpit/lib/jquery.svg.min.js +6 -0
- data/cockpit/lib/jquery.svgdom.min.js +6 -0
- data/cockpit/lib/util.js +16 -11
- data/cpee.gemspec +1 -1
- data/lib/cpee/processtransformation/cpee.rb +6 -14
- data/lib/cpee/processtransformation/target.rb +5 -3
- data/server/handlerwrappers/default.rb +7 -16
- data/server/instances/1/properties.xml +101 -69
- data/server/instances/10/properties.xml +70 -106
- data/server/instances/11/properties.xml +73 -133
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret +1 -0
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret +1 -0
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml +6 -0
- data/server/instances/12/properties.xml +43 -0
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret +1 -0
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret +1 -0
- data/server/instances/{11/notifications/e0910b6b5536976209bca471780066f1 → 13/notifications/4ff0cde5161c44dae49b263cbc12eaf8}/subscription.xml +7 -11
- data/server/instances/13/properties.xml +146 -0
- data/server/instances/14/properties.xml +332 -0
- data/server/instances/15/properties.xml +330 -0
- data/server/instances/16/properties.xml +265 -0
- data/server/instances/17/properties.xml +146 -0
- data/server/instances/2/properties.xml +44 -191
- data/server/instances/3/properties.xml +44 -70
- data/server/instances/4/properties.xml +68 -28
- data/server/instances/5/properties.xml +70 -10
- data/server/instances/6/properties.xml +55 -175
- data/server/instances/7/properties.xml +52 -118
- data/server/instances/8/properties.xml +50 -112
- data/server/instances/9/properties.xml +47 -115
- data/server/resources/properties.init +2 -2
- data/server/server.pid +1 -0
- metadata +117 -108
- data/cockpit/lib/jquery.svgdom.js +0 -281
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret +0 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret +0 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml +0 -27
- data/server/instances/11/notifications/e0910b6b5536976209bca471780066f1/consumer-secret +0 -1
- data/server/instances/11/notifications/e0910b6b5536976209bca471780066f1/producer-secret +0 -1
data/server/server.pid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
4671
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.171
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-12-
|
13
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: riddl
|
@@ -75,127 +75,136 @@ extensions: []
|
|
75
75
|
extra_rdoc_files:
|
76
76
|
- README
|
77
77
|
files:
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
- server/resources/empty_dslx.xml
|
85
|
-
- server/resources/properties.schema.inactive
|
86
|
-
- server/resources/transformation.xml
|
87
|
-
- server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret
|
88
|
-
- server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret
|
89
|
-
- server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml
|
90
|
-
- server/instances/1/properties.xml
|
91
|
-
- server/instances/3/properties.xml
|
92
|
-
- server/instances/9/properties.xml
|
93
|
-
- server/instances/10/properties.xml
|
94
|
-
- server/instances/4/properties.xml
|
95
|
-
- server/instances/7/properties.xml
|
96
|
-
- server/instances/11/notifications/e0910b6b5536976209bca471780066f1/consumer-secret
|
97
|
-
- server/instances/11/notifications/e0910b6b5536976209bca471780066f1/producer-secret
|
98
|
-
- server/instances/11/notifications/e0910b6b5536976209bca471780066f1/subscription.xml
|
99
|
-
- server/instances/11/properties.xml
|
100
|
-
- server/instances/6/properties.xml
|
101
|
-
- server/instances/5/properties.xml
|
102
|
-
- server/instances/8/properties.xml
|
103
|
-
- server/instances/2/properties.xml
|
104
|
-
- server/handlerwrappers/soap.rb
|
105
|
-
- server/handlerwrappers/default.rb
|
106
|
-
- lib/engine.xml
|
107
|
-
- lib/cpee/callback.rb
|
108
|
-
- lib/cpee/handler_notifications.rb
|
109
|
-
- lib/cpee/controller.rb
|
110
|
-
- lib/cpee/processtransformation/target.rb
|
111
|
-
- lib/cpee/processtransformation/bpmn2.rb
|
112
|
-
- lib/cpee/processtransformation/cpee.rb
|
113
|
-
- lib/cpee/processtransformation/structures.rb
|
114
|
-
- lib/cpee/processtransformation/bpel/bpel2wee.rb
|
115
|
-
- lib/cpee/processtransformation/bpel/bpelserver.xml
|
116
|
-
- lib/cpee/processtransformation/bpel/bpelserver.ru
|
117
|
-
- lib/cpee/processtransformation/bpel/Repository/booking/report.wsdl
|
118
|
-
- lib/cpee/processtransformation/bpel/Repository/booking/hotel.wsdl
|
119
|
-
- lib/cpee/processtransformation/bpel/Repository/booking/airline.wsdl
|
120
|
-
- lib/cpee/processtransformation/bpel/Repository/booking.wsdl
|
121
|
-
- lib/cpee/processtransformation/bpel/Repository/booking.bpel
|
122
|
-
- lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb
|
123
|
-
- lib/cpee/handler_properties.rb
|
124
|
-
- lib/cpee/implementation.rb
|
125
|
-
- lib/cpee/empty_workflow.rb
|
126
|
-
- lib/engine/instance-info.rng
|
127
|
-
- lib/engine/instances.rng
|
128
|
-
- lib/engine/callbacks.rng
|
129
|
-
- lib/cpee.xml
|
130
|
-
- cockpit/testsets/Endpoints and Data Manipulation.xml
|
131
|
-
- cockpit/testsets/TEST - Bad Loop.xml
|
132
|
-
- cockpit/testsets/Syncing P34 3.xml
|
133
|
-
- cockpit/testsets/CPEE.xml
|
134
|
-
- cockpit/testsets/Signavio.xml
|
135
|
-
- cockpit/testsets/Coopis Testset.xml
|
136
|
-
- cockpit/testsets/TEST - Wrong Positions.xml
|
137
|
-
- cockpit/testsets/transformations.xml
|
138
|
-
- cockpit/testsets/ICSOC Testset.xml
|
139
|
-
- cockpit/testsets/Syncing P34.xml
|
140
|
-
- cockpit/testsets/Linear.xml
|
141
|
-
- cockpit/testsets/Syncing P34 1.xml
|
142
|
-
- cockpit/testsets/Syncing P34 2.xml
|
143
|
-
- cockpit/testsets/Mangler 2.xml
|
144
|
-
- cockpit/testsets/Mangler 1.xml
|
145
|
-
- cockpit/testsets/testsets.xml
|
146
|
-
- cockpit/testsets/Concurrent.xml
|
147
|
-
- cockpit/testsets/SOPROMO Test Sonification.xml
|
78
|
+
- AUTHORS
|
79
|
+
- COPYING
|
80
|
+
- FEATURES
|
81
|
+
- INSTALL
|
82
|
+
- README
|
83
|
+
- Rakefile
|
148
84
|
- cockpit/README
|
85
|
+
- cockpit/contrib/graph_example.svg
|
86
|
+
- cockpit/contrib/legend.svg
|
87
|
+
- cockpit/contrib/symbols.svg
|
88
|
+
- cockpit/contrib/transformation1.xsl
|
89
|
+
- cockpit/contrib/transformation2.xsl
|
90
|
+
- cockpit/contrib/tree_example.svg
|
149
91
|
- cockpit/css/ui.css
|
92
|
+
- cockpit/index.html
|
150
93
|
- cockpit/js/details.js
|
151
|
-
- cockpit/js/wfadaptor.cpee.js
|
152
94
|
- cockpit/js/instance.js
|
153
|
-
- cockpit/js/ui.js
|
154
95
|
- cockpit/js/parameters.js
|
155
|
-
- cockpit/
|
156
|
-
- cockpit/
|
157
|
-
- cockpit/contrib/tree_example.svg
|
158
|
-
- cockpit/contrib/transformation1.xsl
|
159
|
-
- cockpit/contrib/transformation2.xsl
|
160
|
-
- cockpit/contrib/legend.svg
|
161
|
-
- cockpit/contrib/symbols.svg
|
162
|
-
- cockpit/lib/jquery-ui.custom.min.js
|
163
|
-
- cockpit/lib/contextmenu.js
|
164
|
-
- cockpit/lib/ui.css
|
96
|
+
- cockpit/js/ui.js
|
97
|
+
- cockpit/js/wfadaptor.cpee.js
|
165
98
|
- cockpit/lib/contextmenu.css
|
166
|
-
- cockpit/lib/
|
167
|
-
- cockpit/lib/
|
99
|
+
- cockpit/lib/contextmenu.js
|
100
|
+
- cockpit/lib/jquery-ui.custom.min.js
|
101
|
+
- cockpit/lib/jquery-ui.custom.min.txt
|
102
|
+
- cockpit/lib/jquery.browser.js
|
103
|
+
- cockpit/lib/jquery.caret.min.js
|
104
|
+
- cockpit/lib/jquery.cookie.js
|
105
|
+
- cockpit/lib/jquery.min.js
|
168
106
|
- cockpit/lib/jquery.redraw.js
|
169
|
-
- cockpit/lib/
|
107
|
+
- cockpit/lib/jquery.svg.min.js
|
108
|
+
- cockpit/lib/jquery.svgdom.min.js
|
109
|
+
- cockpit/lib/parsequery.js
|
170
110
|
- cockpit/lib/printf.js
|
171
|
-
- cockpit/lib/
|
172
|
-
- cockpit/lib/
|
173
|
-
- cockpit/lib/jquery-ui.custom.min.txt
|
174
|
-
- cockpit/lib/jquery.svgdom.js
|
111
|
+
- cockpit/lib/strftime.min.js
|
112
|
+
- cockpit/lib/ui.css
|
175
113
|
- cockpit/lib/ui.js
|
176
|
-
- cockpit/lib/
|
177
|
-
- cockpit/lib/
|
178
|
-
- cockpit/lib/jquery.caret.min.js
|
179
|
-
- cockpit/lib/wfadaptor.js
|
114
|
+
- cockpit/lib/underscore.min.js
|
115
|
+
- cockpit/lib/util.js
|
180
116
|
- cockpit/lib/wfadaptor-doc/demo1.html
|
181
|
-
- cockpit/lib/wfadaptor-doc/index.html
|
182
117
|
- cockpit/lib/wfadaptor-doc/demo2.html
|
183
|
-
-
|
184
|
-
-
|
118
|
+
- cockpit/lib/wfadaptor-doc/index.html
|
119
|
+
- cockpit/lib/wfadaptor.css
|
120
|
+
- cockpit/lib/wfadaptor.js
|
121
|
+
- cockpit/testsets/CPEE.xml
|
122
|
+
- cockpit/testsets/Concurrent.xml
|
123
|
+
- cockpit/testsets/Coopis Testset.xml
|
124
|
+
- cockpit/testsets/Endpoints and Data Manipulation.xml
|
125
|
+
- cockpit/testsets/ICSOC Testset.xml
|
126
|
+
- cockpit/testsets/Linear.xml
|
127
|
+
- cockpit/testsets/Mangler 1.xml
|
128
|
+
- cockpit/testsets/Mangler 2.xml
|
129
|
+
- cockpit/testsets/SOPROMO Test Sonification.xml
|
130
|
+
- cockpit/testsets/Signavio.xml
|
131
|
+
- cockpit/testsets/Syncing P34 1.xml
|
132
|
+
- cockpit/testsets/Syncing P34 2.xml
|
133
|
+
- cockpit/testsets/Syncing P34 3.xml
|
134
|
+
- cockpit/testsets/Syncing P34.xml
|
135
|
+
- cockpit/testsets/TEST - Bad Loop.xml
|
136
|
+
- cockpit/testsets/TEST - Wrong Positions.xml
|
137
|
+
- cockpit/testsets/testsets.xml
|
138
|
+
- cockpit/testsets/transformations.xml
|
139
|
+
- contrib/Screenshot at 2011-09-28 02:38:11.png
|
185
140
|
- contrib/logo2-small.png
|
141
|
+
- contrib/logo2.png
|
186
142
|
- contrib/logo2.svg
|
187
143
|
- contrib/logo2a.png
|
188
|
-
- contrib/
|
189
|
-
- COPYING
|
190
|
-
- FEATURES
|
191
|
-
- INSTALL
|
192
|
-
- Rakefile
|
144
|
+
- contrib/logo2a.svg
|
193
145
|
- cpee.gemspec
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
146
|
+
- lib/cpee.xml
|
147
|
+
- lib/cpee/callback.rb
|
148
|
+
- lib/cpee/controller.rb
|
149
|
+
- lib/cpee/empty_workflow.rb
|
150
|
+
- lib/cpee/handler_notifications.rb
|
151
|
+
- lib/cpee/handler_properties.rb
|
152
|
+
- lib/cpee/implementation.rb
|
153
|
+
- lib/cpee/processtransformation/bpel/Repository/booking.bpel
|
154
|
+
- lib/cpee/processtransformation/bpel/Repository/booking.wsdl
|
155
|
+
- lib/cpee/processtransformation/bpel/Repository/booking/airline.wsdl
|
156
|
+
- lib/cpee/processtransformation/bpel/Repository/booking/hotel.wsdl
|
157
|
+
- lib/cpee/processtransformation/bpel/Repository/booking/report.wsdl
|
158
|
+
- lib/cpee/processtransformation/bpel/bpel2wee.rb
|
159
|
+
- lib/cpee/processtransformation/bpel/bpelserver.ru
|
160
|
+
- lib/cpee/processtransformation/bpel/bpelserver.xml
|
161
|
+
- lib/cpee/processtransformation/bpel/lib/BPEL_Transform.rb
|
162
|
+
- lib/cpee/processtransformation/bpmn2.rb
|
163
|
+
- lib/cpee/processtransformation/cpee.rb
|
164
|
+
- lib/cpee/processtransformation/structures.rb
|
165
|
+
- lib/cpee/processtransformation/target.rb
|
166
|
+
- lib/engine.xml
|
167
|
+
- lib/engine/callbacks.rng
|
168
|
+
- lib/engine/instance-info.rng
|
169
|
+
- lib/engine/instances.rng
|
170
|
+
- server/handlerwrappers/default.rb
|
171
|
+
- server/handlerwrappers/soap.rb
|
172
|
+
- server/instances/1/properties.xml
|
173
|
+
- server/instances/10/properties.xml
|
174
|
+
- server/instances/11/properties.xml
|
175
|
+
- server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret
|
176
|
+
- server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret
|
177
|
+
- server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml
|
178
|
+
- server/instances/12/properties.xml
|
179
|
+
- server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret
|
180
|
+
- server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret
|
181
|
+
- server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/subscription.xml
|
182
|
+
- server/instances/13/properties.xml
|
183
|
+
- server/instances/14/properties.xml
|
184
|
+
- server/instances/15/properties.xml
|
185
|
+
- server/instances/16/properties.xml
|
186
|
+
- server/instances/17/properties.xml
|
187
|
+
- server/instances/2/properties.xml
|
188
|
+
- server/instances/3/properties.xml
|
189
|
+
- server/instances/4/properties.xml
|
190
|
+
- server/instances/5/properties.xml
|
191
|
+
- server/instances/6/properties.xml
|
192
|
+
- server/instances/7/properties.xml
|
193
|
+
- server/instances/8/properties.xml
|
194
|
+
- server/instances/9/properties.xml
|
195
|
+
- server/resources/empty_dslx.xml
|
196
|
+
- server/resources/properties.init
|
197
|
+
- server/resources/properties.schema.active
|
198
|
+
- server/resources/properties.schema.finished
|
199
|
+
- server/resources/properties.schema.inactive
|
200
|
+
- server/resources/topics.xml
|
201
|
+
- server/resources/transformation.xml
|
202
|
+
- server/resources/transformation_dslx.xsl
|
203
|
+
- server/server.pid
|
204
|
+
- server/server.rb
|
197
205
|
- test/delete.rb
|
198
206
|
- test/load.rb
|
207
|
+
- test/testset.xml
|
199
208
|
homepage: http://cpee.org/
|
200
209
|
licenses:
|
201
210
|
- LGPL-3
|
@@ -216,12 +225,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
225
|
version: '0'
|
217
226
|
requirements: []
|
218
227
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.
|
228
|
+
rubygems_version: 2.2.2
|
220
229
|
signing_key:
|
221
230
|
specification_version: 4
|
222
231
|
summary: Preliminary release of cloud process execution engine (cpee). If you just
|
223
232
|
need workflow execution, without a rest/xmpp service exposing it, then use WEEL
|
224
233
|
test_files:
|
234
|
+
- test/load.rb
|
225
235
|
- test/testset.xml
|
226
236
|
- test/delete.rb
|
227
|
-
- test/load.rb
|
@@ -1,281 +0,0 @@
|
|
1
|
-
/* http://keith-wood.name/svg.html
|
2
|
-
SVG/jQuery DOM compatibility for jQuery v1.4.3.
|
3
|
-
Written by Keith Wood (kbwood{at}iinet.com.au) April 2009.
|
4
|
-
Change by Juergen Mangler June 2011.
|
5
|
-
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
|
6
|
-
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
|
7
|
-
Please attribute the author if you use it. */
|
8
|
-
|
9
|
-
(function($) { // Hide scope, no $ conflict
|
10
|
-
|
11
|
-
/* Support adding class names to SVG nodes. */
|
12
|
-
$.fn.addClass = function(origAddClass) {
|
13
|
-
return function(classNames) {
|
14
|
-
classNames = classNames || '';
|
15
|
-
return this.each(function() {
|
16
|
-
if (isSVGElem(this)) {
|
17
|
-
var node = this;
|
18
|
-
$.each(classNames.split(/\s+/), function(i, className) {
|
19
|
-
var classes = (node.className ? node.className.baseVal : node.getAttribute('class'));
|
20
|
-
if ($.inArray(className, classes.split(/\s+/)) == -1) {
|
21
|
-
classes += (classes ? ' ' : '') + className;
|
22
|
-
(node.className ? node.className.baseVal = classes :
|
23
|
-
node.setAttribute('class', classes));
|
24
|
-
}
|
25
|
-
});
|
26
|
-
}
|
27
|
-
else {
|
28
|
-
origAddClass.apply($(this), [classNames]);
|
29
|
-
}
|
30
|
-
});
|
31
|
-
};
|
32
|
-
}($.fn.addClass);
|
33
|
-
|
34
|
-
/* Support removing class names from SVG nodes. */
|
35
|
-
$.fn.removeClass = function(origRemoveClass) {
|
36
|
-
return function(classNames) {
|
37
|
-
classNames = classNames || '';
|
38
|
-
return this.each(function() {
|
39
|
-
if (isSVGElem(this)) {
|
40
|
-
var node = this;
|
41
|
-
$.each(classNames.split(/\s+/), function(i, className) {
|
42
|
-
var classes = (node.className ? node.className.baseVal : node.getAttribute('class'));
|
43
|
-
classes = $.grep(classes.split(/\s+/), function(n, i) { return n != className; }).
|
44
|
-
join(' ');
|
45
|
-
(node.className ? node.className.baseVal = classes :
|
46
|
-
node.setAttribute('class', classes));
|
47
|
-
});
|
48
|
-
}
|
49
|
-
else {
|
50
|
-
origRemoveClass.apply($(this), [classNames]);
|
51
|
-
}
|
52
|
-
});
|
53
|
-
};
|
54
|
-
}($.fn.removeClass);
|
55
|
-
|
56
|
-
/* Support toggling class names on SVG nodes. */
|
57
|
-
$.fn.toggleClass = function(origToggleClass) {
|
58
|
-
return function(className, state) {
|
59
|
-
return this.each(function() {
|
60
|
-
if (isSVGElem(this)) {
|
61
|
-
if (typeof state !== 'boolean') {
|
62
|
-
state = !$(this).hasClass(className);
|
63
|
-
}
|
64
|
-
$(this)[(state ? 'add' : 'remove') + 'Class'](className);
|
65
|
-
}
|
66
|
-
else {
|
67
|
-
origToggleClass.apply($(this), [className, state]);
|
68
|
-
}
|
69
|
-
});
|
70
|
-
};
|
71
|
-
}($.fn.toggleClass);
|
72
|
-
|
73
|
-
/* Support checking class names on SVG nodes. */
|
74
|
-
$.fn.hasClass = function(origHasClass) {
|
75
|
-
return function(className) {
|
76
|
-
className = className || '';
|
77
|
-
var found = false;
|
78
|
-
this.each(function() {
|
79
|
-
if (isSVGElem(this)) {
|
80
|
-
var classes = (this.className ? this.className.baseVal :
|
81
|
-
this.getAttribute('class')).split(/\s+/);
|
82
|
-
found = ($.inArray(className, classes) > -1);
|
83
|
-
}
|
84
|
-
else {
|
85
|
-
found = (origHasClass.apply($(this), [className]));
|
86
|
-
}
|
87
|
-
return !found;
|
88
|
-
});
|
89
|
-
return found;
|
90
|
-
};
|
91
|
-
}($.fn.hasClass);
|
92
|
-
|
93
|
-
/* Support checking class names on SVG nodes. */
|
94
|
-
$X = function(xmlstr) {
|
95
|
-
var test = $.parseXML(xmlstr).documentElement;
|
96
|
-
return $(test);
|
97
|
-
};
|
98
|
-
|
99
|
-
/* Support attributes on SVG nodes. */
|
100
|
-
$.fn.attr = function(origAttr) {
|
101
|
-
return function(name, value, type) {
|
102
|
-
if (typeof name === 'string' && value === undefined) {
|
103
|
-
var val = origAttr.apply(this, [name, value, type]);
|
104
|
-
if (val && val.baseVal && val.baseVal.numberOfItems != null) { // Transform
|
105
|
-
value = '';
|
106
|
-
val = val.baseVal;
|
107
|
-
for (var i = 0; i < val.numberOfItems; i++) {
|
108
|
-
var item = val.getItem(i);
|
109
|
-
switch (item.type) {
|
110
|
-
case 1: value += ' matrix(' + item.matrix.a + ',' + item.matrix.b + ',' +
|
111
|
-
item.matrix.c + ',' + item.matrix.d + ',' +
|
112
|
-
item.matrix.e + ',' + item.matrix.f + ')';
|
113
|
-
break;
|
114
|
-
case 2: value += ' translate(' + item.matrix.e + ',' + item.matrix.f + ')'; break;
|
115
|
-
case 3: value += ' scale(' + item.matrix.a + ',' + item.matrix.d + ')'; break;
|
116
|
-
case 4: value += ' rotate(' + item.angle + ')'; break; // Doesn't handle new origin
|
117
|
-
case 5: value += ' skewX(' + item.angle + ')'; break;
|
118
|
-
case 6: value += ' skewY(' + item.angle + ')'; break;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
val = value.substring(1);
|
122
|
-
}
|
123
|
-
return (val && val.baseVal ? val.baseVal.valueAsString : val);
|
124
|
-
}
|
125
|
-
var options = name;
|
126
|
-
if (typeof name === 'string') {
|
127
|
-
options = {};
|
128
|
-
options[name] = value;
|
129
|
-
}
|
130
|
-
return this.each(function() {
|
131
|
-
if (isSVGElem(this)) {
|
132
|
-
for (var n in options) {
|
133
|
-
var val = ($.isFunction(options[n]) ? options[n]() : options[n]);
|
134
|
-
(type ? this.style[n] = val : this.setAttribute(n, val));
|
135
|
-
}
|
136
|
-
}
|
137
|
-
else {
|
138
|
-
origAttr.apply($(this), [name, value, type]);
|
139
|
-
}
|
140
|
-
});
|
141
|
-
};
|
142
|
-
}($.fn.attr);
|
143
|
-
|
144
|
-
/* Support removing attributes on SVG nodes. */
|
145
|
-
$.fn.removeAttr = function(origRemoveAttr) {
|
146
|
-
return function(name) {
|
147
|
-
return this.each(function() {
|
148
|
-
if (isSVGElem(this)) {
|
149
|
-
(this[name] && this[name].baseVal ? this[name].baseVal.value = '' :
|
150
|
-
this.setAttribute(name, ''));
|
151
|
-
}
|
152
|
-
else {
|
153
|
-
origRemoveAttr.apply($(this), [name]);
|
154
|
-
}
|
155
|
-
});
|
156
|
-
};
|
157
|
-
}($.fn.removeAttr);
|
158
|
-
|
159
|
-
/* Determine if any nodes are SVG nodes. */
|
160
|
-
function anySVG(checkSet) {
|
161
|
-
for (var i = 0; i < checkSet.length; i++) {
|
162
|
-
if (checkSet[i].nodeType == 1 && checkSet[i].namespaceURI == 'http://www.w3.org/2000/svg') {
|
163
|
-
return true;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
return false;
|
167
|
-
}
|
168
|
-
|
169
|
-
/* Update Sizzle selectors. */
|
170
|
-
|
171
|
-
$.expr.relative['+'] = function(origRelativeNext) {
|
172
|
-
return function(checkSet, part, isXML) {
|
173
|
-
origRelativeNext(checkSet, part, isXML || anySVG(checkSet));
|
174
|
-
};
|
175
|
-
}($.expr.relative['+']);
|
176
|
-
|
177
|
-
$.expr.relative['>'] = function(origRelativeChild) {
|
178
|
-
return function(checkSet, part, isXML) {
|
179
|
-
origRelativeChild(checkSet, part, isXML || anySVG(checkSet));
|
180
|
-
};
|
181
|
-
}($.expr.relative['>']);
|
182
|
-
|
183
|
-
$.expr.relative[''] = function(origRelativeDescendant) {
|
184
|
-
return function(checkSet, part, isXML) {
|
185
|
-
origRelativeDescendant(checkSet, part, isXML || anySVG(checkSet));
|
186
|
-
};
|
187
|
-
}($.expr.relative['']);
|
188
|
-
|
189
|
-
$.expr.relative['~'] = function(origRelativeSiblings) {
|
190
|
-
return function(checkSet, part, isXML) {
|
191
|
-
origRelativeSiblings(checkSet, part, isXML || anySVG(checkSet));
|
192
|
-
};
|
193
|
-
}($.expr.relative['~']);
|
194
|
-
|
195
|
-
$.expr.find.ID = function(origFindId) {
|
196
|
-
return function(match, context, isXML) {
|
197
|
-
return (isSVGElem(context) ?
|
198
|
-
[context.ownerDocument.getElementById(match[1])] :
|
199
|
-
origFindId(match, context, isXML));
|
200
|
-
};
|
201
|
-
}($.expr.find.ID);
|
202
|
-
|
203
|
-
var div = document.createElement('div');
|
204
|
-
div.appendChild(document.createComment(''));
|
205
|
-
if (div.getElementsByTagName('*').length > 0) { // Make sure no comments are found
|
206
|
-
$.expr.find.TAG = function(match, context) {
|
207
|
-
var results = context.getElementsByTagName(match[1]);
|
208
|
-
if (match[1] === '*') { // Filter out possible comments
|
209
|
-
var tmp = [];
|
210
|
-
for (var i = 0; results[i] || results.item(i); i++) {
|
211
|
-
if ((results[i] || results.item(i)).nodeType === 1) {
|
212
|
-
tmp.push(results[i] || results.item(i));
|
213
|
-
}
|
214
|
-
}
|
215
|
-
results = tmp;
|
216
|
-
}
|
217
|
-
return results;
|
218
|
-
};
|
219
|
-
}
|
220
|
-
|
221
|
-
$.expr.preFilter.CLASS = function(match, curLoop, inplace, result, not, isXML) {
|
222
|
-
match = ' ' + match[1].replace(/\\/g, '') + ' ';
|
223
|
-
if (isXML) {
|
224
|
-
return match;
|
225
|
-
}
|
226
|
-
for (var i = 0, elem = {}; elem != null; i++) {
|
227
|
-
elem = curLoop[i];
|
228
|
-
if (!elem) {
|
229
|
-
try {
|
230
|
-
elem = curLoop.item(i);
|
231
|
-
}
|
232
|
-
catch (e) {
|
233
|
-
// Ignore
|
234
|
-
}
|
235
|
-
}
|
236
|
-
if (elem) {
|
237
|
-
var className = (!isSVGElem(elem) ? elem.className :
|
238
|
-
(elem.className ? elem.className.baseVal : '') || elem.getAttribute('class'));
|
239
|
-
if (not ^ (className && (' ' + className + ' ').indexOf(match) > -1)) {
|
240
|
-
if (!inplace)
|
241
|
-
result.push(elem);
|
242
|
-
}
|
243
|
-
else if (inplace) {
|
244
|
-
curLoop[i] = false;
|
245
|
-
}
|
246
|
-
}
|
247
|
-
}
|
248
|
-
return false;
|
249
|
-
};
|
250
|
-
|
251
|
-
$.expr.filter.CLASS = function(elem, match) {
|
252
|
-
var className = (!isSVGElem(elem) ? elem.className :
|
253
|
-
(elem.className ? elem.className.baseVal : elem.getAttribute('class')));
|
254
|
-
return (' ' + className + ' ').indexOf(match) > -1;
|
255
|
-
};
|
256
|
-
|
257
|
-
$.expr.filter.ATTR = function(origFilterAttr) {
|
258
|
-
return function(elem, match) {
|
259
|
-
var handler = null;
|
260
|
-
if (isSVGElem(elem)) {
|
261
|
-
handler = match[1];
|
262
|
-
$.expr.attrHandle[handler] = function(elem){
|
263
|
-
var attr = elem.getAttribute(handler);
|
264
|
-
return attr && attr.baseVal || attr;
|
265
|
-
};
|
266
|
-
}
|
267
|
-
var filter = origFilterAttr(elem, match);
|
268
|
-
if (handler) {
|
269
|
-
$.expr.attrHandle[handler] = null;
|
270
|
-
}
|
271
|
-
return filter;
|
272
|
-
};
|
273
|
-
}($.expr.filter.ATTR);
|
274
|
-
|
275
|
-
/* Does this node belong to SVG? */
|
276
|
-
/* Change: use namespace directly, to avoid dependency on jquery.svg.js */
|
277
|
-
function isSVGElem(node) {
|
278
|
-
return (node.nodeType == 1 && node.namespaceURI == 'http://www.w3.org/2000/svg');
|
279
|
-
}
|
280
|
-
|
281
|
-
})(jQuery);
|