Skip to content

error in svg renderer #96

Description

@el-j

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());
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions