Clean up comments left over from the port to Svelte

This commit is contained in:
Keavon Chambers 2023-11-27 04:50:09 -08:00
parent 32fb142b62
commit 4fdf8410cf
16 changed files with 0 additions and 16 deletions

View file

@ -31,7 +31,6 @@
const editor = getContext<Editor>("editor");
// emits: ["update:color", "update:open"],
const dispatch = createEventDispatcher<{ color: Color }>();
export let color: Color;

View file

@ -16,7 +16,6 @@
let self: FloatingMenu | undefined;
let scroller: LayoutCol | undefined;
// emits: ["update:open", "update:activeEntry", "naturalWidth"],
const dispatch = createEventDispatcher<{ open: boolean; activeEntry: MenuListEntry }>();
export let entries: MenuListEntry[][];

View file

@ -10,7 +10,6 @@
const POINTER_STRAY_DISTANCE = 100;
// emits: ["update:open", "naturalWidth"],
const dispatch = createEventDispatcher<{ open: boolean; naturalWidth: number }>();
let className = "";

View file

@ -7,7 +7,6 @@
import LayoutCol from "@graphite/components/layout/LayoutCol.svelte";
import TextLabel from "@graphite/components/widgets/labels/TextLabel.svelte";
// emits: ["update:value"],
const dispatch = createEventDispatcher<{ value: Color }>();
let open = false;

View file

@ -6,7 +6,6 @@
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
import IconLabel from "@graphite/components/widgets/labels/IconLabel.svelte";
// emits: ["update:checked"],
const dispatch = createEventDispatcher<{ checked: boolean }>();
export let checked = false;

View file

@ -6,7 +6,6 @@
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
// emits: ["update:value"],
const dispatch = createEventDispatcher<{
value: Curve;
}>();

View file

@ -10,7 +10,6 @@
const DASH_ENTRY = { label: "-" };
// emits: ["update:selectedIndex"],
const dispatch = createEventDispatcher<{ selectedIndex: number }>();
let menuList: MenuList | undefined;

View file

@ -5,7 +5,6 @@
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
// emits: ["update:value", "textFocused", "textChanged", "textChangeCanceled"],
const dispatch = createEventDispatcher<{
value: string;
textFocused: undefined;

View file

@ -11,7 +11,6 @@
const fonts = getContext<FontsState>("fonts");
// emits: ["update:fontFamily", "update:fontStyle", "changeFont"],
const dispatch = createEventDispatcher<{
fontFamily: string;
fontStyle: string;

View file

@ -10,7 +10,6 @@
import IconLabel from "@graphite/components/widgets/labels/IconLabel.svelte";
import TextLabel from "@graphite/components/widgets/labels/TextLabel.svelte";
// emits: ["update:value"],
const dispatch = createEventDispatcher<{ value: string | undefined }>();
export let value: string | undefined = undefined;

View file

@ -11,7 +11,6 @@
const BUTTON_LEFT = 0;
const BUTTON_RIGHT = 2;
// emits: ["update:value"],
const dispatch = createEventDispatcher<{ value: number | undefined }>();
// Label

View file

@ -3,7 +3,6 @@
import type { PivotPosition } from "@graphite/wasm-communication/messages";
// emits: ["update:position"],
const dispatch = createEventDispatcher<{ position: PivotPosition }>();
export let position: string;

View file

@ -7,7 +7,6 @@
import IconLabel from "@graphite/components/widgets/labels/IconLabel.svelte";
import TextLabel from "@graphite/components/widgets/labels/TextLabel.svelte";
// emits: ["update:selectedIndex"],
const dispatch = createEventDispatcher<{ selectedIndex: number }>();
export let entries: RadioEntries;

View file

@ -14,7 +14,6 @@
const pointerPosition = (direction: ScrollbarDirection, e: PointerEvent): number => (direction === "Vertical" ? e.clientY : e.clientX);
// emits: { "update:handlePosition": null, pressTrack: (pointerOffset: number) => typeof pointerOffset === "number" }
const dispatch = createEventDispatcher<{ handlePosition: number; pressTrack: number }>();
export let direction: ScrollbarDirection = "Vertical";

View file

@ -3,7 +3,6 @@
import FieldInput from "@graphite/components/widgets/inputs/FieldInput.svelte";
// emits: ["update:value", "commitText"],
const dispatch = createEventDispatcher<{ commitText: string }>();
export let value: string;

View file

@ -3,7 +3,6 @@
import FieldInput from "@graphite/components/widgets/inputs/FieldInput.svelte";
// emits: ["update:value", "commitText"],
const dispatch = createEventDispatcher<{ commitText: string }>();
// Label