GithubHelp home page GithubHelp logo

Safari: Offsets not working about jscut HOT 11 CLOSED

tbfleming avatar tbfleming commented on August 20, 2024
Safari: Offsets not working

from jscut.

Comments (11)

tbfleming avatar tbfleming commented on August 20, 2024

I haven't been able to reproduce this. Could you save settings to Gist and post the link here for me to look at?

from jscut.

cribskip avatar cribskip commented on August 20, 2024

Sure, i created a gist called 'jscut settings issue #7' for this.

I thought again about this. Maybe using G91 (relative movement) may be helpful to avoid miss-zeroing (Just IMHO)

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

What is the gist url? You get the url when you right-click on the "Launch jscut with Gist" link and choose "Copy link address".

from jscut.

cribskip avatar cribskip commented on August 20, 2024

I'm sorry but yet I still don't get it. Where's that link to right-click on? I only found "Launch!" on jscut.org and an example of using stored settings in Gist (not how to create them) :(

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

After you load it and get it to misbehave, do this:

  • Go to "Save Settings" -> "Gist" -> "Create Gist"
  • Copy the link from "Launch jscut with Gist"
  • Paste the link in this thread

from jscut.

cribskip avatar cribskip commented on August 20, 2024

It'll create an anonymous gist - at least it says so but does not output any link or something. I also can't select 'Open settings' => 'Gist' or something. Trying the Link from jscut.org with ?gist=xxxxx is also impossible as I have not gotten any ID.

However, I uploaded the file to my google drive: https://drive.google.com/file/d/0BxKbb99TdIE9MUhhcWxMR3dSRFE/edit?usp=sharing and this is it's contents:
{"svg":{"pxPerInch":"90"},"material":{"units":"mm","thickness":25.4,"zOrigin":"Top","clearance":2.54},"curveToLineConversion":{"minNumSegments":"1","minSegmentLength":2.54},"tool":{"units":"mm","diameter":"2.3","passDepth":"0.3","overlap":0.6,"rapidRate":2540,"plungeRate":127,"cutRate":1016},"operations":{"operations":[{"rawPaths":[{"path":[["M",0,892.91333],["L",354.33072,892.91333],["L",354.33072,1052.36215],["L",0,1052.36215],["L",0,892.9133299999999]],"nonzero":true}],"name":"","units":"mm","enabled":true,"ramp":false,"selected":"on","combineOp":"Union","camOp":"Pocket","direction":"Conventional","cutDepth":"3","margin":"0.0"}]},"gcodeConversion":{"units":"mm","gcodeFilename":"gcode.gcode","offsetX":-1.150112,"offsetY":295.84980199999995}}

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

Here's the gcode it's producing:
G21 ; Set units to mm
G90 ; Absolute positioning
G1 Z2.54 F2540 ; Move to clearance level
...
G1 X76.5401 Y21.1597 F2540
G1 Z0.0000
; plunge
G1 Z-0.3000 F127
; cut
G1 X21.1597 Y21.1597 F1016
G1 X21.1597 Y21.5400
...

The lowest values I see for X and Y are 0. The highest values I see are X97.6998 and Y42.6997, which seem correct. Does this match the gcode you're seeing?

I suspect you're somehow on an older version. Are you using jscut.org directly or the version bundled with grblweb? The one in grblweb is over a week old and is missing both the offset bug fix and the latest Gist support.

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

Scratch what I just wrote. Gist support is broken on Safari. I'm starting to wonder if Safari is messing up in other ways also.

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

Bad news: I can't debug Safari, my iPad doesn't support debugging without tethering to a Mac, which I don't have.
Good news: I just tried Internet Explorer. Its Gist support is also broken. I can debug it.
Bad news: I can't reproduce the offset problem in Internet Explorer, Chrome, Firefox, or my iPad (Safari).

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

The Gist issue is now fixed. That won't help here because you already posted your settings file.

from jscut.

tbfleming avatar tbfleming commented on August 20, 2024

I'm assuming it now works; please reopen if it's still causing you issues.

from jscut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.