Files
lan-manager/web/node_modules/@antv/scale/esm/identity/index.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

15 lines
557 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Base from '../base';
import { ScaleType } from '../types';
/**
* identity scale原则上是定义域和值域一致scale/invert方法也是一致的
* 参考R的实现https://github.com/r-lib/scales/blob/master/R/pal-identity.r
* 参考d3的实现做了下转型https://github.com/d3/d3-scale/blob/master/src/identity.js
*/
export default class Identity extends Base {
readonly type: ScaleType;
readonly isIdentity: boolean;
calculateTicks(): any[];
scale(value: any): number;
invert(value?: number): number;
}