@casual-simulation/aux-common
Version:
Common library for AUX projects
1,663 lines • 47.7 kB
JavaScript
/**
* Defines a symbol that is used to clear changes on a runtime bot.
*/
export const CLEAR_CHANGES_SYMBOL = Symbol('clear_changes');
/**
* Defines a symbol that is used to set a tag mask on a runtime bot.
*/
export const SET_TAG_MASK_SYMBOL = Symbol('set_tag_mask');
/**
* Defines a symbol that is used to get a tag mask on a runtime bot.
*/
export const GET_TAG_MASK_SYMBOL = Symbol('get_tag_mask');
/**
* Defines a symbol that is used to get all the tag masks on a runtime bot.
*/
export const CLEAR_TAG_MASKS_SYMBOL = Symbol('clear_tag_masks');
/**
* Defines a symbol that is used to edit a tag.
*/
export const EDIT_TAG_SYMBOL = Symbol('edit_tag');
/**
* Defines a symbol that is used to edit a tag mask.
*/
export const EDIT_TAG_MASK_SYMBOL = Symbol('edit_tag_mask');
/**
* Defines a symbol that is used to get tag masks for a bot.
*/
export const GET_TAG_MASKS_SYMBOL = Symbol('get_tag_masks');
/**
* Defines a symbol that is used to replace a bot's implementation with another bot.
*/
export const REPLACE_BOT_SYMBOL = Symbol('replace_bot');
/**
* Defines a symbol that is used to add a bot listener.
*/
export const ADD_BOT_LISTENER_SYMBOL = Symbol('add_bot_listener');
/**
* Defines a symbol that is used to remove a bot listener.
*/
export const REMOVE_BOT_LISTENER_SYMBOL = Symbol('remove_bot_listener');
/**
* Defines a symbol that is used to get dynamic listeners for a bot.
*/
export const GET_DYNAMIC_LISTENERS_SYMBOL = Symbol('get_dynamic_listeners');
/**
* The space that records should be published to by default.
*/
export const DEFAULT_RECORD_SPACE = 'tempRestricted';
/**
* The default bot cursor.
*/
export const DEFAULT_BOT_CURSOR = 'auto';
/**
* The default bot shape.
*/
export const DEFAULT_BOT_SHAPE = 'cube';
/**
* The default menu bot form.
*/
export const DEFAULT_MENU_BOT_FORM = 'button';
/**
* The default menu bot hover style.
*/
export const DEFAULT_MENU_BOT_HOVER_STYLE = 'auto';
/**
* The default bot label anchor.
*/
export const DEFAULT_LABEL_ANCHOR = 'top';
/**
* The default bot label alignment.
*/
export const DEFAULT_LABEL_ALIGNMENT = 'center';
/**
* The default bot scale mode.
*/
export const DEFAULT_SCALE_MODE = 'fit';
/**
* The default bot mesh positioning mode.
*/
export const DEFAULT_MESH_POSITIONING_MODE = 'center';
/**
* The default bot orientation mode.
*/
export const DEFAULT_ORIENTATION_MODE = 'absolute';
/**
* The default bot orientation mode.
*/
export const DEFAULT_ANCHOR_POINT = 'bottom';
/**
* The default portal camera controls mode.
*/
export const DEFAULT_PORTAL_CAMERA_CONTROLS_MODE = 'player';
/**
* The default bot label font address.
*/
export const DEFAULT_LABEL_FONT_ADDRESS = 'rotobo';
/**
* The default bot label font address.
*/
export const DEFAULT_LABEL_FONT_SIZE = 'auto';
/**
* The default bot label word wrapping mode.
*/
export const DEFAULT_LABEL_WORD_WRAP_MODE = 'breakCharacters';
/**
* Whether canvas transparency is disabled by default.
*/
export const DEFAULT_PORTAL_DISABLE_CANVAS_TRANSPARENCY = false;
/**
* The default height for workspaces.
*/
export const DEFAULT_WORKSPACE_HEIGHT = 0.1;
/**
* The default size for workspaces.
*/
export const DEFAULT_WORKSPACE_SIZE = 1;
/**
* The default scale for workspaces.
*/
export const DEFAULT_WORKSPACE_SCALE = 2;
/**
* The default scale for mini workspaces.
*/
export const DEFAULT_MINI_WORKSPACE_SCALE = DEFAULT_WORKSPACE_SCALE / 3;
/**
* The default grid scale for workspaces.
*/
export const DEFAULT_WORKSPACE_GRID_SCALE = 0.2;
/**
* The amount that a hex's height is allowed to change by in a single increment.
*/
export const DEFAULT_WORKSPACE_HEIGHT_INCREMENT = 0.1;
/**
* The minimum height that hexes in a workspace can be.
*/
export const DEFAULT_WORKSPACE_MIN_HEIGHT = 0.1;
/**
* The default color for workspaces.
*/
export const DEFAULT_WORKSPACE_COLOR = '#999999';
/**
* The default color for scene background.
*/
export const DEFAULT_SCENE_BACKGROUND_COLOR = '#263238';
/**
* The default color for users in AUX Builder.
*/
export const DEFAULT_BUILDER_USER_COLOR = '#00D000';
/**
* The default color for users in AUX Player.
*/
export const DEFAULT_PLAYER_USER_COLOR = '#DDDD00';
/**
* The amount of time that a user needs to be inactive for
* in order to hide their bot.
*/
export const DEFAULT_USER_INACTIVE_TIME = 1000 * 60;
/**
* The amount of time that a user needs to be inactive for
* in order to delete their bot.
*/
export const DEFAULT_USER_DELETION_TIME = 1000 * 60 * 60;
/**
* Whether the miniGridPortal is visible by default.
*/
export const DEFAULT_MINI_PORTAL_VISIBLE = false;
/**
* Whether the map portal is visible by default.
*/
export const DEFAULT_MAP_PORTAL_VISIBLE = false;
/**
* The default scale for the map portal grid.
*/
export const DEFAULT_MAP_PORTAL_SCALE = 1;
/**
* The default grid scale for the map portal.
*/
export const DEFAULT_MAP_PORTAL_GRID_SCALE = 10;
/**
* The default basemap that should be used for the map portal.
* See https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap
*/
export const DEFAULT_MAP_PORTAL_BASEMAP = 'dark-gray-vector';
/**
* The default kind of map portal.
*/
export const DEFAULT_MAP_PORTAL_KIND = 'globe';
/**
* The default longitude that the map portal should show.
*/
export const DEFAULT_MAP_PORTAL_LONGITUDE = -84.71112905478944;
/**
* The default latitude that the map portal should show.
*/
export const DEFAULT_MAP_PORTAL_LATITUDE = 43.152972972972975;
/**
* The default zoom that the map portal should show.
*/
export const DEFAULT_MAP_PORTAL_ZOOM = 7;
/**
* Whether portals are pannable by default.
*/
export const DEFAULT_PORTAL_PANNABLE = true;
/**
* Whether portals are rotatable by default.
*/
export const DEFAULT_PORTAL_ROTATABLE = true;
export const DEFAULT_GRID_PORTAL_LIGHTING = true;
/**
* Whether portals are zoomable by default.
*/
export const DEFAULT_PORTAL_ZOOMABLE = true;
/**
* Whether portals should show their focus point.
*/
export const DEFAULT_PORTAL_SHOW_FOCUS_POINT = false;
/**
* Whether miniGridPortals are resizable by default.
*/
export const DEFAULT_MINI_PORTAL_RESIZABLE = true;
/**
* The default height for miniGridPortals.
*/
export const DEFAULT_MINI_PORTAL_HEIGHT = 0.2;
/**
* The default height for wrist portals.
*/
export const DEFAULT_WRIST_PORTAL_HEIGHT = 6;
/**
* The default width for wrist portals.
*/
export const DEFAULT_WRIST_PORTAL_WIDTH = 6;
/**
* The default grid scale for wrist portals.
*/
export const DEFAULT_WRIST_PORTAL_GRID_SCALE = 0.025;
/**
* The default anchor point for the meet portal.
*/
export const DEFAULT_MEET_PORTAL_ANCHOR_POINT = 'fullscreen';
/**
* The default anchor point for the tag portal.
*/
export const DEFAULT_TAG_PORTAL_ANCHOR_POINT = 'fullscreen';
/**
* The default anchor point for the bot portal.
*/
export const DEFAULT_BOT_PORTAL_ANCHOR_POINT = 'fullscreen';
/**
* The default anchor point for custom portals.
*/
export const DEFAULT_CUSTOM_PORTAL_ANCHOR_POINT = 'top';
/**
* The default bot LOD.
*/
export const DEFAULT_BOT_LOD = 'normal';
/**
* The default minimum LOD threshold.
*/
export const DEFAULT_BOT_LOD_MIN_THRESHOLD = 0.0005;
/**
* The default maximum LOD threshold.
*/
export const DEFAULT_BOT_LOD_MAX_THRESHOLD = 0.03;
/**
* The ID of the device configuration bot.
*/
export const DEVICE_BOT_ID = 'device';
/**
* The ID of the local configuration bot.
*/
export const LOCAL_BOT_ID = 'local';
/**
* The ID of the cookie configuration bot.
*/
export const COOKIE_BOT_ID = 'cookie';
/**
* THe partition ID for cookie bots.
*/
export const COOKIE_BOT_PARTITION_ID = 'local';
/**
* The partition ID for temporary bots.
*/
export const TEMPORARY_BOT_PARTITION_ID = 'tempLocal';
/**
* The partition ID for admin bots.
*/
export const ADMIN_PARTITION_ID = 'admin';
/**
* The partition ID for temporary shared bots.
*/
export const TEMPORARY_SHARED_PARTITION_ID = 'tempShared';
/**
* The partition ID for bots that are automatically added to the instance.
*/
export const BOOTSTRAP_PARTITION_ID = 'bootstrap';
/**
* The partition ID for other temp shared bots.
*/
export const REMOTE_TEMPORARY_SHARED_PARTITION_ID = 'remoteTempShared';
/**
* The space that tag masks get placed in by default.
*/
export const DEFAULT_TAG_MASK_SPACE = 'tempLocal';
/**
* The list of spaces that tag masks should be prioritized by.
* Listed in reverse order of where they actually end up applied.
*/
export const TAG_MASK_SPACE_PRIORITIES_REVERSE = [
'admin',
'shared',
'remoteTempShared',
'tempShared',
'local',
'tempLocal',
];
/**
* The list of spaces that tag masks should be prioritized by.
*/
export const TAG_MASK_SPACE_PRIORITIES = [
'tempLocal',
'local',
'tempShared',
'remoteTempShared',
'shared',
'admin',
];
/**
* The name of the branch that contains admin space.
*/
export const ADMIN_BRANCH_NAME = '$admin';
/**
* The name of the tag used to represent the space that the bot is
* stored in.
*/
export const BOT_SPACE_TAG = 'space';
/**
* The name of the event that represents a bot being diffed into another bot.
*/
export const MOD_DROP_ACTION_NAME = 'onModDrop';
/**
* The name of the event that represents a bot being created.
*/
export const CREATE_ACTION_NAME = 'onCreate';
/**
* The name of the event that represents any bot being created.
*/
export const CREATE_ANY_ACTION_NAME = 'onAnyCreate';
/**
* The name of the event that represents a bot being destroyed.
*/
export const DESTROY_ACTION_NAME = 'onDestroy';
/**
* The name of the event that represents a bot being clicked.
*/
export const CLICK_ACTION_NAME = 'onClick';
/**
* The name of the event that represents any bot being clicked.
*/
export const ANY_CLICK_ACTION_NAME = 'onAnyBotClicked';
/**
* The name of the event that represents a bot entering over another bot.
*/
export const DROP_ENTER_ACTION_NAME = 'onDropEnter';
/**
* The name of the event that represents a bot exiting from over another bot.
*/
export const DROP_EXIT_ACTION_NAME = 'onDropExit';
/**
* The name of the event that represents a bot entering over another bot.
*/
export const ANY_DROP_ENTER_ACTION_NAME = 'onAnyBotDropEnter';
/**
* The name of the event that represents a bot exiting from over another bot.
*/
export const ANY_DROP_EXIT_ACTION_NAME = 'onAnyBotDropExit';
/**
* The name of the event that represents a bot being dropped onto a dimension.
*/
export const DROP_ACTION_NAME = 'onDrop';
/**
* The name of the event that represents any bot being dropped onto a dimension.
*/
export const DROP_ANY_ACTION_NAME = 'onAnyBotDrop';
/**
* The name of the event that represents a bot starting to be dragged.
*/
export const DRAG_ACTION_NAME = 'onDrag';
/**
* The name of the event that represents any bot starting to be dragged.
*/
export const DRAG_ANY_ACTION_NAME = 'onAnyBotDrag';
/**
* The name of the event that represents a bot being dragged.
*/
export const DRAGGING_ACTION_NAME = 'onDragging';
/**
* The name of the event that represents any bot being dragged.
*/
export const DRAGGING_ANY_ACTION_NAME = 'onAnyBotDragging';
/**
* The name of the event that represents a mod entering over a bot.
*/
export const MOD_DROP_ENTER_ACTION_NAME = 'onModDropEnter';
/**
* The name of the event that represents a mod exiting from over a bot.
*/
export const MOD_DROP_EXIT_ACTION_NAME = 'onModDropExit';
/**
* The name of the event that is triggered when a pointer starts hovering a bot.
*/
export const ON_POINTER_ENTER = 'onPointerEnter';
/**
* The name of the event that is triggered when a pointer stops hovering a bot.
*/
export const ON_POINTER_EXIT = 'onPointerExit';
/**
* The name of the event that is triggered when a pointer starts hovering any bot.
*/
export const ON_ANY_POINTER_ENTER = 'onAnyBotPointerEnter';
/**
* The name of the event that is triggered when a pointer stops hovering any bot.
*/
export const ON_ANY_POINTER_EXIT = 'onAnyBotPointerExit';
/**
* The name of the event that is triggered when a pointer starts clicking a bot.
*/
export const ON_POINTER_DOWN = 'onPointerDown';
/**
* The name of the event that is triggered when a pointer stops clicking a bot.
*/
export const ON_POINTER_UP = 'onPointerUp';
/**
* The name of the event that is triggered when a pointer starts hovering any bot.
*/
export const ON_ANY_POINTER_DOWN = 'onAnyBotPointerDown';
/**
* The name of the event that is triggered when a pointer stops hovering any bot.
*/
export const ON_ANY_POINTER_UP = 'onAnyBotPointerUp';
/**
* The name of the event that is triggered when a QR Code is scanned.
*/
export const ON_QR_CODE_SCANNED_ACTION_NAME = 'onQRCodeScanned';
/**
* The name of the event that is triggered when the QR Code scanner is closed.
*/
export const ON_QR_CODE_SCANNER_CLOSED_ACTION_NAME = 'onQRCodeScannerClosed';
/**
* The name of the event that is triggered when the QR Code scanner is opened.
*/
export const ON_QR_CODE_SCANNER_OPENED_ACTION_NAME = 'onQRCodeScannerOpened';
/**
* The name of the event that is triggered when the Barcode scanner is closed.
*/
export const ON_BARCODE_SCANNER_CLOSED_ACTION_NAME = 'onBarcodeScannerClosed';
/**
* The name of the event that is triggered when the Barcode scanner is opened.
*/
export const ON_BARCODE_SCANNER_OPENED_ACTION_NAME = 'onBarcodeScannerOpened';
/**
* The name of the event that is triggered when a Barcode is scanned.
*/
export const ON_BARCODE_SCANNED_ACTION_NAME = 'onBarcodeScanned';
/**
* The name of the event that is triggered when the image classifier is closed.
*/
export const ON_IMAGE_CLASSIFIER_CLOSED_ACTION_NAME = 'onImageClassifierClosed';
/**
* The name of the event that is triggered when the image classifier is opened.
*/
export const ON_IMAGE_CLASSIFIER_OPENED_ACTION_NAME = 'onImageClassifierOpened';
/**
* The name of the event that is triggered when an image is classified.
*/
export const ON_IMAGE_CLASSIFIED_ACTION_NAME = 'onImageClassified';
/**
* The name of the event that is triggered when the photo camera is opened.
*/
export const ON_PHOTO_CAMERA_OPENED_ACTION_NAME = 'onPhotoCameraOpened';
/**
* The name of the event that is triggered when the photo camera is closed.
*/
export const ON_PHOTO_CAMERA_CLOSED_ACTION_NAME = 'onPhotoCameraClosed';
/**
* The name of the event that is triggered when a photo is captured from the photo camera.
*/
export const ON_PHOTO_CAPTURED_ACTION_NAME = 'onPhotoCaptured';
/**
* The name of the event that is triggered when the checkout process is completed.
*/
export const ON_CHECKOUT_ACTION_NAME = 'onCheckout';
/**
* The name of the event that is triggered when payment has been approved for the checkout.
*/
export const ON_PAYMENT_SUCCESSFUL_ACTION_NAME = 'onPaymentSuccessful';
/**
* The name of the event that is triggered when payment has been rejected for the checkout.
*/
export const ON_PAYMENT_FAILED_ACTION_NAME = 'onPaymentFailed';
/**
* The name of the event that is triggered when webhooks have been received.
*/
export const ON_WEBHOOK_ACTION_NAME = 'onWebhook';
/**
* The name of the event that is triggered on every bot when a shout has been executed.
*/
export const ON_ANY_SHOUT_ACTION_NAME = 'onAnyListen';
/**
* The name of the event that is triggered when a shout has been executed.
*/
export const ON_SHOUT_ACTION_NAME = 'onListen';
/**
* The name of the event that is triggered before an action is executed.
*/
export const ON_ACTION_ACTION_NAME = 'onAnyAction';
/**
* The name of the event that is triggered when a remote whisper is executed.
*/
// TODO: Remove this action
export const ON_REMOTE_WHISPER_ACTION_NAME = 'onRemoteWhisper';
/**
* The name of the event that is triggered when a remote whisper is executed.
*/
export const ON_REMOTE_DATA_ACTION_NAME = 'onRemoteData';
/**
* The name of the event that is triggered when a channel becomes synced.
*/
export const ON_SERVER_STREAMING_ACTION_NAME = 'onServerStreaming';
/**
* The name of the event that is triggered when a channel has become unsynced.
*/
export const ON_SERVER_STREAM_LOST_ACTION_NAME = 'onServerStreamLost';
/**
* The name of the event that is triggered when a inst becomes synced.
*/
export const ON_INST_STREAMING_ACTION_NAME = 'onInstStreaming';
/**
* The name of the event that is triggered when a inst has become unsynced.
*/
export const ON_INST_STREAM_LOST_ACTION_NAME = 'onInstStreamLost';
/**
* The name of the event that is triggered when a channel is loaded.
*/
// TODO: Remove this action
export const ON_SERVER_SUBSCRIBED_ACTION_NAME = 'onServerSubscribed';
/**
* The name of the event that is triggered when a channel is loaded.
*/
export const ON_SERVER_JOINED_ACTION_NAME = 'onServerJoined';
/**
* The name of the event that is triggered when a inst is loaded.
*/
export const ON_INST_JOINED_ACTION_NAME = 'onInstJoined';
/**
* The name of the event that is triggered when a channel is unloaded.
*/
// TODO: Remove this action
export const ON_SERVER_UNSUBSCRIBED_ACTION_NAME = 'onServerUnsubscribed';
/**
* The name of the event that is triggered when a channel is unloaded.
*/
export const ON_SERVER_LEAVE_ACTION_NAME = 'onServerLeave';
/**
* The name of the event that is triggered when a channel is unloaded.
*/
export const ON_INST_LEAVE_ACTION_NAME = 'onInstLeave';
/**
* The name of the event that is triggered when portal tag is changed on the config bot.
*/
// TODO: Remove this action
export const ON_PLAYER_PORTAL_CHANGED_ACTION_NAME = 'onPlayerPortalChanged';
/**
* The name of the event that is triggered when portal tag is changed on the config bot.
*/
export const ON_PORTAL_CHANGED_ACTION_NAME = 'onPortalChanged';
/**
* The name of the event that is triggered when a script is executed.
*/
export const ON_RUN_ACTION_NAME = 'onRun';
/**
* The name of the event that is triggered when the text in the chat bar is updated.
*/
export const ON_CHAT_TYPING_ACTION_NAME = 'onChatTyping';
/**
* The name of the event that is triggered when the text in the chat bar is submitted.
*/
export const ON_CHAT_ACTION_NAME = 'onChat';
/**
* The name of the event that is triggered when the text in a menu bot input is submitted.
*/
export const ON_SUBMIT_ACTION_NAME = 'onSubmit';
/**
* The name of the event that is triggered when the text in a menu bot input is updated.
*/
export const ON_INPUT_TYPING_ACTION_NAME = 'onInputTyping';
/**
* The name of the event that is triggered when text is pasted into aux.
*/
export const ON_PASTE_ACTION_NAME = 'onPaste';
/**
* The name of the event that is triggered when the maximum LOD is entered.
*/
export const ON_MAX_LOD_ENTER_ACTION_NAME = 'onMaxLODEnter';
/**
* The name of the event that is triggered when the minimum LOD is entered.
*/
export const ON_MIN_LOD_ENTER_ACTION_NAME = 'onMinLODEnter';
/**
* The name of the event that is triggered when the maximum LOD is exited.
*/
export const ON_MAX_LOD_EXIT_ACTION_NAME = 'onMaxLODExit';
/**
* The name of the event that is triggered when the minimum LOD is exited.
*/
export const ON_MIN_LOD_EXIT_ACTION_NAME = 'onMinLODExit';
/**
* The name of the event that is triggered when the maximum LOD is entered.
*/
export const ON_ANY_MAX_LOD_ENTER_ACTION_NAME = 'onAnyMaxLODEnter';
/**
* The name of the event that is triggered when the minimum LOD is entered.
*/
export const ON_ANY_MIN_LOD_ENTER_ACTION_NAME = 'onAnyMinLODEnter';
/**
* The name of the event that is triggered when the maximum LOD is exited.
*/
export const ON_ANY_MAX_LOD_EXIT_ACTION_NAME = 'onAnyMaxLODExit';
/**
* The name of the event that is triggered when the minimum LOD is exited.
*/
export const ON_ANY_MIN_LOD_EXIT_ACTION_NAME = 'onAnyMinLODExit';
/**
* The name of the event that is triggered when the grid is clicked.
*/
export const ON_GRID_CLICK_ACTION_NAME = 'onGridClick';
/**
* The name of the event that is triggered when the grid starts getting pressed.
*/
export const ON_GRID_UP_ACTION_NAME = 'onGridUp';
/**
* The name of the event that is triggered when the grid stops getting pressed.
*/
export const ON_GRID_DOWN_ACTION_NAME = 'onGridDown';
/**
* The name of the event that is triggered when a file is uploaded.
*/
export const ON_FILE_UPLOAD_ACTION_NAME = 'onFileUpload';
/**
* The name of the event that is triggerd when a bot gains camera focus.
*/
export const ON_FOCUS_ENTER_ACTION_NAME = 'onFocusEnter';
/**
* The name of the event that is triggerd when a bot loses camera focus.
*/
export const ON_FOCUS_EXIT_ACTION_NAME = 'onFocusExit';
/**
* The name of the event that is triggerd when a bot gains camera focus.
*/
export const ON_ANY_FOCUS_ENTER_ACTION_NAME = 'onAnyFocusEnter';
/**
* The name of the event that is triggerd when a bot loses camera focus.
*/
export const ON_ANY_FOCUS_EXIT_ACTION_NAME = 'onAnyFocusExit';
/**
* The name of the event that is triggered when a remote player joins the game.
*/
// TODO: Remove this action
export const ON_REMOTE_PLAYER_SUBSCRIBED_ACTION_NAME = 'onRemotePlayerSubscribed';
/**
* The name of the event that is triggered when a remote player joins the game.
*/
export const ON_REMOTE_JOINED_ACTION_NAME = 'onRemoteJoined';
/**
* The name of the event that is triggered when a remote player leaves the game.
*/
// TODO: Remove
export const ON_REMOTE_PLAYER_UNSUBSCRIBED_ACTION_NAME = 'onRemotePlayerUnsubscribed';
/**
* The name of the event that is triggered when a remote player leaves the game.
*/
export const ON_REMOTE_LEAVE_ACTION_NAME = 'onRemoteLeave';
/**
* The name of the event that is triggered when a bot is added to the local simulation.
*/
export const ON_BOT_ADDED_ACTION_NAME = 'onBotAdded';
/**
* The name of the event that is triggered when any bot is added to the local simulation.
*/
export const ON_ANY_BOTS_ADDED_ACTION_NAME = 'onAnyBotsAdded';
/**
* The name of the event that is triggered when any bot is removed from the local simulation.
*/
export const ON_ANY_BOTS_REMOVED_ACTION_NAME = 'onAnyBotsRemoved';
/**
* The name of the event that is triggered when a bot is changed.
*/
export const ON_BOT_CHANGED_ACTION_NAME = 'onBotChanged';
/**
* The name of the event that is triggered when any bot is changed in the local simulation.
*/
export const ON_ANY_BOTS_CHANGED_ACTION_NAME = 'onAnyBotsChanged';
/**
* The name of the event that is triggered when a tag is clicked in the sheet.
*/
export const ON_SHEET_TAG_CLICK = 'onSheetTagClick';
/**
* The name of the event that is triggered when a Bot's ID is clicked in the sheet.
*/
export const ON_SHEET_BOT_ID_CLICK = 'onSheetBotIDClick';
/**
* The name of the event that is triggered when a Bot is clicked in the sheet.
*/
export const ON_SHEET_BOT_CLICK = 'onSheetBotClick';
/**
* The name of the event that is triggered when a listen tag encounters an unhandled error.
*/
export const ON_ERROR = 'onError';
/**
* The name of the event that is triggered when a portal is being configured.
*/
export const ON_APP_SETUP_ACTION_NAME = 'onAppSetup';
/**
* The name of the event that is triggered when the root app has been setup.
*/
export const ON_DOCUMENT_AVAILABLE_ACTION_NAME = 'onDocumentAvailable';
/**
* The name of the event that is triggered when a keyboard button is clicked.
*/
export const ON_KEY_CLICK_ACTION_NAME = 'onKeyClick';
/**
* The name of the event that is triggered when a package is installed.
*/
export const ON_PACKAGE_INSTALLED_ACTION_NAME = 'onPackageInstalled';
/**
* The tag used to set the space that the tag portal operates in.
*/
export const TAG_PORTAL_SPACE = 'tagPortalSpace';
/**
* The name of the event that is triggered when an audio sample is resolved.
*/
export const ON_AUDIO_SAMPLE = 'onAudioChunk';
/**
* The name of the event that is triggered when audio recording is started.
*/
export const ON_BEGIN_AUDIO_RECORDING = 'onBeginAudioRecording';
/**
* The name of the event that is triggered when audio recording is stopped.
*/
export const ON_END_AUDIO_RECORDING = 'onEndAudioRecording';
/**
* The name of the event that is triggered when VR is entered.
*/
export const ON_ENTER_VR = 'onEnterVR';
/**
* The name of the event that is triggered when VR is exited.
*/
export const ON_EXIT_VR = 'onExitVR';
/**
* The name of the event that is triggered when AR is entered.
*/
export const ON_ENTER_AR = 'onEnterAR';
/**
* The name of the event that is triggered when AR is exited.
*/
export const ON_EXIT_AR = 'onExitAR';
/**
* The name of the event that is triggered when the meet portal is finished loading.
*/
export const ON_MEET_LOADED = 'onMeetLoaded';
/**
* The name of the event that is triggered when the user meet portal is closed.
*/
export const ON_MEET_LEAVE = 'onMeetLeave';
/**
* The name of the event that is triggered when the user has entered a meet.
*/
export const ON_MEET_ENTERED = 'onMeetEntered';
/**
* The name of the event that is triggered when the user has exited a meet.
*/
export const ON_MEET_EXITED = 'onMeetExited';
/**
* The name of the event that is triggered when the link to a meeting recording is available.
*/
export const ON_MEET_RECORDING_LINK_AVAILABLE = 'onMeetRecordingLinkAvailable';
/**
* The name of the event that is triggered when the user has joined a multimedia chat room.
*/
export const ON_ROOM_JOINED = 'onRoomJoined';
/**
* The name of the event that is triggered when the user has left a multimedia chat room.
*/
export const ON_ROOM_LEAVE = 'onRoomLeave';
/**
* The name of the event that is triggered when a multimedia track has been recieved.
*/
export const ON_ROOM_TRACK_SUBSCRIBED = 'onRoomTrackSubscribed';
/**
* The name of the event that is triggerd when a multimedia track has been lost.
*/
export const ON_ROOM_TRACK_UNSUBSCRIBED = 'onRoomTrackUnsubscribed';
/**
* The name of the event that is triggered when the user has become disconnected from a multimedia chat room.
*/
export const ON_ROOM_STREAM_LOST = 'onRoomStreamLost';
/**
* The name of the event that is triggered when the user has become connected to a multimedia chat room.
*/
export const ON_ROOM_STREAMING = 'onRoomStreaming';
/**
* The name of the event that is triggered when the list of active speakers has changed.
*/
export const ON_ROOM_SPEAKERS_CHANGED = 'onRoomSpeakersChanged';
/**
* The name of the event that is triggered when a remote user joins a multimedia chat room.
*/
export const ON_ROOM_REMOTE_JOINED = 'onRoomRemoteJoined';
/**
* The name of the event that is triggered when a remote user leaves a multimedia chat room.
*/
export const ON_ROOM_REMOTE_LEAVE = 'onRoomRemoteLeave';
/**
* The name of the event that is triggered when options for a multimedia chat room are changed.
*/
export const ON_ROOM_OPTIONS_CHANGED = 'onRoomOptionsChanged';
/**
* The name of the event that is triggered when a form animation is started.
*/
export const ON_FORM_ANIMATION_STARTED = 'onFormAnimationStarted';
/**
* The name of the event that is triggered for all bots when a form animation is started.
*/
export const ON_ANY_FORM_ANIMATION_STARTED = 'onAnyFormAnimationStarted';
/**
* The name of the event that is triggered when a form animation is finished.
*/
export const ON_FORM_ANIMATION_FINISHED = 'onFormAnimationFinished';
/**
* The name of the event that is triggered for all bots when a form animation is finished.
*/
export const ON_ANY_FORM_ANIMATION_FINISHED = 'onAnyFormAnimationFinished';
/**
* The name of the event that is triggered when a form animation is stopped.
*/
export const ON_FORM_ANIMATION_STOPPED = 'onFormAnimationStopped';
/**
* The name of the event that is triggered for all bots when a form animation is stopped.
*/
export const ON_ANY_FORM_ANIMATION_STOPPED = 'onAnyFormAnimationStopped';
/**
* The name of the event that is triggered when a form animation loops.
*/
export const ON_FORM_ANIMATION_LOOPED = 'onFormAnimationLooped';
/**
* The name of the event that is triggered for all bots when a form animation loops.
*/
export const ON_ANY_FORM_ANIMATION_LOOPED = 'onAnyFormAnimationLooped';
/**
* The name of the event that is triggered when a space's max size has been reached.
*/
export const ON_SPACE_MAX_SIZE_REACHED = 'onSpaceMaxSizeReached';
/**
* The name of the event that is triggered when a network rate limit is exceeded.
*/
export const ON_SPACE_RATE_LIMIT_EXCEEDED_ACTION_NAME = 'onSpaceRateLimitExceeded';
/**
* The name of the event that is triggered once collaboration has been enabled.
*/
export const ON_COLLABORATION_ENABLED = 'onCollaborationEnabled';
/**
* The name of the event that is triggered when collaboration upgrades begin to be allowed.
*/
export const ON_ALLOW_COLLABORATION_UPGRADE = 'onAllowCollaborationUpgrade';
/**
* The name of the event that is triggered when collaboration upgrades are no longer allowed.
*/
export const ON_DISALLOW_COLLABORATION_UPGRADE = 'onDisallowCollaborationUpgrade';
/**
* The name of the event that is triggered when a module needs to be resolved.
*/
export const ON_RESOLVE_MODULE = 'onResolveModule';
/**
* The current bot format version for AUX Bots.
* This number increments whenever there are any changes between AUX versions.
* As a result, it will allow us to make breaking changes but still upgrade people's bots
* in the future.
*/
export const AUX_BOT_VERSION = 1;
/**
* The dimension that is used for showing codeButton bots in the code editor context menu.
*/
export const EDITOR_CODE_BUTTON_DIMENSION = 'true';
/**
* The name of the codeToolsPortal.
*/
export const EDITOR_CODE_TOOL_PORTAL = 'codeToolsPortal';
/**
* The name of the grid portal.
*/
export const GRID_PORTAL = 'gridPortal';
/**
* The name of the miniGridPortal.
*/
export const MINI_PORTAL = 'miniGridPortal';
/**
* The name of the map portal.
*/
export const MAP_PORTAL = 'mapPortal';
/**
* The name of the mini map portal.
*/
export const MINI_MAP_PORTAL = 'miniMapPortal';
/**
* The name of the meet portal.
*/
export const MEET_PORTAL = 'meetPortal';
/**
* The name of the bot portal.
*/
export const BOT_PORTAL = 'botPortal';
/**
* The name of the tag portal.
*/
export const TAG_PORTAL = 'tagPortal';
/**
* The name of the data portal.
*/
export const DATA_PORTAL = 'dataPortal';
/**
* The name of the sheet portal.
*/
export const SHEET_PORTAL = 'sheetPortal';
/**
* The name of the IDE portal.
*/
export const IDE_PORTAL = 'idePortal';
/**
* The name of the system portal.
*/
export const SYSTEM_PORTAL = 'systemPortal';
/**
* The name of the system tag.
*/
export const SYSTEM_TAG = 'system';
/**
* The name of the tag that is used to determine which tag should be used for the system portal.
*/
export const SYSTEM_TAG_NAME = 'systemTagName';
/**
* The name of the tag that is used to search tags in the system portal.
*/
export const SYSTEM_PORTAL_SEARCH = 'systemPortalSearch';
/**
* The name of the tag used to keep track of the selected bot in the system portal..
*/
export const SYSTEM_PORTAL_BOT = 'systemPortalBot';
/**
* The name of the tag that is selected in the system portal.
*/
export const SYSTEM_PORTAL_TAG = 'systemPortalTag';
/**
* The space of the tag that is selected in the system portal.
*/
export const SYSTEM_PORTAL_TAG_SPACE = 'systemPortalTagSpace';
/**
* The name of the diff portal.
*/
export const SYSTEM_PORTAL_DIFF = 'systemPortalDiff';
/**
* The bot that is currently selected in the diff portal.
*/
export const SYSTEM_PORTAL_DIFF_BOT = 'systemPortalDiffBot';
/**
* The name of the tag that is selected in the diff portal.
*/
export const SYSTEM_PORTAL_DIFF_TAG = 'systemPortalDiffTag';
/**
* The space of the tag that is selected in the system portal.
*/
export const SYSTEM_PORTAL_DIFF_TAG_SPACE = 'systemPortalDiffTagSpace';
/**
* The pane that is open in the system portal.
*/
export const SYSTEM_PORTAL_PANE = 'systemPortalPane';
/**
* The name of the tag that is used to indicate which bot the player is currently editing.
*/
export const EDITING_BOT = 'editingBot';
/**
* The name of the tag that is used to indiciate which tag the player is currently editing.
*/
export const EDITING_TAG = 'editingTag';
/**
* The name of the tag that is used to indiciate which space the tag the player is currently editing is in.
*/
export const EDITING_TAG_SPACE = 'editingTagSpace';
/**
* The name of the tag that is used to enable or disable semantic highlighting in the code editor.
*/
export const SHOW_SCRIPT_ISSUES = 'showSemanticHighlighting';
/**
* The name of the IMU portal.
*/
export const IMU_PORTAL = 'imuPortal';
/**
* The prefix for DNA Tags.
*/
export const DNA_TAG_PREFIX = '🧬';
/**
* The prefix for bot links.
*/
export const BOT_LINK_TAG_PREFIX = '🔗';
/**
* The prefix for date tags.
*/
export const DATE_TAG_PREFIX = '📅';
/**
* The prefix for string tags.
*/
export const STRING_TAG_PREFIX = '📝';
/*
* The prefix for number tags.
*/
export const NUMBER_TAG_PREFIX = '🔢';
/**
* The prefix for vector tags.
*/
export const VECTOR_TAG_PREFIX = '➡️';
/**
* The prefix for rotation tags.
*/
export const ROTATION_TAG_PREFIX = '🔁';
/**
* The default script prefixes for custom portals.
*/
export const DEFAULT_CUSTOM_PORTAL_SCRIPT_PREFIXES = ['📖'];
/**
* The default script prefixes for library portals.
*/
export const LIBRARY_SCRIPT_PREFIX = '📄';
/**
* The list of known tag prefixes.
*/
export const KNOWN_TAG_PREFIXES = [
'@',
DNA_TAG_PREFIX,
BOT_LINK_TAG_PREFIX,
DATE_TAG_PREFIX,
STRING_TAG_PREFIX,
NUMBER_TAG_PREFIX,
VECTOR_TAG_PREFIX,
ROTATION_TAG_PREFIX,
LIBRARY_SCRIPT_PREFIX,
];
/**
* The list of all portal tags.
*/
export const KNOWN_PORTALS = [
GRID_PORTAL,
SHEET_PORTAL,
IDE_PORTAL,
IMU_PORTAL,
SYSTEM_PORTAL,
MINI_PORTAL,
'menuPortal',
'leftWristPortal',
'rightWristPortal',
MEET_PORTAL,
TAG_PORTAL,
MAP_PORTAL,
MINI_MAP_PORTAL,
BOT_PORTAL,
];
/**
* The list of portal tags that trigger closing the loading screen.
*/
export const LOAD_PORTALS = [
GRID_PORTAL,
SHEET_PORTAL,
IDE_PORTAL,
SYSTEM_PORTAL,
MINI_PORTAL,
MAP_PORTAL,
MINI_MAP_PORTAL,
MEET_PORTAL,
TAG_PORTAL,
BOT_PORTAL,
];
/**
* The list of portal tags that should always be represented in the query string.
*/
export const QUERY_PORTALS = [
GRID_PORTAL,
SHEET_PORTAL,
IDE_PORTAL,
MEET_PORTAL,
TAG_PORTAL,
TAG_PORTAL_SPACE,
MAP_PORTAL,
SYSTEM_PORTAL,
SYSTEM_TAG_NAME,
SYSTEM_PORTAL_DIFF,
SYSTEM_PORTAL_PANE,
SYSTEM_PORTAL_SEARCH,
BOT_PORTAL,
'theme',
];
/**
* The list of portal tags that should cause a new browser history entry to be added
* when it is updated.
*/
export const QUERY_FULL_HISTORY_TAGS = new Set([
GRID_PORTAL,
SHEET_PORTAL,
IDE_PORTAL,
MEET_PORTAL,
TAG_PORTAL,
TAG_PORTAL_SPACE,
MAP_PORTAL,
]);
/**
* The list of portal tags that should cause a new browser history entry to be added
* only when the tag itself is added or removed from the query.
*/
export const QUERY_PARTIAL_HISTORY_TAGS = new Set([
SYSTEM_PORTAL,
SYSTEM_PORTAL_DIFF,
SYSTEM_PORTAL_SEARCH,
SYSTEM_PORTAL_PANE,
]);
/*
* The list of all tags that have existing functionality in casual sim
*/
export const KNOWN_TAGS = [
'playerActive',
GRID_PORTAL,
SHEET_PORTAL,
IDE_PORTAL,
SYSTEM_PORTAL,
SYSTEM_PORTAL_BOT,
SYSTEM_PORTAL_TAG,
SYSTEM_PORTAL_TAG_SPACE,
SYSTEM_PORTAL_SEARCH,
SYSTEM_PORTAL_PANE,
SYSTEM_TAG,
SYSTEM_TAG_NAME,
SYSTEM_PORTAL_DIFF,
SYSTEM_PORTAL_DIFF_BOT,
SYSTEM_PORTAL_DIFF_TAG,
SYSTEM_PORTAL_DIFF_TAG_SPACE,
'inst',
'staticInst',
'record',
'owner',
'joinCode',
'url',
'sharableUrl',
'theme',
MINI_PORTAL,
'menuPortal',
MAP_PORTAL,
MINI_MAP_PORTAL,
'leftWristPortal',
'rightWristPortal',
MEET_PORTAL,
DATA_PORTAL,
TAG_PORTAL,
TAG_PORTAL_SPACE,
IMU_PORTAL,
'imuSupported',
'deviceRotationX',
'deviceRotationY',
'deviceRotationZ',
'deviceRotationW',
BOT_PORTAL,
'botPortalStyle',
'botPortalAnchorPoint',
'cameraPositionX',
'cameraPositionY',
'cameraPositionZ',
'cameraPosition',
'cameraPositionOffsetX',
'cameraPositionOffsetY',
'cameraPositionOffsetZ',
'cameraPositionOffset',
'cameraRotationX',
'cameraRotationY',
'cameraRotationZ',
'cameraRotation',
'cameraRotationOffsetX',
'cameraRotationOffsetY',
'cameraRotationOffsetZ',
'cameraRotationOffsetW',
'cameraRotationOffset',
'cameraFocusX',
'cameraFocusY',
'cameraFocusZ',
'cameraZoom',
'cameraZoomOffset',
'pixelWidth',
'pixelHeight',
'pixelRatio',
'defaultPixelRatio',
'defaultLighting',
'pageTitle',
'pointerPixelX',
'pointerPixelY',
'pointerPixel',
'mousePointerPositionX',
'mousePointerPositionY',
'mousePointerPositionZ',
'mousePointerPosition',
'rightPointerPositionX',
'rightPointerPositionY',
'rightPointerPositionZ',
'rightPointerPosition',
'leftPointerPositionX',
'leftPointerPositionY',
'leftPointerPositionZ',
'leftPointerPosition',
'mousePointerRotationX',
'mousePointerRotationY',
'mousePointerRotationZ',
'mousePointerRotation',
'rightPointerRotationX',
'rightPointerRotationY',
'rightPointerRotationZ',
'rightPointerRotation',
'leftPointerRotationX',
'leftPointerRotationY',
'leftPointerRotationZ',
'leftPointerRotation',
'mousePointerPortal',
'rightPointerPortal',
'leftPointerPortal',
'mousePointer_left',
'mousePointer_right',
'mousePointer_middle',
'leftPointer_primary',
'leftPointer_squeeze',
'rightPointer_primary',
'rightPointer_squeeze',
'forceSignedScripts',
'onSpaceRateLimitExceeded',
EDITING_BOT,
EDITING_TAG,
EDITING_TAG_SPACE,
'cursorStartIndex',
'cursorEndIndex',
'portalColor',
'portalCursor',
'portalCursorHotspotX',
'portalCursorHotspotY',
'portalCursorHotspot',
'portalBackgroundAddress',
'portalHDRAddress',
'portalLocked',
'portalPannable',
`portalPannableMinX`,
`portalPannableMaxX`,
`portalPannableMinY`,
`portalPannableMaxY`,
`portalPannableMin`,
`portalPannableMax`,
'portalZoomable',
`portalZoomableMin`,
`portalZoomableMax`,
'portalRotatable',
'portalGridScale',
'portalSurfaceScale',
`portalCameraZoom`,
`portalCameraRotationX`,
`portalCameraRotationY`,
`portalCameraRotation`,
'portalCameraControls',
'portalShowFocusPoint',
'portalDisableCanvasTransparency',
'portalCameraType',
'miniPortalHeight',
'miniPortalWidth',
'miniPortalResizable',
'wristPortalHeight',
'wristPortalWidth',
'meetPortalAnchorPoint',
'meetPortalVisible',
'meetPortalStyle',
'meetPortalPrejoinEnabled',
'meetPortalStartWithVideoMuted',
'meetPortalStartWithAudioMuted',
'meetPortalRequireDisplayName',
'meetPortalDisablePrivateMessages',
'meetPortalJWT',
'meetPortalLanguage',
'mapPortalBasemap',
'mapPortalKind',
'mapPortalGridKind',
'tagPortalAnchorPoint',
'tagPortalStyle',
'tagPortalShowButton',
'tagPortalButtonIcon',
'tagPortalButtonHint',
'sheetPortalShowButton',
'sheetPortalButtonIcon',
'sheetPortalButtonHint',
'sheetPortalAllowedTags',
'sheetPortalAddedTags',
'portalShowButton',
'portalButtonIcon',
'portalButtonHint',
'menuPortalStyle',
'color',
'creator',
'cursor',
'cursorHotspotX',
'cursorHotspotY',
'cursorHotspot',
'draggable',
'destroyable',
'editable',
'strokeColor',
'strokeWidth',
'lineTo',
'lineStyle',
'lineWidth',
'lineColor',
'label',
'labelColor',
'labelFontSize',
'labelSize',
'labelSizeMode',
'labelOpacity',
'labelPadding',
'labelPaddingX',
'labelPaddingY',
'labelPosition',
'labelAlignment',
'labelWordWrapMode',
'labelFontAddress',
'labelFloatingBackgroundColor',
'listening',
'scale',
'scaleX',
'scaleY',
'scaleZ',
'scaleMode',
'formAddress',
'formAddressAspectRatio',
'formSubtype',
'form',
'formAnimation',
'formAnimationAddress',
'formOpacity',
'formRenderOrder',
'formDepthTest',
'formDepthWrite',
'formLightIntensity',
'formLightTarget',
'formLightDistance',
'formLightAngle',
'formLightPenumbra',
'formLightDecay',
'formLightGroundColor',
'formBuildStep',
'formLDrawPartsAddress',
'formMapLOD',
'formMapProvider',
'formMapProviderAPIKey',
'formMapHeightProvider',
'formMapHeightProviderAPIKey',
'formMapHeightOffset',
'formInputMultiline',
'meshPositioningMode',
'orientationMode',
'anchorPoint',
'gltfVersion',
'progressBar',
'progressBarColor',
'progressBarBackgroundColor',
'progressBarPosition',
'maxLODThreshold',
'minLODThreshold',
'pointable',
'focusable',
'transformer',
'menuItemStyle',
'menuItemLabelStyle',
'menuItemHoverMode',
'menuItemText',
'menuItemShowSubmitWhenEmpty',
'showSemanticHighlighting',
'taskOutput',
'taskError',
'taskTime',
'taskShell',
'taskBackup',
'taskBackupType',
'taskBackupUrl',
'error',
'errorName',
'errorMessage',
'errorStack',
'errorBot',
'errorTag',
'avatarAddress',
'name',
'hasActiveSubscription',
'subscriptionTier',
CLICK_ACTION_NAME,
'onAnyBotClicked',
MOD_DROP_ENTER_ACTION_NAME,
MOD_DROP_EXIT_ACTION_NAME,
MOD_DROP_ACTION_NAME,
'onSaveInput',
'onCloseInput',
CREATE_ACTION_NAME,
CREATE_ANY_ACTION_NAME,
DESTROY_ACTION_NAME,
DROP_ENTER_ACTION_NAME,
DROP_EXIT_ACTION_NAME,
ANY_DROP_ENTER_ACTION_NAME,
ANY_DROP_EXIT_ACTION_NAME,
DROP_ACTION_NAME,
DROP_ANY_ACTION_NAME,
DRAG_ACTION_NAME,
DRAG_ANY_ACTION_NAME,
DRAGGING_ACTION_NAME,
DRAGGING_ANY_ACTION_NAME,
'onTapCode',
'onQRCodeScanned',
'onQRCodeScannerClosed',
'onQRCodeScannerOpened',
ON_BARCODE_SCANNED_ACTION_NAME,
ON_BARCODE_SCANNER_CLOSED_ACTION_NAME,
ON_BARCODE_SCANNER_OPENED_ACTION_NAME,
ON_IMAGE_CLASSIFIER_CLOSED_ACTION_NAME,
ON_IMAGE_CLASSIFIER_OPENED_ACTION_NAME,
ON_IMAGE_CLASSIFIED_ACTION_NAME,
ON_PHOTO_CAMERA_OPENED_ACTION_NAME,
ON_PHOTO_CAMERA_CLOSED_ACTION_NAME,
ON_PHOTO_CAPTURED_ACTION_NAME,
ON_POINTER_ENTER,
ON_POINTER_EXIT,
ON_ANY_POINTER_ENTER,
ON_ANY_POINTER_EXIT,
ON_POINTER_DOWN,
ON_POINTER_UP,
ON_ANY_POINTER_DOWN,
ON_ANY_POINTER_UP,
ON_INST_STREAMING_ACTION_NAME,
ON_INST_STREAM_LOST_ACTION_NAME,
ON_INST_JOINED_ACTION_NAME,
ON_INST_LEAVE_ACTION_NAME,
ON_PORTAL_CHANGED_ACTION_NAME,
ON_APP_SETUP_ACTION_NAME,
ON_DOCUMENT_AVAILABLE_ACTION_NAME,
'onKeyDown',
'onKeyRepeat',
'onKeyUp',
ON_KEY_CLICK_ACTION_NAME,
ON_PACKAGE_INSTALLED_ACTION_NAME,
ON_GRID_CLICK_ACTION_NAME,
ON_GRID_UP_ACTION_NAME,
ON_GRID_DOWN_ACTION_NAME,
'onCheckout',
'onPaymentSuccessful',
'onPaymentFailed',
'onWebhook',
'onAnyListen',
'onListen',
ON_REMOTE_DATA_ACTION_NAME,
ON_ACTION_ACTION_NAME,
ON_RUN_ACTION_NAME,
ON_CHAT_TYPING_ACTION_NAME,
ON_CHAT_ACTION_NAME,
ON_SUBMIT_ACTION_NAME,
ON_INPUT_TYPING_ACTION_NAME,
ON_PASTE_ACTION_NAME,
ON_MAX_LOD_ENTER_ACTION_NAME,
ON_MIN_LOD_ENTER_ACTION_NAME,
ON_MAX_LOD_EXIT_ACTION_NAME,
ON_MIN_LOD_EXIT_ACTION_NAME,
ON_ANY_MAX_LOD_ENTER_ACTION_NAME,
ON_ANY_MIN_LOD_ENTER_ACTION_NAME,
ON_ANY_MAX_LOD_EXIT_ACTION_NAME,
ON_ANY_MIN_LOD_EXIT_ACTION_NAME,
ON_FILE_UPLOAD_ACTION_NAME,
ON_FOCUS_ENTER_ACTION_NAME,
ON_FOCUS_EXIT_ACTION_NAME,
ON_ANY_FOCUS_ENTER_ACTION_NAME,
ON_ANY_FOCUS_EXIT_ACTION_NAME,
ON_REMOTE_JOINED_ACTION_NAME,
ON_REMOTE_LEAVE_ACTION_NAME,
ON_BOT_ADDED_ACTION_NAME,
ON_ANY_BOTS_ADDED_ACTION_NAME,
ON_ANY_BOTS_REMOVED_ACTION_NAME,
ON_BOT_CHANGED_ACTION_NAME,
ON_ANY_BOTS_CHANGED_ACTION_NAME,
ON_SHEET_TAG_CLICK,
ON_SHEET_BOT_ID_CLICK,
ON_SHEET_BOT_CLICK,
ON_BEGIN_AUDIO_RECORDING,
ON_AUDIO_SAMPLE,
ON_END_AUDIO_RECORDING,
ON_ENTER_VR,
ON_EXIT_VR,
ON_ENTER_AR,
ON_EXIT_AR,
ON_MEET_LOADED,
ON_MEET_LEAVE,
ON_MEET_ENTERED,
ON_MEET_EXITED,
ON_MEET_RECORDING_LINK_AVAILABLE,
ON_ROOM_JOINED,
ON_ROOM_LEAVE,
ON_ROOM_TRACK_SUBSCRIBED,
ON_ROOM_TRACK_UNSUBSCRIBED,
ON_ROOM_STREAM_LOST,
ON_ROOM_STREAMING,
ON_ROOM_SPEAKERS_CHANGED,
ON_ROOM_REMOTE_JOINED,
ON_ROOM_REMOTE_LEAVE,
ON_ROOM_OPTIONS_CHANGED,
ON_FORM_ANIMATION_STARTED,
ON_ANY_FORM_ANIMATION_STARTED,
ON_FORM_ANIMATION_FINISHED,
ON_ANY_FORM_ANIMATION_FINISHED,
ON_FORM_ANIMATION_STOPPED,
ON_ANY_FORM_ANIMATION_STOPPED,
ON_FORM_ANIMATION_LOOPED,
ON_ANY_FORM_ANIMATION_LOOPED,
ON_SPACE_MAX_SIZE_REACHED,
ON_COLLABORATION_ENABLED,
ON_ALLOW_COLLABORATION_UPGRADE,
ON_DISALLOW_COLLABORATION_UPGRADE,
];
export function onClickArg(face, dimension, uv, modality, hand, finger, buttonId) {
return {
face,
dimension,
uv,
modality,
hand,
finger,
buttonId,
};
}
export function onAnyClickArg(face, dimension, bot, uv, modality, hand, finger, buttonId) {
return {
...onClickArg(face, dimension, uv, modality, hand, finger, buttonId),
bot,
};
}
export function onGridClickArg(position, dimension, modality, hand, finger, buttonId) {
return {
position,
dimension,
modality,
hand,
finger,
buttonId,
};
}
export function onDragArg(bot, from, face, uv) {
return {
face,
bot,
from,
uv,
};
}
export function onDraggingArg(bot, to, from) {
return {
bot,
to,
from,
};
}
export function onModDropArg(mod, dimension) {
return {
mod,
dimension,
};
}
export function onDropArg(dragBot, to, from) {
return {
dragBot,
bot: dragBot,
to,
from,
};
}
export function onServerStreamingArg(server) {
return {
server,
inst: server,
};
}
export function onServerStreamLostArg(server) {
return {
server,
inst: server,
};
}
export function onServerSubscribedArg(server) {
return {
server,
inst: server,
};
}
export function onServerUnsubscribedArg(server) {
return {
server,
inst: server,
};
}
export function onChatTypingArg(message) {
return {
message,
};
}
export function onChatArg(message) {
return {
message,
};
}
export function onPasteArg(text) {
return {
text,
};
}
export function onLODArg(bot, dimension) {
return {
bot,
dimension,
};
}
export function onPointerEnterExitArg(bot, dimension, modality, hand, finger, buttonId) {
return {
bot,
dimension,
modality,
hand,
finger,
buttonId,
};
}
export function onPointerUpDownArg(bot, dimension, modality, hand, finger, buttonId) {
return {
bot,
dimension,
modality,
hand,
finger,
buttonId,
};
}
export function onSubmitArg(text) {
return {
text,
};
}
//# sourceMappingURL=Bot.js.map