Compdigitec Labs

« | Home | »

Disable dragging of an element in JSXGraph

By admin | July 20, 2014

Set the attribute ‘fixed‘ to true in JXG.GeometryElement:

var line = board.create('line', [ [0,0], [1,1] ], {dash:0, strokeColor:"#FF0000", strokeWidth:3, fixed: true});

or

var line = board.create('line', [ [0,0], [1,1] ], {dash:0, strokeColor:"#FF0000", strokeWidth:3});
line.setAttribute({ fixed: true });
board.update();

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: (X)HTML, Windows | 6 Comments »

6 Responses to “Disable dragging of an element in JSXGraph”

  1. Mulch film Says:
    August 1st, 2025 at 22:20

    … [Trackback]

    […] There you will find 95248 additional Info on that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

  2. พลาสติกปูพื้นก่อนเทคอนกรีต Says:
    August 29th, 2025 at 21:52

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

  3. สั่งของจากจีน Says:
    September 3rd, 2025 at 00:45

    … [Trackback]

    […] There you will find 4401 more Info on that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

  4. av Says:
    September 4th, 2025 at 01:40

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

  5. ทำความรู้จัก bet365 ทางเข้า Says:
    September 10th, 2025 at 19:03

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

  6. blazing crown Says:
    September 11th, 2025 at 20:36

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

Comments