1.remove import path end with '.ets' or '.js'
Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
parent
53ce44ca01
commit
d19f2fbc88
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
import app from '@system.app';
|
import app from '@system.app';
|
||||||
|
|
||||||
import {Glide} from './glide/Glide.ets'
|
import {Glide} from './glide/Glide'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: {
|
data: {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import {FileReader} from './FileReader'
|
||||||
import {DiskCacheEntry} from './DiskCacheEntry'
|
import {DiskCacheEntry} from './DiskCacheEntry'
|
||||||
import fileio from '@ohos.fileio';
|
import fileio from '@ohos.fileio';
|
||||||
import featureability from '@ohos.ability.featureAbility'
|
import featureability from '@ohos.ability.featureAbility'
|
||||||
import {Md5} from './Md5.ets'
|
import {Md5} from './Md5'
|
||||||
|
|
||||||
export class DiskLruCache {
|
export class DiskLruCache {
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {Key} from "../key/Key"
|
import {Key} from "../key/Key"
|
||||||
import {RequestOption} from '../../glide/RequestOption.ets'
|
import {RequestOption} from '../../glide/RequestOption'
|
||||||
|
|
||||||
export class EngineKey implements Key {
|
export class EngineKey implements Key {
|
||||||
private request: RequestOption;
|
private request: RequestOption;
|
||||||
|
|
|
@ -18,25 +18,25 @@ import {LruCache} from "../cache/LruCache"
|
||||||
import {EngineKey} from "../cache/key/EngineKey"
|
import {EngineKey} from "../cache/key/EngineKey"
|
||||||
import {EngineKeyFactories} from "../cache/key/EngineKeyFactories"
|
import {EngineKeyFactories} from "../cache/key/EngineKeyFactories"
|
||||||
import {DiskStrategy} from "../cache/diskstrategy/DiskStrategy"
|
import {DiskStrategy} from "../cache/diskstrategy/DiskStrategy"
|
||||||
import {ResourceTypeEts} from "../glide/constants/ResourceTypeEts.ets"
|
import {ResourceTypeEts} from "../glide/constants/ResourceTypeEts"
|
||||||
import {RequestOption} from "../glide/RequestOption.ets"
|
import {RequestOption} from "../glide/RequestOption"
|
||||||
import {AsyncCallback} from "../glide/interface/asynccallback.ets"
|
import {AsyncCallback} from "../glide/interface/asynccallback"
|
||||||
import {PlaceHolderManager} from "../glide/holder/PlaceHolderManager.ets"
|
import {PlaceHolderManager} from "../glide/holder/PlaceHolderManager"
|
||||||
import {ErrorHolderManager} from "../glide/holder/ErrorHolderManager.ets"
|
import {ErrorHolderManager} from "../glide/holder/ErrorHolderManager"
|
||||||
import {RequestManager} from "../glide/requestmanage/RequstManager.ets"
|
import {RequestManager} from "../glide/requestmanage/RequstManager"
|
||||||
import {NONE} from "../cache/diskstrategy/enum/NONE"
|
import {NONE} from "../cache/diskstrategy/enum/NONE"
|
||||||
import {FileTypeUtil} from '../glide/utils/FileTypeUtil.ets'
|
import {FileTypeUtil} from '../glide/utils/FileTypeUtil'
|
||||||
import {DownloadClient} from '../glide/networkmanage/DownloadClient.ets'
|
import {DownloadClient} from '../glide/networkmanage/DownloadClient'
|
||||||
import {IDataFetch} from '../glide/networkmanage/IDataFetch.ets'
|
import {IDataFetch} from '../glide/networkmanage/IDataFetch'
|
||||||
import {ParseResClient} from '../glide/resourcemanage/ParseResClient.ets'
|
import {ParseResClient} from '../glide/resourcemanage/ParseResClient'
|
||||||
import {IResourceFetch} from '../glide/resourcemanage/IResourceFetch.ets'
|
import {IResourceFetch} from '../glide/resourcemanage/IResourceFetch'
|
||||||
import {GlideData} from '../glide/GlideData.ets'
|
import {GlideData} from '../glide/GlideData'
|
||||||
import {FileUtils} from '../cache/FileUtils.ets'
|
import {FileUtils} from '../cache/FileUtils'
|
||||||
import {FileReader} from '../cache/FileReader.ets'
|
import {FileReader} from '../cache/FileReader'
|
||||||
import {GlideOption} from '../glide/GlideOption.ets'
|
import {GlideOption} from '../glide/GlideOption'
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
import featureAbility from '@ohos.ability.featureAbility';
|
import featureAbility from '@ohos.ability.featureAbility';
|
||||||
import {CompressBuilder} from "../glide/compress/CompressBuilder.ets"
|
import {CompressBuilder} from "../glide/compress/CompressBuilder"
|
||||||
|
|
||||||
export class Glide {
|
export class Glide {
|
||||||
private memoryCache: LruCache<string, any>;
|
private memoryCache: LruCache<string, any>;
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {GlideOption} from '../glide/GlideOption.ets'
|
import {GlideOption} from '../glide/GlideOption'
|
||||||
import {RequestOption} from '../glide/RequestOption.ets'
|
import {RequestOption} from '../glide/RequestOption'
|
||||||
import {GlideData} from '../glide/GlideData.ets'
|
import {GlideData} from '../glide/GlideData'
|
||||||
import {PixelMapPack} from '../glide/PixelMapPack.ets'
|
import {PixelMapPack} from '../glide/PixelMapPack'
|
||||||
import {Base64} from '../cache/Base64.ets'
|
import {Base64} from '../cache/Base64'
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
import image from '@ohos.multimedia.image';
|
import image from '@ohos.multimedia.image';
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AUTOMATIC} from "../cache/diskstrategy/enum/AUTOMATIC.ets"
|
import {AUTOMATIC} from "../cache/diskstrategy/enum/AUTOMATIC"
|
||||||
import {DiskStrategy} from "../cache/diskstrategy/DiskStrategy.ets"
|
import {DiskStrategy} from "../cache/diskstrategy/DiskStrategy"
|
||||||
import {BaseTransform} from "../glide/transform/BaseTransform.ets"
|
import {BaseTransform} from "../glide/transform/BaseTransform"
|
||||||
import {AllCacheInfo, IAllCacheInfoCallback} from "../glide/interface/iallcacheinfocallback.ets"
|
import {AllCacheInfo, IAllCacheInfoCallback} from "../glide/interface/iallcacheinfocallback"
|
||||||
|
|
||||||
export class GlideOption {
|
export class GlideOption {
|
||||||
|
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {DiskStrategy} from "../cache/diskstrategy/DiskStrategy"
|
import {DiskStrategy} from "../cache/diskstrategy/DiskStrategy"
|
||||||
import {AsyncCallback} from "../glide/interface/asynccallback.ets"
|
import {AsyncCallback} from "../glide/interface/asynccallback"
|
||||||
import {AsyncSuccess} from "../glide/interface/AsyncSuccess.ets"
|
import {AsyncSuccess} from "../glide/interface/AsyncSuccess"
|
||||||
import {AllCacheInfo, IAllCacheInfoCallback} from "../glide/interface/iallcacheinfocallback.ets"
|
import {AllCacheInfo, IAllCacheInfoCallback} from "../glide/interface/iallcacheinfocallback"
|
||||||
import {AUTOMATIC} from "../cache/diskstrategy/enum/AUTOMATIC"
|
import {AUTOMATIC} from "../cache/diskstrategy/enum/AUTOMATIC"
|
||||||
import {BaseTransform} from "../glide/transform/BaseTransform.ets"
|
import {BaseTransform} from "../glide/transform/BaseTransform"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {GlideData} from "../glide/GlideData.ets"
|
import {GlideData} from "../glide/GlideData"
|
||||||
import fileio from '@ohos.fileio';
|
import fileio from '@ohos.fileio';
|
||||||
import image from '@ohos.multimedia.image';
|
import image from '@ohos.multimedia.image';
|
||||||
import {CenterCrop} from '../glide/transform/pixelmap/CenterCrop.ets'
|
import {CenterCrop} from '../glide/transform/pixelmap/CenterCrop'
|
||||||
import {CenterInside} from '../glide/transform/pixelmap/CenterInside.ets'
|
import {CenterInside} from '../glide/transform/pixelmap/CenterInside'
|
||||||
import {FitCenter} from '../glide/transform/pixelmap/FitCenter.ets'
|
import {FitCenter} from '../glide/transform/pixelmap/FitCenter'
|
||||||
|
|
||||||
export class RequestOption {
|
export class RequestOption {
|
||||||
loadSrc: string | PixelMap | Resource;
|
loadSrc: string | PixelMap | Resource;
|
||||||
|
|
|
@ -13,15 +13,15 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {OnRenameListener} from '../compress/listener/OnRenameListener.ets'
|
import {OnRenameListener} from '../compress/listener/OnRenameListener'
|
||||||
import {OnCompressListener} from '../compress/listener/OnCompressListener.ets'
|
import {OnCompressListener} from '../compress/listener/OnCompressListener'
|
||||||
import {CompressionPredicate} from '../compress/listener/CompressionPredicate.ets'
|
import {CompressionPredicate} from '../compress/listener/CompressionPredicate'
|
||||||
import fileio from '@ohos.fileio';
|
import fileio from '@ohos.fileio';
|
||||||
import {CompressAdapter} from '../compress/provider/CompressAdapter.ets'
|
import {CompressAdapter} from '../compress/provider/CompressAdapter'
|
||||||
import {DataStringPathProvider} from '../compress/provider/DataStringPathProvider.ets'
|
import {DataStringPathProvider} from '../compress/provider/DataStringPathProvider'
|
||||||
import {RecourseProvider} from '../compress/provider/RecourseProvider.ets'
|
import {RecourseProvider} from '../compress/provider/RecourseProvider'
|
||||||
import featureability from '@ohos.ability.featureAbility'
|
import featureability from '@ohos.ability.featureAbility'
|
||||||
import {Engine} from '../compress/Engine.ets'
|
import {Engine} from '../compress/Engine'
|
||||||
|
|
||||||
export class CompressBuilder {
|
export class CompressBuilder {
|
||||||
private _mTargetDir: string;
|
private _mTargetDir: string;
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {OnCompressListener} from '../compress/listener/OnCompressListener.ets'
|
import {OnCompressListener} from '../compress/listener/OnCompressListener'
|
||||||
import {CompressionPredicate} from '../compress/listener/CompressionPredicate.ets'
|
import {CompressionPredicate} from '../compress/listener/CompressionPredicate'
|
||||||
import {CompressAdapter} from "../compress/provider/CompressAdapter.ets"
|
import {CompressAdapter} from "../compress/provider/CompressAdapter"
|
||||||
import {DataStringPathProvider} from '../compress/provider/DataStringPathProvider.ets'
|
import {DataStringPathProvider} from '../compress/provider/DataStringPathProvider'
|
||||||
import {RecourseProvider} from '../compress/provider/RecourseProvider.ets'
|
import {RecourseProvider} from '../compress/provider/RecourseProvider'
|
||||||
import {FileUtils} from '../../cache/FileUtils'
|
import {FileUtils} from '../../cache/FileUtils'
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
import fileio from '@ohos.fileio';
|
import fileio from '@ohos.fileio';
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CompressProvider} from "../provider/CompressProvider.ets"
|
import {CompressProvider} from "../provider/CompressProvider"
|
||||||
import {CompressDataListener} from "../listener/CompressDataListener.ets"
|
import {CompressDataListener} from "../listener/CompressDataListener"
|
||||||
|
|
||||||
export abstract class CompressAdapter implements CompressProvider {
|
export abstract class CompressAdapter implements CompressProvider {
|
||||||
mData: ArrayBuffer;
|
mData: ArrayBuffer;
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CompressAdapter, PixelMapFormat} from '../provider/CompressAdapter.ets'
|
import {CompressAdapter, PixelMapFormat} from '../provider/CompressAdapter'
|
||||||
import {CompressDataListener} from '../listener/CompressDataListener.ets'
|
import {CompressDataListener} from '../listener/CompressDataListener'
|
||||||
import {FileUtils} from '../../../cache/FileUtils.ets'
|
import {FileUtils} from '../../../cache/FileUtils'
|
||||||
|
|
||||||
export class DataStringPathProvider extends CompressAdapter {
|
export class DataStringPathProvider extends CompressAdapter {
|
||||||
constructor(s: string) {
|
constructor(s: string) {
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CompressAdapter, PixelMapFormat} from "../provider/CompressAdapter.ets"
|
import {CompressAdapter, PixelMapFormat} from "../provider/CompressAdapter"
|
||||||
import resmgr from '@ohos.resourceManager'
|
import resmgr from '@ohos.resourceManager'
|
||||||
import {CompressDataListener} from "../listener/CompressDataListener.ets"
|
import {CompressDataListener} from "../listener/CompressDataListener"
|
||||||
import {FileTypeUtil} from '../../../glide/utils/FileTypeUtil.ets'
|
import {FileTypeUtil} from '../../../glide/utils/FileTypeUtil'
|
||||||
|
|
||||||
export class RecourseProvider extends CompressAdapter {
|
export class RecourseProvider extends CompressAdapter {
|
||||||
private static CHARS: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
private static CHARS: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
|
|
||||||
export namespace Crop {
|
export namespace Crop {
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CropOptions} from "../crop/CropOptions.ets";
|
import {CropOptions} from "../crop/CropOptions";
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export struct CropImage {
|
export struct CropImage {
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {FileTypeUtil} from "../../glide/utils/FileTypeUtil.ets"
|
import {FileTypeUtil} from "../../glide/utils/FileTypeUtil"
|
||||||
import {GlideData} from "../GlideData.ets"
|
import {GlideData} from "../GlideData"
|
||||||
import {ParseImageUtil} from '../utils/ParseImageUtil.ets'
|
import {ParseImageUtil} from '../utils/ParseImageUtil'
|
||||||
import {ParseResClient} from '../resourcemanage/ParseResClient.ets'
|
import {ParseResClient} from '../resourcemanage/ParseResClient'
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
export class ErrorHolderManager {
|
export class ErrorHolderManager {
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {ResourceTypeEts} from "../../glide/constants/ResourceTypeEts.ets"
|
import {ResourceTypeEts} from "../../glide/constants/ResourceTypeEts"
|
||||||
import {Base64} from "../../cache/Base64.ets"
|
import {Base64} from "../../cache/Base64"
|
||||||
import {FileTypeUtil} from "../../glide/utils/FileTypeUtil.ets"
|
import {FileTypeUtil} from "../../glide/utils/FileTypeUtil"
|
||||||
import {GlideData} from "../GlideData.ets"
|
import {GlideData} from "../GlideData"
|
||||||
import {ParseImageUtil} from '../utils/ParseImageUtil.ets'
|
import {ParseImageUtil} from '../utils/ParseImageUtil'
|
||||||
import {ParseResClient} from '../resourcemanage/ParseResClient.ets'
|
import {ParseResClient} from '../resourcemanage/ParseResClient'
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {GlideData} from "../../glide/glidedata.ets"
|
import {GlideData} from "../../glide/glidedata"
|
||||||
|
|
||||||
export class AllCacheInfo {
|
export class AllCacheInfo {
|
||||||
memoryCacheInfo: {
|
memoryCacheInfo: {
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {IDataFetch} from "../networkmanage/IDataFetch.ets"
|
import {IDataFetch} from "../networkmanage/IDataFetch"
|
||||||
import {RequestOption} from "../RequestOption.ets"
|
import {RequestOption} from "../RequestOption"
|
||||||
import {Md5} from "../../cache/Md5.ets"
|
import {Md5} from "../../cache/Md5"
|
||||||
import{FileUtils} from "../../cache/FileUtils.ets"
|
import{FileUtils} from "../../cache/FileUtils"
|
||||||
|
|
||||||
import httpRequest from '@ohos.request';
|
import httpRequest from '@ohos.request';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {RequestOption} from "../RequestOption.ets"
|
import {RequestOption} from "../RequestOption"
|
||||||
|
|
||||||
// 网络接口
|
// 网络接口
|
||||||
export interface IDataFetch {
|
export interface IDataFetch {
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {IDataFetch} from "../networkmanage/IDataFetch.ets"
|
import {IDataFetch} from "../networkmanage/IDataFetch"
|
||||||
import {RequestOption} from "../RequestOption.ets"
|
import {RequestOption} from "../RequestOption"
|
||||||
import {Md5} from "../../cache/Md5.ets"
|
import {Md5} from "../../cache/Md5"
|
||||||
import {FileUtils} from "../../cache/FileUtils.ets"
|
import {FileUtils} from "../../cache/FileUtils"
|
||||||
import {ParseResClient} from "../../glide/resourcemanage/ParseResClient"
|
import {ParseResClient} from "../../glide/resourcemanage/ParseResClient"
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {Closeable} from "/glide/pngj/io/Closeable.ets"
|
import {Closeable} from "/glide/pngj/io/Closeable"
|
||||||
import {ImageInfo} from "/glide/pngj/entry/ImageInfo.ets"
|
import {ImageInfo} from "/glide/pngj/entry/ImageInfo"
|
||||||
|
|
||||||
export class PngReader implements Closeable {
|
export class PngReader implements Closeable {
|
||||||
private static LOG_TAG: string= "PngReader";
|
private static LOG_TAG: string= "PngReader";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {PngjException} from "../PngjException.ets"
|
import {PngjException} from "../PngjException"
|
||||||
|
|
||||||
export class ImageInfo {
|
export class ImageInfo {
|
||||||
private static MAX_COLS_ROW: number= 16777216;
|
private static MAX_COLS_ROW: number= 16777216;
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {ICache} from "../requestmanage/ICache.ets"
|
import {ICache} from "../requestmanage/ICache"
|
||||||
import {DiskLruCache} from "../../cache/DiskLruCache.ets"
|
import {DiskLruCache} from "../../cache/DiskLruCache"
|
||||||
|
|
||||||
export class DiskCacheProxy implements ICache<string, ArrayBuffer> {
|
export class DiskCacheProxy implements ICache<string, ArrayBuffer> {
|
||||||
private mDiskLruCache: DiskLruCache;
|
private mDiskLruCache: DiskLruCache;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {ICache} from "../requestmanage/ICache.ets"
|
import {ICache} from "../requestmanage/ICache"
|
||||||
import {LruCache} from "../../cache/LruCache"
|
import {LruCache} from "../../cache/LruCache"
|
||||||
|
|
||||||
export class MemoryCacheProxy <K, V> implements ICache<K, V> {
|
export class MemoryCacheProxy <K, V> implements ICache<K, V> {
|
||||||
|
|
|
@ -13,20 +13,20 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {DiskLruCache} from "../../cache/DiskLruCache.ets"
|
import {DiskLruCache} from "../../cache/DiskLruCache"
|
||||||
import {LruCache} from "../../cache/LruCache"
|
import {LruCache} from "../../cache/LruCache"
|
||||||
import {FileUtils} from "../../cache/FileUtils.ets"
|
import {FileUtils} from "../../cache/FileUtils"
|
||||||
import {Md5} from "../../cache/Md5.ets"
|
import {Md5} from "../../cache/Md5"
|
||||||
import{MemoryCacheProxy} from "../requestmanage/MemoryCacheProxy.ets"
|
import{MemoryCacheProxy} from "../requestmanage/MemoryCacheProxy"
|
||||||
import{DiskCacheProxy} from "../requestmanage/DiskCacheProxy.ets"
|
import{DiskCacheProxy} from "../requestmanage/DiskCacheProxy"
|
||||||
import{FileTypeUtil} from "../utils/FileTypeUtil.ets"
|
import{FileTypeUtil} from "../utils/FileTypeUtil"
|
||||||
import{IDataFetch} from "../../glide/networkmanage/IDataFetch.ets"
|
import{IDataFetch} from "../../glide/networkmanage/IDataFetch"
|
||||||
import{IResourceFetch} from "../../glide/resourcemanage/IResourceFetch.ets"
|
import{IResourceFetch} from "../../glide/resourcemanage/IResourceFetch"
|
||||||
import{GlideData} from "../GlideData.ets"
|
import{GlideData} from "../GlideData"
|
||||||
import {AllCacheInfo, IAllCacheInfoCallback} from "../../glide/interface/iallcacheinfocallback.ets"
|
import {AllCacheInfo, IAllCacheInfoCallback} from "../../glide/interface/iallcacheinfocallback"
|
||||||
import{ParseImageUtil} from '../utils/ParseImageUtil'
|
import{ParseImageUtil} from '../utils/ParseImageUtil'
|
||||||
import{IParseImage} from '../interface/IParseImage.ets'
|
import{IParseImage} from '../interface/IParseImage'
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
export interface AsyncString {
|
export interface AsyncString {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {RequestOption} from "../RequestOption.ets"
|
import {RequestOption} from "../RequestOption"
|
||||||
|
|
||||||
// 本地资源解析抽象接口
|
// 本地资源解析抽象接口
|
||||||
export interface IResourceFetch {
|
export interface IResourceFetch {
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {IResourceFetch} from '../resourcemanage/IResourceFetch.ets'
|
import {IResourceFetch} from '../resourcemanage/IResourceFetch'
|
||||||
import {ResourceTypeEts} from '../../glide/constants/ResourceTypeEts.ets'
|
import {ResourceTypeEts} from '../../glide/constants/ResourceTypeEts'
|
||||||
|
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {IResourceFetch} from '../resourcemanage/IResourceFetch.ets'
|
import {IResourceFetch} from '../resourcemanage/IResourceFetch'
|
||||||
import {ResourceTypeEts} from '../../glide/constants/ResourceTypeEts.ets'
|
import {ResourceTypeEts} from '../../glide/constants/ResourceTypeEts'
|
||||||
import {Base64} from '../../cache/Base64.ets'
|
import {Base64} from '../../cache/Base64'
|
||||||
|
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
|
|
||||||
export interface BaseTransform<T> {
|
export interface BaseTransform<T> {
|
||||||
//实现类 返回作为key生成的一部分
|
//实现类 返回作为key生成的一部分
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
import {fastBlur} from "../utils/FastBlur"
|
import {fastBlur} from "../utils/FastBlur"
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
|
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
export class CropCircleWithBorderTransformation implements BaseTransform<PixelMap> {
|
export class CropCircleWithBorderTransformation implements BaseTransform<PixelMap> {
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
|
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
|
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
export class GrayscaleTransformation implements BaseTransform<PixelMap> {
|
export class GrayscaleTransformation implements BaseTransform<PixelMap> {
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
import {pixelUtils} from "../utils/PixelUtils"
|
import {pixelUtils} from "../utils/PixelUtils"
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
|
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {ArcPoint} from "../entry/ArcPoint.ets"
|
import {ArcPoint} from "../entry/ArcPoint"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import {TransformUtils} from "../transform/TransformUtils.ets"
|
import {TransformUtils} from "../transform/TransformUtils"
|
||||||
|
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from "../transform/BaseTransform.ets"
|
import {BaseTransform} from "../transform/BaseTransform"
|
||||||
import {AsyncTransform} from "../transform/AsyncTransform.ets"
|
import {AsyncTransform} from "../transform/AsyncTransform"
|
||||||
import {Constants} from "../constants/Constants.ets"
|
import {Constants} from "../constants/Constants"
|
||||||
import {RequestOption} from "../../glide/RequestOption.ets"
|
import {RequestOption} from "../../glide/RequestOption"
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from '../transform/BaseTransform.ets'
|
import {BaseTransform} from '../transform/BaseTransform'
|
||||||
import {AsyncTransform} from '../transform/AsyncTransform.ets'
|
import {AsyncTransform} from '../transform/AsyncTransform'
|
||||||
import {Constants} from '../constants/Constants.ets'
|
import {Constants} from '../constants/Constants'
|
||||||
import {RequestOption} from '../../glide/RequestOption.ets'
|
import {RequestOption} from '../../glide/RequestOption'
|
||||||
import {TransformUtils} from '../transform/TransformUtils.ets'
|
import {TransformUtils} from '../transform/TransformUtils'
|
||||||
import image from '@ohos.multimedia.image'
|
import image from '@ohos.multimedia.image'
|
||||||
import {CalculatePixelUtils} from '../utils/CalculatePixelUtils'
|
import {CalculatePixelUtils} from '../utils/CalculatePixelUtils'
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {AsyncTransform} from '../transform/AsyncTransform.ets'
|
import {AsyncTransform} from '../transform/AsyncTransform'
|
||||||
import image from '@ohos.multimedia.image'
|
import image from '@ohos.multimedia.image'
|
||||||
|
|
||||||
export class TransformUtils {
|
export class TransformUtils {
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from '../BaseTransform.ets'
|
import {BaseTransform} from '../BaseTransform'
|
||||||
import {AsyncTransform} from '../AsyncTransform.ets'
|
import {AsyncTransform} from '../AsyncTransform'
|
||||||
import {Constants} from '../../constants/Constants.ets'
|
import {Constants} from '../../constants/Constants'
|
||||||
import {TransformUtils} from '../TransformUtils.ets'
|
import {TransformUtils} from '../TransformUtils'
|
||||||
import {RequestOption} from '../../../glide/RequestOption.ets'
|
import {RequestOption} from '../../../glide/RequestOption'
|
||||||
|
|
||||||
export class CenterCrop implements BaseTransform<PixelMap> {
|
export class CenterCrop implements BaseTransform<PixelMap> {
|
||||||
getName() {
|
getName() {
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from '../BaseTransform.ets'
|
import {BaseTransform} from '../BaseTransform'
|
||||||
import {AsyncTransform} from '../AsyncTransform.ets'
|
import {AsyncTransform} from '../AsyncTransform'
|
||||||
import {Constants} from '../../constants/Constants.ets'
|
import {Constants} from '../../constants/Constants'
|
||||||
import {TransformUtils} from '../TransformUtils.ets'
|
import {TransformUtils} from '../TransformUtils'
|
||||||
import {RequestOption} from '../../../glide/RequestOption.ets'
|
import {RequestOption} from '../../../glide/RequestOption'
|
||||||
|
|
||||||
export class CenterInside implements BaseTransform<PixelMap> {
|
export class CenterInside implements BaseTransform<PixelMap> {
|
||||||
getName() {
|
getName() {
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {BaseTransform} from '../BaseTransform.ets'
|
import {BaseTransform} from '../BaseTransform'
|
||||||
import {AsyncTransform} from '../AsyncTransform.ets'
|
import {AsyncTransform} from '../AsyncTransform'
|
||||||
import {Constants} from '../../constants/Constants.ets'
|
import {Constants} from '../../constants/Constants'
|
||||||
import {TransformUtils} from '../TransformUtils.ets'
|
import {TransformUtils} from '../TransformUtils'
|
||||||
import {RequestOption} from '../../../glide/RequestOption.ets'
|
import {RequestOption} from '../../../glide/RequestOption'
|
||||||
|
|
||||||
export class FitCenter implements BaseTransform<PixelMap> {
|
export class FitCenter implements BaseTransform<PixelMap> {
|
||||||
getName() {
|
getName() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import{IParseImage} from '../interface/IParseImage.ets'
|
import{IParseImage} from '../interface/IParseImage'
|
||||||
import image from '@ohos.multimedia.image';
|
import image from '@ohos.multimedia.image';
|
||||||
|
|
||||||
export class ParseImageUtil implements IParseImage {
|
export class ParseImageUtil implements IParseImage {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Glide} from '../glide/Glide.ets'
|
import {Glide} from '../glide/Glide'
|
||||||
import {PixelMapPack} from '../glide/PixelMapPack.ets'
|
import {PixelMapPack} from '../glide/PixelMapPack'
|
||||||
import {OnRenameListener} from '../glide/compress/listener/OnRenameListener.ets'
|
import {OnRenameListener} from '../glide/compress/listener/OnRenameListener'
|
||||||
import {OnCompressListener} from '../glide/compress/listener/OnCompressListener.ets'
|
import {OnCompressListener} from '../glide/compress/listener/OnCompressListener'
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CropImage} from '../glide/crop/CropImage.ets'
|
import {CropImage} from '../glide/crop/CropImage'
|
||||||
import {CropOptions} from '../glide/crop/CropOptions.ets'
|
import {CropOptions} from '../glide/crop/CropOptions'
|
||||||
import {Crop} from '../glide/crop/Crop.ets'
|
import {Crop} from '../glide/crop/Crop'
|
||||||
import {RecourseProvider} from '../glide/compress/provider/RecourseProvider.ets'
|
import {RecourseProvider} from '../glide/compress/provider/RecourseProvider'
|
||||||
import {PixelMapPack} from "../glide/PixelMapPack.ets";
|
import {PixelMapPack} from "../glide/PixelMapPack";
|
||||||
|
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {RequestOption} from "../glide/RequestOption.ets"
|
import {RequestOption} from "../glide/RequestOption"
|
||||||
import {CropCircleTransformation} from "../glide/transform/CropCircleTransformation.ets"
|
import {CropCircleTransformation} from "../glide/transform/CropCircleTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
import {CropCircleWithBorderTransformation} from "../glide/transform/CropCircleWithBorderTransformation.ets"
|
import {CropCircleWithBorderTransformation} from "../glide/transform/CropCircleWithBorderTransformation"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {CropSquareTransformation} from "../glide/transform/CropSquareTransformation.ets"
|
import {CropSquareTransformation} from "../glide/transform/CropSquareTransformation"
|
||||||
import {CropTransformation} from "../glide/transform/CropTransformation.ets"
|
import {CropTransformation} from "../glide/transform/CropTransformation"
|
||||||
import {CropType} from "../glide/transform/CropTransformation"
|
import {CropType} from "../glide/transform/CropTransformation"
|
||||||
import {GrayscaleTransformation} from "../glide/transform/GrayscaleTransformation"
|
import {GrayscaleTransformation} from "../glide/transform/GrayscaleTransformation"
|
||||||
import {BrightnessFilterTransformation} from "../glide/transform/BrightnessFilterTransformation"
|
import {BrightnessFilterTransformation} from "../glide/transform/BrightnessFilterTransformation"
|
||||||
|
@ -28,7 +28,7 @@ import {SepiaFilterTransformation} from "../glide/transform/SepiaFilterTransform
|
||||||
import {SketchFilterTransformation} from "../glide/transform/SketchFilterTransformation"
|
import {SketchFilterTransformation} from "../glide/transform/SketchFilterTransformation"
|
||||||
import {BlurTransformation} from "../glide/transform/BlurTransformation"
|
import {BlurTransformation} from "../glide/transform/BlurTransformation"
|
||||||
import {PixelationFilterTransformation} from "../glide/transform/PixelationFilterTransformation"
|
import {PixelationFilterTransformation} from "../glide/transform/PixelationFilterTransformation"
|
||||||
import {PixelMapPack} from "../glide/PixelMapPack.ets";
|
import {PixelMapPack} from "../glide/PixelMapPack";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PixelMap transform 示例
|
* PixelMap transform 示例
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import featureAbility from '@ohos.ability.featureAbility';
|
import featureAbility from '@ohos.ability.featureAbility';
|
||||||
import {FileUtils} from '../cache/FileUtils.ets'
|
import {FileUtils} from '../cache/FileUtils'
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import featureAbility from '@ohos.ability.featureAbility';
|
import featureAbility from '@ohos.ability.featureAbility';
|
||||||
import {FileUtils} from '../cache/FileUtils.ets'
|
import {FileUtils} from '../cache/FileUtils'
|
||||||
import {FileTypeUtil} from '../glide/utils/FileTypeUtil.ets'
|
import {FileTypeUtil} from '../glide/utils/FileTypeUtil'
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
import {Base64} from '../cache/Base64.ets'
|
import {Base64} from '../cache/Base64'
|
||||||
import {PixelMapPack} from '../glide/PixelMapPack.ets'
|
import {PixelMapPack} from '../glide/PixelMapPack'
|
||||||
import {ParseImageUtil} from '../glide/utils/ParseImageUtil.ets'
|
import {ParseImageUtil} from '../glide/utils/ParseImageUtil'
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import featureAbility from '@ohos.ability.featureAbility';
|
import featureAbility from '@ohos.ability.featureAbility';
|
||||||
import {FileUtils} from '../cache/FileUtils.ets'
|
import {FileUtils} from '../cache/FileUtils'
|
||||||
import {FileTypeUtil} from '../glide/utils/FileTypeUtil.ets'
|
import {FileTypeUtil} from '../glide/utils/FileTypeUtil'
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
import {Base64} from '../cache/Base64.ets'
|
import {Base64} from '../cache/Base64'
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {FileUtils} from "../cache/FileUtils.ets"
|
import {FileUtils} from "../cache/FileUtils"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
import image from "@ohos.multimedia.image"
|
import image from "@ohos.multimedia.image"
|
||||||
@Entry
|
@Entry
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RequestOption} from "../glide/RequestOption.ets"
|
import {RequestOption} from "../glide/RequestOption"
|
||||||
import {GlideData} from "../glide/GlideData.ets"
|
import {GlideData} from "../glide/GlideData"
|
||||||
import {PixelMapPack} from "../glide/PixelMapPack.ets"
|
import {PixelMapPack} from "../glide/PixelMapPack"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import featureAbility from '@ohos.ability.featureAbility';
|
import featureAbility from '@ohos.ability.featureAbility';
|
||||||
import {LruCache} from '../cache/LruCache.ets'
|
import {LruCache} from '../cache/LruCache'
|
||||||
|
|
||||||
function getRandomInt(min, max) {
|
function getRandomInt(min, max) {
|
||||||
min = Math.ceil(min);
|
min = Math.ceil(min);
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {RequestOption} from "../glide/RequestOption.ets"
|
import {RequestOption} from "../glide/RequestOption"
|
||||||
import {AllCacheInfo,IAllCacheInfoCallback} from "../glide/interface/iallcacheinfocallback.ets"
|
import {AllCacheInfo,IAllCacheInfoCallback} from "../glide/interface/iallcacheinfocallback"
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {PixelMapPack} from "../glide/PixelMapPack.ets"
|
import {PixelMapPack} from "../glide/PixelMapPack"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from '../glide/GlideImage.ets'
|
import {GlideImage} from '../glide/GlideImage'
|
||||||
import {GlideOption} from '../glide/GlideOption.ets'
|
import {GlideOption} from '../glide/GlideOption'
|
||||||
import {RotateImageTransformation} from '../glide/transform/RotateImageTransformation.ets'
|
import {RotateImageTransformation} from '../glide/transform/RotateImageTransformation'
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from '../glide/GlideImage.ets'
|
import {GlideImage} from '../glide/GlideImage'
|
||||||
import {GlideOption} from '../glide/GlideOption.ets'
|
import {GlideOption} from '../glide/GlideOption'
|
||||||
import {RotateImageTransformation} from '../glide/transform/RotateImageTransformation.ets'
|
import {RotateImageTransformation} from '../glide/transform/RotateImageTransformation'
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
*/
|
*/
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
import util from '@ohos.util';
|
import util from '@ohos.util';
|
||||||
import {RequestOption} from "../glide/RequestOption.ets"
|
import {RequestOption} from "../glide/RequestOption"
|
||||||
//import {Glide} from '../glide/Glide'
|
//import {Glide} from '../glide/Glide'
|
||||||
import{ALL} from "../cache/diskstrategy/enum/ALL"
|
import{ALL} from "../cache/diskstrategy/enum/ALL"
|
||||||
import{NONE} from "../cache/diskstrategy/enum/NONE"
|
import{NONE} from "../cache/diskstrategy/enum/NONE"
|
||||||
import {AsyncCallback} from "../glide/interface/asynccallback.ets"
|
import {AsyncCallback} from "../glide/interface/asynccallback"
|
||||||
import {AsyncSuccess} from "../glide/interface/AsyncSuccess.ets"
|
import {AsyncSuccess} from "../glide/interface/AsyncSuccess"
|
||||||
|
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from '../glide/GlideImage.ets'
|
import {GlideImage} from '../glide/GlideImage'
|
||||||
import {GlideOption} from '../glide/GlideOption.ets'
|
import {GlideOption} from '../glide/GlideOption'
|
||||||
import {RequestOption} from '../glide/RequestOption.ets'
|
import {RequestOption} from '../glide/RequestOption'
|
||||||
import {RotateImageTransformation} from '../glide/transform/RotateImageTransformation.ets'
|
import {RotateImageTransformation} from '../glide/transform/RotateImageTransformation'
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {RequestOption} from "../glide/RequestOption.ets"
|
import {RequestOption} from "../glide/RequestOption"
|
||||||
import{NONE} from "../cache/diskstrategy/enum/NONE"
|
import{NONE} from "../cache/diskstrategy/enum/NONE"
|
||||||
import {Base64} from "../cache/Base64.ets"
|
import {Base64} from "../cache/Base64"
|
||||||
import {FileTypeUtil} from "../glide/utils/FileTypeUtil.ets"
|
import {FileTypeUtil} from "../glide/utils/FileTypeUtil"
|
||||||
import {GlideData} from "../glide/GlideData.ets"
|
import {GlideData} from "../glide/GlideData"
|
||||||
|
|
||||||
import resourceManager from '@ohos.resourceManager';
|
import resourceManager from '@ohos.resourceManager';
|
||||||
@Entry
|
@Entry
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {GlideImage} from "../glide/GlideImage.ets"
|
import {GlideImage} from "../glide/GlideImage"
|
||||||
import {GlideOption} from "../glide/GlideOption.ets"
|
import {GlideOption} from "../glide/GlideOption"
|
||||||
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation.ets"
|
import {RotateImageTransformation} from "../glide/transform/RotateImageTransformation"
|
||||||
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation.ets"
|
import {RoundedCornersTransformation} from "../glide/transform/RoundedCornersTransformation"
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
|
|
Loading…
Reference in New Issue