@koeroesi86/canvas-grid 26.11.3 → 26.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koeroesi86/canvas-grid",
3
- "version": "26.11.3",
3
+ "version": "26.11.4",
4
4
  "description": "Canvas based grid",
5
5
  "main": "./build/web-component.js",
6
6
  "module": "./build/web-component.mjs",
@@ -21,7 +21,6 @@
21
21
  "scripts": {
22
22
  "dev": "vite",
23
23
  "build": "npm run typecheck && vite build && tsc -p tsconfig.build.json",
24
- "serve-local": "node server/example-serve.mts",
25
24
  "site": "node scripts/serve-site.mts",
26
25
  "typecheck": "tsc --noEmit",
27
26
  "test": "npm run typecheck && node --test scripts/*.test.mts && vitest run",
@@ -40,13 +39,11 @@
40
39
  "@types/lodash.debounce": "^4.0.9",
41
40
  "@types/lodash.throttle": "^4.1.9",
42
41
  "@types/node": "^26.6.6",
43
- "@types/ws": "^8.18.2",
44
42
  "lodash.debounce": "^4.0.8",
45
43
  "lodash.throttle": "^4.1.1",
46
44
  "playwright": "^1.65.0",
47
45
  "typescript": "^7.0.2",
48
46
  "vite": "^8.3.6",
49
- "vitest": "^5.1.0",
50
- "ws": "^8.22.1"
47
+ "vitest": "^5.1.0"
51
48
  }
52
49
  }
@@ -1,21 +0,0 @@
1
- import { CanvasRenderer } from '../utils/renderer';
2
- import type { RenderProps } from '../types';
3
- export interface CharacterOptions {
4
- font: string;
5
- color: string;
6
- alpha: boolean;
7
- clearBeforeRender: boolean;
8
- }
9
- export default class CharacterRenderer extends CanvasRenderer<CharacterOptions> {
10
- static readonly defaultOptions: CharacterOptions;
11
- private readonly charWidthCache;
12
- private readonly canvas;
13
- private readonly ctx;
14
- constructor(options?: Partial<CharacterOptions>);
15
- set font(font: string);
16
- set color(color: string);
17
- clearCache(): void;
18
- protected cacheKey({ value, height }: RenderProps): string;
19
- getCharacterWidth(character?: string): number;
20
- render({ value, height }: RenderProps): HTMLCanvasElement;
21
- }