UNPKG

@visactor/vrender-core

Version:

```typescript import { xxx } from '@visactor/vrender-core'; ```

23 lines (19 loc) 764 B
import { BaseSymbol } from "./base"; export function arrow2Left(ctx, r, transX, transY) { const r2 = 2 * r; return ctx.moveTo(r + transX, transY - r2), ctx.lineTo(transX - r, transY), ctx.lineTo(r + transX, r2 + transY), !0; } export class Arrow2LeftSymbol extends BaseSymbol { constructor() { super(...arguments), this.type = "arrow2Left", this.pathStr = "M 0.25 -0.5 L -0.25 0 l 0.25 0.5"; } draw(ctx, size, transX, transY) { return arrow2Left(ctx, this.parseSize(size) / 4, transX, transY); } drawOffset(ctx, size, transX, transY, offset) { return arrow2Left(ctx, this.parseSize(size) / 4 + offset, transX, transY); } } export default new Arrow2LeftSymbol; //# sourceMappingURL=arrow2-left.js.map