mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Fixe android build
This commit is contained in:
@@ -34,23 +34,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
var _core_f86805ad_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
||||
/*! ./core-f86805ad.js */
|
||||
"./node_modules/@ionic/pwa-elements/dist/esm/core-f86805ad.js");
|
||||
/**
|
||||
* MediaStream ImageCapture polyfill
|
||||
*
|
||||
* @license
|
||||
* Copyright 2018 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
/**
|
||||
* MediaStream ImageCapture polyfill
|
||||
*
|
||||
* @license
|
||||
* Copyright 2018 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
@@ -58,10 +58,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
|
||||
if (typeof ImageCapture === 'undefined') {
|
||||
ImageCapture = /*#__PURE__*/function () {
|
||||
/**
|
||||
* TODO https://www.w3.org/TR/image-capture/#constructors
|
||||
*
|
||||
* @param {MediaStreamTrack} videoStreamTrack - A MediaStreamTrack of the 'video' kind
|
||||
/**
|
||||
* TODO https://www.w3.org/TR/image-capture/#constructors
|
||||
*
|
||||
* @param {MediaStreamTrack} videoStreamTrack - A MediaStreamTrack of the 'video' kind
|
||||
*/
|
||||
function ImageCapture(videoStreamTrack) {
|
||||
var _this = this;
|
||||
@@ -97,20 +97,20 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
|
||||
this.canvas2dContext = this.canvasElement.getContext('2d');
|
||||
}
|
||||
/**
|
||||
* https://w3c.github.io/mediacapture-image/index.html#dom-imagecapture-videostreamtrack
|
||||
* @return {MediaStreamTrack} The MediaStreamTrack passed into the constructor
|
||||
/**
|
||||
* https://w3c.github.io/mediacapture-image/index.html#dom-imagecapture-videostreamtrack
|
||||
* @return {MediaStreamTrack} The MediaStreamTrack passed into the constructor
|
||||
*/
|
||||
|
||||
|
||||
_createClass(ImageCapture, [{
|
||||
key: "getPhotoCapabilities",
|
||||
|
||||
/**
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-getphotocapabilities
|
||||
* @return {Promise<PhotoCapabilities>} Fulfilled promise with
|
||||
* [PhotoCapabilities](https://www.w3.org/TR/image-capture/#idl-def-photocapabilities)
|
||||
* object on success, rejected promise on failure
|
||||
/**
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-getphotocapabilities
|
||||
* @return {Promise<PhotoCapabilities>} Fulfilled promise with
|
||||
* [PhotoCapabilities](https://www.w3.org/TR/image-capture/#idl-def-photocapabilities)
|
||||
* object on success, rejected promise on failure
|
||||
*/
|
||||
value: function getPhotoCapabilities() {
|
||||
return new Promise(function executorGPC(resolve, reject) {
|
||||
@@ -135,10 +135,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
reject(new DOMException('OperationError'));
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions
|
||||
* @param {Object} photoSettings - Photo settings dictionary, https://www.w3.org/TR/image-capture/#idl-def-photosettings
|
||||
* @return {Promise<void>} Fulfilled promise on success, rejected promise on failure
|
||||
/**
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions
|
||||
* @param {Object} photoSettings - Photo settings dictionary, https://www.w3.org/TR/image-capture/#idl-def-photosettings
|
||||
* @return {Promise<void>} Fulfilled promise on success, rejected promise on failure
|
||||
*/
|
||||
|
||||
}, {
|
||||
@@ -149,11 +149,11 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
return new Promise(function executorSO(_resolve, _reject) {// TODO
|
||||
});
|
||||
}
|
||||
/**
|
||||
* TODO
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto
|
||||
* @return {Promise<Blob>} Fulfilled promise with [Blob](https://www.w3.org/TR/FileAPI/#blob)
|
||||
* argument on success; rejected promise on failure
|
||||
/**
|
||||
* TODO
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto
|
||||
* @return {Promise<Blob>} Fulfilled promise with [Blob](https://www.w3.org/TR/FileAPI/#blob)
|
||||
* argument on success; rejected promise on failure
|
||||
*/
|
||||
|
||||
}, {
|
||||
@@ -179,11 +179,11 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-grabframe
|
||||
* @return {Promise<ImageBitmap>} Fulfilled promise with
|
||||
* [ImageBitmap](https://www.w3.org/TR/html51/webappapis.html#webappapis-images)
|
||||
* argument on success; rejected promise on failure
|
||||
/**
|
||||
* Implements https://www.w3.org/TR/image-capture/#dom-imagecapture-grabframe
|
||||
* @return {Promise<ImageBitmap>} Fulfilled promise with
|
||||
* [ImageBitmap](https://www.w3.org/TR/html51/webappapis.html#webappapis-images)
|
||||
* argument on success; rejected promise on failure
|
||||
*/
|
||||
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user