Request by sending an email to developer@vatom.com
Allows you to access file paths.
When extending BasePlugin, these functions can be accessed via this.paths.*
When extending BaseComponent, these functions can be accessed via this.plugin.paths.*
absolute(url) : string
Converts a relative path to an absolute path, starting from the URL where the plugin is located.
Returns the absolute path as a string.
Field | Type | Description | Example |
---|---|---|---|
url | string | Relative URL to a file | './sound.wav' |