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"); const editor = getContext<Editor>("editor");
// emits: ["update:color", "update:open"],
const dispatch = createEventDispatcher<{ color: Color }>(); const dispatch = createEventDispatcher<{ color: Color }>();
export let color: Color; export let color: Color;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,7 +14,6 @@
const pointerPosition = (direction: ScrollbarDirection, e: PointerEvent): number => (direction === "Vertical" ? e.clientY : e.clientX); 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 }>(); const dispatch = createEventDispatcher<{ handlePosition: number; pressTrack: number }>();
export let direction: ScrollbarDirection = "Vertical"; export let direction: ScrollbarDirection = "Vertical";

View File

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

View File

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