Compare commits
No commits in common. "fe83e4f057d8f0f41107dc0a0a1520b4d5572e8d" and "33e7fc777183a20c194ea98e106a4c602a9ba4a5" have entirely different histories.
fe83e4f057
...
33e7fc7771
@ -9,16 +9,8 @@ import {
|
|||||||
} from '@mui/material'
|
} from '@mui/material'
|
||||||
import styles from './style.module.scss'
|
import styles from './style.module.scss'
|
||||||
import React, { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react'
|
||||||
import {
|
import { ProfileMetadata, User, UserRole } from '../../types'
|
||||||
ProfileMetadata,
|
import { MouseState, PdfPage, DrawnField, DrawTool } from '../../types/drawing'
|
||||||
User,
|
|
||||||
UserRole,
|
|
||||||
KeyboardCode,
|
|
||||||
MouseState,
|
|
||||||
PdfPage,
|
|
||||||
DrawnField,
|
|
||||||
DrawTool
|
|
||||||
} from '../../types'
|
|
||||||
import { hexToNpub, npubToHex, getProfileUsername } from '../../utils'
|
import { hexToNpub, npubToHex, getProfileUsername } from '../../utils'
|
||||||
import { SigitFile } from '../../utils/file'
|
import { SigitFile } from '../../utils/file'
|
||||||
import { getToolboxLabelByMarkType } from '../../utils/mark'
|
import { getToolboxLabelByMarkType } from '../../utils/mark'
|
||||||
@ -49,10 +41,6 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
const signers = users.filter((u) => u.role === UserRole.signer)
|
const signers = users.filter((u) => u.role === UserRole.signer)
|
||||||
const defaultSignerNpub = signers.length ? hexToNpub(signers[0].pubkey) : ''
|
const defaultSignerNpub = signers.length ? hexToNpub(signers[0].pubkey) : ''
|
||||||
const [lastSigner, setLastSigner] = useState(defaultSignerNpub)
|
const [lastSigner, setLastSigner] = useState(defaultSignerNpub)
|
||||||
const [hideSignersForDrawnField, setHideSignersForDrawnField] = useState<{
|
|
||||||
[key: number]: boolean
|
|
||||||
} | null>()
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return first pubkey that is present in the signers list
|
* Return first pubkey that is present in the signers list
|
||||||
* @param pubkeys
|
* @param pubkeys
|
||||||
@ -373,7 +361,6 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
rect
|
rect
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the pdf pages and drawing elements
|
* Renders the pdf pages and drawing elements
|
||||||
*/
|
*/
|
||||||
@ -505,90 +492,62 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
fileIndex,
|
fileIndex,
|
||||||
pageIndex,
|
pageIndex,
|
||||||
drawnFieldIndex
|
drawnFieldIndex
|
||||||
) &&
|
) && (
|
||||||
(!hideSignersForDrawnField ||
|
<div
|
||||||
!hideSignersForDrawnField[drawnFieldIndex]) && (
|
onPointerDown={handleUserSelectPointerDown}
|
||||||
<div
|
className={styles.userSelect}
|
||||||
onPointerDown={handleUserSelectPointerDown}
|
>
|
||||||
className={styles.userSelect}
|
<FormControl fullWidth size="small">
|
||||||
>
|
<InputLabel id="counterparts">Counterpart</InputLabel>
|
||||||
<FormControl fullWidth size="small">
|
<Select
|
||||||
<InputLabel id="counterparts">
|
value={getAvailableSigner(drawnField.counterpart)}
|
||||||
Counterpart
|
onChange={(event) => {
|
||||||
</InputLabel>
|
drawnField.counterpart = event.target.value
|
||||||
<Select
|
setLastSigner(event.target.value)
|
||||||
value={getAvailableSigner(drawnField.counterpart)}
|
refreshPdfFiles()
|
||||||
onChange={(event) => {
|
}}
|
||||||
drawnField.counterpart = event.target.value
|
labelId="counterparts"
|
||||||
setLastSigner(event.target.value)
|
label="Counterparts"
|
||||||
refreshPdfFiles()
|
sx={{
|
||||||
}}
|
background: 'white'
|
||||||
labelId="counterparts"
|
}}
|
||||||
label="Counterparts"
|
renderValue={(value) =>
|
||||||
sx={{
|
renderCounterpartValue(value)
|
||||||
background: 'white'
|
}
|
||||||
}}
|
>
|
||||||
renderValue={(value) =>
|
{signers.map((signer, index) => {
|
||||||
renderCounterpartValue(value)
|
const npub = hexToNpub(signer.pubkey)
|
||||||
}
|
const metadata = props.metadata[signer.pubkey]
|
||||||
onClose={(event: React.SyntheticEvent) => {
|
const displayValue = getProfileUsername(
|
||||||
// get native event
|
npub,
|
||||||
const { nativeEvent } = event
|
metadata
|
||||||
|
)
|
||||||
|
|
||||||
// check if event is a keyboard event
|
return (
|
||||||
if (nativeEvent instanceof KeyboardEvent) {
|
<MenuItem key={index} value={npub}>
|
||||||
// check if event code is Escape
|
<ListItemIcon>
|
||||||
if (
|
<AvatarIconButton
|
||||||
nativeEvent.code === KeyboardCode.Escape
|
src={metadata?.picture}
|
||||||
) {
|
hexKey={signer.pubkey}
|
||||||
// set hide signers for this DrawnField
|
aria-label={`account of user ${displayValue}`}
|
||||||
if (hideSignersForDrawnField) {
|
color="inherit"
|
||||||
setHideSignersForDrawnField((prev) => ({
|
sx={{
|
||||||
...prev,
|
padding: 0,
|
||||||
[drawnFieldIndex]: true
|
'> img': {
|
||||||
}))
|
width: '30px',
|
||||||
} else {
|
height: '30px'
|
||||||
setHideSignersForDrawnField({
|
}
|
||||||
[drawnFieldIndex]: true
|
}}
|
||||||
})
|
/>
|
||||||
}
|
</ListItemIcon>
|
||||||
}
|
<ListItemText>{displayValue}</ListItemText>
|
||||||
}
|
</MenuItem>
|
||||||
}}
|
)
|
||||||
>
|
})}
|
||||||
{signers.map((signer, index) => {
|
</Select>
|
||||||
const npub = hexToNpub(signer.pubkey)
|
</FormControl>
|
||||||
const metadata = props.metadata[signer.pubkey]
|
</div>
|
||||||
const displayValue = getProfileUsername(
|
)}
|
||||||
npub,
|
|
||||||
metadata
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<MenuItem key={index} value={npub}>
|
|
||||||
<ListItemIcon>
|
|
||||||
<AvatarIconButton
|
|
||||||
src={metadata?.picture}
|
|
||||||
hexKey={signer.pubkey}
|
|
||||||
aria-label={`account of user ${displayValue}`}
|
|
||||||
color="inherit"
|
|
||||||
sx={{
|
|
||||||
padding: 0,
|
|
||||||
'> img': {
|
|
||||||
width: '30px',
|
|
||||||
height: '30px'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</ListItemIcon>
|
|
||||||
<ListItemText>{displayValue}</ListItemText>
|
|
||||||
</MenuItem>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</Select>
|
|
||||||
</FormControl>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { CurrentUserMark } from '../../types'
|
import { CurrentUserMark } from '../../types/mark.ts'
|
||||||
import styles from './style.module.scss'
|
import styles from './style.module.scss'
|
||||||
import {
|
import {
|
||||||
findNextIncompleteCurrentUserMark,
|
findNextIncompleteCurrentUserMark,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { CurrentUserMark, Mark } from '../../types'
|
import { CurrentUserMark, Mark } from '../../types/mark.ts'
|
||||||
import { SigitFile } from '../../utils/file.ts'
|
import { SigitFile } from '../../utils/file.ts'
|
||||||
import { ExtensionFileBox } from '../ExtensionFileBox.tsx'
|
import { ExtensionFileBox } from '../ExtensionFileBox.tsx'
|
||||||
import PdfPageItem from './PdfPageItem.tsx'
|
import PdfPageItem from './PdfPageItem.tsx'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { CurrentUserMark } from '../../types'
|
import { CurrentUserMark } from '../../types/mark.ts'
|
||||||
import styles from '../DrawPDFFields/style.module.scss'
|
import styles from '../DrawPDFFields/style.module.scss'
|
||||||
import { FONT_SIZE, FONT_TYPE, inPx } from '../../utils/pdf.ts'
|
import { FONT_SIZE, FONT_TYPE, inPx } from '../../utils/pdf.ts'
|
||||||
import { useScale } from '../../hooks/useScale.tsx'
|
import { useScale } from '../../hooks/useScale.tsx'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import PdfView from './index.tsx'
|
import PdfView from './index.tsx'
|
||||||
import MarkFormField from '../MarkFormField'
|
import MarkFormField from '../MarkFormField'
|
||||||
import { CurrentUserMark, Mark, CurrentUserFile, Meta } from '../../types'
|
import { CurrentUserMark, Mark } from '../../types/mark.ts'
|
||||||
import React, { useState, useEffect } from 'react'
|
import React, { useState, useEffect } from 'react'
|
||||||
import {
|
import {
|
||||||
findNextIncompleteCurrentUserMark,
|
findNextIncompleteCurrentUserMark,
|
||||||
@ -10,9 +10,11 @@ import {
|
|||||||
import { EMPTY } from '../../utils/const.ts'
|
import { EMPTY } from '../../utils/const.ts'
|
||||||
import { Container } from '../Container'
|
import { Container } from '../Container'
|
||||||
import signPageStyles from '../../pages/sign/style.module.scss'
|
import signPageStyles from '../../pages/sign/style.module.scss'
|
||||||
|
import { CurrentUserFile } from '../../types/file.ts'
|
||||||
import FileList from '../FileList'
|
import FileList from '../FileList'
|
||||||
import { StickySideColumns } from '../../layouts/StickySideColumns.tsx'
|
import { StickySideColumns } from '../../layouts/StickySideColumns.tsx'
|
||||||
import { UsersDetails } from '../UsersDetails.tsx'
|
import { UsersDetails } from '../UsersDetails.tsx'
|
||||||
|
import { Meta } from '../../types'
|
||||||
import {
|
import {
|
||||||
faCircleInfo,
|
faCircleInfo,
|
||||||
faFileDownload,
|
faFileDownload,
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import styles from '../DrawPDFFields/style.module.scss'
|
import styles from '../DrawPDFFields/style.module.scss'
|
||||||
import { PdfPage, CurrentUserMark, Mark } from '../../types'
|
import { PdfPage } from '../../types/drawing.ts'
|
||||||
|
import { CurrentUserMark, Mark } from '../../types/mark.ts'
|
||||||
import PdfMarkItem from './PdfMarkItem.tsx'
|
import PdfMarkItem from './PdfMarkItem.tsx'
|
||||||
import { useEffect, useRef } from 'react'
|
import { useEffect, useRef } from 'react'
|
||||||
import pdfViewStyles from './style.module.scss'
|
import pdfViewStyles from './style.module.scss'
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import PdfItem from './PdfItem.tsx'
|
import PdfItem from './PdfItem.tsx'
|
||||||
import { CurrentUserMark, Mark, CurrentUserFile } from '../../types'
|
import { CurrentUserMark, Mark } from '../../types/mark.ts'
|
||||||
|
import { CurrentUserFile } from '../../types/file.ts'
|
||||||
import { useEffect, useRef } from 'react'
|
import { useEffect, useRef } from 'react'
|
||||||
import { FileDivider } from '../FileDivider.tsx'
|
import { FileDivider } from '../FileDivider.tsx'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { ProfileMetadata } from '../types'
|
import { ProfileMetadata } from '../types/profile'
|
||||||
import { MetadataController } from '../controllers/MetadataController'
|
import { MetadataController } from '../controllers/MetadataController'
|
||||||
import { Event, kinds } from 'nostr-tools'
|
import { Event, kinds } from 'nostr-tools'
|
||||||
|
|
||||||
|
@ -3,10 +3,9 @@ import {
|
|||||||
CreateSignatureEventContent,
|
CreateSignatureEventContent,
|
||||||
DocSignatureEvent,
|
DocSignatureEvent,
|
||||||
Meta,
|
Meta,
|
||||||
SignedEventContent,
|
SignedEventContent
|
||||||
Mark,
|
|
||||||
MetaParseError
|
|
||||||
} from '../types'
|
} from '../types'
|
||||||
|
import { Mark } from '../types/mark'
|
||||||
import {
|
import {
|
||||||
fromUnixTimestamp,
|
fromUnixTimestamp,
|
||||||
hexToNpub,
|
hexToNpub,
|
||||||
@ -20,6 +19,7 @@ import { verifyEvent } from 'nostr-tools'
|
|||||||
import { Event } from 'nostr-tools'
|
import { Event } from 'nostr-tools'
|
||||||
import store from '../store/store'
|
import store from '../store/store'
|
||||||
import { NostrController } from '../controllers'
|
import { NostrController } from '../controllers'
|
||||||
|
import { MetaParseError } from '../types/errors/MetaParseError'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flattened interface that combines properties `Meta`, `CreateSignatureEventContent`,
|
* Flattened interface that combines properties `Meta`, `CreateSignatureEventContent`,
|
||||||
|
@ -20,9 +20,7 @@ import {
|
|||||||
Meta,
|
Meta,
|
||||||
ProfileMetadata,
|
ProfileMetadata,
|
||||||
User,
|
User,
|
||||||
UserRole,
|
UserRole
|
||||||
DrawTool,
|
|
||||||
Mark
|
|
||||||
} from '../../types'
|
} from '../../types'
|
||||||
import {
|
import {
|
||||||
encryptArrayBuffer,
|
encryptArrayBuffer,
|
||||||
@ -45,7 +43,9 @@ import {
|
|||||||
} from '../../utils'
|
} from '../../utils'
|
||||||
import { Container } from '../../components/Container'
|
import { Container } from '../../components/Container'
|
||||||
import fileListStyles from '../../components/FileList/style.module.scss'
|
import fileListStyles from '../../components/FileList/style.module.scss'
|
||||||
|
import { DrawTool } from '../../types/drawing'
|
||||||
import { DrawPDFFields } from '../../components/DrawPDFFields'
|
import { DrawPDFFields } from '../../components/DrawPDFFields'
|
||||||
|
import { Mark } from '../../types/mark.ts'
|
||||||
import { StickySideColumns } from '../../layouts/StickySideColumns.tsx'
|
import { StickySideColumns } from '../../layouts/StickySideColumns.tsx'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import {
|
import {
|
||||||
|
@ -12,13 +12,7 @@ import { toast } from 'react-toastify'
|
|||||||
import { LoadingSpinner } from '../../components/LoadingSpinner'
|
import { LoadingSpinner } from '../../components/LoadingSpinner'
|
||||||
import { NostrController } from '../../controllers'
|
import { NostrController } from '../../controllers'
|
||||||
import { appPublicRoutes } from '../../routes'
|
import { appPublicRoutes } from '../../routes'
|
||||||
import {
|
import { CreateSignatureEventContent, Meta, SignedEvent } from '../../types'
|
||||||
CreateSignatureEventContent,
|
|
||||||
Meta,
|
|
||||||
SignedEvent,
|
|
||||||
CurrentUserMark,
|
|
||||||
Mark
|
|
||||||
} from '../../types'
|
|
||||||
import {
|
import {
|
||||||
decryptArrayBuffer,
|
decryptArrayBuffer,
|
||||||
encryptArrayBuffer,
|
encryptArrayBuffer,
|
||||||
@ -44,6 +38,7 @@ import {
|
|||||||
import { Container } from '../../components/Container'
|
import { Container } from '../../components/Container'
|
||||||
import { DisplayMeta } from './internal/displayMeta'
|
import { DisplayMeta } from './internal/displayMeta'
|
||||||
import styles from './style.module.scss'
|
import styles from './style.module.scss'
|
||||||
|
import { CurrentUserMark, Mark } from '../../types/mark.ts'
|
||||||
import { getLastSignersSig, isFullySigned } from '../../utils/sign.ts'
|
import { getLastSignersSig, isFullySigned } from '../../utils/sign.ts'
|
||||||
import {
|
import {
|
||||||
filterMarksByPubkey,
|
filterMarksByPubkey,
|
||||||
|
@ -5,7 +5,7 @@ import { useEffect, useRef, useState } from 'react'
|
|||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
import { LoadingSpinner } from '../../components/LoadingSpinner'
|
import { LoadingSpinner } from '../../components/LoadingSpinner'
|
||||||
import { NostrController } from '../../controllers'
|
import { NostrController } from '../../controllers'
|
||||||
import { DocSignatureEvent, Meta, CurrentUserFile, Mark } from '../../types'
|
import { DocSignatureEvent, Meta } from '../../types'
|
||||||
import {
|
import {
|
||||||
decryptArrayBuffer,
|
decryptArrayBuffer,
|
||||||
getHash,
|
getHash,
|
||||||
@ -28,6 +28,8 @@ import { useSigitMeta } from '../../hooks/useSigitMeta.tsx'
|
|||||||
import { StickySideColumns } from '../../layouts/StickySideColumns.tsx'
|
import { StickySideColumns } from '../../layouts/StickySideColumns.tsx'
|
||||||
import { UsersDetails } from '../../components/UsersDetails.tsx/index.tsx'
|
import { UsersDetails } from '../../components/UsersDetails.tsx/index.tsx'
|
||||||
import FileList from '../../components/FileList'
|
import FileList from '../../components/FileList'
|
||||||
|
import { CurrentUserFile } from '../../types/file.ts'
|
||||||
|
import { Mark } from '../../types/mark.ts'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
convertToSigitFile,
|
convertToSigitFile,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
import { EventTemplate, UnsignedEvent } from 'nostr-tools'
|
import { EventTemplate, UnsignedEvent } from 'nostr-tools'
|
||||||
import { SignedEvent } from '../../types'
|
import { SignedEvent } from '../../types/nostr'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface holds all operations that are dependant on the login method and is used as the basis for the login strategies.
|
* This interface holds all operations that are dependant on the login method and is used as the basis for the login strategies.
|
||||||
|
@ -27,7 +27,3 @@ export function handleError(error: unknown): Error {
|
|||||||
|
|
||||||
return new Error(`Wrapped Error: ${stringified}`)
|
return new Error(`Wrapped Error: ${stringified}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
export * from './DecryptionError'
|
|
||||||
export * from './MetaParseError'
|
|
||||||
export * from './TimeoutError'
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
export enum KeyboardCode {
|
|
||||||
Escape = 'Escape',
|
|
||||||
Enter = 'Enter'
|
|
||||||
}
|
|
@ -4,8 +4,3 @@ export * from './nostr'
|
|||||||
export * from './profile'
|
export * from './profile'
|
||||||
export * from './relay'
|
export * from './relay'
|
||||||
export * from './zip'
|
export * from './zip'
|
||||||
export * from './event'
|
|
||||||
export * from './drawing'
|
|
||||||
export * from './file'
|
|
||||||
export * from './mark'
|
|
||||||
export * from './errors'
|
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
stringToHex,
|
stringToHex,
|
||||||
uint8ArrayToHexString
|
uint8ArrayToHexString
|
||||||
} from '.'
|
} from '.'
|
||||||
import { DecryptionError } from '../types'
|
import { DecryptionError } from '../types/errors/DecryptionError'
|
||||||
|
|
||||||
const ENCRYPTION_ALGO_NAME = 'AES-GCM'
|
const ENCRYPTION_ALGO_NAME = 'AES-GCM'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Meta } from '../types'
|
import { Meta } from '../types'
|
||||||
import { PdfPage } from '../types'
|
import { PdfPage } from '../types/drawing.ts'
|
||||||
import { MOST_COMMON_MEDIA_TYPES } from './const.ts'
|
import { MOST_COMMON_MEDIA_TYPES } from './const.ts'
|
||||||
import { extractMarksFromSignedMeta } from './mark.ts'
|
import { extractMarksFromSignedMeta } from './mark.ts'
|
||||||
import {
|
import {
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
import {
|
import { CurrentUserMark, Mark } from '../types/mark.ts'
|
||||||
CurrentUserMark,
|
|
||||||
Mark,
|
|
||||||
Meta,
|
|
||||||
SignedEventContent,
|
|
||||||
DrawTool,
|
|
||||||
MarkType
|
|
||||||
} from '../types'
|
|
||||||
import { hexToNpub } from './nostr.ts'
|
import { hexToNpub } from './nostr.ts'
|
||||||
|
import { Meta, SignedEventContent } from '../types'
|
||||||
import { Event } from 'nostr-tools'
|
import { Event } from 'nostr-tools'
|
||||||
import { EMPTY } from './const.ts'
|
import { EMPTY } from './const.ts'
|
||||||
|
import { DrawTool, MarkType } from '../types/drawing.ts'
|
||||||
import {
|
import {
|
||||||
faT,
|
faT,
|
||||||
faSignature,
|
faSignature,
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
import {
|
import { CreateSignatureEventContent, Meta } from '../types'
|
||||||
CreateSignatureEventContent,
|
|
||||||
Meta,
|
|
||||||
MetaParseError,
|
|
||||||
MetaParseErrorType,
|
|
||||||
handleError
|
|
||||||
} from '../types'
|
|
||||||
import { fromUnixTimestamp, parseJson } from '.'
|
import { fromUnixTimestamp, parseJson } from '.'
|
||||||
import { Event, verifyEvent } from 'nostr-tools'
|
import { Event, verifyEvent } from 'nostr-tools'
|
||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
import { extractFileExtensions } from './file'
|
import { extractFileExtensions } from './file'
|
||||||
|
import { handleError } from '../types/errors'
|
||||||
|
import {
|
||||||
|
MetaParseError,
|
||||||
|
MetaParseErrorType
|
||||||
|
} from '../types/errors/MetaParseError'
|
||||||
|
|
||||||
export enum SignStatus {
|
export enum SignStatus {
|
||||||
Signed = 'Signed',
|
Signed = 'Signed',
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { PdfPage, Mark } from '../types'
|
import { PdfPage } from '../types/drawing.ts'
|
||||||
import { PDFDocument, PDFFont, PDFPage, rgb } from 'pdf-lib'
|
import { PDFDocument, PDFFont, PDFPage, rgb } from 'pdf-lib'
|
||||||
|
import { Mark } from '../types/mark.ts'
|
||||||
import * as PDFJS from 'pdfjs-dist'
|
import * as PDFJS from 'pdfjs-dist'
|
||||||
import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.min.mjs?worker'
|
import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.min.mjs?worker'
|
||||||
if (!PDFJS.GlobalWorkerOptions.workerPort) {
|
if (!PDFJS.GlobalWorkerOptions.workerPort) {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { TimeoutError, CurrentUserFile } from '../types'
|
import { TimeoutError } from '../types/errors/TimeoutError.ts'
|
||||||
|
import { CurrentUserFile } from '../types/file.ts'
|
||||||
import { SigitFile } from './file.ts'
|
import { SigitFile } from './file.ts'
|
||||||
|
|
||||||
export const compareObjects = (
|
export const compareObjects = (
|
||||||
|
Loading…
Reference in New Issue
Block a user