Update pattern.class.js

Added hack to support repeat and offset to svg export.