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 | 3 Comments »

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

  1. สล็อตเกมไหนมีค่า RTP สูงสุดในปี 2024 Says:
    November 8th, 2024 at 03:45

    … [Trackback]

    […] Here you will find 39352 more Information to that Topic: compdigitec.com/labs/2014/07/20/disable-dragging-of-an-element-in-jsxgraph/ […]

  2. harry42 Says:
    November 10th, 2024 at 19:33

    … [Trackback]

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

  3. F1 shakes Says:
    December 3rd, 2024 at 23:12

    … [Trackback]

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

Comments