Update path.class.js

add calculation of strokewidth if path is auto calculated