|
System.register('./boardAttribs.js',[],function(a,b){'use strict';var c,d,e,f;var g=b&&b.id;return{setters:[],execute:function(){if(JXG.Options.point){JXG.Options.point.color='deeppink';JXG.Options.point.size=3}if(JXG.Options.text){JXG.Options.text.useMathJax=true}a('boardAttribs',c={axis:true,boundingBox:[-5,5,5,-5],showCopyright:true,showNavigation:true,showFullscreen:true,showScreenshot:true});a('perpStyle',d={dash:'1',strokeWidth:'1',strokeColor:'#30510b'});a('centroidStyle',e={dash:'1',strokeWidth:'1',strokeColor:'#dc3cd3'});a('circaStyle',f={dash:'1',strokeWidth:'1',strokeColor:'#ffc300'})}}});System.register('./index.js',['./boardAttribs.js'],function(d,b){'use strict';var a;var c=b&&b.id;return{setters:[function(b){a=b}],execute:function(){$(document).ready(function(){var b=JXG.JSXGraph.initBoard('box',a.boardAttribs);var c=b.create('point',[-2,-1]);var d=b.create('point',[2,1.5]);var e=b.create('point',[3,-4]);var f=b.create('segment',[c,d]);var g=b.create('segment',[c,e]);var h=b.create('segment',[d,e]);var l=b.create('perpendicular',[g,d],a.perpStyle);var m=b.create('perpendicular',[h,c],a.perpStyle);b.create('perpendicular',[f,e],a.perpStyle);var n=b.create('intersection',[m,l],{name:'H'});var i=b.create('midpoint',[c,d],{name:''});var j=b.create('midpoint',[c,e],{name:''});var k=b.create('midpoint',[d,e],{name:''});var o=b.create('segment',[i,e],a.centroidStyle);var p=b.create('segment',[j,d],a.centroidStyle);b.create('segment',[k,c],a.centroidStyle);var q=b.create('intersection',[o,p],{name:'G'});var r=b.create('perpendicular',[f,i],a.circaStyle);var s=b.create('perpendicular',[g,j],a.circaStyle);b.create('perpendicular',[h,k],a.circaStyle);var t=b.create('intersection',[r,s],{name:'Q'});b.create('circle',[t,c]);b.create('line',[n,q])})}}}) |