SVG.Polyline = SVG.invent({ // Initialize node create: 'polyline' // Inherit from , inherit: SVG.Shape // Add parent method , construct: { // Create a wrapped polyline element polyline: function(p) { // make sure plot is called as a setter return this.put(new SVG.Polyline).plot(p || new SVG.PointArray) } } }) SVG.Polygon = SVG.invent({ // Initialize node create: 'polygon' // Inherit from , inherit: SVG.Shape // Add parent method , construct: { // Create a wrapped polygon element polygon: function(p) { // make sure plot is called as a setter return this.put(new SVG.Polygon).plot(p || new SVG.PointArray) } } }) // Add polygon-specific functions SVG.extend(SVG.Polyline, SVG.Polygon, { // Get array array: function() { return this._array || (this._array = new SVG.PointArray(this.attr('points'))) } // Plot new path , plot: function(p) { return (p == null) ? this.array() : this.clear().attr('points', typeof p == 'string' ? p : (this._array = new SVG.PointArray(p))) } // Clear array cache , clear: function() { delete this._array return this } // Move by left top corner , move: function(x, y) { return this.attr('points', this.array().move(x, y)) } // Set element size to given width and height , size: function(width, height) { var p = proportionalSize(this, width, height) return this.attr('points', this.array().size(p.width, p.height)) } }) option value='3.1-stable'>3.1-stable Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
path: root/test/integration/application_test.rb
blob: 77c96d89bf70fdad078bc87ee8360c2f124371e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114