JSFiddle - React, Tailwind, and code Playground

by WernerSalomon

HTML

<script src="https://cindyjs.org/dist/latest/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: "M", type: "Free", pos: [ 4.0, 1.1830985915492958, 1.408450704225352 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "G", type: "Free", pos: [ 4.0, 0.4307692307692308, 0.5128205128205129 ], color: [ 1.0, 0.0, 0.0 ], visible: false, labeled: true }, 
		{ name: "C0", type: "CircleMP", color: [ 0.0, 0.0, 1.0 ], args: [ "M", "G" ], size: 2, printname: "$C_{0}$" }, 
		{ name: "a", type: "Join", color: [ 0.0, 0.0, 0.0 ], args: [ "M", "G" ] }, 
		{ name: "b", type: "Orthogonal", color: [ 0.0, 0.0, 0.0 ], args: [ "a", "M" ] }, 
		{ name: "Collection__1", type: "AngularBisector", args: [ "a", "b", "M" ] }, 
		{ name: "c", type: "SelectL", pos: [ -2.000000000000001, 2.0000000000000018, 4.0 ], color: [ 0.7568628, 0.0, 0.0 ], args: [ "Collection__1" ] }, 
		{ name: "C", type: "PointOnLine", pos: [ 4.0, 2.6301369863013693, 0.684931506849315 ], color: [ 1.0, 0.0, 0.0 ], args: [ "c" ], labeled: true }, 
		{ name: "d", type: "Orthogonal", color: [ 0.0, 0.0, 1.0 ], args: [ "a", "C" ], visible: false }, 
		{ name: "e", type: "Parallel", color: [ 0.0, 0.0, 1.0 ], args: [ "a", "C" ], visible: false }, 
		{ name: "B", type: "Meet", color: [ 1.0, 0.0, 0.0 ], args: [ "a", "d" ], labeled: true }, 
		{ name: "C1", type: "CircleMP", color: [ 1.0, 1.0, 1.0 ], args: [ "M", "B" ], size: 0, printname: "$C_{1}$" }, 
		{ name: "A", type: "OtherIntersectionCL", color: [ 1.0, 0.0, 0.0 ], args: [ "C1", "a", "B" ], labeled: true }, 
		{ name: "F", type: "Meet", color: [ 1.0, 1.0, 1.0 ], args: [ "b", "e" ], size: 0.0 }, 
		{ name: "C2", type: "CircleMP", color: [ 1.0, 1.0, 1.0 ], args: [ "F", "C" ], size: 0, printname: "$C_{2}$" }, 
		{ name: "D", type: "OtherIntersectionCL", color: [ 1.0, 0.0, 0.0 ], args: [ "C2", "e", "C"...