Home Reference Source

References

cables/src/core

summary
public

C Anim(cfg: *)

Keyframed interpolated animation.

public
public

C Link

public

C Patch

public

C Port

data is coming into and out of ops through input and output ports

public
public
public
public
public
public

C LoadingStatus(patch: *)

LoadingStatus class, manages asynchronous loading jobs

public
public

C Timer

Measuring time

public

F easeCubicIn(t: *): *

public

F easeCubicInOut(t: *): *

public

F easeCubicOut(t: *): *

public

F easeExpoIn(t: *): *

public

F easeExpoInOut(t: *): *

public

F easeExpoOut(t: *): *

public

F extendJs()

public

F Variable()

todo: old...

public

F internalNow(): *

public

F now(): *

public

F ajax(url: string, cb: function, method: string, post: null, contenttype: null, jsonP: boolean, headers: object, options: object)

make an ajax request

public

F basename(url: String): String

return the filename part of a url without extension

public

F cacheBust(url: String): String

append a unique/random parameter to a url, so the browser is forced to reload the file, even if its cached

public

F clamp(value: Number, min: Number, max: Number): *

clamp number / make sure its between min/max

public

F cleanJson(obj: *): *

public

F copyArray(src: Array, dst: Array): Array

copy the content of an array

public

F escapeHTML(string: *): *

public

F filename(url: String): String

return the filename part of a url

public

F float32Concat(first: Float32Array, second: Float32Array): Float32Array

Merge two Float32Arrays.

public

F getShortOpName(fullname: string): *

get op shortname: only last part of fullname and without version

public

F isNumeric(n: any): Boolean

returns true if parameter is a number

public

F logErrorConsole(initiator: *)

public

F logStack()

output a stacktrace to the console

public

F map(x: Number, _oldMin: Number, _oldMax: Number, _newMin: Number, _newMax: Number, _easing: Number): Number

map a value in a range to a value in another range

public

F prefixedHash(str: string, prefix: string): string

public

F request(options: *)

public

F shortId(): *

public

F shuffleArray(array: Array | Float32Array): Array | Float32Array

randomize order of an array

public

F simpleId(): *

public

F smoothStep(perc: Number): Number

smoothStep a value

public

F smootherStep(perc: Number): Number

smootherstep a value

public

F uniqueArray(arr: Array<any>): *

public

F uuid(): UUID

generate a UUID

public

V CONSTANTS: {"ANIM": *, "OP": *, "PORT": *, "PACO": *}

public

V EMBED: {}

public
public

T AnimCfg: *

configuration object for loading a patch

public
public
public
public
public

configuration object for loading a patch

public
public

T CoreOp: *

public

T OpUiAttribs: import("./core_op.js").OpUiAttribs

public
public
public
public

T PortUiAttribsDisplay: "text" | "tsrne"

public
public

T UUID: String

public

E *

Directories