Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision rework for higher performance and fewer bugs. #122

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/shared.include.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ global.OffscreenCanvas.prototype.toBlobHD = function () {};
let BoundingBox;

/**
* @typedef {{fill:?string,stroke:?string,draw:function(CanvasRenderingContext2D):void}}
* @typedef {{fill:?string,stroke:?string,draw:function(CanvasRenderingContext2D):void,getBoundingBox:function():BoundingBox}}
*/
let Path;

Expand Down
10 changes: 10 additions & 0 deletions include/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ sabre.Complaint.prototype.reset = function () {};
*/
sabre.Complaint.resetAll = function () {};

/**
* Sets groups of values in an Arrayish object with a stride and offset.
* @param {!Int8Array|!Uint8Array|!Uint8ClampedArray|!Int16Array|!Uint16Array|!Uint32Array|!BigInt64Array|!BigUint64Array|!Float32Array|!Float64Array|!Array<?>|!string} dest The target sequence.
* @param {!Int8Array|!Uint8Array|!Uint8ClampedArray|!Int16Array|!Uint16Array|!Uint32Array|!BigInt64Array|!BigUint64Array|!Float32Array|!Float64Array|!Array<?>|!string} src The source sequence.
* @param {number} stride The number of elements to skip between each group.
* @param {number} gsize The number of elements in each group.
* @param {number} offset The starting index in the target sequence.
*/
sabre.setArrayishWithStride = function (dest, src, stride, gsize, offset) {};

/**
* Performs a transition between two numbers given current time, start, end, and acceleration.
* @param {number} curtime current time relative to event start.
Expand Down
Loading
Loading