UNPKG

@mescius/dspdfviewer

Version:
45 lines (43 loc) 1.42 kB
//@ts-ignore import React, { Component } from 'react'; //@ts-ignore import { PropertyEditorProps } from '@grapecity/core-ui'; /// <reference path="../../vendor/i18next.d.ts" /> //@ts-ignore import { i18n } from 'i18next'; import { SoundAnnotation } from '../AnnotationTypes'; import { GcPdfViewer } from '../../GcPdfViewer'; import { SetMultiplePropertiesFn } from '../types'; export type SoundFileEditorProps = PropertyEditorProps & { in17n: i18n; setProperties: SetMultiplePropertiesFn; }; export declare class SoundFileEditor extends Component<SoundFileEditorProps, any> { private _fileInput; private _fileReader; static pendingFileDialog: boolean; get pageIndex(): number; get originalNode(): SoundAnnotation; get viewer(): GcPdfViewer; get hasData(): boolean; get fileData(): Uint8Array | null; get inputFileName(): string; get audioProperties(): { numChannels: number; sampleRate: number; bytesPerSample: number; subchunk2Size: number; }; get soundBytes(): Uint8Array; componentDidMount(): void; //@ts-ignore //@ts-ignore render(): React.JSX.Element; //@ts-ignore //@ts-ignore renderFileSizeLabel(): React.JSX.Element; private _onRemoveAttachmentClick; removeAttachment(): void; private _onDownloadClick; private _onSelectFileClick; private _onChange; }