跳至內容

字體計算器架構

txt
https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/C4DiagramConfig/properties/componentFont

返回 FontConfig 的 JavaScript 函式。

預設情況下,這些會返回適當的 *FontSize*FontFamily*FontWeight 值。

例如,名為 boundaryFont 的字體計算器可以定義為

javascript
boundaryFont: function () {
  return {
    fontFamily: this.boundaryFontFamily,
    fontSize: this.boundaryFontSize,
    fontWeight: this.boundaryFontWeight,
  };
}
抽象可擴展狀態可識別自訂屬性額外屬性存取限制定義於
是否可以實例化未知狀態未知可識別性禁止允許config.schema.json*

componentFont 類型

未知 (字體計算器)