demo报错修改
This commit is contained in:
parent
4fe7bce24e
commit
b4b2e24aec
|
@ -61,6 +61,7 @@ import { FileUtils } from '../cache/FileUtils'
|
|||
import util from '@ohos.util'
|
||||
import { DataFetchResult } from './networkmanage/DataFetchResult'
|
||||
import { BaseDownsampling } from './Downsampling/BaseDownsampling'
|
||||
import { DownsampleNone } from './Downsampling/DownsampleStartegy'
|
||||
|
||||
export interface Size {
|
||||
width: number,
|
||||
|
@ -108,7 +109,7 @@ export class RequestOption {
|
|||
loadSrc: string | PixelMap | Resource = '';
|
||||
strategy: DiskStrategy = new AUTOMATIC();
|
||||
//下采样相关
|
||||
downsampType: BaseDownsampling = new BaseDownsamplings()
|
||||
downsampType: BaseDownsampling = new DownsampleNone()
|
||||
dontAnimateFlag = false;
|
||||
placeholderSrc: string | PixelMap | Resource | undefined = undefined;
|
||||
placeholderFunc: AsyncSuccess<ImageKnifeData> | undefined = undefined;
|
||||
|
|
|
@ -51,7 +51,7 @@ export class GIFParseImpl implements IParseGif {
|
|||
let hValue: number = 0
|
||||
let wValue: number = 0
|
||||
imageSource.getImageInfo().then((value) => {
|
||||
hValue = Math.round(value.size. height);
|
||||
hValue = Math.round(value.size.height);
|
||||
wValue = Math.round(value.size.height);
|
||||
console.log('原始宽高:', JSON.stringify(value.size))
|
||||
console.log('classType', JSON.stringify(_request?.downsampType.getName()))
|
||||
|
|
Loading…
Reference in New Issue