JSFiddle - React, Tailwind, and code Playground

by WernerSalomon

HTML

<script src="https://cindyjs.org/dist/v0.8.7/Cindy.js"></script>
<div id="CSCanvas"></div>

<script>
  CindyJS({ 
	scripts: "cs*", 
	defaultAppearance: { fontFamily: "sans-serif", lineSize: 1, pointSize: 5.0, textsize: 12.0 }, 
	angleUnit: "°", 
	geometry: [ 
		{ name: "A", type: "Free", pos: [ 0.0, -4.0, -2.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "B", type: "Free", pos: [ 4.0, -0.0, 1.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "a", type: "Join", color: [ 0.0, 0.0, 1.0 ], args: [ "A", "B" ], size: 2 }, 
		{ name: "X'", type: "PointOnLine", pos: [ 4.0, 2.7590719809637134, 2.3795359904818567 ], color: [ 1.0, 0.0, 0.0 ], args: [ "a" ], labeled: true }, 
		{ name: "O", type: "Free", pos: [ 0.0, -0.0, 4.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "b", type: "Join", color: [ 0.0, 0.0, 0.0 ], args: [ "O", "B" ], alpha: 0.24786324786324787, clip: "inci" }, 
		{ name: "c", type: "Orthogonal", color: [ 0.0, 0.0, 0.0 ], args: [ "b", "X'" ], alpha: 0.24786324786324787, clip: "inci" }, 
		{ name: "d", type: "Parallel", color: [ 0.0, 0.0, 0.0 ], args: [ "b", "X'" ], alpha: 0.24786324786324787, clip: "inci" }, 
		{ name: "e", type: "Orthogonal", color: [ 0.0, 0.0, 0.0 ], args: [ "b", "O" ], alpha: 0.24786324786324787, clip: "inci" }, 
		{ name: "E", type: "Meet", color: [ 1.0, 0.0, 0.0 ], args: [ "d", "e" ], size: 1.0 }, 
		{ name: "X", type: "Meet", color: [ 1.0, 0.0, 0.0 ], args: [ "b", "c" ], labeled: true, size: 1.0 }, 
		{ name: "Poly0", type: "Poly", color: [ 0.0, 0.0, 0.0 ], args: [ "O", "X", "X'", "E" ] }, 
		{ name: "C", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "O", "X" ], size: 0.0 }, 
		{ name: "dist0", type: "Dist", color: [ 0.0, 0.0, 1.0 ], args: [ "O", "X" ] }, 
		{ name: "Text0", type: "Text", color: [ 0.0, 0.0, 0.0 ], args: [ "dist0", "C" ], text: "|@$\"O\"@$\"X\"|= @#\"dist0\"", dock: { to: "C", offset: [ -3.181818181818244, -18.421487603305764 ] } }, 
		{ name: "D", type: "Free", pos: [ 4.0, 3.0, 2.0 ],...