feat: Image add setImagePixels API,iOS receive ArrayBuffer directly
This commit is contained in:
10
doric-web/dist/index.js
vendored
10
doric-web/dist/index.js
vendored
@@ -3314,14 +3314,8 @@ class Image extends View {
|
||||
getImagePixels(context) {
|
||||
return this.nativeChannel(context, "getImagePixels")();
|
||||
}
|
||||
toModel() {
|
||||
const ret = super.toModel();
|
||||
if (Reflect.has(ret.props, "imagePixels")) {
|
||||
const imagePixels = Reflect.get(ret.props, "imagePixels");
|
||||
const pixels = imagePixels.pixels;
|
||||
imagePixels.pixels = this.callback2Id(() => pixels);
|
||||
}
|
||||
return ret;
|
||||
setImagePixels(context, image) {
|
||||
return this.nativeChannel(context, "setImagePixels")(image);
|
||||
}
|
||||
}
|
||||
__decorate$b([
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user