             else { return }
 
         context.saveGState()
+        
+        context.setBlendMode(blendMode)
 
         /// Apply the transforms to scale and center the paths
         context.translateBy(x: xOffset, y: yOffset)
         context.scaleBy(x: scale, y: scale)
         context.setLineCap(CGLineCap.round)
         context.setLineWidth(2.0)
-        context.setBlendMode(blendMode)
+
 
         if let color = CartesianGeometryVisualizationView.strokeColor {
             context.setStrokeColor(color)

        return UIGraphicsGetCurrentContext()
    }
#endif

import CoreGraphics
import GeoFeatures
import GeoFeaturesQuartz

@IBDesignable
internal class CartesianGeometryVisualizationView: CartesianGeometryVisualizationViewBaseType {


#if os(OSX) || os(iOS)

import CoreGraphics
import GeoFeatures
import GeoFeaturesQuartz

#if os(OSX)
    import AppKit
    typealias CartesianGeometryVisualizationViewBaseType = NSView
