summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 52bc6dd1b62e01e5217649db1466ec61030cbe09 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
# svg.js

A lightweight library for manipulating and animating SVG.

Svg.js has no dependencies and aims to be as small as possible.

Svg.js is licensed under the terms of the MIT License.

See [svgjs.com](http://svgjs.com) for an introduction, [documentation](http://documentup.com/wout/svg.js) and [some action](http://svgjs.com/test).

[![Wout on Gittip](http://files.wout.co.uk/github/gittip.png)](https://www.gittip.com/wout/)

## Usage

### Create a SVG document

Use the `SVG()` function to create a SVG document within a given html element:

```javascript
var draw = SVG('canvas').size(300, 300)
var rect = draw.rect(100, 100).attr({ fill: '#f06' })
```
The first argument can either be an id of the element or the selected element itself.
This will generate the following output:

```html
<div id="canvas">
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
		<rect width="100" height="100" fill="#f06"></rect>
	</svg>
</div>
```

By default the svg canvas follows the dimensions of its parent, in this case `#canvas`:

```javascript
var draw = SVG('canvas').size('100%', '100%')
```

### Checking for SVG support

By default this library assumes the client's browser supports SVG. You can test support as follows:

```javascript
if (SVG.supported) {
  var draw = SVG('canvas')
  var rect = draw.rect(100, 100)
} else {
  alert('SVG not supported')
}
```

### ViewBox

The `viewBox` attribute of an `<svg>` element can be managed with the `viewbox()` method. When supplied with four arguments it will act as a setter:

```javascript
draw.viewbox(0, 0, 297, 210)
```

Alternatively you can also supply an object as the first argument:

```javascript
draw.viewbox({ x: 0, y: 0, width: 297, height: 210 })
```

Without any arguments an instance of `SVG.ViewBox` will be returned:

```javascript
var box = draw.viewbox()
```

But the best thing about the `viewbox()` method is that you can get the zoom of the viewbox:

```javascript
var box = draw.viewbox()
var zoom = box.zoom
```

If the size of the viewbox equals the size of the svg canvas, the zoom value will be 1.

### Nested svg
With this feature you can nest svg documents within each other. Nested svg documents have exactly the same features as the main, top-level svg document:

```javascript
var nested = draw.nested()

var rect = nested.rect(200, 200)
```


_This functionality requires the nested.js module which is included in the default distribution._


### SVG document
Svg.js also works outside of the HTML DOM, inside an SVG document for example:

```xml
<?xml version="1.0" encoding="utf-8" ?>
<svg id="viewport" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" >
  <script type="text/javascript" xlink:href="svg.min.js"></script>
  <script type="text/javascript">
    <![CDATA[
      var draw = SVG('viewport')
      draw.rect(100,100).animate().fill('#f03').move(100,100)
    ]]>
  </script>
</svg>
```


## Elements

### Rect
Rects have two arguments, their `width` and `height`:

```javascript
var rect = draw.rect(100, 100)
```


### Ellipse
Ellipses, like rects, have two arguments, their `width` and `height`:

```javascript
var ellipse = draw.ellipse(200, 100)
```

### Circle
The only argument necessary for a circle is the diameter:

```javascript
var circle = draw.circle(100)
```

_Note that this generates an `<ellipse>` element instead of a `<circle>`. This choice has been made to keep the size of the library down._


### Line
The line element always takes four arguments, `x1`, `y1`, `x2` and `y2`:

```javascript
var line = draw.line(0, 0, 100, 150).stroke({ width: 1 })
```


### Polyline
The polyline element defines a set of connected straight line segments. Typically, polyline elements define open shapes:

```javascript
// polyline('x,y x,y x,y')
var polyline = draw.polyline('0,0 100,50 50,100').fill('none').stroke({ width: 1 })
```

Polyline strings consist of a list of points separated by spaces: `x,y x,y x,y`.

As an alternative an array of points will work as well:

```javascript
// polyline([[x,y], [x,y], [x,y]])
var polyline = draw.polyline([[0,0], [100,50], [50,100]]).fill('none').stroke({ width: 1 })
```


### Polygon
The polygon element, unlike the polyline element, defines a closed shape consisting of a set of connected straight line segments:

```javascript
// polygon('x,y x,y x,y')
var polygon = draw.polygon('0,0 100,50 50,100').fill('none').stroke({ width: 1 })
```

Polygon strings are exactly the same as polyline strings. There is no need to close the shape as the first and last point will be connected automatically.


### Path
The path string is similar to the polygon string but much more complex in order to support curves:

```javascript
// path('path data')
var path = draw.path('M10,20L30,40')
```

For more details on path data strings, please refer to the SVG documentation:
http://www.w3.org/TR/SVG/paths.html#PathData

Note that paths will always be positioned at x=0, y=0 on creation. This is to make the unified `move()` api possible. Svg.js assumes you are creating a path to move it afterwards. If you need to constantly update your path you probably don't want to use the `move()` method at all. In that case you can create an "unbiased" path like so:

```javascript
// path('path data', unbiased)
var path = draw.path('M10,20L30,40', true)
```

This logic is also applicable to polylines and polygons.


### Image
When creating images the `width` and `height` values should be defined:

```javascript
// image(src, width, height)
var image = draw.image('/path/to/image.jpg', 200, 200).move(100, 100)
```


### Text
The first argument of a text element is the actual text content:
```javascript
var text = draw.text("svg\nto\nthe\npoint.").move(300, 0)
```
Changing text afterwards is also possible with the `text()` method:
```javascript
text.text('Brilliant!')
```
To get the raw text content:
```javascript
text.content
```
The sugar.js module provides some syntax sugar specifically for this element type:
```javascript
text.font({
  family:   'Helvetica'
, size:     144
, anchor:   'middle'
, leading:  1.5
})
```

## Referencing elements
If you want to get an element created by svg.js by its id, you can use the `SVG.get()` method:

```javascript
var element = SVG.get('my_element')

element.fill('#f06')
```


## Manipulating elements

### Attributes
You can get and set an element's attributes directly using `attr()`.

Get a single attribute:
```javascript
rect.attr('x')
```

Set a single attribute:
```javascript
rect.attr('x', 50)
```

Set multiple attributes at once:
```javascript
rect.attr({
  fill: '#f06'
, 'fill-opacity': 0.5
, stroke: '#000'
, 'stroke-width': 10
})
```

Set an attribute with a namespace:
```javascript
rect.attr('x', 50, 'http://www.w3.org/2000/svg')
```

Explicitly remove an attribute:
```javascript
rect.attr('fill', null)
```



### Transform
With the `transform()` method elements can be scaled, rotated, translated and skewed:

```javascript
rect.transform({
  rotation: 45
, cx:       100
, cy:       100
})
```

You can also provide two arguments as property and value:

```javascript
rect.transform('matrix', '1,0.5,0.5,1,0,0')
```

All available transformations are:

```javascript
rect.transform({
  x:        [translation on x-axis]
, y:        [translation on y-axis]

, rotation: [degrees]
, cx:       [x rotation point]
, cy:       [y rotation point]

, scaleX:   [scaling on x-axis]
, scaleY:   [scaling on y-axis]

, skewX:    [skewing on x-axis]
, skewY:    [skewing on y-axis]

, matrix:   [a 6-digit matrix string; e.g. '1,0,0,1,0,0']
, a:        [the first matrix digit]
, b:        [the second matrix digit]
, c:        [the third matrix digit]
, d:        [the fourth matrix digit]
, e:        [the fifth matrix digit]
, f:        [the sixth matrix digit]
})
```

Note that you can also apply transformations directly using the `attr()` method:

```javascript
rect.attr('transform', 'matrix(1,0.5,0.5,1,0,0)')
```

Although that would mean you can't use the `transform()` method because it would overwrite any manually applied transformations. You should only go down this route if you know exactly what you are doing and you want to achieve an effect that is not achievable with the `transform()` method.


### Style
With the `style()` method the `style` attribute can be managed like attributes with `attr`:

```javascript
rect.style('cursor', 'pointer')
```

Multiple styles can be set at once using an object:

```javascript
rect.style({ cursor: 'pointer', fill: '#f03' })
```

Or a css string:

```javascript
rect.style('cursor:pointer;fill:#f03;')
```

Similarly to `attr()` the `style()` method can also act as a getter:

```javascript
rect.style('cursor')
// => pointer
```

Or even a full getter:

```javascript
rect.style()
// => 'cursor:pointer;fill:#f03;'
```


### Move 
Move the element to a given `x` and `y` position by its upper left corner:

```javascript
rect.move(200, 350)
```

This will have the same effect as:

```javascript
rect.x(200).y(350)
```

Note that you can also use the following code to move elements around:

```javascript
rect.attr({ x: 20, y: 60 })
``` 

Although `move()` is much more convenient because it will always use the upper left corner as the position reference, whereas with using `attr()` the `x` and `y` reference differ between element types. For example, rect uses the upper left corner with the `x` and `y` attributes, circle and ellipse use their center with the `cx` and `cy` attributes and thereby simply ignoring the `x` and `y` values you might assign.

The `text` element has one optional argument:

```javascript
// move(x, y, anchor)
rect.move(200, 350, true)
```

The third argument can be used to move the text element by its anchor point rather than the calculated left top position. This can also be used on the individual axes:

```javascript
rect.x(200, true).y(350, true)
```


### Center
This is an extra method to move an element by its center:

```javascript
rect.center(150, 150)
```

This will have the same effect as:

```javascript
rect.cx(150).cy(150)
```

The `text` element has one optional argument:

```javascript
// center(x, y, anchor)
rect.center(150, 150, true)
```

The third argument can be used to center the text element by its anchor point rather than the calculated center position. This can also be used on the individual axes:

```javascript
rect.cx(150, true).cy(150, true)
```


### Size
Set the size of an element by a given `width` and `height`:

```javascript
rect.size(200, 300)
```

Same as with `move()` the size of an element could be set by using `attr()`. But because every type of element is handles its size differently the `size()` method is much more convenient.

### Hide and show
We all love to have a little hide:

```javascript
rect.hide()
```

and show:

```javascript
rect.show()
```

To check if the element is visible:
```javascript
rect.visible()
```

### Removing elements
Pretty straightforward:

```javascript
rect.remove()
```

To remove all elements in the svg document:

```javascript
draw.clear()
```


### Bounding box

```javascript
path.bbox()
```
This will return an instance of `SVG.BBox` containing the following values:

```javascript
{ height: 20, width: 20, y: 20, x: 10, cx: 30, cy: 20 } 
```

As opposed to the native `getBBox()` method any translations used with the `transform()` method will be taken into account.

The `SVG.BBox` has one other nifty little feature, enter the `merge()` method. With `merge()` two `SVG.BBox` instances can be merged into one new instance, basically being the bounding box of the two original bounding boxes:

```javascript
var box1 = draw.rect(100,100).move(50,50)
var box2 = draw.rect(100,100).move(200,200)
var box3 = box1.merge(box2)
```

### Rectagular box
Is similar to `bbox()` but will give you the box around the exact representation of the element, taking all transformations into account.

```javascript
path.rbox()
```

This will return an instance of `SVG.RBox`.


### Iterating over all children

If you would iterate over all the `children` of the svg document, you might notice also the `<defs>` and `<g>` elements will be included. To iterate the shapes only, you can use the `each()` method: 

```javascript
draw.each(function(i, children) {
  this.fill({ color: '#f06' })
})
```

Deep traversing is also possible by passing true as the second argument:

```javascript
// draw.each(block, deep)
draw.each(function(i, children) {
  this.fill({ color: '#f06' })
}, true)
```

## Colors

Svg.js has a dedicated color module handling different types of colors. Accepted values are:

- hex string; three based (e.g. #f06) or six based (e.g. #ff0066)
- rgb string; e.g. rgb(255, 0, 102)
- rgb object; e.g. { r: 255, g: 0, b: 102 }

Note that when working with objects is important to provide all three values every time.


## Animating elements

### Invoking an animation
Animating elements is very much the same as manipulating elements, the only difference is you have to include the `animate()` method:

```javascript
rect.animate().move(150, 150)
```

The `animate()` method will take three arguments. The first is `milliseconds`, the second `ease` and the third `delay`:

```javascript
rect.animate(2000, '>', 1000).attr({ fill: '#f03' })
```

Alternatively you can pass an object as the first argument:

```javascript
rect.animate({ ease: '<', delay: 1500 }).attr({ fill: '#f03' })
```

By default `milliseconds` will be set to `1000`, `ease` will be set to `<>`.

### Easing
All available ease types are:

- `<>`: ease in and out
- `>`: ease out
- `<`: ease in
- `-`: linear
- a function

For the latter, here is an example of the default `<>` function:

```javascript
function(pos) { return (-Math.cos(pos * Math.PI) / 2) + 0.5; }
```

For more easing equations, have a look at the [svg.easing.js](https://github.com/wout/svg.easing.js) plugin.

### Animatable methods
Note that the `animate()` method will not return the targeted element but an instance of SVG.FX which will take the following methods:

Of course `attr()`:
```javascript
rect.animate().attr({ fill: '#f03' })
```

The `x()`, `y()` and `move()` methods:
```javascript
rect.animate().move(100, 100)
```

And the `cx()`, `cy()` and `center()` methods:
```javascript
rect.animate().center(200, 200)
```

If you include the sugar.js module, `fill()`, `stroke()`, `rotate()`, `skew()`, `scale()`, `matrix()` and `opacity()` will be available as well:
```javascript
rect.animate().rotate(45).skew(25, 0)
```

You can also animate non-numeric unit values unsing the `attr()` method:
```javascript
rect.animate().attr('x', '10%').animate().attr('x', '50%')
```

### Stopping animations
Animations can be stopped in two ways.

By calling the `stop()` method:
```javascript
rect.animate().move(200, 200)

rect.stop()
```

Or by invoking another animation:
```javascript
rect.animate().move(200, 200)

rect.animate().center(200, 200)
```

### Synchronising animations
If you want to perform your own actions during the animations you can use the `during()` method:

```javascript
var position
  , from = 100
  , to   = 300

rect.animate(3000).move(100, 100).during(function(pos) {
  position = from + (to - from) * pos 
})
```
Note that `pos` is `0` in the beginning of the animation and `1` at the end of the animation.

To make things easier a morphing function is passed as the second argument. This function accepts a `from` and `to` value as the first and second argument and they can be a number, unit or hex color:

```javascript
var ellipse = draw.ellipse(100, 100).attr('cx', '20%').fill('#333')

rect.animate(3000).move(100, 100).during(function(pos, morph) {
  /* numeric values */
  ellipse.size(morph(100, 200), morph(100, 50))
  
  /* unit strings */
  ellipse.attr('cx', morph('20%', '80%'))
  
  /* hex color strings */
  ellipse.fill(morph('#333', '#ff0066'))
})
```

### Controlling animations externally
Say you want to control the position of an animation with an external event than the `to()` method will proove very useful:

```javascript
var animate = draw.rect(100, 100).move(50, 50).animate('=').move(200, 200)

document.onmousemove = function(event) {
  animate.to(event.clientX / 1000)
}
```

In order to be able use the `to()` method the duration of the animation should be set to `'='`. The value passed as the first argument of `to()` should be a number between `0` and `1`, `0` being the beginning of the animation and `1` being the end. Note that any values below `0` and above `1` will be normalized.


### After animation callback
Finally, you can add callback methods using `after()`:

```javascript
rect.animate(3000).move(100, 100).after(function() {
  this.animate().attr({ fill: '#f06' })
})
```

_This functionality requires the fx.js module which is included in the default distribution._


## Syntax sugar

Fill and stroke are used quite often. Therefore two convenience methods are provided:

### Fill
The `fill()` method is a pretty alternative to the `attr()` method:

```javascript
rect.fill({ color: '#f06', opacity: 0.6 })
```

A single hex string will work as well:

```javascript
rect.fill('#f06')
```

### Stroke
The `stroke()` method is similar to `fill()`:

```javascript
rect.stroke({ color: '#f06', opacity: 0.6, width: 5 })
```

Like fill, a single hex string will work as well:

```javascript
rect.stroke('#f06')
```

### Opacity
To set the overall opacity of an element:

```javascript
rect.opacity(0.5)
```

### Rotate
The `rotate()` method will automatically rotate elements according to the center of the element:

```javascript
// rotate(degrees)
rect.rotate(45)
```

Although you can also define a specific rotation point:

```javascript
// rotate(degrees, cx, cy)
rect.rotate(45, 50, 50)
```

### Skew
The `skew()` method will take an `x` and `y` value:

```javascript
// skew(x, y)
rect.skew(0, 45)
```

### Scale
The `scale()` method will take an `x` and `y` value:

```javascript
// scale(x, y)
rect.scale(0.5, -1)
```

### Translate
The `translate()` method will take an `x` and `y` value:

```javascript
// translate(x, y)
rect.translate(0.5, -1)
```

_This functionality requires the sugar.js module which is included in the default distribution._



## Masking elements
The easiest way to mask is to use a single element:

```javascript
var ellipse = draw.ellipse(80, 40).move(10, 10).fill({ color: '#fff' })

rect.maskWith(ellipse)
```

But you can also use multiple elements:

```javascript
var ellipse = draw.ellipse(80, 40).move(10, 10).fill({ color: '#fff' })
var text = draw.text('SVG.JS').move(10, 10).font({ size: 36 }).fill({ color: '#fff' })

var mask = draw.mask().add(text).add(ellipse)

rect.maskWith(mask)
```

If you want the masked object to be rendered at 100% you need to set the fill color of the masking object to white. But you might also want to use a gradient:

```javascript
var gradient = draw.gradient('linear', function(stop) {
  stop.at({ offset: 0, color: '#000' })
  stop.at({ offset: 100, color: '#fff' })
})

var ellipse = draw.ellipse(80, 40).move(10, 10).fill({ color: gradient })

rect.maskWith(ellipse)
```

For your convenience, the masking element is also referenced in the masked element. This would be useful in case you want to change, or remove the mask:

```javascript
rect.mask.remove()
```

_This functionality requires the mask.js module which is included in the default distribution._


## Clipping elements
Clipping elements is exactly the same as masking elements:

```javascript
var ellipse = draw.ellipse(80, 40).move(10, 10).fill({ color: '#fff' })

rect.clipWith(ellipse)
```

_This functionality requires the clip.js module which is included in the default distribution._


## Arranging elements
You can arrange elements within their parent SVG document using the following methods.

Move element to the front:

```javascript
rect.front()
```

Move element to the back:

```javascript
rect.back()
```

Note that `back()` will move the element to position 1, not 0, because the `<defs>` node is already located at position 0.

Move element one step forward:

```javascript
rect.forward()
```

Move element one step backward:

```javascript
rect.backward()
```

The arrange.js module brings some additional methods. To get all siblings of rect, including rect itself:

```javascript
rect.siblings()
```

Get the position (a number) of rect between its siblings:

```javascript
rect.position()
```

Get the next sibling:

```javascript
rect.next()
```

Get the previous sibling:

```javascript
rect.previous()
```


_This functionality requires the arrange.js module which is included in the default distribution._


## Grouping elements
Grouping elements is useful if you want to transform a set of elements as if it were one. All element within a group maintain their position relative to the group they belong to. A group has all the same element methods as the root svg document: 

```javascript
var group = draw.group()
group.path('M10,20L30,40')
```

Existing elements from the svg document can also be added to a group:

```javascript
group.add(rect)
```

_This functionality requires the group.js module which is included in the default distribution._


## Gradients

There are linear and radial gradients. The linear gradient can be created like this:

```javascript
var gradient = draw.gradient('linear', function(stop) {
  stop.at({ offset: 0, color: '#333', opacity: 1 })
  stop.at({ offset: 100, color: '#fff', opacity: 1 })
})
```

The `offset` and `color` parameters are required for stops, `opacity` is optional. Offset is an integer expressed in percentage. To define the direction you can set from `x`, `y` and to `x`, `y`:

```javascript
gradient.from(0, 0).to(0, 100)
```

The from and to values are also expressed in percent.
Finally, to use the gradient on an element:

```javascript
rect.attr({ fill: gradient })
```

Radial gradients have a `radius()` method to define the outermost radius to where the inner color should develop:

```javascript
var gradient = draw.gradient('radial', function(stop) {
  stop.at({ offset: 0, color: '#333', opacity: 1 })
  stop.at({ offset: 100, color: '#fff', opacity: 1 })
})

gradient.from(50, 50).to(50, 50).radius(50)
```

A gradient can also be updated afterwards:

```javascript
gradient.update(function(stop) {
  stop.at({ offset: 10, color: '#333', opacity: 0.2 })
  stop.at({ offset: 90, color: '#f03', opacity: 1 })
})
```

And even a single stop can be updated:

```javascript
var s1, s2, s3

draw.gradient('radial', function(stop) {
  s1 = stop.at({ offset: 0, color: '#000', opacity: 1 })
  s2 = stop.at({ offset: 50, color: '#f03', opacity: 1 })
  s3 = stop.at({ offset: 100, color: '#066', opacity: 1 })
})

s1.update({ offset: 10, color: '#0f0', opacity: 1 })
```

[W3Schools](http://www.w3schools.com/svg/svg_grad_linear.asp) has a great example page on how
[linear gradients](http://www.w3schools.com/svg/svg_grad_linear.asp) and
[radial gradients](http://www.w3schools.com/svg/svg_grad_radial.asp) work.

_This functionality requires the gradient.js module which is included in the default distribution._


## Patterns

Patterns work very much like gradients, you only have to define the tile size:

```javascript
var pattern = draw.pattern(20, 20, function(add) {
  add.rect(10, 10).fill('#000')
  add.rect(10, 10).move(10, 0).fill({ color: '#000', opacity: 0.5 })
  add.rect(10, 10).move(0, 10).fill({ color: '#000', opacity: 0.5 })
})

var circle = draw.circle(200, 200).fill(pattern)
```

This will fill the circle with a checkered pattern. There is a lot more to patterns. Please refer to the [Patterns section](http://www.w3.org/TR/SVG/pservers.html#Patterns) of the SVG specification.

_This functionality requires the patterns.js module which is included in the default distribution._


## Events
Events can be bound to elements as follows:

```javascript
rect.click(function() {
  this.fill({ color: '#f06' })
})
```

Removing it is quite as easy:

```javascript
rect.click(null)
```

You can also bind event listeners to elements:

```javascript
var click = function() {
  rect.fill({ color: '#f06' })
};

rect.on('click', click)
```

Note that the context of event listeners is not the same as events, which are applied directly to the element. Therefore `this` will not refer to the element when using event listeners.

Unbinding events is just as easy:

```javascript
rect.off('click', click)
```

But there is more to event listeners. You can bind events to html elements as well:

```javascript
SVG.on(window, 'click', click)
```

Obviously unbinding is practically the same:

```javascript
SVG.off(window, 'click', click)
```

Available events are `click`, `dblclick`, `mousedown`, `mouseup`, `mouseover`, `mouseout`, `mousemove`, `mouseenter`, `mouseleave`, `touchstart`, `touchend`, `touchmove` and `touchcancel`.


## Data
The `data()` method allows you to bind arbitrary objects, strings and numbers to SVG elements:

```javascript
rect.data('key', { value: { data: 0.3 }})
```

Fetching the values is similar to the `attr()` method:

```javascript
rect.data('key')
```

Removing the data altogether:

```javascript
rect.data('key', null)
```

Your values will always be stored as JSON and in some cases this might not be desirable. If you want to store the value as-is, just pass true as the third argument:

```javascript
rect.data('key', 'value', true)
```



## Extending functionality
Svg.js has a modular structure. It is very easy to add you own methods at different levels. Let's say we want to add a method to all shape types then we would add our method to SVG.Shape:

```javascript
SVG.extend(SVG.Shape, {
  paintRed: function() {
    return this.fill({ color: 'red' })
  }
})
```

Now all shapes will have the paintRed method available. Say we want to have the paintRed method on an ellipse apply a slightly different color:

```javascript
SVG.extend(SVG.Ellipse, {
  paintRed: function() {
    return this.fill({ color: 'orangered' })
  }
})

```
The complete inheritance stack for `SVG.Ellipse` is:

_SVG.Ellipse < SVG.Shape < SVG.Element_

The SVG document can be extended by using:

```javascript
SVG.extend(SVG.Doc, {
  paintAllPink: function() {
    for (var i = 0, l = this.children.length; i < l; i++) {
      this.children[i].fill({ color: 'pink' })
    }
    
    return this
  }
})
```

You can also extend multiple elements at once:
```javascript
SVG.extend(SVG.Ellipse, SVG.Path, SVG.Polygon, {
  paintRed: function() {
    return this.fill({ color: 'orangered' })
  }
})

```



## Plugins
Here are a few nice plugins that are available for svg.js:

- [svg.draggable.js](https://github.com/wout/svg.draggable.js) to make elements draggable.
- [svg.easing.js](https://github.com/wout/svg.easing.js) for more easing methods on animations.
- [svg.export.js](https://github.com/wout/svg.export.js) export raw SVG.
- [svg.import.js](https://github.com/wout/svg.import.js) import raw SVG data.
- [svg.math.js](https://github.com/otm/svg.math.js) a math extension (by Nils Lagerkvist).
- [svg.path.js](https://github.com/otm/svg.path.js) for manually drawing paths (by Nils Lagerkvist).
- [svg.shapes.js](https://github.com/wout/svg.shapes.js) for more polygon based shapes.
- [svg.textflow.js](https://github.com/wout/svg.textflow.js) create auto-wrapping textflow elements.


## Building
Starting out with the default distribution of svg.js is good. Although you might want to remove some modules to keep the size at minimum.

You will need ruby, RubyGems, and rake installed on your system.

``` sh
# dependencies:
$ ruby -v
$ gem -v
$ rake -V

# required to generate the minified version:
$ gem install uglifier
```

Build svg.js by running `rake`:

``` sh
$ rake
Original version: 32.165k
Minified: 14.757k
Minified and gzipped: 4.413k, compression factor 7.289
```

The resulting files are:

1. `dist/svg.js`
2. `dist/svg.min.js`

To include optional modules and remove default ones, use the `concat` task. In
this example, 'clip' is removed, but 'group' and 'arrange' are added:

``` sh
$ rake concat[-clip:group:arrange] dist
```

To build the base library only including shapes:

``` sh
rake concat[-fx:-event:-group:-arrange:-mask:-pattern:-gradient:-nested:-sugar] dist
```


## To-do
- Instance module
- Text on path module (write text along paths)


## Compatibility

### Desktop
- Firefox 3+
- Chrome 4+
- Safari 3.2+
- Opera 9+
- IE9 +

### Mobile
- iOS Safari 3.2+
- Android Browser 3+
- Opera Mobile 10+
- Chrome for Android 18+
- Firefox for Android 15+

Visit the [svg.js test page](http://svgjs.com/test) if you want to check compatibility with different browsers.

Important: this library is still in alpha, therefore the API might be subject to change in the course of development.
> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
{ "translations": {
    "Waiting…" : "Warte…",
    "error" : "Fehler",
    "finished" : "Abgeschlossen",
    "This will stop your current uploads." : "Hiermit werden die aktuellen Uploads angehalten.",
    "Move or copy" : "Verschieben oder kopieren",
    "Download" : "Herunterladen",
    "Delete" : "Löschen",
    "You can upload into this folder" : "Sie können in diesen Ordner hochladen",
    "Terms of service" : "Nutzungsbedingungen",
    "Show list view" : "Listenansicht anzeigen",
    "Show grid view" : "Rasteransicht anzeigen",
    "No compatible server found at {remote}" : "Keinen kompatiblen Server unter {remote} gefunden",
    "Invalid server URL" : "Falsche Server-URL",
    "Failed to add the public link to your Nextcloud" : "Fehler beim Hinzufügen des öffentlichen Links zu Ihrer Nextcloud",
    "File shares" : "Dateifreigaben",
    "Downloaded via public link" : "Über den öffentlichen Link heruntergeladen",
    "Downloaded by {email}" : "Heruntergeladen von {email}",
    "{file} downloaded via public link" : "{file} über öffentlichen Link heruntergeladen",
    "{email} downloaded {file}" : "{email} hat {file} heruntergeladen",
    "Shared with group {group}" : "Geteilt mit der Gruppe {group}",
    "Removed share for group {group}" : "Freigabe für die Gruppe {group} entfernt",
    "{actor} shared with group {group}" : "{actor} geteilt mit der Gruppe {group}",
    "{actor} removed share for group {group}" : "{actor} hat die Freigabe für die Gruppe {group} entfernt",
    "Share for group {group} expired" : "Freigabe für die Gruppe {group} abgelaufen",
    "You shared {file} with group {group}" : "Sie haben {file} mit der Gruppe {group} geteilt",
    "You removed group {group} from {file}" : "Sie haben die Gruppe {group} von {file} entfernt",
    "{actor} shared {file} with group {group}" : "{actor} hat {file} mit der Gruppe {group} geteilt",
    "{actor} removed group {group} from {file}" : "{actor} hat die Gruppe {group} von {file} entfernt",
    "Share for file {file} with group {group} expired" : "Freigabe der Datei {file} für die Gruppe {group} abgelaufen",
    "Shared as public link" : "Als öffentlichen Link geteilt",
    "Removed public link" : "Öffentlichen Link entfernt",
    "Public link expired" : "Öffentlicher Link ist abgelaufen",
    "{actor} shared as public link" : "{actor} hat einen öffentlichen Link geteilt",
    "{actor} removed public link" : "{actor} hat einen öffentlichen Link entfernt",
    "Public link of {actor} expired" : "Öffentlicher Link von {actor} ist abgelaufen",
    "You shared {file} as public link" : "Sie haben {file} über einen öffentlichen Link geteilt",
    "You removed public link for {file}" : "Sie haben die öffentliche Freigabe für {file} entfernt",
    "Public link expired for {file}" : "Öffentlicher Link für {file} ist abgelaufen",
    "{actor} shared {file} as public link" : "{actor} hat {file} über einen öffentlichen Link geteilt",
    "{actor} removed public link for {file}" : "{actor} hat einen öffentlichen Link {file} entfernt",
    "Public link of {actor} for {file} expired" : "Öffentlicher Link von {actor} für {file} ist abgelaufen",
    "{user} accepted the remote share" : "{user} hat die externe Freigabe akzeptiert",
    "{user} declined the remote share" : "{user} hat die externe Freigabe abgelehnt",
    "You received a new remote share {file} from {user}" : "Sie haben eine neue externe Freigabe {file} von {user} erhalten",
    "{user} accepted the remote share of {file}" : "{user} hat die externe Freigabe von {file} akzeptiert",
    "{user} declined the remote share of {file}" : "{user} hat die externe Freigabe von {file} abgelehnt",
    "{user} unshared {file} from you" : "{user} hat die Freigabe für {file} entfernt",
    "Shared with {user}" : "Geteilt mit {user}",
    "Removed share for {user}" : "Freigabe für {user} entfernt",
    "You removed yourself" : "Sie haben sich selbst entfernt",
    "{actor} removed themselves" : "{actor} hat sich selbst entfernt",
    "{actor} shared with {user}" : "{actor} hat mit {user} geteilt",
    "{actor} removed share for {user}" : "{actor} hat die Freigabe für {user} entfernt",
    "Shared by {actor}" : "Geteilt von {actor}",
    "{actor} removed share" : "{actor} hat die Freigabe entfernt",
    "Share for {user} expired" : "Freigabe für {user} abgelaufen",
    "Share expired" : "Freigabe abgelaufen",
    "You shared {file} with {user}" : "Sie haben {file} mit {user} geteilt",
    "You removed {user} from {file}" : "Sie haben {user} von {file} entfernt",
    "You removed yourself from {file}" : "Sie haben sich selbst entfernt von {file}",
    "{actor} removed themselves from {file}" : "{actor} hat sich selbst entfernt von {file}",
    "{actor} shared {file} with {user}" : "{actor} hat {file} mit {user} geteilt",
    "{actor} removed {user} from {file}" : "{actor} hat {user} von {file} entfernt",
    "{actor} shared {file} with you" : "{actor} hat {file} mit Ihnen geteilt",
    "{actor} removed you from the share named {file}" : "{actor} hat Sie aus der Freigabe von {file} entfernt",
    "Share for file {file} with {user} expired" : "Freigabe der Datei {file} für {user} abgelaufen",
    "Share for file {file} expired" : "Freigabe für die Datei {file} abgelaufen",
    "A file or folder shared by mail or by public link was <strong>downloaded</strong>" : "Öffentlich oder per E-Mail geteilte Datei / Ordner wurde <strong>heruntergeladen</strong>",
    "A file or folder was shared from <strong>another server</strong>" : "Eine Datei oder ein Ordner wurde von <strong>einem anderen Server</strong> geteilt",
    "Files" : "Dateien",
    "A file or folder has been <strong>shared</strong>" : "Eine Datei oder ein Ordner wurde <strong>geteilt</strong>",
    "Shared link" : "Geteilter Link",
    "Wrong share ID, share does not exist" : "Fehlerhafte Freigabe-ID, Freigabe existiert nicht",
    "Could not delete share" : "Freigabe konnte nicht gelöscht werden",
    "Please specify a file or folder path" : "Bitte Datei oder Ordner-Pfad eingeben",
    "Wrong path, file/folder does not exist" : "Falscher Pfad, Datei/Ordner existiert nicht",
    "Could not create share" : "Freigabe konnte nicht erstellt werden",
    "Invalid permissions" : "Ungültige Berechtigungen",
    "Please specify a valid user" : "Bitte geben Sie einen gültigen Benutzer an",
    "Group sharing is disabled by the administrator" : "Die Gruppenfreigabe ist durch den Administrator deaktiviert",
    "Please specify a valid group" : "Bitte geben Sie eine gültige Gruppe an",
    "Public link sharing is disabled by the administrator" : "Die öffentliche Freigabe von Links ist durch den Administrator deaktiviert",
    "Public upload disabled by the administrator" : "Das öffentliche Hochladen ist durch den Administrator deaktiviert",
    "Public upload is only possible for publicly shared folders" : "Das öffentliche Hochladen ist nur für öffentlich freigegebene Ordner erlaubt",
    "Sharing %s sending the password by Nextcloud Talk failed because Nextcloud Talk is not enabled" : "%s Freigeben: Senden des Passwortes über Nextcloud Talk gescheitert, da Nextcloud Talk nicht aktiviert ist",
    "Sharing %1$s failed because the back end does not allow shares from type %2$s" : "Freigabe von %1$s fehlgeschlagen, da das Backend die Freigabe vom Typ %2$s nicht erlaubt",
    "Please specify a valid federated user ID" : "Bitte geben Sie eine gültige Federated-Benutzer-ID ein",
    "Invalid date, date format must be YYYY-MM-DD" : "Ungültiges Datum, zulässiges Datumsformat: JJJJ-MM-TT",
    "Please specify a valid federated group ID" : "Bitte geben Sie eine gültige Federated-Gruppen-ID ein",
    "You cannot share to a Circle if the app is not enabled" : "Sie können nichts mit einem Kreis teilen, wenn die App nicht aktiviert ist",
    "Please specify a valid circle" : "Bitte einen gültigen Kreis angeben",
    "Sharing %s failed because the back end does not support room shares" : "Freigabe von %s fehlgeschlagen, da das Backend die Freigabe von Räumen nicht unterstützt",
    "Sharing %s failed because the back end does not support ScienceMesh shares" : "Freigabe von %s fehlgeschlagen, da das Backend keine ScienceMesh-Freigaben unterstützt",
    "Unknown share type" : "Unbekannter Freigabetyp",
    "Not a directory" : "Kein Verzeichnis",
    "Could not lock node" : "Knotenpunkt konnte nicht gesperrt werden",
    "Could not lock path" : "Pfad konnte nicht gesperrt werden",
    "Wrong or no update parameter given" : "Es wurde ein falscher oder kein Updateparameter angegeben",
    "Share must at least have READ or CREATE permissions" : "Freigabe muss mindestens LESEN- oder ERSTELLEN-Rechte haben",
    "Share must have READ permission if UPDATE or DELETE permission is set" : "Die Freigabe muss das Recht LESEN haben, wenn das Recht AKTUALISIEREN oder LÖSCHEN gesetzt ist",
    "\"Sending the password by Nextcloud Talk\" for sharing a file or folder failed because Nextcloud Talk is not enabled." : "\"Senden des Passwortes über Nextcloud Talk\" zum Teilen einer Datei  gescheitert, da Nextcloud Talk nicht verfügbar ist.",
    "shared by %s" : "von %s geteilt",
    "Download all files" : "Alle Dateien herunterladen",
    "Direct link" : "Direkter Link",
    "Add to your %s" : "Hinzufügen zu Ihrer %s",
    "Share API is disabled" : "Teilen-API ist deaktiviert",
    "File sharing" : "Dateifreigabe",
    "Share will expire tomorrow" : "Freigabe läuft morgen ab",
    "Your share of {node} will expire tomorrow" : "Ihre Freigabe von {node} läuft morgen ab",
    "You received {share} as a share by {user}" : "Sie haben {share} als Freigabe von {user} empfangen",
    "You received {share} to group {group} as a share by {user}" : "Sie haben {share} zur Gruppe {group} als Freigabe von {user} empfangen",
    "Accept" : "Akzeptieren",
    "Reject" : "Ablehnen",
    "This application enables users to share files within Nextcloud. If enabled, the admin can choose which groups can share files. The applicable users can then share files and folders with other users and groups within Nextcloud. In addition, if the admin enables the share link feature, an external link can be used to share files with other users outside of Nextcloud. Admins can also enforce passwords, expirations dates, and enable server to server sharing via share links, as well as sharing from mobile devices.\nTurning the feature off removes shared files and folders on the server for all share recipients, and also on the sync clients and mobile apps. More information is available in the Nextcloud Documentation." : "Diese App ermöglicht es Benutzern, Dateien innerhalb von Nextcloud zu teilen. Wenn aktiviert, kann der Administrator wählen, welche Gruppen Dateien teilen können. Die entsprechenden Benutzer können dann Dateien und Ordner mit anderen Benutzern und Gruppen innerhalb von Nextcloud teilen. Wenn der Administrator die Funktion zum Teilen von Links aktiviert, kann ein externer Link verwendet werden, um Dateien mit anderen Benutzern außerhalb von Nextcloud zu teilen. Administratoren können auch Passwörter und Ablaufdaten erzwingen und die Freigabe von Server zu Server über Freigabelinks sowie die Freigabe von mobilen Geräten aus aktivieren.\nWenn Sie die Funktion deaktivieren, werden freigegebene Dateien und Ordner auf dem Server für alle Freigabeempfänger und auch auf den Sync-Clients und mobilen Apps entfernt. Weitere Informationen finden Sie in der Nextcloud-Dokumentation.",
    "Sharing" : "Teilen",
    "Accept user and group shares by default" : "Benutzer- und Gruppenfreigaben standardmäßig akzeptieren",
    "Error while toggling options" : "Fehler beim Umschalten der Optionen",
    "Set default folder for accepted shares" : "Standardordner für akzeptierte Freigaben wählen",
    "Reset" : "Zurücksetzen",
    "Reset folder to system default" : "Ordner auf Systemstandard zurücksetzen",
    "Choose a default folder for accepted shares" : "Wählen Sie einen Standardordner für akzeptierte Freigaben",
    "Invalid path selected" : "Ungültiger Pfad ausgewählt",
    "Unknown error" : "Unbekannter Fehler",
    "Allow editing" : "Bearbeitung erlauben",
    "Read only" : "Schreibgeschützt",
    "Allow upload and editing" : "Hochladen und Bearbeiten erlauben",
    "File drop (upload only)" : "Dateien ablegen (nur Hochladen)",
    "Custom permissions" : "Benutzerdefinierte Berechtigungen",
    "Read" : "Lesen",
    "Upload" : "Hochladen",
    "Edit" : "Bearbeiten",
    "Bundled permissions" : "Gebündelte Berechtigungen",
    "Open Sharing Details" : "Freigabedetails öffnen",
    "group" : "Gruppe",
    "conversation" : "Unterhaltung",
    "remote" : "Extern",
    "remote group" : "Externe Gruppe",
    "guest" : "Gast",
    "Shared with the group {user} by {owner}" : "Geteilt mit der Gruppe {user} von {owner}",
    "Shared with the conversation {user} by {owner}" : "Geteilt mit der Unterhaltung {user} von {owner}",
    "Shared with {user} by {owner}" : "Geteilt mit {user} von {owner}",
    "Added by {initiator}" : "Hinzugefügt von {initiator}",
    "Via “{folder}”" : "Über “{folder}”",
    "Unshare" : "Freigabe aufheben",
    "Internal link" : "Interner Link",
    "Cannot copy, please copy the link manually" : "Kopieren fehlgeschlagen. Bitte kopieren Sie den Link manuell",
    "Copy internal link to clipboard" : "Internen Link in die Zwischenablage kopieren",
    "Only works for users with access to this folder" : "Funktioniert nur für Benutzer, die Zugriff auf diesen Ordner haben",
    "Only works for users with access to this file" : "Funktioniert nur für Benutzer, die Zugriff auf diese Datei haben",
    "Link copied" : "Link kopiert",
    "Please enter the following required information before creating the share" : "Bitte geben Sie die benötigten Informationen ein bevor die Freigabe erstellt wird",
    "Password protection (enforced)" : "Passwortschutz (erzwungen)",
    "Password protection" : "Passwortschutz",
    "Enter a password" : "Passwort eingeben",
    "Expiration date (enforced)" : "Ablaufdatum (erzwungen)",
    "Enter a date" : "Datum eingeben",
    "Create share" : "Freigabe erstellen",
    "Cancel" : "Abbrechen",
    "Customize link" : "Link anpassen",
    "Add another link" : "Weiteren Link hinzufügen",
    "Create a new share link" : "Neuen Freigabe-Link erstellen",
    "{shareWith} by {initiator}" : "{shareWith} von {initiator}",
    "Shared via link by {initiator}" : "Geteilt mittels Link von {initiator}",
    "Mail share ({label})" : "Mail-Freigabe ({label})",
    "Share link ({label})" : "Link teilen ({label})",
    "Share link ({index})" : "Link teilen ({index})",
    "Share link" : "Link teilen",
    "Actions for \"{title}\"" : "Aktionen für \"{title}\"",
    "Copy public link of \"{title}\" to clipboard" : "Öffentlichen Link von \"{title}\" in die Zwischenablage kopieren",
    "Error, please enter proper password and/or expiration date" : "Fehler. Bitte gebe das richtige Passwort und/oder Ablaufdatum ein",
    "Link share created" : "Link-Freigabe erstellt",
    "Error while creating the share" : "Fehler beim Erstellen der Freigabe",
    "Quick share options, the current selected is \"{selectedOption}\"" : "Schnelle Freigabeoptionen, aktuell ausgewählt ist \"{selectedOption}\"",
    "View only" : "Nur anzeigen",
    "Can edit" : "Kann bearbeiten",
    "File drop" : "Dateiablage",
    "Search for share recipients" : "Nach Freigabeempfängern suchen",
    "No recommendations. Start typing." : "Keine Empfehlungen. Beginnen Sie mit der Eingabe.",
    "Resharing is not allowed" : "Das Weiterteilen ist nicht erlaubt ",
    "Name or email …" : "Name oder E-Mail-Adresse …",
    "Name, email, or Federated Cloud ID …" : "Name, E-Mail-Adresse oder Federated-Cloud-ID …",
    "Searching …" : "Suche …",
    "No elements found." : "Keine Elemente gefunden.",
    "Search globally" : "Global suchen",
    "Guest" : "Gast",
    "Group" : "Gruppe",
    "Email" : "E-Mail",
    "Circle" : "Kreis",
    "Talk conversation" : "Talk-Unterhaltung",
    "Deck board" : "Deck-Board",
    "ScienceMesh" : "ScienceMesh",
    "on {server}" : "auf {server}",
    "Upload only" : "Nur hochladen",
    "Advanced settings" : "Erweiterte Einstellungen",
    "Share label" : "Freigabe-Label",
    "Set password" : "Passwort festlegen",
    "Password" : "Passwort",
    "Password expires {passwordExpirationTime}" : "Passwort läuft ab um {passwordExpirationTime}",
    "Password expired" : "Passwort abgelaufen",
    "Set expiration date" : "Ablaufdatum setzen",
    "Expiration date" : "Ablaufdatum",
    "Hide download" : "Download verbergen",
    "Video verification" : "Videoüberprüfung",
    "Allow download" : "Download erlauben",
    "Note to recipient" : "Notiz an Empfänger",
    "Enter a note for the share recipient" : "Notiz für Empfänger der Freigabe eingeben",
    "Create" : "Erstellen",
    "Share" : "Teilen",
    "Delete share" : "Freigabe löschen",
    "Share with {userName}" : "Mit {userName} teilen",
    "Share with group" : "Mit Gruppe teilen",
    "Share in conversation" : "In Unterhaltungen teilen",
    "Share with remote" : "Mit Entfernten teilen",
    "Share with remote group" : "Mit entfernter Gruppe teilen",
    "Share with guest" : "Mit Gast teilen",
    "Share with" : "Teilen mit",
    "Save share" : "Freigabe speichern",
    "Update share" : "Freigabe aktualisieren",
    "Others with access" : "Andere mit Zugriff",
    "No other users with access found" : "Keine anderen Benutzer mit Zugriff gefunden",
    "Toggle list of others with access to this directory" : "Liste anderer Benutzer mit Zugriff auf dieses Verzeichnis umschalten",
    "Toggle list of others with access to this file" : "Liste anderer Benutzer mit Zugriff auf diese Datei umschalten",
    "Unable to fetch inherited shares" : "Laden der vererbten Freigaben fehlgeschlagen",
    "Unable to load the shares list" : "Liste der Freigaben kann nicht geladen werden",
    "Expires {relativetime}" : "Läuft {relativetime} ab",
    "this share just expired." : "Diese Freigabe ist gerade abgelaufen.",
    "Shared with you by {owner}" : "{owner} hat diese mit Ihnen geteilt",
    "_Accept share_::_Accept shares_" : ["Freigabe akzeptieren","Freigaben akzeptieren"],
    "Open in Files" : "In Dateien öffnen",
    "_Reject share_::_Reject shares_" : ["Freigabe ablehnen","Freigaben ablehnen"],
    "_Restore share_::_Restore shares_" : ["Freigabe wiederherstellen","Freigaben wiederherstellen"],
    "Shared" : "Geteilt",
    "Shared multiple times with different people" : "Mehrmals mit verschiedenen Personen geteilt",
    "Shared by {ownerDisplayName}" : "Geteilt von {ownerDisplayName}",
    "Show sharing options" : "Freigabeoptionen anzeigen",
    "Link to a file" : "Mit einer Datei verknüpfen",
    "Error creating the share: {errorMessage}" : "Fehler beim Erstellen der Freigabe: {errorMessage}",
    "Error creating the share" : "Fehler beim Erstellen der Freigabe",
    "Error updating the share: {errorMessage}" : "Fehler beim Aktualisieren der Freigabe: {errorMessage}",
    "Error updating the share" : "Fehler beim Aktualisieren der Freigabe",
    "File \"{path}\" has been unshared" : "Freigabe für die Datei \"{path}\" wurde entfernt",
    "Folder \"{path}\" has been unshared" : "Freigabe für den Ordner \"{path}\" wurde entfernt",
    "Share {propertyName} saved" : "Freigabe {propertyName} gespeichert",
    "Shared by" : "Geteilt von",
    "Shared with" : "Geteilt mit",
    "Password created successfully" : "Passwort erstellt",
    "Error generating password from password policy" : "Fehler beim Erzeugen des Passworts aufgrund der Passwortrichtlinie",
    "Shared with you and the group {group} by {owner}" : "{owner} hat dies mit Ihnen und der Gruppe {group} geteilt",
    "Shared with you and {circle} by {owner}" : "{owner} hat dies mit Dir und dem Kreis {circle} geteilt",
    "Shared with you and the conversation {conversation} by {owner}" : "{owner} hat diese mit Ihnen und der Unterhaltung {conversation} geteilt",
    "Shared with you in a conversation by {owner}" : "{owner} hat diese mit Ihnen in einer Unterhaltung geteilt",
    "Shares" : "Freigaben",
    "Overview of shared files." : "Übersicht geteilter Dateien",
    "No shares" : "Keine Freigaben",
    "Files and folders you shared or have been shared with you will show up here" : "Von Ihnen oder mit Ihnen geteilte Ordner und Dateien werden hier angezeigt werden",
    "Shared with you" : "Mit Ihnen geteilt",
    "List of files that are shared with you." : "Liste der Dateien, die mit Ihnen geteilt wurden.",
    "Nothing shared with you yet" : "Bis jetzt wurde nichts mit Ihnen geteilt",
    "Files and folders others shared with you will show up here" : "Mit Ihnen geteilte Dateien und Ordner werden hier angezeigt werden",
    "Shared with others" : "Von Ihnen geteilt",
    "List of files that you shared with others." : "Liste der Dateien, die Sie mit anderen geteilt haben.",
    "Nothing shared yet" : "Noch nichts geteilt",
    "Files and folders you shared will show up here" : "Von Ihnen geteilte Dateien und Ordner werden hier angezeigt werden",
    "Shared by link" : "Geteilt über einen Link",
    "List of files that are shared by link." : "Liste der Dateien, die mittels Link geteilt wurden.",
    "No shared links" : "Keine geteilten Links",
    "Files and folders you shared by link will show up here" : "Von Ihnen mittels Link geteilte Dateien und Ordner werden hier angezeigt werden",
    "Deleted shares" : "Gelöschte Freigaben",
    "List of shares you left." : "Liste der Freigaben, die Sie verlassen haben.",
    "No deleted shares" : "Keine gelöschten Freigaben",
    "Shares you have left will show up here" : "Freigaben die Sie verlassen haben, werden hier angezeigt werden",
    "Pending shares" : "Ausstehende Freigaben",
    "List of unapproved shares." : "Liste ungeprüfter Freigaben.",
    "No pending shares" : "Keine ausstehenden Freigaben",
    "Shares you have received but not approved will show up here" : "Freigaben die Sie erhalten, aber nicht bestätigt haben, werden hier angezeigt werden",
    "Share note" : "Notiz teilen",
    "Upload files to %s" : "Dateien für %s hochladen",
    "Note" : "Notiz",
    "Select or drop files" : "Dateien auswählen oder hierher ziehen",
    "Uploading files" : "Dateien werden hochgeladen",
    "Uploaded files:" : "Hochgeladene Dateien: ",
    "By uploading files, you agree to the %1$sterms of service%2$s." : "Durch das Hochladen von Dateien stimmen Sie den %1$sNutzungsbedingungen%2$s zu.",
    "Add to your Nextcloud" : "Zu Ihrer Nextcloud hinzufügen",
    "Files and folders others share with you will show up here" : "Mit Ihnen geteilte Dateien und Ordner anderer werden hier erscheinen",
    "Files and folders you share will show up here" : "Dateien und Ordner, die Sie teilen, werden hier erscheinen",
    "Files and folders you share by link will show up here" : "Per Link freigegebene Dateien und Ordner werden hier erscheinen",
    "Shares you deleted will show up here" : "Von Ihnen gelöschte Freigaben werden hier angezeigt",
    "Shares you have received but not confirmed will show up here" : "Freigaben, die Sie erhalten, aber nicht bestätigt haben, werden hier angezeigt",
    "Shares will show up here" : "Freigaben werden hier angezeigt",
    "Restore" : "Wiederherstellen",
    "Something happened. Unable to restore the share." : "Die Freigabe konnte nicht wiederhergestellt werden.",
    "Something happened. Unable to accept the share." : "Die Freigabe konnte nicht akzeptiert werden.",
    "Something happened. Unable to reject the share." : "Die Freigabe konnte nicht abgelehnt werden.",
    "No expiration date set" : "Kein Ablaufdatum gesetzt",
    "Sharing %s failed because the back end does not support sciencemesh shares" : "Freigabe von %s fehlgeschlagen, da das Backend keine ScienceMesh-Freigaben unterstützt",
    "Allow creating" : "Erstellen erlauben",
    "Allow deleting" : "Löschen erlauben",
    "Allow resharing" : "Weiterteilen erlauben",
    "Expiration date enforced" : "Ablaufdatum erzwungen",
    "Password protect" : "Passwortschutz",
    "Science Mesh" : "ScienceMesh",
    "No entries found in this folder" : "Keine Einträge in diesem Ordner gefunden",
    "Name" : "Name",
    "Share time" : "Freigabezeitpunkt",
    "Sorry, this link does not seem to work anymore." : "Leider scheint dieser Link nicht mehr zu funktionieren.",
    "Reasons might be:" : "Gründe könnten sein:",
    "the item was removed" : "Das Element wurde entfernt",
    "the link expired" : "Der Link ist abgelaufen",
    "sharing is disabled" : "Teilen ist deaktiviert",
    "For more info, please ask the person who sent this link." : "Um nähere Informationen zu erhalten, wenden Sie sich bitte an die Person, die Ihnen diesen Link geschickt hat.",
    "Update" : "Aktualisieren",
    "Share with " : "Teilen mit "
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}