@lightningjs/ui-components
Advanced tools
Comparing version 2.14.3 to 2.14.4
{ | ||
"name": "@lightningjs/ui-components", | ||
"version": "2.14.3", | ||
"version": "2.14.4", | ||
"description": "A shared library of helpful LightningJS components utilizing theme files to easily customize for any LightningJS application.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -296,4 +296,4 @@ /** | ||
this._radius = 0; | ||
this._pointerW = 0; | ||
this._pointerH = 0; | ||
this._pointerWidth = 0; | ||
this._pointerHeight = 0; | ||
this._strokeWidth = 0; | ||
@@ -334,18 +334,18 @@ this._color = 'white'; | ||
set pointerW(pointerW) { | ||
this._pointerW = pointerW; | ||
set pointerWidth(pointerWidth) { | ||
this._pointerWidth = pointerWidth; | ||
this._changed(); | ||
} | ||
get pointerW() { | ||
return this._pointerW; | ||
get pointerWidth() { | ||
return this._pointerWidth; | ||
} | ||
set pointerH(pointerH) { | ||
this._pointerH = pointerH; | ||
set pointerHeight(pointerHeight) { | ||
this._pointerHeight = pointerHeight; | ||
this._changed(); | ||
} | ||
get pointerH() { | ||
return this._pointerH; | ||
get pointerHeight() { | ||
return this._pointerHeight; | ||
} | ||
@@ -376,4 +376,4 @@ | ||
radius = 0, | ||
pointerW = 0, | ||
pointerH = 0, | ||
pointerWidth = 0, | ||
pointerHeight = 0, | ||
strokeWidth = 1, | ||
@@ -400,3 +400,3 @@ color = 'white' | ||
const bottomY = topY + h; | ||
const bottomBubbleY = bottomY - pointerH; | ||
const bottomBubbleY = bottomY - pointerHeight; | ||
const isRadiusAnArray = Array.isArray(radius); | ||
@@ -430,7 +430,7 @@ // start: top left | ||
// bottom side, right of point | ||
ctx.lineTo(w / 2 + pointerW / 2, bottomBubbleY); | ||
ctx.lineTo(w / 2 + pointerWidth / 2, bottomBubbleY); | ||
// point | ||
ctx.arcTo(w / 2, bottomY, w / 2 - pointerW / 2, bottomBubbleY, 2); | ||
ctx.lineTo(w / 2 - pointerW / 2, bottomBubbleY); | ||
ctx.arcTo(w / 2, bottomY, w / 2 - pointerWidth / 2, bottomBubbleY, 2); | ||
ctx.lineTo(w / 2 - pointerWidth / 2, bottomBubbleY); | ||
@@ -469,4 +469,4 @@ // bottom side, left of point | ||
_getLookupId() { | ||
const { w, h, radius, pointerW, pointerH, color } = this; | ||
return `__bubble_${w}x${h}_radius-${radius}_pointer-${pointerW}x${pointerH}_fill-${color}`; | ||
const { w, h, radius, pointerWidth, pointerHeight, color } = this; | ||
return `__bubble_${w}x${h}_radius-${radius}_pointer-${pointerWidth}x${pointerHeight}_fill-${color}`; | ||
} | ||
@@ -473,0 +473,0 @@ |
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
12130352