         }
 
         var opacity: Double = 1
-        if let stopOpacity = getStyleAttributes([:], element: element)["stop-opacity"], let doubleValue = Double(stopOpacity) {
+        if let stopOpacity = getStyleAttributes([:], element: element)["stop-opacity"],
+            let doubleValue = Double(stopOpacity) {
             opacity = doubleValue
         }
         var color = Color.black.with(a: opacity)

                    guard let locus = locus else {
                        return .none
                    }
                    let transform = BoundsUtils.transformForLocusInRespectiveCoords(respectiveLocus: userSpaceLocus.locus, absoluteLocus: locus)
                    return TransformedLocus(locus: userSpaceLocus.locus, transform: transform)
                }
                return userSpaceLocus.locus

        let tag = referenceNode.tag

        if let shape = referenceNode as? Shape {
            return Shape(form: shape.form,
                         fill: shape.fill,
                         stroke: shape.stroke,
                         place: pos,
                         opaque: opaque,
                         clip: clip,
                         visible: visible,
                         tag: tag)
        }
        if let text = referenceNode as? Text {
            return Text(text: text.text,
                        font: text.font,
                        fill: text.fill,
                        stroke: text.stroke,
                        align: text.align,
                        baseline: text.baseline,
                        place: pos,
                        opaque: opaque,
                        clip: clip,
                        visible: visible,
                        tag: tag)
        }
        if let image = referenceNode as? Image {
            return Image(src: image.src,
                         xAlign: image.xAlign,
                         yAlign: image.yAlign,
                         aspectRatio: image.aspectRatio,
                         w: image.w,
                         h: image.h,
                         place: pos,
                         opaque: opaque,
                         clip: clip,
                         visible: visible,
                         tag: tag)
        }
        if let group = referenceNode as? Group {
            var contents = [Node]()
