no need to sanitize ?
This commit is contained in:
parent
bfc47e3aec
commit
b54efd50f2
3 changed files with 8 additions and 6 deletions
|
|
@ -21,7 +21,10 @@ MISC = {
|
|||
}
|
||||
}
|
||||
|
||||
PXSCALE = String(getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")).trim()
|
||||
|
||||
PXSCALE = getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")
|
||||
|
||||
|
||||
|
||||
///////////////////////
|
||||
|
||||
|
|
@ -45,7 +48,6 @@ for (i in callbacks) {
|
|||
bindCallback(i)
|
||||
}
|
||||
|
||||
|
||||
///////////////////////
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ module.exports.create = function(widgetData,container) {
|
|||
widget.width = undefined
|
||||
widget.linkedWidgets = []
|
||||
widget.visible = false
|
||||
widget.textColor = String(getComputedStyle(document.documentElement).getPropertyValue("--color-text-fade")).trim()
|
||||
widget.textColor = getComputedStyle(document.documentElement).getPropertyValue('--color-text-fade')
|
||||
widget.pips = {
|
||||
x : {
|
||||
min: Math.abs(widgetData.rangeX.min)>=1000?widgetData.rangeX.min/1000+'k':widgetData.rangeX.min,
|
||||
|
|
@ -82,7 +82,7 @@ module.exports.create = function(widgetData,container) {
|
|||
if (!self.visible) {
|
||||
widget.visible = true
|
||||
canvas.addClass('visible')
|
||||
widget.lineColor = String(getComputedStyle(widget[0]).getPropertyValue("--color-accent")).trim()
|
||||
widget.lineColor = getComputedStyle(widget[0]).getPropertyValue('--color-accent')
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ module.exports.create = function(widgetData,container) {
|
|||
widget.height = 0
|
||||
widget.width = 0
|
||||
widget.visible = false
|
||||
widget.textColor = String(getComputedStyle(document.documentElement).getPropertyValue("--color-text-fade")).trim()
|
||||
widget.textColor = getComputedStyle(document.documentElement).getPropertyValue('--color-text-fade')
|
||||
widget.pips = {
|
||||
min: Math.abs(widgetData.range.min)>=1000?widgetData.range.min/1000+'k':widgetData.range.min,
|
||||
max: Math.abs(widgetData.range.max)>=1000?widgetData.range.max/1000+'k':widgetData.range.max
|
||||
|
|
@ -57,7 +57,7 @@ module.exports.create = function(widgetData,container) {
|
|||
if (!self.visible) {
|
||||
widget.visible = true
|
||||
canvas.addClass('visible')
|
||||
widget.lineColor = String(getComputedStyle(widget[0]).getPropertyValue("--color-accent")).trim()
|
||||
widget.lineColor = getComputedStyle(widget[0]).getPropertyValue('--color-accent')
|
||||
}
|
||||
|
||||
widget.height=height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue