Skip to content

Commit

Permalink
Add WebGL properties
Browse files Browse the repository at this point in the history
Ref: First-party Typescript support #3306
Ref: Initial, experimental WebGL rendering support #3305
  • Loading branch information
maxkfranz committed Dec 17, 2024
1 parent c0f489a commit 3a9c3a1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,46 @@ declare namespace cytoscape {
* The default value is 1.
*/
pixelRatio?: number | "auto" | undefined;

/**
* Enables the experimental WebGL mode.
* WARNING: This is currently experimental, and may have API changes in future.
*/
webgl?: boolean | undefined;

/**
* Prints debug info to the browser console.
* (optional)
* WARNING: This is currently experimental, and may have API changes in future.
*/
webglDebug?: boolean | undefined;

/**
* The size of the WebGL texture.
* (provisional, may change in future releases)
* WARNING: This is currently experimental, and may have API changes in future.
*/
webglTexSize?: number | undefined;

/**
* The number of rows in the WebGL texture.
* (provisional, may change in future releases)
* WARNING: This is currently experimental, and may have API changes in future.
*/
webglTexRows?: number | undefined;

/**
* The batch size for WebGL.
* (provisional, may change in future releases)
*/
webglBatchSize?: number | undefined;

/**
* The number of textures per batch in WebGL.
* (provisional, may change in future releases)
* WARNING: This is currently experimental, and may have API changes in future.
*/
webglTexPerBatch?: number | undefined;
}

/**
Expand Down

0 comments on commit 3a9c3a1

Please sign in to comment.