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: "O", type: "Free", pos: [ 0.0, -0.0, 4.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true, size: 4.0 }, 
		{ name: "B", type: "Free", pos: [ 4.0, -0.0, 4.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true, size: 4.0, printname: "1" }, 
		{ name: "C0", type: "CircleMP", color: [ 0.0, 0.0, 1.0 ], args: [ "O", "B" ], printname: "$C_{0}$" },
    { name: "Z", type: "PointOnCircle", pos: [ 3.692561716797263, 1.5378517378613736, 4.0 ], color: [ 1.0, 0.0, 0.0 ], args: [ "C0" ], labeled: true, size: 6.0 }, 
		{ name: "a", type: "Join", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "O", "Z" ], alpha: 0.18803418803418803, clip: "inci" }, 
		{ name: "b", type: "Orthogonal", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "a", "B" ], alpha: 0.18803418803418803, size: 0, clip: "inci" }, 
		{ name: "G", type: "Meet", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "a", "b" ], alpha: 0.18803418803418803, size: 0.0 }, 
		{ name: "C1", type: "CircleMP", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "G", "B" ], alpha: 0.18803418803418803, size: 0, printname: "$C_{1}$" }, 
		{ name: "C", type: "OtherIntersectionCL", color: [ 1.0, 0.0, 0.0 ], args: [ "C1", "b", "B" ], labeled: true, size: 2.0, printname: "$Z^2$" }, 
		{ name: "c", type: "Join", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "O", "C" ], alpha: 0.18803418803418803, clip: "inci" }, 
		{ name: "d", type: "Orthogonal", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "c", "Z" ], alpha: 0.18803418803418803, size: 0, clip: "inci" }, 
		{ name: "F", type: "Meet", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "c", "d" ], alpha: 0.18803418803418803, size: 0.0 }, 
		{ name: "C2", type: "CircleMP", color: [ 0.5019608, 0.5019608, 0.5019608 ],...