MCPcopy Create free account

hub / github.com/MaslowCNC/Maslow-Create / functions

Functions429 in github.com/MaslowCNC/Maslow-Create

↓ 109 callersMethodwidthToPixels
* 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 callersFunction_almostEqual
(a, b, tolerance)
src/js/lib/svg_util/geometryutil.js:15
↓ 74 callersMethodaddIO
* 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 callersMethodheightToPixels
* 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 callersMethodfindIOValue
* 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 callersMethodsetValues
* 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 callersMethodsetAlert
* Set an alert to display next to the atom. * @param {string} message - The message to display.
src/js/prototypes/atom.js:328
↓ 35 callersFunctionq
()
src/js/lib/svg_util/clipper.js:66
↓ 28 callersFunctionstyle
(ele, name, value, priority)
src/js/lib/circularmenu.js:157
↓ 24 callersMethodbasicThreadValueProcessing
* Calls a worker thread to compute the atom's value.
src/js/prototypes/atom.js:701
↓ 20 callersMethodgetValue
* Reads and returns the current value of the ap.
src/js/prototypes/attachmentpoint.js:506
↓ 18 callersMethodcreateEditableValueListItem
* 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 callersMethodcreateButton
* 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 callersMethodgenerateUniqueID
* 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 callersFunction_onSegment
(A,B,p)
src/js/lib/svg_util/geometryutil.js:53
↓ 11 callersMethoddistBetweenPoints
* 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 callersFunctionclassed
(ele, name, value)
src/js/lib/circularmenu.js:238
↓ 9 callersFunctionon
(ele, type, callback, data)
src/js/lib/circularmenu.js:278
↓ 9 callersFunctionstyleSheet
(element, prop, value, pseudo)
src/js/lib/circularmenu.js:260
↓ 8 callersFunctionlog
()
src/js/lib/svgnest.js:464
↓ 8 callersMethodpixelsToHeight
* 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 callersMethodpixelsToWidth
* 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 callersMethodplaceAtom
* 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 callersFunctionv
(a)
src/js/lib/svg_util/clipper.js:67
↓ 7 callersMethodbackgroundClick
* 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 callersMethodclearAlert
* Clears the alert message attached to this atom.
src/js/prototypes/atom.js:337
↓ 7 callersMethoddecreaseToProcessCountByOne
* Set's the output value and shows the atom output on the 3D view.
src/js/prototypes/atom.js:642
↓ 7 callersFunctionf
(n)
src/js/lib/svg_util/json.js:1
↓ 6 callersFunctiondone
(err, wrk)
src/js/lib/svg_util/parallel.js:249
↓ 6 callersFunctionmakeArray
* 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 callersMethodsetValue
* Re excecutes configure function for nesting if values are updated by user
src/js/molecules/nest.js:82
↓ 5 callersFunctionaddOrDeletePorts
(target)
src/js/alwaysOneFreeInput.js:48
↓ 5 callersMethoddeleteSelf
* Deletes the connector by calling its attachmentPoints to tell them to delete their references to this connector.
src/js/prototypes/connector.js:153
↓ 5 callersFunctionextend
(from, to)
src/js/lib/svg_util/parallel.js:12
↓ 5 callersMethodsetConfig
* Update values for config(). Called when the values on sidebar have been edited.
src/js/molecules/nest.js:121
↓ 5 callersMethodsetValue
* 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 callersMethodwriteToDisplay
* 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 callersFunctionC
(a)
src/js/lib/svg_util/clipper.js:67
↓ 4 callersFunction_degreesToRadians
(angle)
src/js/lib/svg_util/geometryutil.js:29
↓ 4 callersFunction_normalizeVector
(v)
src/js/lib/svg_util/geometryutil.js:38
↓ 4 callersMethodbeginEvaluatingIndividual
* Trigger the process to evaluate the current individual
src/js/molecules/geneticAlgorithm.js:225
↓ 4 callersMethodbeginPropagation
* 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 callersFunctionclick
(node)
src/js/lib/FileSaver.js:74
↓ 4 callersMethodcreateCheckbox
* 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 callersMethoddeserialize
* 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 callersFunctiondistance
* 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 callersMethodreadOutputAtomPath
* Reads the path of this molecule's output atom
src/js/molecules/molecule.js:251
↓ 4 callersMethodremoveIO
* 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 callersMethodupdateSidebar
* 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 callersMethodupdateValue
* Set the value to be the BOMitem
src/js/molecules/BOM.js:61
↓ 3 callersFunctionclassList
(node)
src/js/lib/circularmenu.js:187
↓ 3 callersMethodclickUp
* Clears the drawing of box when clickUp and updates values for atom selection
src/js/molecules/box.js:115
↓ 3 callersFunctiondownload
(url, name, opts)
src/js/lib/FileSaver.js:49
↓ 3 callersFunctionhasSubMenus
(menus)
src/js/lib/circularmenu.js:319
↓ 3 callersMethodloadProjectByID
* 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 callersMethodpropagate
* Called when this molecules value changes
src/js/molecules/molecule.js:276
↓ 3 callersFunctionquote
(string)
src/js/lib/svg_util/json.js:1
↓ 3 callersFunctionrandomIntFromRange
* 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 callersFunctionrotatePolygon
(polygon, degrees)
src/js/lib/svg_util/placementworker.js:27
↓ 3 callersMethodserialize
* Save the input code to be loaded next time
src/js/molecules/code.js:239
↓ 3 callersMethodupdateValue
* Grab the code as a text string and execute it.
src/js/molecules/code.js:83
↓ 3 callersMethodwaitOnComingInformation
* Sets the parent molecule output to wait on coming information
src/js/molecules/output.js:83
↓ 2 callersFunctionK
(a,b)
src/js/lib/svg_util/clipper.js:103
↓ 2 callersFunctionL
(a,b)
src/js/lib/svg_util/clipper.js:67
↓ 2 callersFunction_radiansToDegrees
(angle)
src/js/lib/svg_util/geometryutil.js:33
↓ 2 callersMethodaddAndRemoveInputs
* Add and remove inputs as needed from the atom
src/js/molecules/equation.js:86
↓ 2 callersFunctionaddToList
* 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 callersFunctionalert
(message)
src/js/lib/svg_util/placementworker.js:295
↓ 2 callersFunctionclassArray
(string)
src/js/lib/circularmenu.js:183
↓ 2 callersMethodclickDown
* 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 callersFunctioncloseTopMenu
* Closes main menu on background click or on button click if open
src/flowDraw.js:322
↓ 2 callersFunctioncontains
(gene, id)
src/js/lib/svgnest.js:926
↓ 2 callersMethodcopy
* Pushes serialized atoms into array if selected
src/js/molecules/molecule.js:217
↓ 2 callersFunctioncorsEnabled
(url)
src/js/lib/FileSaver.js:65
↓ 2 callersMethodcreateDropDown
* 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 callersMethodcreateNonEditableValueListItem
* 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 callersMethoddeleteConnector
* 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 callersMethoddeleteNode
* Remove the input from the parent molecule, then delete the atom normally.
src/js/molecules/input.js:143
↓ 2 callersMethoddeleteNode
* Delete this atom. Silent prevents it from telling its neighbors
src/js/prototypes/atom.js:562
↓ 2 callersMethoddisplayAndPropagate
* Displays the atom in 3D and sets the output.
src/js/prototypes/atom.js:670
↓ 2 callersMethoddownloadSvg
* The function which is called when you press the download button.
src/js/molecules/svg.js:99
↓ 2 callersMethodeditCode
* Called to trigger editing the code atom
src/js/molecules/code.js:194
↓ 2 callersMethodevaluateEquation
* Evaluate the equation
src/js/molecules/equation.js:113
↓ 2 callersFunctionextend$1
()
src/js/lib/circularmenu.js:531
↓ 2 callersFunctionextractBomTags
(path, functionToPlace)
src/js/BOM.js:51
↓ 2 callersFunctionfindHighestInput
(target)
src/js/alwaysOneFreeInput.js:36
↓ 2 callersMethodgeneratePath
* Generates the path for this atom from it's location in the graph
src/js/prototypes/atom.js:145
↓ 2 callersFunctionhasIcon
(icon)
src/js/lib/circularmenu.js:457
↓ 2 callersFunctionhowManyInputPortsAvailable
(target)
src/js/alwaysOneFreeInput.js:7
↓ 2 callersFunctionifDisabled
(disabled)
src/js/lib/circularmenu.js:322
↓ 2 callersFunctioninNfp
(p, nfp)
src/js/lib/svg_util/geometryutil.js:1323
↓ 2 callersMethodinitializeSideBar
* Initialized the sidebar with a title and create the HTML object.
src/js/prototypes/atom.js:508
↓ 2 callersFunctiononDoubleClick
* Called by double clicks
src/flowDraw.js:179
↓ 2 callersFunctiononMouseDown
* Called by mouse down
src/flowDraw.js:95
↓ 2 callersFunctiononMouseMove
* Called by mouse moves
src/flowDraw.js:171
↓ 2 callersFunctiononMouseUp
* Called by mouse up
src/flowDraw.js:161
↓ 2 callersFunctiononWindowResize
* Handles the window's resize behavior when the browser size changes.
src/flowDraw.js:608
↓ 2 callersMethodparseInputs
* This function reads the string of inputs the user specifies and adds them to the atom.
src/js/molecules/code.js:145
↓ 2 callersMethodpropogate
* Pass the value of the attached output to the attached input
src/js/prototypes/connector.js:192
↓ 2 callersMethodpushPropagation
* Called when this molecules value changes
src/js/molecules/molecule.js:305
next →1–100 of 429, ranked by callers