HarmonyOS/OpenHarmony应用开发-ArkTS画布组件(八)
shadowOffsetYshadowOffsetY代码:xxx.etsEntryComponentstructShadowOffsetY{privatesettings:RenderingContextSettingsnewRenderingContextSettings(true)privatecontext:CanvasRenderingContext2DnewCanvasRenderingContext2D(this.settings)build(){Flex({direction:FlexDirection.Column,alignItems:ItemAlign.Center,justifyContent:FlexAlign.Center}){Canvas(this.context).width('100%').height('100%').backgroundCol...