gCodeViewer icon indicating copy to clipboard operation
gCodeViewer copied to clipboard

error in svg renderer

Open el-j opened this issue 7 months ago • 0 comments

i like the project but sadly it does not work for my gcode i upload. i guess it's because of this failure in chrome:

Uncaught InvalidStateError: Failed to execute 'inverse' on 'SVGMatrix': The matrix is not invertible.
    at ctx.transformedPoint (renderer.js:157:45)
    at reRender (renderer.js:91:22)
    at Object.setOption (renderer.js:460:28)
    at Object.processOptions (ui.js:481:19)
    at HTMLInputElement.onclick ((index):193:168)

renderer.js

    ctx.transformedPoint = function(x,y){
            pt.x=x; pt.y=y;
            return pt.matrixTransform(xform.inverse());
        }

el-j avatar May 07 '25 09:05 el-j