Skip to content

Commit

Permalink
fix: fix thin-triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Aug 6, 2024
1 parent b2e9fd8 commit 1b327cd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { IBounds } from '@visactor/vutils';
import { sqrt } from '@visactor/vutils';
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
import { trianglUp, TriangleUpSymbol } from './triangle-up';
import { BaseSymbol } from './base';

/**
*
Expand Down Expand Up @@ -33,7 +32,7 @@ export function thinTriangle(ctx: IContext2d, r: number, x: number, y: number) {
return true;
}

export class ThinTriangleSymbol extends TriangleUpSymbol implements ISymbolClass {
export class ThinTriangleSymbol extends BaseSymbol implements ISymbolClass {
type: SymbolType = 'thinTriangle';
pathStr: string = 'M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z';

Expand Down

0 comments on commit 1b327cd

Please sign in to comment.