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
↓ 2 callers
Method
refreshCircles
* Used to trigger all of the circle atoms within a molecule and all of the molecules within it to update their value. Used when the number of segments
src/js/molecules/molecule.js:487
↓ 2 callers
Function
say
(message)
src/js/lib/service.js:12
↓ 2 callers
Method
sendToRender
* Sends the output of this molecule to be displayed in the 3D view.
src/js/molecules/molecule.js:864
↓ 2 callers
Method
sendToRender
* Send the value of this atom to the 3D display.
src/js/prototypes/atom.js:769
↓ 2 callers
Function
showGitHubSearch
* Runs when a gitHub molecule menu option is clicked to show search bar.
src/js/NewMenu.js:146
↓ 2 callers
Method
stopnest
* Stops nest and changes flag to not working
src/js/molecules/nest.js:280
↓ 2 callers
Function
toClipperCoordinates
(polygon)
src/js/lib/svgnest.js:470
↓ 2 callers
Function
toClipperCoordinates
(polygon)
src/js/lib/svg_util/placementworker.js:3
↓ 2 callers
Method
updateSidebar
* Add a button to trigger the evolution process
src/js/molecules/geneticAlgorithm.js:178
↓ 2 callers
Method
updateValue
* Generate a layered outline of the part where the tool will cut
src/js/molecules/geneticAlgorithm.js:134
↓ 2 callers
Method
updateValue
* Grab values from the inputs and push them out to the input atoms.
src/js/molecules/molecule.js:236
↓ 1 callers
Function
CMenu
(element, pMenu)
src/js/lib/circularmenu.js:691
↓ 1 callers
Function
_flattenTree
(t, hole)
src/js/lib/svgnest.js:800
↓ 1 callers
Function
_lineIntersect
(A,B,E,F,infinite)
src/js/lib/svg_util/geometryutil.js:114
↓ 1 callers
Function
_withinDistance
(p1, p2, distance)
src/js/lib/svg_util/geometryutil.js:23
↓ 1 callers
Method
addToConstantsList
* Add a constant to the list. Used as a callback from passing up the tree.
src/js/molecules/geneticAlgorithm.js:366
↓ 1 callers
Function
animate
* Animation loop. Runs with every frame to draw the program on the display.
src/flowDraw.js:626
↓ 1 callers
Method
attach
* Attaches a new connector to this ap * @param {object} connector - The connector to attach
src/js/prototypes/attachmentpoint.js:454
↓ 1 callers
Method
attachSvgListeners
* Defines bin which will be used to place parts for nested svg
src/js/molecules/nest.js:228
↓ 1 callers
Method
beginPropagation
* Starts propagation from this atom if it is not waiting for anything up stream.
src/js/molecules/githubmolecule.js:138
↓ 1 callers
Function
bom
(blob, opts)
src/js/lib/FileSaver.js:29
↓ 1 callers
Method
breedAndCullPopulation
* Breed the best performers in the population, cull the rest
src/js/molecules/geneticAlgorithm.js:326
↓ 1 callers
Method
breedTwo
* Take two individuals and breed them to form a new individual with a mix of their genes and mutations
src/js/molecules/geneticAlgorithm.js:286
↓ 1 callers
Method
census
* Walks through each of the atoms in this molecule and takes a census of how many there are and how many are currently waiting to be processed.
src/js/molecules/molecule.js:340
↓ 1 callers
Method
census
* Returns an array of length two indicating that this is one atom and if it is waiting to be computed
src/js/prototypes/atom.js:743
↓ 1 callers
Method
changeColor
* Updates the value of the selected color and then the value.
src/js/molecules/color.js:122
↓ 1 callers
Method
changeUnits
(newUnitsIndex)
src/js/molecules/molecule.js:366
↓ 1 callers
Function
checkBoxes
* Creates the checkbox hidden menu when viewer is active. These really shouldn't be regenerated every time. They should just be hidden.
src/flowDraw.js:392
↓ 1 callers
Function
classedAdd
(node, names)
src/js/lib/circularmenu.js:216
↓ 1 callers
Function
classedRemove
(node, names)
src/js/lib/circularmenu.js:221
↓ 1 callers
Method
clickMove
* When mouse moves and Ctrl is down updates value for box width and height
src/js/molecules/box.js:98
↓ 1 callers
Method
clickMove
* Handles mouse click and move to expand the AP. Could this be done with a call to expand out? * @param {number} x - The x coordinate of the clic
src/js/prototypes/attachmentpoint.js:313
↓ 1 callers
Function
clickZoneSize
(config)
src/js/lib/circularmenu.js:67
↓ 1 callers
Function
conversation
({ agent, say })
src/js/lib/conversation.js:1
↓ 1 callers
Function
convertLinks
(link)
src/js/BOM.js:88
↓ 1 callers
Method
copyInputsFromParent
* Gives this molecule inputs with the same names as all of it's parent's inputs
src/js/molecules/molecule.js:120
↓ 1 callers
Function
coverRadius
(radius, percent)
src/js/lib/circularmenu.js:30
↓ 1 callers
Function
coverSize
(coverRadius)
src/js/lib/circularmenu.js:35
↓ 1 callers
Method
createBOM
* Creates an editable UI representation of the bom list. * @param {Object} list - list is an object to which the generated HTML element will be
src/js/molecules/BOM.js:109
↓ 1 callers
Method
createFileUpload
* Creates file upload button. Used in the sidebar. * @param {object} list - The HTML object to attach the new item to. * @param {object} par
src/js/prototypes/atom.js:1024
↓ 1 callers
Method
createMarkdownListItem
* Creates a html representation of the passed text. Used in the sidebar. * @param {object} list - The HTML object to attach the new item to.
src/js/prototypes/atom.js:918
↓ 1 callers
Method
createSegmentSlider
* Creates segment length slider and passes value to Global Variables
src/js/molecules/molecule.js:437
↓ 1 callers
Function
defaultView
(node)
src/js/lib/circularmenu.js:137
↓ 1 callers
Function
deleteEmptyPort
(target)
src/js/alwaysOneFreeInput.js:21
↓ 1 callers
Method
deleteNode
* Override super delete function to prevent output from being deleted
src/js/molecules/output.js:99
↓ 1 callers
Method
deleteOutputAtom
* A function to allow you to still call the delete function if needed.
src/js/molecules/output.js:106
↓ 1 callers
Method
displaySidebarReadme
* Creates markdown version of the readme content for this atom in the sidebar * @param {object} list - The HTML object to append the created elem
src/js/molecules/molecule.js:538
↓ 1 callers
Method
displaySimpleBOM
* Creates a simple BOM list which cannot be edited. The generated element is added to the passed list. * @param {object} list - The HTML object t
src/js/molecules/molecule.js:502
↓ 1 callers
Method
doubleClick
* Edit the atom's code when it is double clicked * @param {number} x - The X coordinate of the click * @param {number} y - The Y coordinate
src/js/molecules/code.js:175
↓ 1 callers
Method
downloadGCode
* The function which is called when you press the download button.
src/js/molecules/gcode.js:99
↓ 1 callers
Method
downloadStl
* The function which is called when you press the download button.
src/js/molecules/stl.js:91
↓ 1 callers
Method
downloadSvg
* The function which is called when you press the download button. * Stops nest in progress and downloads file to computer. Only enabled if svg h
src/js/molecules/nest.js:365
↓ 1 callers
Method
draw
* Add the center dot to the molecule
src/js/molecules/molecule.js:140
↓ 1 callers
Method
draw
* Draws the atom on the screen
src/js/prototypes/atom.js:184
↓ 1 callers
Method
draw
* Draws the attachment point on the screen. Called with each frame.
src/js/prototypes/attachmentpoint.js:142
↓ 1 callers
Method
draw
* Draw the connector as a bezier curve on the screen
src/js/prototypes/connector.js:73
↓ 1 callers
Method
expandOut
* Handles mouse click down. If the click is inside the AP it's connectors are selected if it is an input. * @param {number} cursorDistance - The
src/js/prototypes/attachmentpoint.js:365
↓ 1 callers
Function
getIcon
(icon)
src/js/lib/circularmenu.js:463
↓ 1 callers
Function
getIconColor
(icon)
src/js/lib/circularmenu.js:467
↓ 1 callers
Method
getRandomValue
* Generate a random number between min and max
src/js/molecules/geneticAlgorithm.js:247
↓ 1 callers
Method
goToParentMolecule
* Replace the currently displayed molecule with the parent of this molecule...moves the user up one level.
src/js/molecules/molecule.js:571
↓ 1 callers
Function
hear
(message)
src/js/lib/conversation.js:10
↓ 1 callers
Function
init
* Runs once when the program begins to initialize variables.
src/flowDraw.js:569
↓ 1 callers
Method
initializePopulation
* Generate an initial population
src/js/molecules/geneticAlgorithm.js:255
↓ 1 callers
Method
keyPress
* Set the atom's response to a key press. Is used to delete the atom if it is selected. * @param {string} key - The key which has been pressed.
src/js/prototypes/atom.js:469
↓ 1 callers
Function
listSize
(config)
src/js/lib/circularmenu.js:82
↓ 1 callers
Method
loadTree
* Sets all the input and output values to match their associated atoms.
src/js/molecules/input.js:186
↓ 1 callers
Method
loadTree
* Triggers the loadTree process from this molecules output
src/js/molecules/molecule.js:710
↓ 1 callers
Function
menuSize
(config)
src/js/lib/circularmenu.js:50
↓ 1 callers
Function
merge
(obj)
src/js/lib/circularmenu.js:545
↓ 1 callers
Function
minkowskiDifference
(A, B)
src/js/lib/svgnest.js:494
↓ 1 callers
Function
offsetTree
(t, offset, offsetFunction)
src/js/lib/svgnest.js:155
↓ 1 callers
Function
openTopMenu
* Checks if menu is open and changes class to trigger hiding of individual buttons
src/flowDraw.js:299
↓ 1 callers
Method
placeConnector
* Places a new connector within the molecule * @param {object} connectorObj - An object representation of the connector specifying its inputs and
src/js/molecules/molecule.js:831
↓ 1 callers
Function
placeGitHubMolecule
* Runs when a menu option is clicked to place a new atom from searching on GitHub. * @param {object} ev - The event triggered by clicking on a me
src/js/NewMenu.js:241
↓ 1 callers
Function
placeNewNode
* Runs when a menu option is clicked to place a new atom from the local atoms list. * @param {object} ev - The event triggered by click event on
src/js/NewMenu.js:214
↓ 1 callers
Function
randomColor
* Selects a random color from an array. Where is this used? Can this be deleted? * @param {array} colors - An array of possible colors.
src/utils.js:14
↓ 1 callers
Method
reloadMolecule
* Reload this github molecule from github
src/js/molecules/githubmolecule.js:108
↓ 1 callers
Method
requestReadme
* Check to see if any of this molecules children have contributions to make to the README file. Children closer to the top left will be applied first.
src/js/molecules/molecule.js:592
↓ 1 callers
Method
requestReadme
* Return any contribution from this atom to the README file
src/js/prototypes/atom.js:633
↓ 1 callers
Method
reset
* I'm not sure what this does. Can it be deleted?
src/js/prototypes/attachmentpoint.js:352
↓ 1 callers
Function
searchMenu
* Runs when enter key is clicked and the input is focused to show results from search.
src/js/NewMenu.js:167
↓ 1 callers
Method
selectBox
* Delineates bounds for selection box.
src/js/prototypes/atom.js:345
↓ 1 callers
Method
serialize
* Generates and returns a object representation of this molecule and all of its children.
src/js/molecules/molecule.js:613
↓ 1 callers
Method
setDefault
* Restores the ap to it's default value.
src/js/prototypes/attachmentpoint.js:487
↓ 1 callers
Method
setEquation
* Set the current equation to be a new value.
src/js/molecules/equation.js:201
↓ 1 callers
Function
setHref
(ele, href)
src/js/lib/circularmenu.js:329
↓ 1 callers
Method
setSimplifyFlag
* Called when the simplify check box is checked or unchecked.
src/js/molecules/molecule.js:360
↓ 1 callers
Function
shuffleArray
(array)
src/js/lib/svgnest.js:851
↓ 1 callers
Function
startDeg
(config)
src/js/lib/circularmenu.js:16
↓ 1 callers
Function
startTimer
* Starts the timer to retract the menu
src/flowDraw.js:536
↓ 1 callers
Method
startnest
* Starts nesting, replaces html svg for nested svg
src/js/molecules/nest.js:261
↓ 1 callers
Function
str
(key,holder)
src/js/lib/svg_util/json.js:1
↓ 1 callers
Method
svgToNest
* Turns geometry values into svg then starts nest and returns nested SVG
src/js/molecules/nest.js:159
↓ 1 callers
Function
textTop
(clickZoneRadius)
src/js/lib/circularmenu.js:93
↓ 1 callers
Function
toNestCoordinates
(polygon, scale)
src/js/lib/svgnest.js:482
↓ 1 callers
Function
toNestCoordinates
(polygon, scale)
src/js/lib/svg_util/placementworker.js:15
↓ 1 callers
Function
toTree
(list, idstart)
src/js/lib/svgnest.js:618
↓ 1 callers
Method
update
* Runs with each frame to draw the atom.
src/js/prototypes/atom.js:591
↓ 1 callers
Method
updateConstantsList
* Regenerate the list of constants we are evolving
src/js/molecules/geneticAlgorithm.js:353
← previous
next →
101–200 of 429, ranked by callers