Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/attr

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/attr - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

build/attr.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc