Files
lan-manager/web/node_modules/@antv/g-canvas/esm/shape/text.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

38 lines
1.0 KiB
TypeScript

/**
* @fileoverview 文本
* @author dxq613@gmail.com
*/
import ShapeBase from './base';
declare class Text extends ShapeBase {
getDefaultAttrs(): {
x: number;
y: number;
text: any;
fontSize: number;
fontFamily: string;
fontStyle: string;
fontWeight: string;
fontVariant: string;
textAlign: string;
textBaseline: string;
lineWidth: number;
lineAppendWidth: number;
strokeOpacity: number;
fillOpacity: number;
matrix: any;
opacity: number;
};
isOnlyHitBox(): boolean;
initAttrs(attrs: any): void;
_assembleFont(): void;
_setText(text: any): void;
onAttrChange(name: string, value: any, originValue: any): void;
_getSpaceingY(): number;
_drawTextArr(context: any, textArr: any, isFill: any): void;
_drawText(context: any, isFill: any): void;
strokeAndFill(context: any): void;
fill(context: any): void;
stroke(context: any): void;
}
export default Text;