@antv/attr
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -373,3 +373,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var RGB_REG = /rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/; | ||
// const RGB_REG = /rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/; | ||
var RGB_REG = /rgba?\(([\s.,0-9]+)\)/; | ||
@@ -451,4 +452,4 @@ // 创建辅助 tag 取颜色 | ||
rst = document.defaultView.getComputedStyle(iEl, '').getPropertyValue('color'); | ||
var cArray = RGB_REG.exec(rst); | ||
cArray.shift(); | ||
var matchs = RGB_REG.exec(rst); | ||
var cArray = matchs[1].split(/\s*,\s*/); | ||
rst = arr2rgb(cArray); | ||
@@ -455,0 +456,0 @@ colorCache[color] = rst; |
@@ -9,3 +9,4 @@ /** | ||
const RGB_REG = /rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/; | ||
// const RGB_REG = /rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/; | ||
const RGB_REG = /rgba?\(([\s.,0-9]+)\)/; | ||
@@ -87,4 +88,4 @@ // 创建辅助 tag 取颜色 | ||
rst = document.defaultView.getComputedStyle(iEl, '').getPropertyValue('color'); | ||
const cArray = RGB_REG.exec(rst); | ||
cArray.shift(); | ||
const matchs = RGB_REG.exec(rst); | ||
const cArray = matchs[1].split(/\s*,\s*/); | ||
rst = arr2rgb(cArray); | ||
@@ -91,0 +92,0 @@ colorCache[color] = rst; |
{ | ||
"name": "@antv/attr", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "The Attribute module for G2, F2.", | ||
@@ -5,0 +5,0 @@ "browser": "build/attr.js", |
@@ -9,3 +9,4 @@ /** | ||
const RGB_REG = /rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/; | ||
// const RGB_REG = /rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/; | ||
const RGB_REG = /rgba?\(([\s.,0-9]+)\)/; | ||
@@ -90,4 +91,4 @@ // 创建辅助 tag 取颜色 | ||
rst = document.defaultView.getComputedStyle(iEl, '').getPropertyValue('color'); | ||
const cArray = RGB_REG.exec(rst); | ||
cArray.shift(); | ||
const matchs = RGB_REG.exec(rst); | ||
const cArray = matchs[1].split(/\s*,\s*/); | ||
rst = arr2rgb(cArray); | ||
@@ -94,0 +95,0 @@ colorCache[color] = rst; |
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
920095
4474