pixijs-accessibility

安装量: 2.3K
排名: #3474

安装

npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-accessibility

Enable screen reader and keyboard navigation via PixiJS's AccessibilitySystem. The system creates an invisible shadow DOM overlay positioned over accessible containers so assistive technology can discover and activate them. Quick Start const button = new Sprite ( await Assets . load ( "button.png" ) ) ; button . accessible = true ; button . accessibleTitle = "Play game" ; button . accessibleHint = "Starts a new game session" ; button . eventMode = "static" ; button . tabIndex = 0 ; app . stage . addChild ( button ) ; app . renderer . accessibility . setAccessibilityEnabled ( true ) ; button . on ( "pointertap" , ( ) => startGame ( ) ) ;

返回排行榜