Update polygon.class.js

Fixes position in polygon from svg import skipoffset come just fromElement method