import { Base64Resource, DrawableResource, Group, Panel, jsx, Color, layoutConfig, Image, RemoteResource, MainBundleResource, Scroller, VLayout, Text, Gravity, resourceLoader, } from "doric"; import { colors, label } from "./utils"; import { img_base64 } from "./image_base64"; import { loge } from "doric/lib/src/util/log"; @Entry export class ResourceDemo extends Panel { build(root: Group): void { Image Demo {label("Button")} { const resource = new RemoteResource( "https://p.upyun.com/demo/webp/webp/jpg-0.webp" ); const rawData = await resourceLoader(context).load(resource); loge(rawData.byteLength); }} /> ; } }