raphael-rails 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,8 @@
7
7
  // │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\
8
8
  // │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\
9
9
  // └─────────────────────────────────────────────────────────────────────┘ \\
10
- window.Raphael.svg && function (R) {
10
+
11
+ window.Raphael && window.Raphael.svg && function(R) {
11
12
  var has = "hasOwnProperty",
12
13
  Str = String,
13
14
  toFloat = parseFloat,
@@ -249,7 +250,7 @@ window.Raphael.svg && function (R) {
249
250
  attr = {};
250
251
  attr["marker-" + se] = "url(#" + markerId + ")";
251
252
  if (to || from) {
252
- attr.d = Raphael.getSubpath(attrs.path, from, to);
253
+ attr.d = R.getSubpath(attrs.path, from, to);
253
254
  }
254
255
  $(node, attr);
255
256
  o._.arrows[se + "Path"] = pathId;
@@ -265,7 +266,7 @@ window.Raphael.svg && function (R) {
265
266
  from = 0;
266
267
  to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);
267
268
  }
268
- o._.arrows[se + "Path"] && $(node, {d: Raphael.getSubpath(attrs.path, from, to)});
269
+ o._.arrows[se + "Path"] && $(node, {d: R.getSubpath(attrs.path, from, to)});
269
270
  delete o._.arrows[se + "Path"];
270
271
  delete o._.arrows[se + "Marker"];
271
272
  delete o._.arrows[se + "dx"];
@@ -323,6 +324,11 @@ window.Raphael.svg && function (R) {
323
324
  break;
324
325
  case "href":
325
326
  case "title":
327
+ var hl = $("title");
328
+ var val = R._g.doc.createTextNode(value);
329
+ hl.appendChild(val);
330
+ node.appendChild(hl);
331
+ break;
326
332
  case "target":
327
333
  var pn = node.parentNode;
328
334
  if (pn.tagName.toLowerCase() != "a") {
@@ -865,7 +871,7 @@ window.Raphael.svg && function (R) {
865
871
  * Element.remove
866
872
  [ method ]
867
873
  **
868
- * Removes element form the paper.
874
+ * Removes element from the paper.
869
875
  \*/
870
876
  elproto.remove = function () {
871
877
  if (this.removed || !this.node.parentNode) {
@@ -924,7 +930,7 @@ window.Raphael.svg && function (R) {
924
930
  = (object) object of attributes if nothing is passed in.
925
931
  > Possible parameters
926
932
  # <p>Please refer to the <a href="http://www.w3.org/TR/SVG/" title="The W3C Recommendation for the SVG language describes these properties in detail.">SVG specification</a> for an explanation of these parameters.</p>
927
- o arrow-end (string) arrowhead on the end of the path. The format for string is `<type>[-<width>[-<length>]]`. Possible types: `classic`, `block`, `open`, `oval`, `diamond`, `none`, width: `wide`, `narrow`, `midium`, length: `long`, `short`, `midium`.
933
+ o arrow-end (string) arrowhead on the end of the path. The format for string is `<type>[-<width>[-<length>]]`. Possible types: `classic`, `block`, `open`, `oval`, `diamond`, `none`, width: `wide`, `narrow`, `medium`, length: `long`, `short`, `midium`.
928
934
  o clip-rect (string) comma or space separated values: x, y, width and height
929
935
  o cursor (string) CSS type of the cursor
930
936
  o cx (number) the x-axis coordinate of the center of the circle, or ellipse
@@ -1143,6 +1149,7 @@ window.Raphael.svg && function (R) {
1143
1149
  }
1144
1150
  t.node.removeAttribute("filter");
1145
1151
  }
1152
+ return t;
1146
1153
  };
1147
1154
  R._engine.circle = function (svg, x, y, r) {
1148
1155
  var el = $("circle");
@@ -1357,4 +1364,4 @@ window.Raphael.svg && function (R) {
1357
1364
  };
1358
1365
  })(method);
1359
1366
  }
1360
- }(window.Raphael);
1367
+ }(window.Raphael);
@@ -7,7 +7,8 @@
7
7
  // │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\
8
8
  // │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\
9
9
  // └─────────────────────────────────────────────────────────────────────┘ \\
10
- window.Raphael.vml && function (R) {
10
+
11
+ window.Raphael && window.Raphael.vml && function(R) {
11
12
  var has = "hasOwnProperty",
12
13
  Str = String,
13
14
  toFloat = parseFloat,
@@ -183,6 +184,7 @@ window.Raphael.vml && function (R) {
183
184
  rx = +a.rx || +a.r || 0,
184
185
  ry = +a.ry || +a.r || 0;
185
186
  node.path = R.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x", round((cx - rx) * zoom), round((cy - ry) * zoom), round((cx + rx) * zoom), round((cy + ry) * zoom), round(cx * zoom));
187
+ o._.dirty = 1;
186
188
  }
187
189
  if ("clip-rect" in params) {
188
190
  var rect = Str(params["clip-rect"]).split(separator);
@@ -472,7 +474,7 @@ window.Raphael.vml && function (R) {
472
474
  split,
473
475
  isGrad = ~Str(this.attrs.fill).indexOf("-"),
474
476
  isPatt = !Str(this.attrs.fill).indexOf("url(");
475
- matrix.translate(-.5, -.5);
477
+ matrix.translate(1, 1);
476
478
  if (isPatt || isGrad || this.type == "image") {
477
479
  skew.matrix = "1 0 0 1";
478
480
  skew.offset = "0 0";
@@ -713,6 +715,7 @@ window.Raphael.vml && function (R) {
713
715
  s.margin = 0;
714
716
  delete this.attrs.blur;
715
717
  }
718
+ return this;
716
719
  };
717
720
 
718
721
  R._engine.path = function (pathString, vml) {
@@ -970,4 +973,4 @@ window.Raphael.vml && function (R) {
970
973
  };
971
974
  })(method);
972
975
  }
973
- }(window.Raphael);
976
+ }(window.Raphael);
@@ -132,7 +132,7 @@ circle2.animate(anim.delay(<span class="d">500</span>)); <span class="c">// run
132
132
  <p class="header">Possible parameters
133
133
  </p>
134
134
  <p>Please refer to the <a href="http://www.w3.org/TR/SVG/" title="The W3C Recommendation for the SVG language describes these properties in detail.">SVG specification</a> for an explanation of these parameters.</p>
135
- <ol class="dr-json"><li><span class="dr-json-key">arrow-end</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">arrowhead on the end of the path. The format for string is <code>&lt;type>[-&lt;width>[-&lt;length>]]</code>. Possible types: <code>classic</code>, <code>block</code>, <code>open</code>, <code>oval</code>, <code>diamond</code>, <code>none</code>, width: <code>wide</code>, <code>narrow</code>, <code>midium</code>, length: <code>long</code>, <code>short</code>, <code>midium</code>.</span>
135
+ <ol class="dr-json"><li><span class="dr-json-key">arrow-end</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">arrowhead on the end of the path. The format for string is <code>&lt;type>[-&lt;width>[-&lt;length>]]</code>. Possible types: <code>classic</code>, <code>block</code>, <code>open</code>, <code>oval</code>, <code>diamond</code>, <code>none</code>, width: <code>wide</code>, <code>narrow</code>, <code>medium</code>, length: <code>long</code>, <code>short</code>, <code>midium</code>.</span>
136
136
  <li><span class="dr-json-key">clip-rect</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">comma or space separated values: x, y, width and height</span>
137
137
  <li><span class="dr-json-key">cursor</span><span class="dr-type"><em class="dr-type-string">string</em></span><span class="dr-json-description">CSS type of the cursor</span>
138
138
  <li><span class="dr-json-key">cx</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">the x-axis coordinate of the center of the circle, or ellipse</span>
@@ -529,7 +529,7 @@ c.node.onclick<span class="s"> = </span><b>function</b> () {
529
529
  }
530
530
  </code></pre>
531
531
  </div><div class="Element-remove-section"><h3 id="Element.remove" class="dr-method"><i class="dr-trixie">&#160;</i>Element.remove()<a href="#Element.remove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 870 in the source" href="https://github.com/DmitryBaranovskiy/raphael/blob/master/raphael.svg.js#L870">&#x27ad;</a></h3>
532
- <div class="extra" id="Element.remove-extra"></div></div><div class="dr-method"><p>Removes element form the paper.
532
+ <div class="extra" id="Element.remove-extra"></div></div><div class="dr-method"><p>Removes element from the paper.
533
533
  </p>
534
534
  </div><div class="Element-removeData-section"><h3 id="Element.removeData" class="dr-method"><i class="dr-trixie">&#160;</i>Element.removeData([key])<a href="#Element.removeData" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3069 in the source" href="https://github.com/DmitryBaranovskiy/raphael/blob/master/raphael.core.js#L3069">&#x27ad;</a></h3>
535
535
  <div class="extra" id="Element.removeData-extra"></div></div><div class="dr-method"><p>Removes value associated with an element by given key.
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raphael-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
5
- prerelease:
4
+ version: 2.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dmitry Baranovskiy
@@ -11,7 +10,7 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-01-15 00:00:00.000000000 Z
13
+ date: 2013-08-31 00:00:00.000000000 Z
15
14
  dependencies: []
16
15
  description: Raphael JS as a Rubygem for use in the Rails asset pipeline
17
16
  email:
@@ -26,39 +25,38 @@ files:
26
25
  - Gemfile
27
26
  - lib/raphael-rails/version.rb
28
27
  - lib/raphael-rails.rb
29
- - vendor/assets/javascripts/raphael.core.js
30
- - vendor/assets/javascripts/license.txt
28
+ - vendor/assets/javascripts/raphael.vml.js
31
29
  - vendor/assets/javascripts/history.md
30
+ - vendor/assets/javascripts/make
31
+ - vendor/assets/javascripts/license.txt
32
32
  - vendor/assets/javascripts/raphael.js
33
+ - vendor/assets/javascripts/raphael.core.js
34
+ - vendor/assets/javascripts/raphael.svg.js
33
35
  - vendor/assets/javascripts/reference.html
34
36
  - vendor/assets/javascripts/raphael-min.js
35
- - vendor/assets/javascripts/make
36
- - vendor/assets/javascripts/raphael.vml.js
37
37
  - vendor/assets/javascripts/reference.js
38
- - vendor/assets/javascripts/raphael.svg.js
39
38
  - vendor/assets/javascripts/README.markdown
40
39
  homepage: https://github.com/mockdeep/raphael-rails
41
40
  licenses: []
41
+ metadata: {}
42
42
  post_install_message:
43
43
  rdoc_options: []
44
44
  require_paths:
45
45
  - lib
46
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
- none: false
48
47
  requirements:
49
48
  - - ! '>='
50
49
  - !ruby/object:Gem::Version
51
50
  version: '0'
52
51
  required_rubygems_version: !ruby/object:Gem::Requirement
53
- none: false
54
52
  requirements:
55
53
  - - ! '>='
56
54
  - !ruby/object:Gem::Version
57
55
  version: '0'
58
56
  requirements: []
59
57
  rubyforge_project:
60
- rubygems_version: 1.8.24
58
+ rubygems_version: 2.0.5
61
59
  signing_key:
62
- specification_version: 3
60
+ specification_version: 4
63
61
  summary: Raphael JS as a Rubygem
64
62
  test_files: []