Closed yiiqii closed 4 months ago
The update to version 1.5.1 includes several key changes across various packages. Notably, it introduces a toggle to control WebGL Context Lost event listeners, modifies the resizeRule
type in the SpineVFXItem
class, and updates the version numbers of multiple packages to ensure stability and consistency. Additionally, a new property disableGLLostEvent
has been added to the AlipayDowngradeOptions
interface to enhance control over event handling.
Files/Paths | Change Summary |
---|---|
CHANGELOG-zh_CN.md , CHANGELOG.md |
Documented the addition of a toggle for WebGL Context Lost events and modifications to resizeRule . |
packages/.../package.json |
Updated versions from 1.5.0 to 1.5.1 for multiple packages to ensure stability and consistency. |
plugin-packages/.../package.json |
Updated versions from 1.5.0 to 1.5.1 for several plugin packages. |
plugin-packages/alipay-downgrade/src/index.ts |
Added disableGLLostEvent property to AlipayDowngradeOptions and updated setAlipayDowngradeBizId function to handle it. |
plugin-packages/spine/src/spine-vfx-item.ts |
Changed resizeRule property in SpineVFXItem class from boolean to number. |
web-packages/demo/src/context-lost-restore.ts |
Added import and usage of setAlipayDowngradeBizId with disableGLLostEvent option. |
sequenceDiagram
participant App
participant AlipayDowngrade
participant WebGLContext
App->>AlipayDowngrade: setAlipayDowngradeBizId('bizid', { disableGLLostEvent: true })
AlipayDowngrade->>WebGLContext: Check disableGLLostEvent
alt disableGLLostEvent is true
WebGLContext-->>AlipayDowngrade: Do not add event listener
else disableGLLostEvent is false
WebGLContext-->>AlipayDowngrade: Add event listener
end
In the land of code, a change took flight,
WebGL toggles, shining bright.
Resize rules now numbers, not just true or false,
Stability ensured, with versions' pulse.
A rabbit hops, with joy so grand,
For updates made, across this land.
🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
disableGLLostEvent
in AlipayDowngradeOptions to control WebGL context lost event handling.Bug Fixes
resizeRule
type from boolean to number for better sizing calculation.Chores