انتقل إلى المحتوى

pivotick v3.0.0


محورية / RendererOptions / LabelStyle

واجهة: LabelStyle ​

محدد في: interfaces/RendererOptions.ts:721

خصائص ​

backgroundColor ​

backgroundColor: string

محدد في: interfaces/RendererOptions.ts:723

الافتراضي ​

ts
#ffffff90

color ​

color: string

محدد في: interfaces/RendererOptions.ts:729

الافتراضي ​

ts
#333

fontFamily ​

fontFamily: string

محدد في: interfaces/RendererOptions.ts:727

الافتراضي ​

ts
system-ui, sans-serif

fontSize ​

fontSize: number

محدد في: interfaces/RendererOptions.ts:725

الافتراضي ​

ts
12

labelAccessor()? ​

optional labelAccessor: (edge) => string | void | HTMLElement

محدد في: interfaces/RendererOptions.ts:736

المعلمات ​

edge ​

Edge

المرتجعات ​

string | void | HTMLElement


styleCb()? ​

optional styleCb: (edge) => Partial<LabelStyle>

محدد في: interfaces/RendererOptions.ts:735

رد الاتصال لتجاوز خصائص نمط التسمية ديناميكيًا بناءً على الحافة. على أسلوب التسمية الخاص بـ Edge يفوز تمامًا ؛ على render.defaultLabelStyle يملأ فقط ما تركه نمط الملصق الخاص بالحافة بدون ضبط.

المعلمات ​

edge ​

Edge

المرتجعات ​

Partial<LabelStyle>