     TICK_SHORT_STROKE_STYLE = 'rgba(100, 140, 230, 0.7)',

        TRACKING_RING_STROKING_STYLE = 'rgba(100, 140, 230, 0.3)',
        drawingSurfaceImageData,

        mousedown = {},
        rubberbandRect = {},

        dragging = false,
        draggingOffsetX,
        draggingOffsetY,

        sides = 8,
        startAngle = 0,

        guidewires = true,

        editing = false,
        rotatingLockEngaged = false,
        rotatingLockAngle,
        polygonRotating,

        polygons = [];

    // Fu