Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@casual-simulation/aux-custom-portals

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casual-simulation/aux-custom-portals - npm Package Versions

1
7

1.5.24

Diff

Changelog

Source

V1.5.24

Date: 5/24/2021

:rocket: Improvements

  • Improved the miniPortal to enable resizing it by dragging the top of the miniPortal instead of just at the corners.
  • Added the math.normalizeVector() and math.vectorLength() functions.

:bug: Bug Fixes

  • Fixed an issue where events in some asynchronous scripts would be incorrectly reordered and potentially cause logic issues.
kallyngowdyyeti
published 1.5.23 •

Changelog

Source

V1.5.23

Date: 5/22/2021

:boom: Breaking Changes

  • Renamed the inventoryPortal to miniPortal.
    • The following were also renamed:
      • #inventoryPortalHeight -> #miniPortalHeight
      • #inventoryPortalResizable -> #miniPortalResizable
      • os.getInventoryPortalDimension() -> os.getMiniPortalDimension()
      • os.hasBotInInventory() -> os.hasBotInMiniPortal()
      • os.getPortalDimension("inventory") -> os.getPortalDimension("mini")
      • os.getCameraPosition("inventory") -> os.getCameraPosition("mini")
      • os.getCameraRotation("inventory") -> os.getCameraRotation("mini")
      • os.getFocusPoint("inventory") -> os.getFocusPoint("mini")
  • The miniPortalHeight tag was changed from being a number between 1 and 10 that represented the number of bots that should fit in the portal. Now it is a number between 0 and 1 that represents the percentage of the screen height it should take. Note that when #miniPortalWidth is less than 1 the height of the portal will be more like 80% of the screen height when set to 1. This is because of the mandatory spacing from the bottom of the screen to be somewhat consistent with the spacing on the sides.

:rocket: Improvements

  • Added the #miniPortalWidth tag.
    • Possible values are between 0 and 1.
    • Represents the percentage of the screen width that the mini portal should take.
    • When set to 1, the mini portal will appear docked and there will be no spacing between the bottom of the screen and the mini portal.

:bug: Bug Fixes

  • Fixed a bunch of issues with zooming, rotating, and resizing the mini portal.
kallyngowdyyeti
published 1.5.22 •

Changelog

Source

V1.5.22

Date: 5/20/2021

:rocket: Improvements

  • Added the os.enableCustomDragging() function to disable the default dragging behavior for the current drag operation.
    • This is useful for custom dragging behavior that is associated with a bot like scaling the bot or rotating it.

:bug: Bug Fixes

  • Fixed an issue where os.focusOn() would not work with bots in the inventory portal.
kallyngowdyyeti
published 1.5.21 •

Changelog

Source

V1.5.21

Date: 5/18/2021

:rocket: Improvements

  • Improved os.focusOn() to support focusing on menu bots that have #form set to input.

  • Added the ability to snap dragged to a specific axis.

    • These are special snap target objects that have the following form:
    let snapAxis: {
        /**
         * The direction that the axis travels along.
         */
        direction: { x: number; y: number; z: number };
    
        /**
         * The center point that the axis travels through.
         */
        origin: { x: number; y: number; z: number };
    
        /**
         * The distance that the bot should be from any point along the
         * axis in order to snap to it.
         */
        distance: number;
    };
    

:bug: Bug Fixes

  • Fixed an issue where the "tag has already been added" dialog displayed behind the sheet portal.
kallyngowdyyeti
published 1.5.19 •

Changelog

Source

V1.5.19

Date: 5/13/2021

:rocket: Improvements

  • Added the labelPaddingX and labelPaddingY tags to allow controlling the padding along the width and height of labels separately.
  • Added the ability to use a URL for the cursor and portalCursor tags.
  • Added the cursorHotspotX, cursorHotspotY, portalCursorHotspotX, and portalCursorHotspotY tags to allow specifying the location that clicks should happen at in the custom cursor image. For example, a cursor that is a circle would have the hotspot in the middle but the default cursor has the hotspot at the top left.
kallyngowdyyeti
published 1.5.17 •

Changelog

Source

V1.5.17

Date: 5/10/2021

:rocket: Improvements

  • Added the cursor and portalCursor tags.
    • The cursor tag specifies the mouse cursor that should be shown when the bot is being hovered.
    • The portalCursor tag specifies the mouse cursor that should be used by default for the page portal.
    • See the documentation for a list of possible options.
  • Added the labelPadding tag to control how much space is between the edge of the bot and edge of the label.
kallyngowdyyeti
published 1.5.16 •

Changelog

Source

V1.5.16

Date: 5/7/2021

:bug: Bug Fixes

  • Fixed an issue where it was no longer possible to cancel setInterval() with clearTimeout() and cancel setTimeout() with clearInterval().
    • They are not meant to be used together but because of an artifact of web browsers it needs to be supported.
kallyngowdyyeti
published 1.5.15 •

Changelog

Source

V1.5.15

Date: 5/7/2021

:bug: Bug Fixes

  • Fixed an issue where it was impossible to clear intervals/timeouts from a bot other than the one it was created from.
kallyngowdyyeti
published 1.5.14 •

Changelog

Source

V1.5.14

Date: 5/7/2021

:rocket: Improvements

  • Added the ability to clear bot timers using clearInterval() and clearTimeout().
    • clearInterval(timerId) is useful for clearing intervals created by setInterval().
    • clearTimeout(timerId) is useful for clearing timeouts created by setTimeout()
kallyngowdyyeti
published 1.5.11 •

Changelog

Source

V1.5.11

Date: 4/27/2021

:rocket: Improvements

  • Overhauled the shared, tempShared, and remoteTempShared spaces to use a faster and more efficient storage mechanism.
    • There is now a new configuration environment variable 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.
  • Added the math.areClose(first, second) function to determine if two numbers are within 2 decimal places of each other.
    • For example, math.areClose(1, 1.001) will return true.
  • Improved the atPosition() and inStack() bot filters to use math.areClose() internally when comparing bot positions.
  • Improved handling of errors so they have correct line and column numbers in their stack traces.
    • Currently, this only functions correctly on Chrome-based browsers (Chrome, Edge, Opera, etc.). Part of this is due to differences between how web browsers generate stack traces and part is due to what browsers support for dynamically generated functions.

:bug: Bug Fixes

  • Fixed an issue with labels where an error could occur if the label text was updated while it was being rendered.
  • Fixed an issue where clearAnimations() would error if given a null bot.
  • Fixed an issue where autocomplete would not work correctly for properties on top level variables.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc