Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaslowCNC/Maslow-Create
/ functions
Functions
429 in github.com/MaslowCNC/Maslow-Create
⨍
Functions
429
◇
Types & classes
74
↓ 109 callers
Method
widthToPixels
* A function to generate a pixel value for 0-1 location on screen depending on screen width * @param {number} width 0-1
src/js/globalvariables.js:220
↓ 98 callers
Function
_almostEqual
(a, b, tolerance)
src/js/lib/svg_util/geometryutil.js:15
↓ 74 callers
Method
addIO
* Adds a new attachment point to this atom * @param {boolean} type - The type of the IO (input or output) * @param {string} name - The name
src/js/prototypes/atom.js:273
↓ 56 callers
Method
heightToPixels
* A function to generate a pixel value for 0-1 location on screen depending on screen height * @param {number} width 0-1
src/js/globalvariables.js:237
↓ 51 callers
Method
findIOValue
* Find the value of an input for with a given name. * @param {string} ioName - The name of the target attachment point.
src/js/prototypes/atom.js:784
↓ 41 callers
Method
setValues
* Applies each of the passed values to this as this.x * @param {object} values - A list of values to set
src/js/prototypes/atom.js:161
↓ 38 callers
Method
setAlert
* Set an alert to display next to the atom. * @param {string} message - The message to display.
src/js/prototypes/atom.js:328
↓ 35 callers
Function
q
()
src/js/lib/svg_util/clipper.js:66
↓ 28 callers
Function
style
(ele, name, value, priority)
src/js/lib/circularmenu.js:157
↓ 24 callers
Method
basicThreadValueProcessing
* Calls a worker thread to compute the atom's value.
src/js/prototypes/atom.js:701
↓ 20 callers
Method
getValue
* Reads and returns the current value of the ap.
src/js/prototypes/attachmentpoint.js:506
↓ 18 callers
Method
createEditableValueListItem
* Creates an editable HTML item to set the value of an object element. Used in the sidebar. * @param {object} list - The HTML object to attach th
src/js/prototypes/atom.js:819
↓ 13 callers
Method
createButton
* Creates button. Used in the sidebar. * @param {object} list - The HTML object to attach the new item to. * @param {object} parent - The pa
src/js/prototypes/atom.js:988
↓ 13 callers
Method
generateUniqueID
* A function to generate a unique ID value. Currently uses random which does not gurintee that it will be unique.
src/js/globalvariables.js:298
↓ 11 callers
Function
_onSegment
(A,B,p)
src/js/lib/svg_util/geometryutil.js:53
↓ 11 callers
Method
distBetweenPoints
* Computes the distance between two points on a plane. This is a duplicate of the one in utils which should probably be deleted. * @param {number
src/js/globalvariables.js:309
↓ 9 callers
Function
classed
(ele, name, value)
src/js/lib/circularmenu.js:238
↓ 9 callers
Function
on
(ele, type, callback, data)
src/js/lib/circularmenu.js:278
↓ 9 callers
Function
styleSheet
(element, prop, value, pseudo)
src/js/lib/circularmenu.js:260
↓ 8 callers
Function
log
()
src/js/lib/svgnest.js:464
↓ 8 callers
Method
pixelsToHeight
* A function to generate a 0-1 value from pixels for location on screen depending on screen height * @param {number} width 0-1
src/js/globalvariables.js:290
↓ 8 callers
Method
pixelsToWidth
* A function to generate a 0-1 value from pixels for location on screen depending on screen width * @param {number} width 0-1
src/js/globalvariables.js:229
↓ 8 callers
Method
placeAtom
* Places a new atom inside the molecule * @param {object} newAtomObj - An object defining the new atom to be placed * @param {array} molecul
src/js/molecules/molecule.js:737
↓ 8 callers
Function
v
(a)
src/js/lib/svg_util/clipper.js:67
↓ 7 callers
Method
backgroundClick
* Handle a background click (a click which doesn't land on one of the contained molecules) by deselected everything and displaying a 3D rendering of t
src/js/molecules/molecule.js:203
↓ 7 callers
Method
clearAlert
* Clears the alert message attached to this atom.
src/js/prototypes/atom.js:337
↓ 7 callers
Method
decreaseToProcessCountByOne
* Set's the output value and shows the atom output on the 3D view.
src/js/prototypes/atom.js:642
↓ 7 callers
Function
f
(n)
src/js/lib/svg_util/json.js:1
↓ 6 callers
Function
done
(err, wrk)
src/js/lib/svg_util/parallel.js:249
↓ 6 callers
Function
makeArray
* Runs to create submenus from Global Variables atomCategories. Populates menu objects * @param {object} group - Name of the category to find app
src/js/NewMenu.js:61
↓ 6 callers
Method
setValue
* Re excecutes configure function for nesting if values are updated by user
src/js/molecules/nest.js:82
↓ 5 callers
Function
addOrDeletePorts
(target)
src/js/alwaysOneFreeInput.js:48
↓ 5 callers
Method
deleteSelf
* Deletes the connector by calling its attachmentPoints to tell them to delete their references to this connector.
src/js/prototypes/connector.js:153
↓ 5 callers
Function
extend
(from, to)
src/js/lib/svg_util/parallel.js:12
↓ 5 callers
Method
setConfig
* Update values for config(). Called when the values on sidebar have been edited.
src/js/molecules/nest.js:121
↓ 5 callers
Method
setValue
* Sets the current value of the ap. Force forces an update even if the value hasn't changed.
src/js/prototypes/attachmentpoint.js:513
↓ 5 callers
Method
writeToDisplay
* A function which reads from a path and displays the geometry it contains * @param {string} The path to read from
src/js/globalvariables.js:246
↓ 4 callers
Function
C
(a)
src/js/lib/svg_util/clipper.js:67
↓ 4 callers
Function
_degreesToRadians
(angle)
src/js/lib/svg_util/geometryutil.js:29
↓ 4 callers
Function
_normalizeVector
(v)
src/js/lib/svg_util/geometryutil.js:38
↓ 4 callers
Method
beginEvaluatingIndividual
* Trigger the process to evaluate the current individual
src/js/molecules/geneticAlgorithm.js:225
↓ 4 callers
Method
beginPropagation
* Walks through each of the atoms in this molecule and begins Propagation from them if they have no inputs to wait for
src/js/molecules/molecule.js:329
↓ 4 callers
Function
click
(node)
src/js/lib/FileSaver.js:74
↓ 4 callers
Method
createCheckbox
* Creates button. Used in the sidebar. * @param {object} list - The HTML object to attach the new item to. * @param {string} buttonText - Th
src/js/prototypes/atom.js:1061
↓ 4 callers
Method
deserialize
* Load the children of this from a JSON representation * @param {object} json - A json representation of the molecule * @param {object} valu
src/js/molecules/molecule.js:645
↓ 4 callers
Function
distance
* Compute the distance between two points on a plane. * @param {number} x1 - The x cordinate of the first point. * @param {number} y1 - The y cordin
src/utils.js:25
↓ 4 callers
Method
readOutputAtomPath
* Reads the path of this molecule's output atom
src/js/molecules/molecule.js:251
↓ 4 callers
Method
removeIO
* Removes an attachment point from an atom. * @param {boolean} type - The type of the IO (input or output). * @param {string} name - The nam
src/js/prototypes/atom.js:314
↓ 4 callers
Method
updateSidebar
* Updates the side bar to display options like 'go to parent' and 'load a different project'. What is displayed depends on if this atom is the top lev
src/js/molecules/molecule.js:374
↓ 4 callers
Method
updateValue
* Set the value to be the BOMitem
src/js/molecules/BOM.js:61
↓ 3 callers
Function
classList
(node)
src/js/lib/circularmenu.js:187
↓ 3 callers
Method
clickUp
* Clears the drawing of box when clickUp and updates values for atom selection
src/js/molecules/box.js:115
↓ 3 callers
Function
download
(url, name, opts)
src/js/lib/FileSaver.js:49
↓ 3 callers
Function
hasSubMenus
(menus)
src/js/lib/circularmenu.js:319
↓ 3 callers
Method
loadProjectByID
* Loads a project into this GitHub molecule from github based on the passed github ID. This function is async and execution time depends on project co
src/js/molecules/githubmolecule.js:63
↓ 3 callers
Method
propagate
* Called when this molecules value changes
src/js/molecules/molecule.js:276
↓ 3 callers
Function
quote
(string)
src/js/lib/svg_util/json.js:1
↓ 3 callers
Function
randomIntFromRange
* Returns a random integer within a range. * @param {number} min - The minimum possible value. * @param {number} max - The maximum possible value.
src/utils.js:6
↓ 3 callers
Function
rotatePolygon
(polygon, degrees)
src/js/lib/svg_util/placementworker.js:27
↓ 3 callers
Method
serialize
* Save the input code to be loaded next time
src/js/molecules/code.js:239
↓ 3 callers
Method
updateValue
* Grab the code as a text string and execute it.
src/js/molecules/code.js:83
↓ 3 callers
Method
waitOnComingInformation
* Sets the parent molecule output to wait on coming information
src/js/molecules/output.js:83
↓ 2 callers
Function
K
(a,b)
src/js/lib/svg_util/clipper.js:103
↓ 2 callers
Function
L
(a,b)
src/js/lib/svg_util/clipper.js:67
↓ 2 callers
Function
_radiansToDegrees
(angle)
src/js/lib/svg_util/geometryutil.js:33
↓ 2 callers
Method
addAndRemoveInputs
* Add and remove inputs as needed from the atom
src/js/molecules/equation.js:86
↓ 2 callers
Function
addToList
* Runs when a search value is entered (after return) * @param {object} item - What is being added to the list. * @param {object} owned - Doe
src/js/NewMenu.js:192
↓ 2 callers
Function
alert
(message)
src/js/lib/svg_util/placementworker.js:295
↓ 2 callers
Function
classArray
(string)
src/js/lib/circularmenu.js:183
↓ 2 callers
Method
clickDown
* Set the atom's response to a mouse click. This usually means selecting the atom and displaying it's contents in 3D * @param {number} x - The X
src/js/prototypes/atom.js:366
↓ 2 callers
Function
closeTopMenu
* Closes main menu on background click or on button click if open
src/flowDraw.js:322
↓ 2 callers
Function
contains
(gene, id)
src/js/lib/svgnest.js:926
↓ 2 callers
Method
copy
* Pushes serialized atoms into array if selected
src/js/molecules/molecule.js:217
↓ 2 callers
Function
corsEnabled
(url)
src/js/lib/FileSaver.js:65
↓ 2 callers
Method
createDropDown
* Creates dropdown with multiple options to select. Used in the sidebar. * @param {object} list - The HTML object to attach the new item to.
src/js/prototypes/atom.js:941
↓ 2 callers
Method
createNonEditableValueListItem
* Creates an non-editable HTML item to set the value of an object element. Used in the sidebar. * @param {object} list - The HTML object to attac
src/js/prototypes/atom.js:882
↓ 2 callers
Method
deleteConnector
* Delete a target connector which is passed in. The default option is to delete all of the connectors.
src/js/prototypes/attachmentpoint.js:408
↓ 2 callers
Method
deleteNode
* Remove the input from the parent molecule, then delete the atom normally.
src/js/molecules/input.js:143
↓ 2 callers
Method
deleteNode
* Delete this atom. Silent prevents it from telling its neighbors
src/js/prototypes/atom.js:562
↓ 2 callers
Method
displayAndPropagate
* Displays the atom in 3D and sets the output.
src/js/prototypes/atom.js:670
↓ 2 callers
Method
downloadSvg
* The function which is called when you press the download button.
src/js/molecules/svg.js:99
↓ 2 callers
Method
editCode
* Called to trigger editing the code atom
src/js/molecules/code.js:194
↓ 2 callers
Method
evaluateEquation
* Evaluate the equation
src/js/molecules/equation.js:113
↓ 2 callers
Function
extend$1
()
src/js/lib/circularmenu.js:531
↓ 2 callers
Function
extractBomTags
(path, functionToPlace)
src/js/BOM.js:51
↓ 2 callers
Function
findHighestInput
(target)
src/js/alwaysOneFreeInput.js:36
↓ 2 callers
Method
generatePath
* Generates the path for this atom from it's location in the graph
src/js/prototypes/atom.js:145
↓ 2 callers
Function
hasIcon
(icon)
src/js/lib/circularmenu.js:457
↓ 2 callers
Function
howManyInputPortsAvailable
(target)
src/js/alwaysOneFreeInput.js:7
↓ 2 callers
Function
ifDisabled
(disabled)
src/js/lib/circularmenu.js:322
↓ 2 callers
Function
inNfp
(p, nfp)
src/js/lib/svg_util/geometryutil.js:1323
↓ 2 callers
Method
initializeSideBar
* Initialized the sidebar with a title and create the HTML object.
src/js/prototypes/atom.js:508
↓ 2 callers
Function
onDoubleClick
* Called by double clicks
src/flowDraw.js:179
↓ 2 callers
Function
onMouseDown
* Called by mouse down
src/flowDraw.js:95
↓ 2 callers
Function
onMouseMove
* Called by mouse moves
src/flowDraw.js:171
↓ 2 callers
Function
onMouseUp
* Called by mouse up
src/flowDraw.js:161
↓ 2 callers
Function
onWindowResize
* Handles the window's resize behavior when the browser size changes.
src/flowDraw.js:608
↓ 2 callers
Method
parseInputs
* This function reads the string of inputs the user specifies and adds them to the atom.
src/js/molecules/code.js:145
↓ 2 callers
Method
propogate
* Pass the value of the attached output to the attached input
src/js/prototypes/connector.js:192
↓ 2 callers
Method
pushPropagation
* Called when this molecules value changes
src/js/molecules/molecule.js:305
next →
1–100 of 429, ranked by callers