Class: NodeSquareProgram<N, E, G>
Defined in: node-square/src/program.ts:16
Extends
NodeProgram
<typeofUNIFORMS
[number
],N
,E
,G
>
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Constructors
new NodeSquareProgram()
new NodeSquareProgram<
N
,E
,G
>(gl
,pickingBuffer
,renderer
):NodeSquareProgram
<N
,E
,G
>
Defined in: sigma/src/rendering/program.ts:81
Parameters
gl
WebGLRenderingContext
| WebGL2RenderingContext
pickingBuffer
null
| WebGLFramebuffer
renderer
Sigma
<N
, E
, G
>
Returns
NodeSquareProgram
<N
, E
, G
>
Inherited from
Properties
array
array:
Float32Array
Defined in: sigma/src/rendering/program.ts:69
Inherited from
ATTRIBUTES
ATTRIBUTES:
ProgramAttributeSpecification
[]
Defined in: sigma/src/rendering/program.ts:60
Inherited from
ATTRIBUTES_ITEMS_COUNT
ATTRIBUTES_ITEMS_COUNT:
number
Defined in: sigma/src/rendering/program.ts:65
Inherited from
NodeProgram
.ATTRIBUTES_ITEMS_COUNT
capacity
capacity:
number
=0
Defined in: sigma/src/rendering/program.ts:71
Inherited from
CONSTANT_ATTRIBUTES
CONSTANT_ATTRIBUTES:
ProgramAttributeSpecification
[]
Defined in: sigma/src/rendering/program.ts:62
Inherited from
NodeProgram
.CONSTANT_ATTRIBUTES
CONSTANT_DATA
CONSTANT_DATA:
number
[][]
Defined in: sigma/src/rendering/program.ts:63
Inherited from
constantArray
constantArray:
Float32Array
Defined in: sigma/src/rendering/program.ts:70
Inherited from
drawHover()
drawHover: <
N
,E
,G
>(context
,data
,settings
) =>void
=drawSquareNodeHover
Defined in: node-square/src/program.ts:21
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Parameters
context
CanvasRenderingContext2D
data
PartialButFor
<NodeDisplayData
, "label"
| "x"
| "y"
| "color"
| "size"
>
settings
Settings
<N
, E
, G
>
Returns
void
Overrides
drawLabel()
drawLabel: <
N
,E
,G
>(context
,data
,settings
) =>void
=drawSquareNodeLabel
Defined in: node-square/src/program.ts:22
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Parameters
context
CanvasRenderingContext2D
data
PartialButFor
<NodeDisplayData
, "label"
| "x"
| "y"
| "color"
| "size"
>
settings
Settings
<N
, E
, G
>
Returns
void
Overrides
FRAGMENT_SHADER_SOURCE
FRAGMENT_SHADER_SOURCE:
string
Defined in: sigma/src/rendering/program.ts:58
Inherited from
NodeProgram
.FRAGMENT_SHADER_SOURCE
isInstanced
isInstanced:
boolean
Defined in: sigma/src/rendering/program.ts:77
Inherited from
METHOD
METHOD:
number
Defined in: sigma/src/rendering/program.ts:61
Inherited from
normalProgram
normalProgram:
ProgramInfo
Defined in: sigma/src/rendering/program.ts:74
Inherited from
pickProgram
pickProgram:
null
|ProgramInfo
Defined in: sigma/src/rendering/program.ts:75
Inherited from
renderer
renderer:
Sigma
<N
,E
,G
>
Defined in: sigma/src/rendering/program.ts:68
Inherited from
STRIDE
STRIDE:
number
Defined in: sigma/src/rendering/program.ts:66
Inherited from
UNIFORMS
UNIFORMS: readonly (
"u_sizeRatio"
|"u_correctionRatio"
|"u_matrix"
|"u_cameraAngle"
)[]
Defined in: sigma/src/rendering/program.ts:59
Inherited from
VERTEX_SHADER_SOURCE
VERTEX_SHADER_SOURCE:
string
Defined in: sigma/src/rendering/program.ts:57
Inherited from
NodeProgram
.VERTEX_SHADER_SOURCE
VERTICES
VERTICES:
number
Defined in: sigma/src/rendering/program.ts:56
Inherited from
verticesCount
verticesCount:
number
=0
Defined in: sigma/src/rendering/program.ts:72
Inherited from
Methods
bindAttribute()
protected
bindAttribute(attr
,program
,offset
,setDivisor
?):number
Defined in: sigma/src/rendering/program.ts:244
Parameters
attr
program
offset
number
setDivisor?
boolean
Returns
number
Inherited from
bindProgram()
protected
bindProgram(program
):void
Defined in: sigma/src/rendering/program.ts:206
Parameters
program
Returns
void
Inherited from
drawWebGL()
drawWebGL(
method
,__namedParameters
):void
Defined in: sigma/src/rendering/program.ts:355
Parameters
method
number
__namedParameters
Returns
void
Inherited from
getDefinition()
getDefinition():
object
Defined in: node-square/src/program.ts:24
Returns
object
ATTRIBUTES
ATTRIBUTES: ({
name
:string
;normalized
:undefined
;size
:number
;type
:5126
; } | {name
:string
;normalized
:boolean
;size
:number
;type
:5121
; })[]
CONSTANT_ATTRIBUTES
CONSTANT_ATTRIBUTES:
object
[]
CONSTANT_DATA
CONSTANT_DATA:
number
[][]
FRAGMENT_SHADER_SOURCE
FRAGMENT_SHADER_SOURCE:
string
METHOD
METHOD:
4
=WebGLRenderingContext.TRIANGLES
UNIFORMS
UNIFORMS: readonly [
"u_sizeRatio"
,"u_correctionRatio"
,"u_cameraAngle"
,"u_matrix"
]
VERTEX_SHADER_SOURCE
VERTEX_SHADER_SOURCE:
string
VERTICES
VERTICES:
number
=6
Overrides
getProgramInfo()
protected
getProgramInfo(name
,gl
,vertexShaderSource
,fragmentShaderSource
,frameBuffer
):ProgramInfo
Defined in: sigma/src/rendering/program.ts:150
Parameters
name
"normal"
| "pick"
gl
WebGLRenderingContext
| WebGL2RenderingContext
vertexShaderSource
string
fragmentShaderSource
string
frameBuffer
null
| WebGLFramebuffer
Returns
Inherited from
hasNothingToRender()
hasNothingToRender():
boolean
Defined in: sigma/src/rendering/program.ts:312
Returns
boolean
Inherited from
NodeProgram
.hasNothingToRender
kill()
kill():
void
Defined in: sigma/src/rendering/node.ts:38
Returns
void
Inherited from
process()
process(
nodeIndex
,offset
,data
):void
Defined in: sigma/src/rendering/node.ts:42
Parameters
nodeIndex
number
offset
number
data
NodeDisplayData
Returns
void
Inherited from
processVisibleItem()
processVisibleItem(
nodeIndex
,startIndex
,data
):void
Defined in: node-square/src/program.ts:42
Parameters
nodeIndex
number
startIndex
number
data
NodeDisplayData
Returns
void
Overrides
NodeProgram
.processVisibleItem
reallocate()
reallocate(
capacity
):void
Defined in: sigma/src/rendering/program.ts:297
Parameters
capacity
number
Returns
void
Inherited from
render()
render(
params
):void
Defined in: sigma/src/rendering/program.ts:334
Parameters
params
RenderParams
Returns
void
Inherited from
renderProgram()
protected
renderProgram(params
,programInfo
):void
Defined in: sigma/src/rendering/program.ts:318
Parameters
params
RenderParams
programInfo
Returns
void
Inherited from
setUniforms()
setUniforms(
params
,__namedParameters
):void
Defined in: node-square/src/program.ts:53
Parameters
params
RenderParams
__namedParameters
Returns
void
Overrides
unbindAttribute()
protected
unbindAttribute(attr
,program
,unsetDivisor
?):void
Defined in: sigma/src/rendering/program.ts:279
Parameters
attr
program
unsetDivisor?
boolean
Returns
void
Inherited from
unbindProgram()
protected
unbindProgram(program
):void
Defined in: sigma/src/rendering/program.ts:235
Parameters
program
Returns
void