Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* @fileOverview the class of Helix Coordinate
* @author sima.zhang
*/
const Util = require('../util');
const Base = require('./base');
const MatrixUtil = require('@antv/g').MatrixUtil;
const vec2 = MatrixUtil.vec2;
class Helix extends Base {
getDefaultCfg() {
const cfg = super.getDefaultCfg();
return Util.mix({}, cfg, {
startAngle: 1.25 * Math.PI,
endAngle: 7.25 * Math.PI,
innerRadius: 0,
type: 'helix',
isHelix: true
});
}
constructor(cfg) {
/**
* @fileOverview the base class of Coordinate
* @author sima.zhang
*/
const Util = require('../util');
const MatrixUtil = require('@antv/g').MatrixUtil;
const mat3 = MatrixUtil.mat3;
const vec3 = MatrixUtil.vec3;
class Coord {
/**
* 获取默认的配置属性
* @protected
* @return {Object} 默认属性
*/
getDefaultCfg() {
return {
/**
* Mark x y is transposed.
* @type {Boolean}
*/
isTransposed: false,
/**
* @fileOverview the circle axis of polar coordinate
* @author sima.zhang
*/
const Util = require('../../util');
const Base = require('./base');
const { vec2 } = require('@antv/g').MatrixUtil;
class Circle extends Base {
getDefaultCfg() {
const cfg = super.getDefaultCfg();
return Util.mix({}, cfg, {
/**
* 坐标轴的类型
* @type {String}
*/
type: 'circle',
/**
* 指定刻度之间的间距
* @type {Number}
*/
tickInterval: null,