@visactor/vdataset
Advanced tools
Comparing version 0.18.0-alpha.0 to 0.18.0-alpha.1
@@ -1,2 +0,2 @@ | ||
import { Color } from '@visactor/vutils'; | ||
import { ColorUtil } from '@visactor/vutils'; | ||
export interface IColorRGBObj { | ||
@@ -14,3 +14,3 @@ r: number; | ||
export interface IColorObjGenerator { | ||
color: Color; | ||
color: ColorUtil.Color; | ||
transparent: boolean; | ||
@@ -17,0 +17,0 @@ opacity: number; |
@@ -20,3 +20,3 @@ "use strict"; | ||
if (1 === total) return void (data[0].colorObj = { | ||
color: new vutils_1.Color(new vutils_1.RGB(startR, startG, startB).toString()), | ||
color: new vutils_1.ColorUtil.Color(new vutils_1.ColorUtil.RGB(startR, startG, startB).toString()), | ||
transparent: !0, | ||
@@ -26,7 +26,7 @@ opacity: startOpacity | ||
if (2 === total) return data[0].colorObj = { | ||
color: new vutils_1.Color(new vutils_1.RGB(startR, startG, startB).toString()), | ||
color: new vutils_1.ColorUtil.Color(new vutils_1.ColorUtil.RGB(startR, startG, startB).toString()), | ||
transparent: !0, | ||
opacity: startOpacity | ||
}, void (data[1].colorObj = { | ||
color: new vutils_1.Color(new vutils_1.RGB(endR, endG, endB).toString()), | ||
color: new vutils_1.ColorUtil.Color(new vutils_1.ColorUtil.RGB(endR, endG, endB).toString()), | ||
transparent: !0, | ||
@@ -54,3 +54,3 @@ opacity: endOpacity | ||
return /^(rgba|RGBA)/.test(color) && (rgbaColor = rgbaStr2RgbaObj(color)), { | ||
color: new vutils_1.Color(color), | ||
color: new vutils_1.ColorUtil.Color(color), | ||
transparent: !!rgbaColor, | ||
@@ -57,0 +57,0 @@ opacity: rgbaColor ? rgbaColor.a : 1 |
@@ -1,2 +0,2 @@ | ||
import { Color } from '@visactor/vutils'; | ||
import { ColorUtil } from '@visactor/vutils'; | ||
export interface IColorRGBObj { | ||
@@ -14,3 +14,3 @@ r: number; | ||
export interface IColorObjGenerator { | ||
color: Color; | ||
color: ColorUtil.Color; | ||
transparent: boolean; | ||
@@ -17,0 +17,0 @@ opacity: number; |
@@ -1,2 +0,2 @@ | ||
import { Color, RGB } from "@visactor/vutils"; | ||
import { ColorUtil } from "@visactor/vutils"; | ||
@@ -14,3 +14,3 @@ export function colorLinearGenerator(startColor, endColor, data, field) { | ||
if (1 === total) return void (data[0].colorObj = { | ||
color: new Color(new RGB(startR, startG, startB).toString()), | ||
color: new ColorUtil.Color(new ColorUtil.RGB(startR, startG, startB).toString()), | ||
transparent: !0, | ||
@@ -20,7 +20,7 @@ opacity: startOpacity | ||
if (2 === total) return data[0].colorObj = { | ||
color: new Color(new RGB(startR, startG, startB).toString()), | ||
color: new ColorUtil.Color(new ColorUtil.RGB(startR, startG, startB).toString()), | ||
transparent: !0, | ||
opacity: startOpacity | ||
}, void (data[1].colorObj = { | ||
color: new Color(new RGB(endR, endG, endB).toString()), | ||
color: new ColorUtil.Color(new ColorUtil.RGB(endR, endG, endB).toString()), | ||
transparent: !0, | ||
@@ -48,3 +48,3 @@ opacity: endOpacity | ||
return /^(rgba|RGBA)/.test(color) && (rgbaColor = rgbaStr2RgbaObj(color)), { | ||
color: new Color(color), | ||
color: new ColorUtil.Color(color), | ||
transparent: !!rgbaColor, | ||
@@ -51,0 +51,0 @@ opacity: rgbaColor ? rgbaColor.a : 1 |
{ | ||
"name": "@visactor/vdataset", | ||
"version": "0.18.0-alpha.0", | ||
"version": "0.18.0-alpha.1", | ||
"main": "cjs/index.js", | ||
@@ -28,3 +28,3 @@ "module": "es/index.js", | ||
"dependencies": { | ||
"@visactor/vutils": "0.18.0-alpha.0", | ||
"@visactor/vutils": "0.18.0-alpha.1", | ||
"@turf/flatten": "^6.5.0", | ||
@@ -67,5 +67,5 @@ "@turf/helpers": "^6.5.0", | ||
"@internal/bundler": "0.0.1", | ||
"@internal/ts-config": "0.0.1", | ||
"@internal/eslint-config": "0.0.1", | ||
"@internal/jest-config": "0.0.1", | ||
"@internal/ts-config": "0.0.1" | ||
"@internal/jest-config": "0.0.1" | ||
}, | ||
@@ -72,0 +72,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
843345
+ Added@visactor/vutils@0.18.0-alpha.1(transitive)
- Removed@visactor/vutils@0.18.0-alpha.0(transitive)