Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

numberProp

Creates a number property schema.

defaultValue

Default value when not specified

options

Property options

numberProp(defaultValue, options): PropertySchema<number, "number", true>

Defined in: packages/sigma/src/primitives/schema.ts:116

Creates a number property schema with variable support.

number

PropertyOptionsWithVariable

PropertySchema<number, "number", true>

numberProp(defaultValue, options?): PropertySchema<number, "number", false>

Defined in: packages/sigma/src/primitives/schema.ts:125

Creates a number property schema without variable support.

number

PropertyOptionsNoVariable

PropertySchema<number, "number", false>