Skip to content

Fix/use unknown color #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting
  • Loading branch information
gka committed May 30, 2025
commit bb8b601eb759d10acca76117417101a92d406cfc
22 changes: 3 additions & 19 deletions src/tests/dot.test.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
import { describe, it, expect } from 'vitest';
import { render } from '@testing-library/svelte';
import DotTest from './dot.test.svelte';
import { getPathDims, getTranslate } from './utils';
import {
symbol,
symbolAsterisk,
symbolDiamond2,
symbolPlus,
symbolSquare2,
symbolTriangle2,
symbolX as symbolTimes,
symbolCircle,
symbolCross,
symbolDiamond,
symbolSquare,
symbolStar,
symbolTriangle,
symbolWye,
type SymbolType
} from 'd3-shape';
import { getTranslate } from './utils';
import { symbol, symbolCircle } from 'd3-shape';

const testData = [
{ x: 10, y: 20, value: 5 },
Expand Down Expand Up @@ -93,7 +77,7 @@ describe('Dot mark', () => {
}
});

const dots = container.querySelectorAll('g.dot > path');
const dots = container.querySelectorAll('g.dot > path') as NodeListOf<SVGPathElement>;
expect(dots.length).toBe(2);
expect(dots[0].style.fill).toBe('blue');
expect(dots[1].style.fill).toBe('red');
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy