Global

Members

(constant) CONFIG :Object

Runtime configuration settings for Foundry VTT which exposes a large number of variables which determine how aspects of the software behaves.

Unlike the CONST analog which is frozen and immutable, the CONFIG object may be updated during the course of a session or modified by system and module developers to adjust how the application behaves.

Type:
  • Object

layer :PlaceablesLayer|null

A reference to the CanvasLayer which contains Document objects of this type.

Type:

(constant) STRING_ARRAY_FIELD :DocumentField

A helper field used for string arrays

Type:

Methods

(async) benchmarkSight(n, …args)

Compare sight performance between different algorithms

Parameters:
Name Type Attributes Default Description
n number 1000

The number of iterations

args any <repeatable>

Arguments passed to the polygon compute function

(async) deleteDialog(optionsopt) → {Promise.<Document>}

Present a Dialog form to confirm deletion of this Document.

Parameters:
Name Type Attributes Description
options object <optional>

Positioning and sizing options for the resulting dialog

Returns:

A Promise which resolves to the deleted Document

Type
Promise.<Document>

fetchJsonWithTimeout(url, data, timeoutMs, onTimeout) → {Promise.<*>}

A small wrapper that automatically asks for JSON

Parameters:
Name Type Description
url string

The URL to make the Request to

data Object

The data of the Request

timeoutMs int

How long to wait for a Response before cleanly aborting

onTimeout function

A method to invoke if and when the timeout is reached

Returns:
Type
Promise.<*>

fetchWithTimeout(url, data, timeoutMs, onTimeout) → {Promise.<Response>}

See:

A wrapper method around fetch that attaches an AbortController signal to the fetch call for clean timeouts

Parameters:
Name Type Description
url string

The URL to make the Request to

data Object

The data of the Request

timeoutMs int

How long to wait for a Response before cleanly aborting

onTimeout function

A method to invoke if and when the timeout is reached

Throws:
Returns:
Type
Promise.<Response>

(async) fromUuid(uuid) → {Promise.<(Document|null)>}

Retrieve a Document by its Universally Unique Identifier (uuid).

Parameters:
Name Type Description
uuid string

The uuid of the Document to retrieve

Returns:
Type
Promise.<(Document|null)>

getDocumentClass(documentName) → {function}

Return a reference to the Document class implementation which is configured for use.

Parameters:
Name Type Description
documentName string

The canonical Document name, for example "Actor"

Returns:

The configured Document class implementation

Type
function

(async) getTemplate(path) → {Promise.<function()>}

Get a template from the server by fetch request and caching the retrieved result

Parameters:
Name Type Description
path string

The web-accessible HTML template URL

Returns:

A Promise which resolves to the compiled Handlebars template

Type
Promise.<function()>

getTexture(src) → {PIXI.Texture}

Get a single texture from the cache

Parameters:
Name Type Description
src string
Returns:
Type
PIXI.Texture

INCLUDE_ARRAY_FIELD()

A helper field used for arrays of package include objects

(async) loadTemplates(paths) → {Promise.<Array.<function()>>}

Load and cache a set of templates by providing an Array of paths

Parameters:
Name Type Description
paths Array.<string>

An array of template file paths to load

Returns:
Type
Promise.<Array.<function()>>

(async) loadTexture(src, optionsopt, fallbackopt) → {PIXI.Texture|null}

Load a single texture and return a Promise which resolves once the texture is ready to use

Parameters:
Name Type Attributes Description
src string

The requested texture source

options object <optional>

Additional options which modify texture loading

fallback string <optional>

A fallback texture to use if the requested source is unavailable or invalid

Returns:

The loaded Texture, or null if loading failed with no fallback

Type
PIXI.Texture | null

readTextFromFile(file) → {Promise.<String>}

Read text data from a user provided File object

Parameters:
Name Type Description
file File

A File object

Returns:

A Promise which resolves to the loaded text data

Type
Promise.<String>

(async) renderTemplate(path, data) → {Promise.<string>}

See:

Get and render a template using provided data and handle the returned HTML Support asynchronous file template file loading with a client-side caching layer

Allow resolution of prototype methods and properties since this all occurs within the safety of the client.

Parameters:
Name Type Description
path string

The file path to the target HTML template

data Object

A data object against which to compile the template

Returns:

Returns the compiled and rendered template as a string

Type
Promise.<string>

saveDataToFile(data, type, filename)

Export data content to be saved to a local file

Parameters:
Name Type Description
data string

Data content converted to a string

type string

The type of

filename string

The filename of the resulting download

(async) srcExists(src) → {Promise.<boolean>}

Test whether a file source exists by performing a HEAD request against it

Parameters:
Name Type Description
src string

The source URL or path to test

Returns:

Does the file exist at the provided url?

Type
Promise.<boolean>

Type Definitions

ActivityData

Properties:
Name Type Attributes Description
sceneId string | null <optional>

The ID of the scene that the user is viewing.

cursor Object <optional>

The position of the user's cursor.

ruler RulerData | null <optional>

The state of the user's ruler, if they are currently using one.

targets Array.<string> <optional>

The IDs of the tokens the user has targeted in the currently viewed scene.

active boolean <optional>

Whether the user has an open WS connection to the server or not.

focus boolean <optional>

Is the user pulling focus to the cursor coordinates?

ping boolean <optional>

Is the user emitting a ping at the cursor coordinates?

av AVSettingsData <optional>

The state of the user's AV settings.

Type:
  • object

ApplicationOptions

Properties:
Name Type Attributes Description
baseApplication string | null <optional>

A named "base application" which generates an additional hook

width number | null <optional>

The default pixel width for the rendered HTML

height number | string | null <optional>

The default pixel height for the rendered HTML

top number | null <optional>

The default offset-top position for the rendered HTML

left number | null <optional>

The default offset-left position for the rendered HTML

scale number | null <optional>

A transformation scale for the rendered HTML

popOut boolean <optional>

Whether to display the application as a pop-out container

minimizable boolean <optional>

Whether the rendered application can be minimized (popOut only)

resizable boolean <optional>

Whether the rendered application can be drag-resized (popOut only)

id string <optional>

The default CSS id to assign to the rendered HTML

classes Array.<string> <optional>

An array of CSS string classes to apply to the rendered HTML

title string <optional>

A default window title string (popOut only)

template string | null <optional>

The default HTML template path to render for this Application

scrollY Array.<string> <optional>

A list of unique CSS selectors which target containers that should have their vertical scroll positions preserved during a re-render.

tabs Array.<TabsConfiguration> <optional>

An array of tabbed container configurations which should be enabled for the application.

dragDrop Array.<DragDropConfiguration>

An array of CSS selectors for configuring the application's DragDrop behaviour.

filters Array.<SearchFilterConfiguration>

An array of SearchFilter configuration objects.

Type:
  • object

AVSettingsData

Properties:
Name Type Attributes Description
muted boolean <optional>

Whether this user has muted themselves.

hidden boolean <optional>

Whether this user has hidden their video.

speaking boolean <optional>

Whether the user is broadcasting audio.

Type:
  • object

CanvasAnimationData

Properties:
Name Type Description
fn function

The animation function being executed each frame

context PIXI.DisplayObject

The object context within which animation occurs

promise Promise

A Promise which resolves once the animation is complete

resolve function

The resolution function, allowing animation to be ended early

Type:
  • Object

CanvasHistory

Properties:
Name Type Description
type string

The type of operation stored as history (create, update, delete)

data Array.<Object>

The data corresponding to the action which may later be un-done

Type:
  • Object

CanvasLayerOptions

Properties:
Name Type Description
name string

The layer name by which the instance is referenced within the Canvas

zIndex number

The zIndex sorting of this layer relative to other layers

sortActiveTop boolean

Should this layer be sorted to the top when it is active?

Options which configure the behavior of a Canvas Layer.

Type:
  • Object

ChatLogOptions

Properties:
Name Type Attributes Description
stream boolean <optional>

Is this chat log being rendered as part of the stream view?

Type:

ClockwiseSweepPolygonConfig

Properties:
Name Type Attributes Default Description
density number <optional>
12

The desired density of padding rays, a number per PI

aMin number <optional>

The minimum angle of emission

aMax number <optional>

The maximum angle of emission

rMin PolygonRay <optional>

The minimum ray of emission

rMax PolygonRay <optional>

The maximum ray of emission

hasLimitedRadius boolean <optional>

Does this polygon have a limited radius?

hasLimitedAngle boolean <optional>

Does this polygon have a limited angle?

radius2 number <optional>

The squared radius of the polygon, for faster computation later

radiusE number <optional>

A small epsilon used for avoiding floating point precision issues

Type:

ConnectedGamepad

Properties:
Name Type Description
axes Map.<string, Number>

A map of axes values

activeButtons Set.<string>

The Set of pressed Buttons

Connected Gamepad info

Type:
  • Object

ContextMenuEntry

Properties:
Name Type Attributes Description
name string

The context menu label. Can be localized.

icon string

A string containing an HTML icon element for the menu item

callback function

The function to call when the menu item is clicked. Receives the HTML element of the entry that this context menu is for.

condition function <optional>

A function to call to determine if this item appears in the menu. Receives the HTML element of the entry that this context menu is for.

Type:
  • object

DialogButton

Properties:
Name Type Attributes Description
icon string

A Font Awesome icon for the button

label string

The label for the button

callback function <optional>

A callback function that fires when the button is clicked

Type:
  • Object

DialogOptions

Properties:
Name Type Attributes Default Description
jQuery boolean <optional>
true

Whether to provide jQuery objects to callback functions (if true) or plain HTMLElement instances (if false). This is currently true by default but in the future will become false by default.

Type:

DiceTermResult

Properties:
Name Type Attributes Description
result number

The numeric result

active boolean <optional>

Is this result active, contributing to the total?

count number <optional>

A value that the result counts as, otherwise the result is not used directly as

success boolean <optional>

Does this result denote a success?

failure boolean <optional>

Does this result denote a failure?

discarded boolean <optional>

Was this result discarded?

rerolled boolean <optional>

Was this result rerolled?

exploded boolean <optional>

Was this result exploded?

Type:
  • Object

DocumentField

Properties:
Name Type Attributes Description
type *

An object which defines the data type of this field

required boolean

Is this field required to have an assigned value? Default is false.

nullable boolean <optional>

Can the field be populated by a null value? Default is true.

default function | * <optional>

A static default value or a function which assigns a default value

collection boolean <optional>
clean function <optional>

An optional cleaning function which sanitizes input data to this field

validate function <optional>

A function which asserts that the value of this field is valid

validationError string <optional>

An error message which is displayed if validation fails

isCollection boolean <optional>

Is the field an embedded Document collection?

A schema entry which describes a field of DocumentData

Type:
  • Object

DocumentModificationContext

Properties:
Name Type Attributes Default Description
parent Document <optional>

A parent Document within which these Documents should be embedded

pack string <optional>

A Compendium pack identifier within which the Documents should be modified

noHook boolean <optional>
false

Block the dispatch of preCreate hooks for this operation

index boolean <optional>
false

Return an index of the Document collection, used only during a get operation.

indexFields Array.<string> <optional>

An array of fields to retrieve when indexing the collection

keepId boolean <optional>
false

When performing a creation operation, keep the _id of the document being created instead of generating a new one.

keepEmbeddedIds boolean <optional>
true

When performing a creation operation, keep existing _id values of documents embedded within the one being created instead of generating new ones.

temporary boolean <optional>
false

Create a temporary document which is not saved to the database. Only used during creation.

render boolean <optional>
true

Automatically re-render existing applications associated with the document.

renderSheet boolean <optional>
false

Automatically create and render the Document sheet when the Document is first created.

diff boolean <optional>
true

Difference each update object against current Document data to reduce the size of the transferred data. Only used during update.

recursive boolean <optional>
true

Merge objects recursively. If false, inner objects will be replaced explicitly. Use with caution!

isUndo boolean <optional>

Is the operation undoing a previous operation, only used by embedded Documents within a Scene

deleteAll boolean <optional>

Whether to delete all documents of a given type, regardless of the array of ids provided. Only used during a delete operation.

Type:
  • Object

DocumentSchema

The schema of a Document

Type:

DocumentSheetOptions

Properties:
Name Type Description
viewPermission number

The default permissions required to view this Document sheet.

Type:

DragDropConfiguration

Properties:
Name Type Description
dragSelector string

The CSS selector used to target draggable elements.

dropSelector string

The CSS selector used to target viable drop targets.

permissions Object.<string, function()>

An object of permission test functions for each action

callbacks Object.<string, function()>

An object of callback functions for each action

Type:
  • object

DrawingConfigOptions

Properties:
Name Type Attributes Default Description
configureDefault boolean <optional>
false

Configure the default drawing settings, instead of a specific Drawing

Type:

EdgeSet

Type:

FilePickerOptions

Properties:
Name Type Attributes Default Description
type string <optional>
"any"

A type of file to target, in "audio", "image", "video", "imagevideo", "folder", or "any"

current string <optional>

The current file path being modified, if any

activeSource string <optional>
data

A current file source in "data", "public", or "s3"

callback function <optional>

A callback function to trigger once a file has been selected

allowUpload boolean <optional>
true

A flag which permits explicitly disallowing upload, true by default

field HTMLElement <optional>

An HTML form field that the result of this selection is applied to

button HTMLButtonElement <optional>

An HTML button element which triggers the display of this picker

displayMode string <optional>

The picker display mode in FilePicker.DISPLAY_MODES

tileSize boolean <optional>
false

Display the tile size configuration.

Type:

FormApplicationOptions

Properties:
Name Type Attributes Default Description
closeOnSubmit boolean <optional>
true

Whether to automatically close the application when it's contained form is submitted.

submitOnChange boolean <optional>
false

Whether to automatically submit the contained HTML form when an input or select element is changed.

submitOnClose boolean <optional>
false

Whether to automatically submit the contained HTML form when the application window is manually closed.

editable boolean <optional>
true

Whether the application form is editable - if true, it's fields will be unlocked and the form can be submitted. If false, all form fields will be disabled and the form cannot be submitted.

sheetConfig boolean <optional>
false

Support configuration of the sheet type used for this application.

Type:

ImagePopoutOptions

Properties:
Name Type Attributes Default Description
shareable boolean <optional>
false

Can this image be shared with connected users?

uuid string | null <optional>
null

The UUID of some related Document.

Type:

JournalSheetOptions

Properties:
Name Type Attributes Description
sheetMode string | null <optional>

The current display mode of the journal. Either 'text' or 'image'.

Type:

KeybindingAction

Properties:
Name Type Description
action string

The namespaced machine identifier of the Action

key string

The Keyboard key

name string

The human readable name

requiredModifiers Array.<string>

Required modifiers

optionalModifiers Array.<string>

Optional (reserved) modifiers

onDown function

The handler that executes onDown

onUp function

The handler that executes onUp

repeat boolean

If True, allows Repeat events to execute this Action's onDown

restricted boolean

If true, only a GM can execute this Action

precedence number

The registration precedence

order number

The registration order

An action that can occur when a key is pressed

Type:
  • Object

KeybindingActionBinding

Properties:
Name Type Attributes Description
key string

The KeyboardEvent#code value from https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values

modifiers Array.<string> <optional>

An array of modifiers keys from KeyboardManager.MODIFIER_KEYS which are required for this binding to be activated

A Client Keybinding Action Binding

Type:
  • Object

KeybindingActionConfig

Properties:
Name Type Attributes Default Description
namespace string <optional>

The namespace within which the action was registered

name string

The human readable name

hint string <optional>

An additional human readable hint

uneditable Array.<KeybindingActionBinding> <optional>

The default bindings that can never be changed nor removed.

editable Array.<KeybindingActionBinding> <optional>

The default bindings that can be changed by the user.

onDown function <optional>

A function to execute when a key down event occurs. If True is returned, the event is consumed and no further keybinds execute.

onUp function <optional>

A function to execute when a key up event occurs. If True is returned, the event is consumed and no further keybinds execute.

repeat boolean <optional>
false

If True, allows Repeat events to execute the Action's onDown. Defaults to false.

restricted boolean <optional>
false

If true, only a GM can edit and execute this Action

reservedModifiers Array.<string> <optional>

Modifiers such as [ "CONTROL" ] that can be also pressed when executing this Action. Prevents using one of these modifiers as a Binding.

precedence number <optional>
0

The preferred precedence of running this Keybinding Action

order number <optional>

The recorded registration order of the action

A Client Keybinding Action Configuration

Type:
  • Object

KeyboardEventContext

Properties:
Name Type Attributes Description
key string

The normalized string key, such as "A"

event KeyboardEvent

The originating keypress event

isShift boolean

Is the Shift modifier being pressed

isControl boolean

Is the Control or Meta modifier being processed

isAlt boolean

Is the Alt modifier being pressed

hasModifier boolean

Are any of the modifiers being pressed

modifiers Array.<string>

A list of string modifiers applied to this context, such as [ "CONTROL" ]

up boolean

True if the Key is Up, else False if down

repeat boolean

True if the given key is being held down such that it is automatically repeating.

action string <optional>

The executing Keybinding Action. May be undefined until the action is known.

Keyboard event context

Type:
  • Object

LightAnimationConfiguration

Properties:
Name Type Attributes Description
label string

The human-readable (localized) label for the animation

animation function

The animation function that runs every frame

illuminationShader AdaptiveIlluminationShader

A custom illumination shader used by this animation

colorationShader AdaptiveColorationShader

A custom coloration shader used by this animation

backgroundShader AdaptiveBackgroundShader

A custom background shader used by this animation

seed number <optional>

The animation seed

time number <optional>

The animation time

Type:
  • Object

LightChannel

A mapping of different light level channels

Type:
  • Object

LightingTechnique

Properties:
Name Type Description
id number

The numeric identifier of the technique

label string

The localization string that labels the technique

shader string

The shader fragment when the technique is used

Type:
  • Object

LightSourceData

See:
  • foundry.data.LightData
Properties:
Name Type Description
x number

The x-coordinate of the source location

y number

The y-coordinate of the source location

z number

An optional z-index sorting for the source

rotation number

The angle of rotation for this point source

alpha number

An opacity for the emitted light, if any

animation object

An animation configuration for the source

angle number

The angle of emission for this point source

bright number

The allowed radius of bright vision or illumination

color number

A tint color for the emitted light, if any

coloration number

The coloration technique applied in the shader

contrast number

The amount of contrast this light applies to the background texture

darkness object

A darkness range (min and max) for which the source should be active

dim number

The allowed radius of dim vision or illumination

gradual boolean

Fade the difference between bright, dim, and dark gradually?

luminosity number

The luminosity applied in the shader

saturation number

The amount of color saturation this light applies to the background texture

shadows number

The depth of shadows this light applies to the background texture

walls boolean

Whether or not the source is constrained by walls

vision boolean

Whether or not this source provides a source of vision

seed number

An integer seed to synchronize (or de-synchronize) animations

Type:
  • Object

LineCircleIntersection

Properties:
Name Type Description
aInside boolean

Is point A inside the circle?

bInside boolean

Is point B inside the circle?

contained boolean

Is the segment AB contained within the circle?

outside boolean

Is the segment AB fully outside the circle?

tangent boolean

Is the segment AB tangent to the circle?

intersections Array.<Point>

Intersection points: zero, one, or two

Type:
  • Object

LineIntersection

Properties:
Name Type Attributes Description
x number

The x-coordinate of intersection

y number

The y-coordinate of intersection

t0 number

The vector distance from A to B on segment AB

t1 number <optional>

The vector distance from C to D on segment CD

Type:
  • Object

MeasureDistancesOptions

Properties:
Name Type Attributes Description
gridSpaces boolean <optional>

Return the distance in grid increments rather than the co-ordinate distance.

Type:
  • object

Point

A single point, expressed as an object {x, y}

Type:
  • PIXI.Point | Object

PointArray

A single point, expressed as an array [x,y]

Type:

PointSourcePolygonConfig

Properties:
Name Type Attributes Default Description
type string <optional>

The type of polygon being computed

angle number <optional>
360

The angle of emission, if limited

density number <optional>

The desired density of padding rays, a number per PI

radius number <optional>

A limited radius of the resulting polygon

rotation number <optional>

The direction of facing, required if the angle is limited

debug boolean <optional>

Display debugging visualization and logging for the polygon

walls boolean <optional>

Is this polygon constrained by any walls?

source PointSource <optional>

The object (if any) that spawned this polygon.

Type:
  • Object

PolygonRay

Properties:
Name Type Description
result CollisionResult
Type:

QuadtreeObject

Properties:
Name Type Attributes Description
r Rectangle
t *
n Set.<Quadtree> <optional>
Type:
  • Object

RayIntersection

Properties:
Name Type Description
x number

The x-coordinate of intersection

y number

The y-coordinate of intersection

t0 number

The proximity to the Ray origin, as a ratio of distance

t1 number

The proximity to the Ray destination, as a ratio of distance

Type:
  • Object

Rectangle

A standard rectangle interface.

Type:
  • PIXI.Rectangle | Object

RequestData

Type:
  • object | Array.<object> | string | Array.<string>

RollTableDraw

Properties:
Name Type Description
roll Roll

The Dice roll which generated the draw

results Array.<TableResult>

An array of drawn TableResult documents

An object containing the executed Roll and the produced results

Type:
  • Object

RulerData

Properties:
Name Type Description
_state number

The ruler measurement state.

name string

A unique name for the ruler containing the owning user's ID.

destination PIXI.Point

The current point the ruler has been extended to.

class string

The class name of this ruler instance.

waypoints Array.<PIXI.Point>

Additional waypoints along the ruler's length, including the starting point.

Type:
  • object

SceneControl

Properties:
Name Type Description
name string
title string
layer string
icon string
visible boolean
tools Array.<SceneControlTool>
activeTool string
Type:
  • Object

SceneControlTool

Properties:
Name Type Description
name string
label string
icon string
visible boolean
toggle boolean
active boolean
button boolean
onClick function
Type:
  • Object

SearchFilterConfiguration

Properties:
Name Type Description
options object

Options which customize the behavior of the filter

Properties
Name Type Attributes Default Description
inputSelector string

The CSS selector used to target the text input element.

contentSelector string

The CSS selector used to target the content container for these tabs.

callback function

A callback function which executes when the filter changes.

initial string <optional>

The initial value of the search query.

delay number <optional>
100

The number of milliseconds to wait for text input before processing.

Type:
  • object

SettingConfig

Properties:
Name Type Description
key string

A unique machine-readable id for the setting

namespace string

The namespace the setting belongs to

name string

The human readable name

hint string

An additional human readable hint

scope string

The scope the Setting is stored in, either World or Client

config boolean

Indicates if this Setting should render in the Config application

type builtins

The JS Type that the Setting is storing

choices Object

For string Types, defines the allowable values

range Object

For numeric Types, defines the allowable range

default builtins

The default value

onChange function

Executes when the value of this Setting changes

A Client Setting

Type:
  • Object

SettingSubmenuConfig

Properties:
Name Type Description
name string

The human readable name

label string

The human readable label

hint string

An additional human readable hint

icon string

The classname of an Icon to render

type FormApplication

The FormApplication to render

restricted boolean

If true, only a GM can edit this Setting

A Client Setting Submenu

Type:
  • Object

SidebarDirectoryOptions

Properties:
Name Type Attributes Description
renderUpdateKeys Array.<string> <optional>

A list of data property keys that will trigger a re-render of the tab if they are updated on a Document that this tab is responsible for.

contextMenuSelector string <optional>

The CSS selector that activates the context menu for displayed Documents.

Type:

SocketRequest

Properties:
Name Type Attributes Description
action string <optional>

The server-side action being requested

type string <optional>

The type of object being modified

data RequestData <optional>

Data applied to the operation

pack string <optional>

A Compendium pack name

parentType string <optional>

The type of parent document

parentId string <optional>

The ID of a parent document

options object <optional>

Additional options applied to the request

Type:
  • Object

SocketResponse

Properties:
Name Type Attributes Description
request SocketRequest

The initial request

error Error <optional>

An error, if one occurred

status string <optional>

The status of the request

userId string <optional>

The ID of the requesting User

data RequestData <optional>

Data returned as a result of the request

Type:
  • Object

SoundSourceData

Properties:
Name Type Description
x number

The x-coordinate of the source location

y number

The y-coordinate of the source location

radius number

The radius of the sound effect

walls boolean

Whether or not the source is constrained by walls

Type:
  • Object

SupportReportData

Properties:
Name Type Description
coreVersion number
systemVersion string
activeModuleCount number
os string
client string
gpu string
maxTextureSize number | string
sceneDimensions string
grid number
padding float
walls number
lights number
sounds number
tiles number
tokens number
actors number
items number
journals number
tables number
playlists number
packs number
messages number

A bundle of metrics for Support

Type:
  • Object

TabsConfiguration

Type:
  • Object

VertexMap

Type:

VisionSourceData

Properties:
Name Type Description
x number

The x-coordinate of the source location

y number

The y-coordinate of the source location

z number

An optional z-index sorting for the source

rotation number

The angle of rotation for this point source

angle number

The angle of emission for this point source

bright number

The allowed radius of bright vision or illumination

dim number

The allowed radius of dim vision or illumination

Type:
  • Object

WorldConfigOptions

Properties:
Name Type Attributes Default Description
create boolean <optional>
false

Whether the world is being created or updated.

Type: