{"id":383,"date":"2014-07-20T22:49:09","date_gmt":"2014-07-21T02:49:09","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=383"},"modified":"2014-08-09T22:51:01","modified_gmt":"2014-08-10T02:51:01","slug":"disable-dragging-of-an-element-in-jsxgraph","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2014\/07\/20\/disable-dragging-of-an-element-in-jsxgraph\/","title":{"rendered":"Disable dragging of an element in JSXGraph"},"content":{"rendered":"<p>Set the attribute &#8216;<a href=\"http:\/\/jsxgraph.uni-bayreuth.de\/docs\/symbols\/JXG.GeometryElement.html#fixed\">fixed<\/a>&#8216; to true in JXG.GeometryElement:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nvar line = board.create('line', [ [0,0], [1,1] ], {dash:0, strokeColor:&quot;#FF0000&quot;, strokeWidth:3, fixed: true});\r\n<\/pre>\n<p>or<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nvar line = board.create('line', [ [0,0], [1,1] ], {dash:0, strokeColor:&quot;#FF0000&quot;, strokeWidth:3});\r\nline.setAttribute({ fixed: true });\r\nboard.update();\r\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Set the attribute &#8216;fixed&#8216; to true in JXG.GeometryElement: or<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,4],"tags":[844,845,522,701,843,832],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/383"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}