mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-08 14:03:53 +02:00
37 lines
941 B
JavaScript
37 lines
941 B
JavaScript
import {
|
|
invoke
|
|
} from '@tauri-apps/api/tauri';
|
|
|
|
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
var Source;
|
|
(function (Source) {
|
|
Source["Prompt"] = "PROMPT";
|
|
Source["Camera"] = "CAMERA";
|
|
Source["Photos"] = "PHOTOS";
|
|
})(Source || (Source = {}));
|
|
var ResultType;
|
|
(function (ResultType) {
|
|
ResultType["Uri"] = "uri";
|
|
ResultType["Base64"] = "base64";
|
|
ResultType["DataUrl"] = "dataUrl";
|
|
})(ResultType || (ResultType = {}));
|
|
var CameraDirection;
|
|
(function (CameraDirection) {
|
|
CameraDirection["Rear"] = "REAR";
|
|
CameraDirection["Front"] = "FRONT";
|
|
})(CameraDirection || (CameraDirection = {}));
|
|
async function getPhoto(options) {
|
|
return await invoke("plugin:camera|getPhoto", {
|
|
...options
|
|
});
|
|
}
|
|
|
|
export {
|
|
CameraDirection,
|
|
ResultType,
|
|
Source,
|
|
getPhoto
|
|
};
|
|
//# sourceMappingURL=index.mjs.map
|