Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisShank committed Dec 10, 2024
1 parent 7764a7c commit e8d64cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/folk-distance-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { PropertyValues } from '@lit/reactive-element';
export class FolkDistanceField extends FolkBaseSet {
static override tagName = 'folk-distance-field';

static readonly MAX_DISTANCE = 99999.0;

private textures: WebGLTexture[] = [];

private canvas!: HTMLCanvasElement;
Expand All @@ -25,18 +27,10 @@ export class FolkDistanceField extends FolkBaseSet {
private renderProgram!: WebGLProgram; // Shader program for final rendering
private seedProgram!: WebGLProgram; // Shader program for rendering seed points

private static readonly MAX_DISTANCE = 99999.0;

private positionBuffer: WebGLBuffer | null = null;

private isPingTexture: boolean = true;

firstUpdated(changedProperties: PropertyValues<this>): void {
super.firstUpdated(changedProperties);

this.renderRoot.appendChild(document.createElement('slot'));
}

connectedCallback() {
super.connectedCallback();

Expand Down
1 change: 0 additions & 1 deletion src/folk-toolbar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FolkEventPropagator } from './folk-event-propagator.ts';
import { css } from './common/tags.ts';

const styles = css`
Expand Down

0 comments on commit e8d64cc

Please sign in to comment.