@casual-simulation/causal-tree-client-socketio
Advanced tools
Changelog
V2.0.0
mapPortal
.
mapPortalBasemap
tag on the mapPortalBot
. See the documentation for more information.Changelog
V1.5.17
cursor
and portalCursor
tags.
cursor
tag specifies the mouse cursor that should be shown when the bot is being hovered.portalCursor
tag specifies the mouse cursor that should be used by default for the page portal.labelPadding
tag to control how much space is between the edge of the bot and edge of the label.Changelog
V1.5.11
shared
, tempShared
, and remoteTempShared
spaces to use a faster and more efficient storage mechanism.
SHARED_PARTITIONS_VERSION
which controls whether the new spaces are used. Use v1
to indicate that the old causal repo based system should be used and use v2
to indicate that the new system should be used.math.areClose(first, second)
function to determine if two numbers are within 2 decimal places of each other.
math.areClose(1, 1.001)
will return true.atPosition()
and inStack()
bot filters to use math.areClose()
internally when comparing bot positions.clearAnimations()
would error if given a null bot.Changelog
V1.5.9
Ctrl+P
.imuPortal
would return values that were incorrect for usage on the camera.
imuPortal
sets the deviceRotationX
, deviceRotationY
, deviceRotationZ
and deviceRotationW
values which is the rotation of the device represented as a quaternion.pagePortal
also now supports setting cameraRotationOffsetW
to indicate that the offset should be applied as a quaternion.imuExample01
auxCode for an example.action.perform()
would be treated like they were being performed by the user themselves.
action.perform()
.Changelog
V1.5.7
imuPortal
to support Safari on iOS.crypto.isEncrypted(cyphertext)
, crypto.asymmetric.isEncrypted(cyphertext)
, and crypto.asymmetric.isKeypair(keypair)
functions.
shared
space but was actually in the tempLocal
space.Changelog
V1.5.0
#portalCameraRotationX
and #portalCameraRotationY
tags to use radians instead of degrees.cameraZoom
and cameraZoomOffset
tags.os.focusOn(botOrPosition, options?)
function.
os.tweenTo()
and os.moveTo()
except that it takes an options object instead of a bunch of parameters.os.focusOn()
and os.tweenTo()
now use quadratic easing by default.
os.focusOn()
supports specifying the easing type just like animateTag()
.os.tweenTo()
and os.moveTo()
are now deprecated and should no longer be used. They will be removed in a future release of CasualOS.
experiment.beginAudioRecording()
and experiment.endAudioRecording()
functions to experiment with audio recording.
cameraMovementExample
) has been updated to reflect this change (version 2 and later).