1// Global variables for nibglider.js 2 3var globalStrokeWidth = 4.0; 4var maxStrokeWidth = 40.0; 5 6// Mouse and drawing state 7var mousePt; 8var lastMousePt = null; 9 10// Drawing mode flags 11var isDrawingPath = false; 12var isDrawingShape = false; 13var isDrawingQuad = false; 14 15// Shape drawing state 16var shapeType = null; // 'circle_radius' or 'circle_diameter' 17var shapeStartPoint = null; 18var shapePt2 = null; 19var shapeWidth = 90; 20var maxShapeWidth = 200; 21 22// Preview objects 23var previewShape = null; 24var previewLine = null; 25var previewPath = null; 26var previewRect = null; 27var previewInner = null; 28 29// Path objects 30var path; 31var quadPath; 32var quadPointCount = 0; 33 34// Stroke and style 35var globalStrokeWidth = 4.0; 36var maxStrokeWidth = 40.0; 37var lastCenterlineWidth = 80; 38var splineTensionDefault = 0.4; 39var splineTension = 0.4; 40 41// Inner shape parameters 42var innerShapeType = 'polygon'; // 'none', 'circle', 'polygon', 'supershape' 43var innerShapeParams = { 44 sides: 6, // for polygon 45 m: 5, // for supershape 46 n1: 0.2, 47 n2: 1.7, 48 n3: 1.7 49}; 50 51// Circle-specific inner shape 52var circleInnerShapeType = 'polygon'; 53var circleInnerShapeParams = { 54 sides: 6, 55 m: 5, 56 n1: 0.2, 57 n2: 1.7, 58 n3: 1.7 59}; 60 61// Rectangle frame state 62var rectangleInnerShapeType = 'rectangle'; // 'rectangle', 'rightTriangle', 'regularTriangle' 63 64// UI elements (circle frame controls) 65const circleInnerShapeSelect = document.getElementById('circleInnerShapeSelect'); 66const circlePolySidesSlider = document.getElementById('circlePolySides'); 67const circlePolySidesLabel = document.getElementById('circlePolySidesLabel'); 68const circleFrameControls = document.getElementById('circleFrameControls'); 69 70// Selection and interaction 71var selectedItems = []; 72var _isInDragLock = false; 73var shapeGuideAngle = 0; 74 75// Text display 76var textItem1; 77 78// Shape preview and drawing state 79var previewInner = null; 80var previewShape = null; 81var previewLine = null; 82var previewPath = null; 83var previewRect = null; 84 85// Additional drawing state 86var isDrawingPath = false; 87var isDrawingShape = false;
88var isDrawingQuad = false; 89var shapeType = null; 90var shapeStartPoint = null; 91var shapePt2 = null; 92var quadPath; 93var quadPointCount = 0; 94var path;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.