@univerjscorevariablesDefault Styles

@univerjs/core v0.5.0-beta.1Docs


Variable: DEFAULT_STYLES

const DEFAULT_STYLES: {
  bg: {
     rgb: '#fff';
    };
  bl: BooleanNumber.FALSE;
  cl: {
     rgb: '#000';
    };
  ff: 'Arial';
  fs: 11;
  ht: HorizontalAlign.UNSPECIFIED;
  it: BooleanNumber.FALSE;
  n: null;
  ol: {
     s: BooleanNumber.FALSE;
    };
  pd: {
     b: 0;
     l: 0;
     r: 0;
     t: 0;
    };
  st: {
     s: BooleanNumber.FALSE;
    };
  tb: WrapStrategy.UNSPECIFIED;
  td: TextDirection.UNSPECIFIED;
  tr: {
     a: 0;
     v: BooleanNumber.FALSE;
    };
  ul: {
     s: BooleanNumber.FALSE;
    };
  vt: VerticalAlign.UNSPECIFIED;
};

Default styles.

Type declaration

NameTypeDefault valueDescriptionDefined in
bg{ rgb: '#fff'; }-backgroundpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:132
bg.rgbstring’#fff’-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:133
blBooleanNumberBooleanNumber.FALSEbold 0: false 1: truepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:89
cl{ rgb: '#000'; }-colorpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:126
cl.rgbstring’#000’-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:127
ffstring’Arial’fontFamilypackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:73
fsnumber11fontSizepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:77
htHorizontalAlignHorizontalAlign.UNSPECIFIEDhorizontalAlignmentpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:138
itBooleanNumberBooleanNumber.FALSEitalic 0: false 1: truepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:83
nnullnull-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:156
ol{ s: BooleanNumber.FALSE; }-overlinepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:105
ol.sBooleanNumberBooleanNumber.FALSE-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:106
pd{ b: 0; l: 0; r: 0; t: 0; }-paddingpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:150
pd.bnumber0-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:153
pd.lnumber0-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:154
pd.rnumber0-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:152
pd.tnumber0-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:151
st{ s: BooleanNumber.FALSE; }-strikethroughpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:99
st.sBooleanNumberBooleanNumber.FALSE-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:100
tbWrapStrategyWrapStrategy.UNSPECIFIEDwrapStrategypackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:146
tdTextDirectionTextDirection.UNSPECIFIEDtextDirectionpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:122
tr{ a: 0; v: BooleanNumber.FALSE; }-textRotationpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:111
tr.anumber0-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:112
tr.vBooleanNumberBooleanNumber.FALSEtrue : 1 false : 0packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:117
ul{ s: BooleanNumber.FALSE; }-underlinepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:93
ul.sBooleanNumberBooleanNumber.FALSE-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:94
vtVerticalAlignVerticalAlign.UNSPECIFIEDverticalAlignmentpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:142

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/types/const/const.ts:69