<iframe src="https://jsxgraph.org/share/iframe/poincare-disc-model" style="border: 1px solid black; overflow: hidden; width: 550px; aspect-ratio: 55 / 65;" name="JSXGraph example: Poincare disc model" allowfullscreen ></iframe>
<div id="board-0-wrapper" class="jxgbox-wrapper " style="width: 100%; "> <div id="board-0" class="jxgbox" style="aspect-ratio: 1 / 1; width: 100%;" data-ar="1 / 1"></div> </div> <script type = "text/javascript"> /* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ const BOARDID = 'board-0'; var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5], keepaspectratio: true }); var c = board.create('circle', [[0, 0], 3], { strokeColor: 'black', fixed: true }); // outer circle var p = board.create('point', [0, -4], { withLabel: false }); var t = board.create('polar', [c, p], { strokeColor: 'gray', dash: 2, visible: false }); var s1 = board.create('intersection', [c, t, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var s2 = board.create('intersection', [c, t, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('arc', [p, s1, s2], { name: 'g', withLabel: true }); var pp = board.create('point', [1, 2], { withLabel: true, name: 'P' }); var t = board.create('polar', [c, pp], { visible: false }); var l = board.create('line', [[0, 0], pp], { visible: false }); var A = board.create('intersection', [l, t, 0], { withLabel: true, visible: false }); var M = board.create('midpoint', [pp, A], { withLabel: true, visible: false }); var perp = board.create('perpendicular', [l, M], { name: '', withLabel: false, strokeColor: 'gray', dash: 1, straightFirst: true, straightLast: true, point: { visible: true } }); var x = board.create('glider', [3, 3, perp], { name: 'drag me' }); var t2 = board.create('polar', [c, x], { strokeColor: 'gray', dash: 2, visible: false }); var ss1 = board.create('intersection', [c, t2, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var ss2 = board.create('intersection', [c, t2, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('circumcirclearc', [ss1, pp, ss2], { strokeWidth: 1, trace: true, dash: 3 }); </script>
/* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ const BOARDID = 'your_div_id'; // Insert your id here! var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5], keepaspectratio: true }); var c = board.create('circle', [[0, 0], 3], { strokeColor: 'black', fixed: true }); // outer circle var p = board.create('point', [0, -4], { withLabel: false }); var t = board.create('polar', [c, p], { strokeColor: 'gray', dash: 2, visible: false }); var s1 = board.create('intersection', [c, t, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var s2 = board.create('intersection', [c, t, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('arc', [p, s1, s2], { name: 'g', withLabel: true }); var pp = board.create('point', [1, 2], { withLabel: true, name: 'P' }); var t = board.create('polar', [c, pp], { visible: false }); var l = board.create('line', [[0, 0], pp], { visible: false }); var A = board.create('intersection', [l, t, 0], { withLabel: true, visible: false }); var M = board.create('midpoint', [pp, A], { withLabel: true, visible: false }); var perp = board.create('perpendicular', [l, M], { name: '', withLabel: false, strokeColor: 'gray', dash: 1, straightFirst: true, straightLast: true, point: { visible: true } }); var x = board.create('glider', [3, 3, perp], { name: 'drag me' }); var t2 = board.create('polar', [c, x], { strokeColor: 'gray', dash: 2, visible: false }); var ss1 = board.create('intersection', [c, t2, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var ss2 = board.create('intersection', [c, t2, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('circumcirclearc', [ss1, pp, ss2], { strokeWidth: 1, trace: true, dash: 3 });
<jsxgraph width="100%" aspect-ratio="1 / 1" title="Poincare disc model" description="This construction was copied from JSXGraph examples database: BTW HERE SHOULD BE A GENERATED LINKuseGlobalJS="false"> /* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5], keepaspectratio: true }); var c = board.create('circle', [[0, 0], 3], { strokeColor: 'black', fixed: true }); // outer circle var p = board.create('point', [0, -4], { withLabel: false }); var t = board.create('polar', [c, p], { strokeColor: 'gray', dash: 2, visible: false }); var s1 = board.create('intersection', [c, t, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var s2 = board.create('intersection', [c, t, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('arc', [p, s1, s2], { name: 'g', withLabel: true }); var pp = board.create('point', [1, 2], { withLabel: true, name: 'P' }); var t = board.create('polar', [c, pp], { visible: false }); var l = board.create('line', [[0, 0], pp], { visible: false }); var A = board.create('intersection', [l, t, 0], { withLabel: true, visible: false }); var M = board.create('midpoint', [pp, A], { withLabel: true, visible: false }); var perp = board.create('perpendicular', [l, M], { name: '', withLabel: false, strokeColor: 'gray', dash: 1, straightFirst: true, straightLast: true, point: { visible: true } }); var x = board.create('glider', [3, 3, perp], { name: 'drag me' }); var t2 = board.create('polar', [c, x], { strokeColor: 'gray', dash: 2, visible: false }); var ss1 = board.create('intersection', [c, t2, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var ss2 = board.create('intersection', [c, t2, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('circumcirclearc', [ss1, pp, ss2], { strokeWidth: 1, trace: true, dash: 3 }); </jsxgraph>
// Define the id of your board in BOARDID var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5], keepaspectratio: true }); var c = board.create('circle', [[0, 0], 3], { strokeColor: 'black', fixed: true }); // outer circle var p = board.create('point', [0, -4], { withLabel: false }); var t = board.create('polar', [c, p], { strokeColor: 'gray', dash: 2, visible: false }); var s1 = board.create('intersection', [c, t, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var s2 = board.create('intersection', [c, t, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('arc', [p, s1, s2], { name: 'g', withLabel: true }); var pp = board.create('point', [1, 2], { withLabel: true, name: 'P' }); var t = board.create('polar', [c, pp], { visible: false }); var l = board.create('line', [[0, 0], pp], { visible: false }); var A = board.create('intersection', [l, t, 0], { withLabel: true, visible: false }); var M = board.create('midpoint', [pp, A], { withLabel: true, visible: false }); var perp = board.create('perpendicular', [l, M], { name: '', withLabel: false, strokeColor: 'gray', dash: 1, straightFirst: true, straightLast: true, point: { visible: true } }); var x = board.create('glider', [3, 3, perp], { name: 'drag me' }); var t2 = board.create('polar', [c, x], { strokeColor: 'gray', dash: 2, visible: false }); var ss1 = board.create('intersection', [c, t2, 0], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var ss2 = board.create('intersection', [c, t2, 1], { withLabel: false, strokeColor: 'green', fillColor: 'green' }); var arc = board.create('circumcirclearc', [ss1, pp, ss2], { strokeWidth: 1, trace: true, dash: 3 });
This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits.