New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@byzanteam/carbonium

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byzanteam/carbonium - npm Package Compare versions

Comparing version 0.2.16-20190907 to 0.2.16-b086141

src/definitions/core/defs.ts

2

package.json
{
"name": "@byzanteam/carbonium",
"version": "0.2.16-20190907",
"version": "0.2.16-b086141",
"description": "Another chart library.",

@@ -5,0 +5,0 @@ "main": "dist/carbonium.common.js",

@@ -6,4 +6,8 @@ import { Range } from '../common'

export type AxisType = 'continuous' | 'discrete'
export interface AxisLabelFormatterFunction {
(label: string): string
}
export type AxisLabelFormatter = AxisLabelFormatterFunction | number
export interface AxisRangeGetter {

@@ -19,4 +23,6 @@ (datum: any): number | string

export type AxisType = 'continuous' | 'discrete'
export interface AxisUnit extends TextProps {
content: string
}

@@ -1,2 +0,2 @@

import { ShapeDescriptor } from '@/types/shape'
import { ShapeDescriptor } from '../core'

@@ -3,0 +3,0 @@ export enum ChartLayer {

@@ -28,1 +28,6 @@ import { Coordinate } from '../common'

}
export interface TooltipProps {
notation: Partial<NotationProps>
text: Partial<TextProps>
}
import Vue from 'vue'
import { AxisRangeGetter, AxisRangeProps, AxisUnit } from '../definitions/chart'
import { AxisLabelFormatter, AxisRangeGetter, AxisRangeProps, AxisUnit } from '../definitions/chart'
import { Position } from '../definitions/common'

@@ -17,2 +17,5 @@ import { LineProps, TextProps } from '../definitions/shape'

/** 标签格式化 */
labelFormatter: AxisLabelFormatter
/** 轴标签样式 */

@@ -19,0 +22,0 @@ labelStyle: Partial<TextProps>

import Vue from 'vue'
import { BarGapProps, LegendProps } from '../definitions/chart'
import { BarGapProps, LegendProps, TooltipProps } from '../definitions/chart'
import { Color } from '../definitions/common'

@@ -10,2 +10,11 @@

/** 标签轴Id */
labelAxisId: string
/** 标签键 */
labelKey: string
/** 图例配置 */
legend: Partial<LegendProps>
/** 不活跃的数值键 */

@@ -20,8 +29,5 @@ maskKeys: Array<string>

/** 图例配置 */
legend: Partial<LegendProps>
/** Tooltip 配置 */
tooltip: Partial<TooltipProps>
/** 标签轴Id */
labelAxisId: string
/** 值轴Id */

@@ -32,5 +38,2 @@ valueAxisId: string

valueKey: string
/** 标签键 */
labelKey: string
}
import Vue from 'vue'
import { LegendProps } from '../definitions/chart'
import { LineProps, PointProps } from '../definitions/shape'
export class LineChart extends Vue {
/** 线的样式 */
lineStyle: Partial<LineProps>
/** 圆点样式。 */
pointStyle: boolean | Partial<PointProps>
/**

@@ -19,2 +14,15 @@ * 用户可自定义label,value轴的id,组件渲染时会优先选取用户设置的轴

/**
* 用户可自定义value 的 key
*/
labelKey: string
legend: Partial<LegendProps>
/** 线的样式 */
lineStyle: Partial<LineProps>
/** 圆点样式。 */
pointStyle: Partial<PointProps> | boolean
/**
* 用户可自定义label,value轴的id,组件渲染时会优先选取用户设置的轴

@@ -29,7 +37,2 @@ * 如果用户设置的轴不存在,则使用对应的第一个轴

valueKey: string
/**
* 用户可自定义value 的 key
*/
labelKey: string
}
import Vue from 'vue'
import { TextProps, LineProps } from '../definitions/shape'
import { ShapeProps } from '../definitions/common'
import { ShapeProps } from '../definitions/core'

@@ -6,0 +6,0 @@ export class Polar extends Vue {

import Vue from 'vue'
import { LegendProps, TooltipProps } from '../definitions/chart'
export class RoseChart extends Vue {

@@ -10,7 +12,13 @@ /** 内部背景颜色 */

/** 标签键 */
labelKey: string
/** 图例配置 */
legend: Partial<LegendProps>
/** 外半径与最大半径的比值。 */
outerRadius: number
/** hover 后放大的比例 */
zoom: number
/** Tooltip 配置 */
tooltip: Partial<TooltipProps>

@@ -20,4 +28,4 @@ /** 值键 */

/** 标签键 */
labelKey: string
/** hover 后放大的比例 */
zoom: number
}

@@ -6,3 +6,3 @@ import Vue from 'vue'

export class RoseChart extends Vue {
export class Tooltip extends Vue {
/** 背景颜色 */

@@ -9,0 +9,0 @@ background?: string

@@ -18,2 +18,3 @@ export * from './components/arc-bar'

export * from './components/rose'
export * from './components/tooltip'
export * from './components/zebra'

@@ -25,1 +26,2 @@ export * from './components/polar'

export * from './definitions/theme'
export * from './definitions/ui'

Sorry, the diff of this file is too big to display

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 not supported yet

Sorry, the diff of this file is too big to display

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