Home
last modified time | relevance | path

Searched refs:pixelRound (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-pixelRound.md9 ## pixelRound section
11 pixelRound(value: PixelRoundPolicy)
49 当父组件出现1px的缝隙时,应利用pixelRound来指导布局调整。
77 .pixelRound({
85 .pixelRound({
97 在本示例中,当取消像素取整功能(即不设置父子组件上的pixelRound属性)后,初始状态表现为正常。用户可通过点击按钮来增加父组件的宽度,当前示例父组件宽度为301.2px,以此测试在不同宽度下的…
99 **图1** 采用pixelRound指导布局效果图
103 **图2** 不用pixelRound指导布局效果图
H A Dts-universal-attributes-background.md510 …两个blendMode所在组件大小严格相同。如果确认相同,可能是组件边界落在浮点数坐标上导致,可尝试设置[pixelRound](ts-universal-attributes-pixelRoun…
570 .pixelRound({
585 .pixelRound({
H A Dts-container-list.md314 > 由于浮点数计算精度,设置sticky后,在List滑动过程中小概率产生缝隙,可以通过[pixelRound](ts-universal-attributes-pixelRound.md#pixe…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-pixelRound.md3 …ble system pixel rounding for individual components by simply setting the **pixelRound** attribute.
9 ## pixelRound section
11 pixelRound(value: PixelRoundPolicy)
49 This example shows how to use **pixelRound** to guide layout adjustments when there is a 1 px gap i…
77 .pixelRound({
85 .pixelRound({
97 In this example, when pixel rounding is initially disabled (that is, the **pixelRound** attribute i…
99 **Figure 1** Layout with pixelRound
103 **Figure 2** Layout without pixelRound
H A Dts-universal-attributes-background.md499 …rdinates. In this case, set the universal attribute [pixelRound](ts-universal-attributes-pixelRoun…
559 .pixelRound({
574 .pixelRound({
H A Dts-container-list.md314 …scrolling. To address this issue, you can apply the [pixelRound](ts-universal-attributes-pixelRoun…
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-arkui-layout.md123 白线、暗线通常是因为相邻的同色控件边界落在了浮点数坐标上,图形层做了抗锯齿处理,视觉上产生了一条白线或暗线。可以通过pixelRound通用属性设置,
130 .pixelRound({end: PixelRoundCalcPolicy.FORCE_CEIL})
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-arkui-layout.md123 …g is performed at the graphics layer. To fix this issue, set the universal attribute **pixelRound**
130 .pixelRound({end: PixelRoundCalcPolicy.FORCE_CEIL})
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_layout_algorithm.cpp300 auto pixelRound = static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP) | in SearchButtonMeasure() local
302 buttonLayoutProperty->UpdatePixelRound(pixelRound); in SearchButtonMeasure()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A DReadme-CN.md94 - [组件级像素取整](arkui-ts/ts-universal-attributes-pixelRound.md)
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A DReadme-EN.md94 - [Component-Level Pixel Rounding](arkui-ts/ts-universal-attributes-pixelRound.md)
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkComponent.ts4661 pixelRound(value:PixelRoundPolicy): this {
/ohos5.0/docs/zh-cn/application-dev/
H A Dwebsite.md2219 - [组件级像素取整](reference/apis-arkui/arkui-ts/ts-universal-attributes-pixelRound.md)
/ohos5.0/docs/en/application-dev/
H A Dwebsite.md2105 …omponent-Level Pixel Rounding](reference/apis-arkui/arkui-ts/ts-universal-attributes-pixelRound.md)
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js4426 pixelRound(value) { method in ArkComponent