/** * @file Point 单一数字端点 */ import { ElementOffset } from '@glue-util/boundary'; import { Emitter } from '@glue-util/emitter'; import { AxisType, PointType } from '../enum'; import { Axis } from './Axis'; import { IRegion } from './Region'; export interface IPointEvents { 'repaint': []; } export interface IPrecisionOffset { x: string; y: string; } export declare class Point extends Emitter { private offset; private readonly region; private readonly type; private readonly name; private dragging; constructor(region: IRegion, type: PointType, name: string); getPointName(): string; getPointType(): PointType; getAxis(type: AxisType): Axis; getRegion(): IRegion; getOffset(): ElementOffset; getPointValue(): ElementOffset; setPointValue(value: ElementOffset, virtual?: boolean): void; getDragging(): boolean; setDragging(dragging: boolean): void; repaint(): void; updatePointValue(): void; updateRealOffset(start: ElementOffset, end: ElementOffset): void; /** * 获取精度计算后的结果 */ getOffsetPrecisionValue(): IPrecisionOffset; /** * 获取精度计算后的结果 */ getPrecisionValue(type: AxisType): string; setPrecisionValue(type: AxisType, value: string, virtual?: boolean): boolean; upStep(type: AxisType, stepCount?: number): void; downStep(type: AxisType, stepCount?: number): void; private calcNewOffsetByType; }