* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Thu Jun 28 2018 22:52:04 GMT+0200 (GMT+02:00)
+* BUILT: Thu Jun 28 2018 23:06:53 GMT+0200 (GMT+02:00)
*/;
\r
(function(root, factory) {\r
},\r
\r
// Decomposes this matrix into its affine parameters\r
- decompose: function (cx=0, cy=0) {\r
+ decompose: function (cx = 0, cy = 0) {\r
// Get the parameters from the matrix\r
var a = this.a\r
var b = this.b\r
}\r
})\r
-/* global arrayToMatrix */\r
+/* global arrayToMatrix getOrigin */\r
\r
SVG.extend(SVG.Element, {\r
// Reset all transformations\r
}\r
\r
// Set the origin according to the defined transform\r
- o.origin = getOrigin (o, this)\r
+ o.origin = getOrigin(o, this)\r
\r
// The user can pass a boolean, an SVG.Element or an SVG.Matrix or nothing\r
var cleanRelative = relative === true ? this : (relative || false)\r
\r
function getOrigin (o, element) {\r
// Allow origin or around as the names\r
- origin = o.around == null ? o.origin : o.around\r
+ let origin = o.around == null ? o.origin : o.around\r
\r
// Allow the user to pass a string to rotate around a given point\r
- if ( typeof origin === 'string' || origin == null ) {\r
+ if (typeof origin === 'string' || origin == null) {\r
// Get the bounding box of the element with no transformations applied\r
const string = (origin || 'center').toLowerCase().trim()\r
const { height, width, x, y } = element.bbox()\r
function getOrigin (o, element) {
// Allow origin or around as the names
- origin = o.around == null ? o.origin : o.around
+ let origin = o.around == null ? o.origin : o.around
// Allow the user to pass a string to rotate around a given point
- if ( typeof origin === 'string' || origin == null ) {
+ if (typeof origin === 'string' || origin == null) {
// Get the bounding box of the element with no transformations applied
const string = (origin || 'center').toLowerCase().trim()
const { height, width, x, y } = element.bbox()
-/* global arrayToMatrix */
+/* global arrayToMatrix getOrigin */
SVG.extend(SVG.Element, {
// Reset all transformations
}
// Set the origin according to the defined transform
- o.origin = getOrigin (o, this)
+ o.origin = getOrigin(o, this)
// The user can pass a boolean, an SVG.Element or an SVG.Matrix or nothing
var cleanRelative = relative === true ? this : (relative || false)