main: remove queue
This commit is contained in:
parent
131b6dd58c
commit
837140e54e
|
|
@ -1,5 +1,4 @@
|
||||||
import { LiveImageShape } from '@/components/LiveImageShapeUtil'
|
import { LiveImageShape } from '@/components/LiveImageShapeUtil'
|
||||||
import { Queue } from '@/utils/Queue'
|
|
||||||
import { blobToDataUri } from '@/utils/blob'
|
import { blobToDataUri } from '@/utils/blob'
|
||||||
import * as fal from '@fal-ai/serverless-client'
|
import * as fal from '@fal-ai/serverless-client'
|
||||||
import {
|
import {
|
||||||
|
|
@ -27,8 +26,6 @@ type LiveImageRequest = {
|
||||||
type LiveImageContextType = null | ((req: LiveImageRequest) => Promise<LiveImageResult>)
|
type LiveImageContextType = null | ((req: LiveImageRequest) => Promise<LiveImageResult>)
|
||||||
const LiveImageContext = createContext<LiveImageContextType>(null)
|
const LiveImageContext = createContext<LiveImageContextType>(null)
|
||||||
|
|
||||||
const svgQueue = new Queue()
|
|
||||||
|
|
||||||
export function LiveImageProvider({
|
export function LiveImageProvider({
|
||||||
children,
|
children,
|
||||||
appId,
|
appId,
|
||||||
|
|
@ -186,6 +183,8 @@ export function useLiveImage(shapeId: TLShapeId) {
|
||||||
}
|
}
|
||||||
prevSvg = imageDataUri
|
prevSvg = imageDataUri
|
||||||
|
|
||||||
|
// downloadDataURLAsFile(imageDataUri, 'image.png')
|
||||||
|
|
||||||
const random = rng(shapeId)
|
const random = rng(shapeId)
|
||||||
|
|
||||||
const result = await fetchImage!({
|
const result = await fetchImage!({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue