Home Reference Source

Function

Static Public Summary
public

This function works like a class to sandbox interaction with GitHub.

public

Adds or deletes inputs from a target atom until there is exactly one input available.

public

convertLinks(link: string): *

Takes a link and converts it to be an affiliate link if it should be.

public

Computes and returns an array of BOMEntry objects after looking at the tags of a geometry.

public

Runs when a gitHub molecule menu option is clicked to show search bar.

Static Public

public GitHubModule() source

import GitHubModule from 'canvas-template/src/js/githubOauth.js'

This function works like a class to sandbox interaction with GitHub.

public addOrDeletePorts(target: object) source

import {addOrDeletePorts} from 'canvas-template/src/js/alwaysOneFreeInput.js'

Adds or deletes inputs from a target atom until there is exactly one input available.

Params:

NameTypeAttributeDescription
target object

The atom which should have it's number of inputs adjusted.

import {convertLinks} from 'canvas-template/src/js/BOM.js'

Takes a link and converts it to be an affiliate link if it should be.

Params:

NameTypeAttributeDescription
link string

The link to check.

Return:

*

public extractBomTags(path: string) source

import {extractBomTags} from 'canvas-template/src/js/BOM.js'

Computes and returns an array of BOMEntry objects after looking at the tags of a geometry.

Params:

NameTypeAttributeDescription
path string

The geometry which should be scanned for tags.

public showGitHubSearch() source

import {showGitHubSearch} from 'canvas-template/src/js/NewMenu.js'

Runs when a gitHub molecule menu option is clicked to show search bar.