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 }, 
		{ name: "y=-1", type: "Free", pos: [ 0.0, -4.0, 4.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "a", type: "Join", color: [ 0.0, 0.0, 1.0 ], args: [ "y=-1", "O" ], labeled: true }, 
		{ name: "M", type: "PointOnLine", pos: [ 0.0, -4.0, -2.5993316004455993 ], color: [ 1.0, 0.0, 0.0 ], args: [ "a" ], labeled: true }, 
		{ name: "C0", type: "CircleMP", color: [ 0.0, 0.0, 1.0 ], args: [ "O", "y=-1" ], size: 2, printname: "$C_{0}$" }, 
		{ name: "C1", type: "CircleMP", color: [ 0.0, 0.0, 1.0 ], args: [ "M", "y=-1" ], size: 2, printname: "$C_{1}$" }, 
		{ name: "B", type: "PointOnCircle", pos: [ -3.127798072500458, -2.4933670443122535, 4.0 ], color: [ 1.0, 0.0, 0.0 ], args: [ "C0" ], labeled: true }, 
		{ name: "b", type: "Join", color: [ 0.0, 0.0, 1.0 ], args: [ "O", "B" ], alpha: 0.3162393162393162, clip: "inci" }, 
		{ name: "c", type: "Orthogonal", color: [ 0.0, 0.0, 1.0 ], args: [ "b", "B" ], clip: "inci" }, 
		{ name: "Collection__1", type: "IntersectionConicLine", args: [ "C1", "c" ] }, 
		{ name: "P", type: "SelectP", pos: [ 4.0, -2.489929846376423, -1.5757208170993466 ], color: [ 1.0, 0.0, 0.0 ], args: [ "Collection__1" ], labeled: true }, 
		{ name: "d", type: "Orthogonal", color: [ 0.0, 0.0, 0.0 ], args: [ "a", "y=-1" ], dashtype: "dashdot" }, 
		{ name: "C2", type: "CircleMP", color: [ 1.0, 1.0, 1.0 ], args: [ "B", "P" ], size: 0, printname: "$C_{2}$" }, 
		{ name: "Q", type: "OtherIntersectionCL", color: [ 1.0, 0.0, 0.0 ], args: [ "C2", "c", "P" ], labeled: true }, 
		{ name: "e", type: "Orthogonal", color: [ 1.0, 1.0, 1.0 ], args: [ "d", "Q" ], size: 0 }, 
		{ name: "A", type: "Meet",...