/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | dimension.cpp | 184 auto maxFontScale = maxOptional.value_or(static_cast<float>(INT32_MAX)); in ConvertToPxDistribute() local 188 return ConvertToPxByCustomFontScale(minFontScale, maxFontScale); in ConvertToPxDistribute() 191 double Dimension::ConvertToPxByCustomFontScale(float minFontScale, float maxFontScale) const in ConvertToPxByCustomFontScale() 195 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByCustomFontScale() 203 float maxFontScale = pipeline->GetMaxAppFontScale(); in ConvertToPxByAppFontScale() local 204 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByAppFontScale() 213 float maxFontScale = pipeline->GetMaxAppFontScale(); in ConvertToVpByAppFontScale() local 214 float fontScale = std::clamp(pipeline->GetFontScale(), 0.0f, maxFontScale); in ConvertToVpByAppFontScale()
|
H A D | dimension.h | 157 double ConvertToPxByCustomFontScale(float minFontScale, float maxFontScale) const;
|
/foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces/ |
H A D | segmentbutton.js | 748 this.a3 = new SynchedPropertyObjectOneWayPU(params.maxFontScale, this, "maxFontScale"); 768 this.a3.reset(params.maxFontScale); 813 get maxFontScale() { 817 set maxFontScale(newValue) { 935 Text.maxFontScale(ObservedObject.GetRawObject(this.maxFontScale)); 1099 this.a3 = new SynchedPropertyObjectOneWayPU(params.maxFontScale, this, "maxFontScale"); 1131 this.a3.reset(params.maxFontScale); [all...] |
/foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces/ |
H A D | selecttitlebar.js | 464 this.maxFontScale = 1; 526 if (params.maxFontScale !== undefined) { 527 this.maxFontScale = params.maxFontScale; 659 this.maxFontScale = uiContent.getMaxFontScale(); 679 return Math.min(this.systemFontScale, this.maxFontScale); 963 this.maxFontScale = 1; 1021 if (params.maxFontScale !== undefined) { 1022 this.maxFontScale = params.maxFontScale; [all...] |
/foundation/arkui/ace_engine/advanced_ui_component/composetitlebar/interfaces/ |
H A D | composetitlebar.js | 360 this.maxFontScale = 1; 420 if (j7.maxFontScale !== undefined) { 421 this.maxFontScale = j7.maxFontScale; 514 this.maxFontScale = b7.getMaxFontScale(); 537 return Math.min(this.systemFontScale, this.maxFontScale); 854 this.maxFontScale = 1; 910 if (v2.maxFontScale !== undefined) { 911 this.maxFontScale = v2.maxFontScale; [all...] |
/foundation/arkui/ace_engine/advanced_ui_component/exceptionprompt/interfaces/ |
H A D | exceptionprompt.js | 179 Text.maxFontScale(Math.min(this.updateFontScale(), 2)); 273 Text.maxFontScale(Math.min(this.updateFontScale(), 2));
|
/foundation/arkui/ace_engine/advanced_ui_component/editabletitlebar/interfaces/ |
H A D | editabletitlebar.js | 112 this.maxFontScale = 1; 159 if (l10.maxFontScale !== undefined) { 160 this.maxFontScale = l10.maxFontScale; 228 this.maxFontScale = c10.getMaxFontScale(); 242 return Math.min(this.systemFontScale, this.maxFontScale);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/interfaces/ |
H A D | customtitle.js | 156 Text.maxFontScale(1.45);
|
/foundation/arkui/ace_engine/advanced_ui_component/tabtitlebar/interfaces/ |
H A D | tabtitlebar.js | 389 this.maxFontScale = 1; 449 if (a6.maxFontScale !== undefined) { 450 this.maxFontScale = a6.maxFontScale; 550 this.maxFontScale = s5.getMaxFontScale(); 570 return Math.min(this.systemFontScale, this.maxFontScale);
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | text_style.h | 321 void SetMaxFontScale(float maxFontScale) in SetMaxFontScale() argument 323 maxFontScale_ = maxFontScale; in SetMaxFontScale()
|
/foundation/arkui/ace_engine/advanced_ui_component/composelistitem/interfaces/ |
H A D | composelistitem.js | 1248 this.maxFontScale = this.getUIContext().getMaxFontScale(); 1317 if (s2.maxFontScale !== undefined) { 1318 this.maxFontScale = s2.maxFontScale; 1662 return Math.min(this.maxFontScale, this.getUIContext().getHostContext()?.config.fontSizeScale ?? 1);
|
/foundation/arkui/ace_engine/advanced_ui_component/filter/interfaces/ |
H A D | filter.js | 461 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE)); 959 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE)); 1117 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE)); 2106 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE)); 2273 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE)); 2603 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_text.cpp | 248 double maxFontScale; in SetMaxFontScale() local 249 if (info.Length() < 1 || !ParseJsDouble(info[0], maxFontScale)) { in SetMaxFontScale() 252 if (LessOrEqual(maxFontScale, 1.0f)) { in SetMaxFontScale() 256 TextModel::GetInstance()->SetMaxFontScale(static_cast<float>(maxFontScale)); in SetMaxFontScale() 1096 JSClass<JSText>::StaticMethod("maxFontScale", &JSText::SetMaxFontScale, opt); in JSBind()
|
H A D | js_view_context.cpp | 929 auto maxFontScale = pipelineContext->GetMaxAppFontScale(); in GetMaxFontScale() local 930 auto maxFontScaleRef = JSRef<JSVal>::Make(JSVal(ToJSValue(maxFontScale))); in GetMaxFontScale()
|
/foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/interfaces/ |
H A D | gridobjectsortcomponent.js | 1219 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale)); 1260 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale)); 1384 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale)); 1523 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale)); 1612 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale));
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_text_bridge.cpp | 527 double maxFontScale; in SetMaxFontScale() local 528 if (!ArkTSUtils::ParseJsDouble(vm, secondArg, maxFontScale)) { in SetMaxFontScale() 531 if (LessOrEqual(maxFontScale, 1.0f)) { in SetMaxFontScale() 532 maxFontScale = 1.0f; in SetMaxFontScale() 534 GetArkUINodeModifiers()->getTextModifier()->setTextMaxFontScale(nativeNode, static_cast<float>(maxFontScale)); in SetMaxFontScale()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsUIContext.js | 693 let maxFontScale = Context.getMaxFontScale(); 695 return maxFontScale;
|
H A D | arkComponent.js | 11856 maxFontScale(value) {
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_pattern.cpp | 1784 float maxFontScale = MAX_FONT_SCALE; in CreateOrUpdateSymbol() local 1786 maxFontScale = std::min(pipeline->GetMaxAppFontScale(), MAX_FONT_SCALE); in CreateOrUpdateSymbol() 1788 layoutProperty->UpdateMaxFontScale(maxFontScale); in CreateOrUpdateSymbol()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_layout_algorithm.cpp | 233 float maxFontScale = pattern->GetMaxFontSizeScale().has_value() ? in ApplyIndent() local 235 float fontScale = std::min(pipeline->GetFontScale(), maxFontScale); in ApplyIndent()
|
H A D | text_field_pattern.cpp | 7064 float maxFontScale = pipeline->GetMaxAppFontScale(); in OnBackPressed() local 7069 dumpLog.AddDesc(std::string("maxFontScale: ").append(std::to_string(maxFontScale))); in OnBackPressed()
|
/foundation/arkui/ace_engine/advanced_ui_component/treeview/interfaces/ |
H A D | treeview.js | 1033 Text.maxFontScale(this.decideFontScale()); 1116 Text.maxFontScale(this.decideFontScale()); 3770 Text.maxFontScale(this.decideFontScale()); 3986 Text.maxFontScale(this.decideFontScale()); 4106 Text.maxFontScale(this.decideFontScale());
|
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/ |
H A D | dialog.js | 3208 Text.maxFontScale(Math.min(this.appMaxFontScale, MAX_FONT_SCALE)); 3249 Text.maxFontScale(Math.min(this.appMaxFontScale, MAX_FONT_SCALE));
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_pattern.cpp | 3343 float maxFontScale = pipeline->GetMaxAppFontScale(); in DumpScaleInfo() local 3348 dumpLog.AddDesc(std::string("maxFontScale: ").append(std::to_string(maxFontScale))); in DumpScaleInfo()
|