     coordinates =
       top  : dimensions.selector.offset.top
       left : dimensions.selector.offset.left
+
     [staticAxis,dynamicAxis,staticC,dynamicC,exclusion] =
       if /o/.test placement then ['height','width','top','left','right']
       else ['width','height','left','top','bottom']
+
     coordinates[staticC]+= unless placement.length<5
         (dimensions.selector[staticAxis]+10)
       else -(dimensions.container[staticAxis]+10)
+
     unless direction is exclusion
       coordinates[dynamicC]+=getCoordsDiff(dimensions,dynamicAxis,direction is 'center')
     return coordinates

    right   : "right"

  # will return an object with the amount of clipped pixels
  boundaryViolations = (coordinates,width,height)=>
    violations = {}
    if coordinates.left < 0
      violations.left   = -(coordinates.left)

      ]

      for variant in variants
        if Object.keys(getBoundaryViolations(getCoordsFromPlacement(d,variant[0],variant[1]),\
        d.container.width, d.container.height)).length is 0
          [placement,direction] = variant
          break
