@pixi/accessibility
Advanced tools
Comparing version 5.1.5 to 5.2.0
/*! | ||
* @pixi/accessibility - v5.1.5 | ||
* Compiled Tue, 24 Sep 2019 04:07:05 UTC | ||
* @pixi/accessibility - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* | ||
@@ -77,2 +77,32 @@ * @pixi/accessibility is licensed under the MIT License. | ||
_accessibleDiv: false, | ||
/** | ||
* Specify the type of div the accessible layer is. Screen readers treat the element differently | ||
* depending on this type. Defaults to button. | ||
* | ||
* @member {string} | ||
* @memberof PIXI.DisplayObject# | ||
* @default 'button' | ||
*/ | ||
accessibleType: 'button', | ||
/** | ||
* Specify the pointer-events the accessible div will use | ||
* Defaults to auto. | ||
* | ||
* @member {string} | ||
* @memberof PIXI.DisplayObject# | ||
* @default 'auto' | ||
*/ | ||
accessiblePointerEvents: 'auto', | ||
/** | ||
* Setting to false will prevent any children inside this container to | ||
* be accessible. Defaults to true. | ||
* | ||
* @member {boolean} | ||
* @memberof PIXI.DisplayObject# | ||
* @default true | ||
*/ | ||
accessibleChildren: true, | ||
}; | ||
@@ -314,3 +344,3 @@ | ||
{ | ||
if (!displayObject.visible) | ||
if (!displayObject.visible || !displayObject.accessibleChildren) | ||
{ | ||
@@ -422,2 +452,10 @@ return; | ||
} | ||
// the title or index may have changed, if so lets update it! | ||
if (child.accessibleTitle !== div.title || child.tabIndex !== div.tabIndex) | ||
{ | ||
div.title = child.accessibleTitle; | ||
div.tabIndex = child.tabIndex; | ||
if (this.debug) { this.updateDebugHTML(div); } | ||
} | ||
} | ||
@@ -431,2 +469,13 @@ } | ||
/** | ||
* private function that will visually add the information to the | ||
* accessability div | ||
* | ||
* @param {HTMLDivElement} div | ||
*/ | ||
AccessibilityManager.prototype.updateDebugHTML = function updateDebugHTML (div) | ||
{ | ||
div.innerHTML = "type: " + (div.type) + "</br> title : " + (div.title) + "</br> tabIndex: " + (div.tabIndex); | ||
}; | ||
/** | ||
* Adjust the hit area based on the bounds of a display object | ||
@@ -479,3 +528,3 @@ * | ||
div.style.height = DIV_TOUCH_SIZE + "px"; | ||
div.style.backgroundColor = this.debug ? 'rgba(255,0,0,0.5)' : 'transparent'; | ||
div.style.backgroundColor = this.debug ? 'rgba(255,255,255,0.5)' : 'transparent'; | ||
div.style.position = 'absolute'; | ||
@@ -512,2 +561,7 @@ div.style.zIndex = DIV_TOUCH_ZINDEX; | ||
// set pointer events | ||
div.style.pointerEvents = displayObject.accessiblePointerEvents; | ||
// set the type, this defaults to button! | ||
div.type = displayObject.accessibleType; | ||
if (displayObject.accessibleTitle && displayObject.accessibleTitle !== null) | ||
@@ -529,3 +583,3 @@ { | ||
// | ||
if (this.debug) { this.updateDebugHTML(div); } | ||
@@ -532,0 +586,0 @@ displayObject._accessibleActive = true; |
/*! | ||
* @pixi/accessibility - v5.1.5 | ||
* Compiled Tue, 24 Sep 2019 04:07:05 UTC | ||
* @pixi/accessibility - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* | ||
@@ -8,3 +8,3 @@ * @pixi/accessibility is licensed under the MIT License. | ||
*/ | ||
this.PIXI=this.PIXI||{},this.PIXI.accessibility=this.PIXI.accessibility||{};var _pixi_accessibility=function(e,t,i){"use strict";var s={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1};PIXI.DisplayObject.mixin(s);var n=function(e){this._hookDiv=null,(t.isMobile.tablet||t.isMobile.phone)&&this.createTouchHook();var i=document.createElement("div");i.style.width="100px",i.style.height="100px",i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.zIndex=2,this.div=i,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=e,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessibility=!1,window.addEventListener("keydown",this._onKeyDown,!1)};return n.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2,t.style.backgroundColor="#FF0000",t.title="HOOK DIV",t.addEventListener("focus",function(){e.isMobileAccessibility=!0,e.activate(),e.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t},n.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},n.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},n.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessibility&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},n.prototype.updateAccessibleObjects=function(e){if(e.visible){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);for(var t=e.children,i=0;i<t.length;i++)this.updateAccessibleObjects(t[i])}},n.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),i=e.width/this.renderer.width,s=e.height/this.renderer.height,n=this.div;n.style.left=e.left+"px",n.style.top=e.top+"px",n.style.width=this.renderer.width+"px",n.style.height=this.renderer.height+"px";for(var o=0;o<this.children.length;o++){var r=this.children[o];if(r.renderId!==this.renderId)r._accessibleActive=!1,t.removeItems(this.children,o,1),this.div.removeChild(r._accessibleDiv),this.pool.push(r._accessibleDiv),r._accessibleDiv=null,o--,0===this.children.length&&this.deactivate();else{n=r._accessibleDiv;var l=r.hitArea,c=r.worldTransform;r.hitArea?(n.style.left=(c.tx+l.x*c.a)*i+"px",n.style.top=(c.ty+l.y*c.d)*s+"px",n.style.width=l.width*c.a*i+"px",n.style.height=l.height*c.d*s+"px"):(l=r.getBounds(),this.capHitArea(l),n.style.left=l.x*i+"px",n.style.top=l.y*s+"px",n.style.width=l.width*i+"px",n.style.height=l.height*s+"px",n.title!==r.accessibleTitle&&null!==r.accessibleTitle&&(n.title=r.accessibleTitle),n.getAttribute("aria-label")!==r.accessibleHint&&null!==r.accessibleHint&&n.setAttribute("aria-label",r.accessibleHint))}}this.renderId++}},n.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),e.x+e.width>this.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},n.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width="100px",t.style.height="100px",t.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2,t.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?t.setAttribute("aria-live","off"):t.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?t.setAttribute("aria-relevant","additions"):t.setAttribute("aria-relevant","text"),t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),e.accessibleTitle&&null!==e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleHint&&null!==e.accessibleHint||(t.title="displayObject "+e.tabIndex),e.accessibleHint&&null!==e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),e._accessibleActive=!0,e._accessibleDiv=t,t.displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},n.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData),t.dispatchEvent(e.target.displayObject,"pointertap",t.eventData),t.dispatchEvent(e.target.displayObject,"tap",t.eventData)},n.prototype._onFocus=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","assertive");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},n.prototype._onFocusOut=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","polite");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},n.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},n.prototype._onMouseMove=function(e){0===e.movementX&&0===e.movementY||this.deactivate()},n.prototype.destroy=function(){this.destroyTouchHook(),this.div=null;for(var e=0;e<this.children.length;e++)this.children[e].div=null;window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.AccessibilityManager=n,e.accessibleTarget=s,e}({},PIXI.utils);Object.assign(this.PIXI.accessibility,_pixi_accessibility); | ||
this.PIXI=this.PIXI||{},this.PIXI.accessibility=this.PIXI.accessibility||{};var _pixi_accessibility=function(e,t,i){"use strict";var s={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0};PIXI.DisplayObject.mixin(s);var n=function(e){this._hookDiv=null,(t.isMobile.tablet||t.isMobile.phone)&&this.createTouchHook();var i=document.createElement("div");i.style.width="100px",i.style.height="100px",i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.zIndex=2,this.div=i,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=e,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessibility=!1,window.addEventListener("keydown",this._onKeyDown,!1)};return n.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2,t.style.backgroundColor="#FF0000",t.title="HOOK DIV",t.addEventListener("focus",function(){e.isMobileAccessibility=!0,e.activate(),e.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t},n.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},n.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},n.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessibility&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},n.prototype.updateAccessibleObjects=function(e){if(e.visible&&e.accessibleChildren){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);for(var t=e.children,i=0;i<t.length;i++)this.updateAccessibleObjects(t[i])}},n.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),i=e.width/this.renderer.width,s=e.height/this.renderer.height,n=this.div;n.style.left=e.left+"px",n.style.top=e.top+"px",n.style.width=this.renderer.width+"px",n.style.height=this.renderer.height+"px";for(var o=0;o<this.children.length;o++){var r=this.children[o];if(r.renderId!==this.renderId)r._accessibleActive=!1,t.removeItems(this.children,o,1),this.div.removeChild(r._accessibleDiv),this.pool.push(r._accessibleDiv),r._accessibleDiv=null,o--,0===this.children.length&&this.deactivate();else{n=r._accessibleDiv;var l=r.hitArea,a=r.worldTransform;r.hitArea?(n.style.left=(a.tx+l.x*a.a)*i+"px",n.style.top=(a.ty+l.y*a.d)*s+"px",n.style.width=l.width*a.a*i+"px",n.style.height=l.height*a.d*s+"px"):(l=r.getBounds(),this.capHitArea(l),n.style.left=l.x*i+"px",n.style.top=l.y*s+"px",n.style.width=l.width*i+"px",n.style.height=l.height*s+"px",n.title!==r.accessibleTitle&&null!==r.accessibleTitle&&(n.title=r.accessibleTitle),n.getAttribute("aria-label")!==r.accessibleHint&&null!==r.accessibleHint&&n.setAttribute("aria-label",r.accessibleHint)),r.accessibleTitle===n.title&&r.tabIndex===n.tabIndex||(n.title=r.accessibleTitle,n.tabIndex=r.tabIndex,this.debug&&this.updateDebugHTML(n))}}this.renderId++}},n.prototype.updateDebugHTML=function(e){e.innerHTML="type: "+e.type+"</br> title : "+e.title+"</br> tabIndex: "+e.tabIndex},n.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),e.x+e.width>this.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},n.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width="100px",t.style.height="100px",t.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2,t.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?t.setAttribute("aria-live","off"):t.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?t.setAttribute("aria-relevant","additions"):t.setAttribute("aria-relevant","text"),t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),t.style.pointerEvents=e.accessiblePointerEvents,t.type=e.accessibleType,e.accessibleTitle&&null!==e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleHint&&null!==e.accessibleHint||(t.title="displayObject "+e.tabIndex),e.accessibleHint&&null!==e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),this.debug&&this.updateDebugHTML(t),e._accessibleActive=!0,e._accessibleDiv=t,t.displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},n.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData),t.dispatchEvent(e.target.displayObject,"pointertap",t.eventData),t.dispatchEvent(e.target.displayObject,"tap",t.eventData)},n.prototype._onFocus=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","assertive");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},n.prototype._onFocusOut=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","polite");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},n.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},n.prototype._onMouseMove=function(e){0===e.movementX&&0===e.movementY||this.deactivate()},n.prototype.destroy=function(){this.destroyTouchHook(),this.div=null;for(var e=0;e<this.children.length;e++)this.children[e].div=null;window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.AccessibilityManager=n,e.accessibleTarget=s,e}({},PIXI.utils);Object.assign(this.PIXI.accessibility,_pixi_accessibility); | ||
//# sourceMappingURL=accessibility.min.js.map |
/*! | ||
* @pixi/accessibility - v5.1.5 | ||
* Compiled Tue, 24 Sep 2019 04:07:05 UTC | ||
* @pixi/accessibility - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* | ||
@@ -75,2 +75,32 @@ * @pixi/accessibility is licensed under the MIT License. | ||
_accessibleDiv: false, | ||
/** | ||
* Specify the type of div the accessible layer is. Screen readers treat the element differently | ||
* depending on this type. Defaults to button. | ||
* | ||
* @member {string} | ||
* @memberof PIXI.DisplayObject# | ||
* @default 'button' | ||
*/ | ||
accessibleType: 'button', | ||
/** | ||
* Specify the pointer-events the accessible div will use | ||
* Defaults to auto. | ||
* | ||
* @member {string} | ||
* @memberof PIXI.DisplayObject# | ||
* @default 'auto' | ||
*/ | ||
accessiblePointerEvents: 'auto', | ||
/** | ||
* Setting to false will prevent any children inside this container to | ||
* be accessible. Defaults to true. | ||
* | ||
* @member {boolean} | ||
* @memberof PIXI.DisplayObject# | ||
* @default true | ||
*/ | ||
accessibleChildren: true, | ||
}; | ||
@@ -312,3 +342,3 @@ | ||
{ | ||
if (!displayObject.visible) | ||
if (!displayObject.visible || !displayObject.accessibleChildren) | ||
{ | ||
@@ -420,2 +450,10 @@ return; | ||
} | ||
// the title or index may have changed, if so lets update it! | ||
if (child.accessibleTitle !== div.title || child.tabIndex !== div.tabIndex) | ||
{ | ||
div.title = child.accessibleTitle; | ||
div.tabIndex = child.tabIndex; | ||
if (this.debug) { this.updateDebugHTML(div); } | ||
} | ||
} | ||
@@ -429,2 +467,13 @@ } | ||
/** | ||
* private function that will visually add the information to the | ||
* accessability div | ||
* | ||
* @param {HTMLDivElement} div | ||
*/ | ||
AccessibilityManager.prototype.updateDebugHTML = function updateDebugHTML (div) | ||
{ | ||
div.innerHTML = "type: " + (div.type) + "</br> title : " + (div.title) + "</br> tabIndex: " + (div.tabIndex); | ||
}; | ||
/** | ||
* Adjust the hit area based on the bounds of a display object | ||
@@ -477,3 +526,3 @@ * | ||
div.style.height = DIV_TOUCH_SIZE + "px"; | ||
div.style.backgroundColor = this.debug ? 'rgba(255,0,0,0.5)' : 'transparent'; | ||
div.style.backgroundColor = this.debug ? 'rgba(255,255,255,0.5)' : 'transparent'; | ||
div.style.position = 'absolute'; | ||
@@ -510,2 +559,7 @@ div.style.zIndex = DIV_TOUCH_ZINDEX; | ||
// set pointer events | ||
div.style.pointerEvents = displayObject.accessiblePointerEvents; | ||
// set the type, this defaults to button! | ||
div.type = displayObject.accessibleType; | ||
if (displayObject.accessibleTitle && displayObject.accessibleTitle !== null) | ||
@@ -527,3 +581,3 @@ { | ||
// | ||
if (this.debug) { this.updateDebugHTML(div); } | ||
@@ -530,0 +584,0 @@ displayObject._accessibleActive = true; |
/*! | ||
* @pixi/accessibility - v5.1.5 | ||
* Compiled Tue, 24 Sep 2019 04:07:05 UTC | ||
* @pixi/accessibility - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* | ||
@@ -79,2 +79,32 @@ * @pixi/accessibility is licensed under the MIT License. | ||
_accessibleDiv: false, | ||
/** | ||
* Specify the type of div the accessible layer is. Screen readers treat the element differently | ||
* depending on this type. Defaults to button. | ||
* | ||
* @member {string} | ||
* @memberof PIXI.DisplayObject# | ||
* @default 'button' | ||
*/ | ||
accessibleType: 'button', | ||
/** | ||
* Specify the pointer-events the accessible div will use | ||
* Defaults to auto. | ||
* | ||
* @member {string} | ||
* @memberof PIXI.DisplayObject# | ||
* @default 'auto' | ||
*/ | ||
accessiblePointerEvents: 'auto', | ||
/** | ||
* Setting to false will prevent any children inside this container to | ||
* be accessible. Defaults to true. | ||
* | ||
* @member {boolean} | ||
* @memberof PIXI.DisplayObject# | ||
* @default true | ||
*/ | ||
accessibleChildren: true, | ||
}; | ||
@@ -316,3 +346,3 @@ | ||
{ | ||
if (!displayObject.visible) | ||
if (!displayObject.visible || !displayObject.accessibleChildren) | ||
{ | ||
@@ -424,2 +454,10 @@ return; | ||
} | ||
// the title or index may have changed, if so lets update it! | ||
if (child.accessibleTitle !== div.title || child.tabIndex !== div.tabIndex) | ||
{ | ||
div.title = child.accessibleTitle; | ||
div.tabIndex = child.tabIndex; | ||
if (this.debug) { this.updateDebugHTML(div); } | ||
} | ||
} | ||
@@ -433,2 +471,13 @@ } | ||
/** | ||
* private function that will visually add the information to the | ||
* accessability div | ||
* | ||
* @param {HTMLDivElement} div | ||
*/ | ||
AccessibilityManager.prototype.updateDebugHTML = function updateDebugHTML (div) | ||
{ | ||
div.innerHTML = "type: " + (div.type) + "</br> title : " + (div.title) + "</br> tabIndex: " + (div.tabIndex); | ||
}; | ||
/** | ||
* Adjust the hit area based on the bounds of a display object | ||
@@ -481,3 +530,3 @@ * | ||
div.style.height = DIV_TOUCH_SIZE + "px"; | ||
div.style.backgroundColor = this.debug ? 'rgba(255,0,0,0.5)' : 'transparent'; | ||
div.style.backgroundColor = this.debug ? 'rgba(255,255,255,0.5)' : 'transparent'; | ||
div.style.position = 'absolute'; | ||
@@ -514,2 +563,7 @@ div.style.zIndex = DIV_TOUCH_ZINDEX; | ||
// set pointer events | ||
div.style.pointerEvents = displayObject.accessiblePointerEvents; | ||
// set the type, this defaults to button! | ||
div.type = displayObject.accessibleType; | ||
if (displayObject.accessibleTitle && displayObject.accessibleTitle !== null) | ||
@@ -531,3 +585,3 @@ { | ||
// | ||
if (this.debug) { this.updateDebugHTML(div); } | ||
@@ -534,0 +588,0 @@ displayObject._accessibleActive = true; |
{ | ||
"name": "@pixi/accessibility", | ||
"version": "5.1.5", | ||
"version": "5.2.0", | ||
"main": "lib/accessibility.js", | ||
@@ -28,10 +28,10 @@ "module": "lib/accessibility.es.js", | ||
"dependencies": { | ||
"@pixi/core": "^5.1.5", | ||
"@pixi/display": "^5.1.3", | ||
"@pixi/utils": "^5.1.3" | ||
"@pixi/core": "^5.2.0", | ||
"@pixi/display": "^5.2.0", | ||
"@pixi/utils": "^5.2.0" | ||
}, | ||
"devDependencies": { | ||
"@pixi/canvas-renderer": "^5.1.5" | ||
"@pixi/canvas-renderer": "^5.2.0" | ||
}, | ||
"gitHead": "8cf3db88d06355cbabea64150cdb0774191e502c" | ||
"gitHead": "aaf96b460582b83a1fa73037ef2dd69dd9e84415" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190799
1837
Updated@pixi/core@^5.2.0
Updated@pixi/display@^5.2.0
Updated@pixi/utils@^5.2.0