Skip to content

Commit

Permalink
still want to do some more
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 3, 2024
1 parent 44eced3 commit eebacdd
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/barqode/src/lib/components/barqode-capture.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { processFile } from "./scanner.js";
import { processFile } from "$lib/internal/scanner.js";
import type { CaptureProps, BarcodeFormat } from "./types.js";
let {
Expand Down
6 changes: 3 additions & 3 deletions packages/barqode/src/lib/components/barqode-dropzone.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts">
import { processFile, processUrl } from "./scanner.js";
import type { DropZoneProps, DetectedBarcode } from "./types.js";
import { processFile, processUrl } from "$lib/internal/scanner.js";
import type { DropzoneProps, DetectedBarcode } from "./types.js";
let {
formats = ["qr_code"],
onDetect,
onDragover,
onError,
children,
}: DropZoneProps = $props();
}: DropzoneProps = $props();
async function onDetectFile(promise: Promise<DetectedBarcode[]>) {
try {
Expand Down
4 changes: 2 additions & 2 deletions packages/barqode/src/lib/components/barqode-stream.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { keepScanning, setScanningFormats } from "./scanner.js";
import * as cameraController from "./camera.js";
import { keepScanning, setScanningFormats } from "$lib/internal/scanner.js";
import * as cameraController from "$lib/internal/camera.js";
import type { StreamProps, DetectedBarcode, Point2D } from "./types.js";
import { watch } from "runed";
import { onMount } from "svelte";
Expand Down
2 changes: 1 addition & 1 deletion packages/barqode/src/lib/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type CaptureProps = {
onDetect?: (detectedCodes: DetectedBarcode[]) => void;
} & HTMLInputAttributes;

export type DropZoneProps = {
export type DropzoneProps = {
/**
* The formats of the barcodes to detect.
*
Expand Down
2 changes: 1 addition & 1 deletion packages/barqode/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export type {
BarcodeFormat,
Point2D,
CaptureProps,
DropZoneProps,
DropzoneProps as DropZoneProps,
StreamProps,
} from "./components/types.js";
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit eebacdd

Please sign in to comment.