Skip to content

Commit

Permalink
Added 'newHeadless' method and properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopraa committed Feb 12, 2024
1 parent 99e0354 commit 66c560a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,26 @@ declare interface BrowserMp {
*/
url: string;

/**
* Property used to get headless browser's texture dictionary.
*/
headlessTextureDict: string;

/**
* Property used to get headless browser's texture name.
*/
headlessTextureName: string;

/**
* Property used to get headless browser's texture dictionary.
*/
headlessTextureHeightScale: string;

/**
* Property used to toggle browser's input.
*/
inputEnabled: boolean;

/**
* Destroys browser instance.
*/
Expand Down Expand Up @@ -1061,6 +1081,14 @@ declare interface BrowserMp {

declare interface BrowserMpPool extends EntityMpPool<BrowserMp> {
'new'(url: string): BrowserMp;

/**
* Can be used with drawSprite using given texture dictionary, name and height scale multiplier (example 3D CEF with render target)
* @param url URL of the website
* @param width Width in pixels
* @param height Height in pixels
*/
'newHeadless'(url: string, width: number, height: number): BrowserMp;
}

declare interface CheckpointMp extends EntityMp {
Expand Down

0 comments on commit 66c560a

Please sign in to comment.