Skip to content

Get style from a `w:p` or `w:r` element.

Notifications You must be signed in to change notification settings

TrialAndErrorOrg/ooxast-util-get-style

Repository files navigation

Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.

ooxast-util-get-style

npm version npm downloads

Get style from a w:p element.

Contents

What is this?

When should I use this?

Install

This package is ESM only. In Node.js (version 12.20 , 14.14 , 16.0 , 18.0 ), install as

pnpm add ooxast-util-get-style
# or with yarn
# yarn add ooxast-util-get-style
# or with npm
# npm install ooxast-util-get-style

Use

API


getPStyle()

Signature

getPStyle(p: P): string | null | undefined;

Parameters

Name Type
p P

Returns

string | null | undefined

Defined in: lib/ooxast-util-get-pstyle.ts:4


getRStyle()

Signature

getRStyle(r: R): RPrJSON;

Parameters

Name Type
r R

Returns

RPrJSON

Defined in: lib/ooxast-util-get-rstyle.ts:16


RPrAttributes

keyof RPrMap

Defined in: lib/ooxast-util-get-rstyle.ts:6


RPrJSON

RPrAttributes extends keyof RPrMap ? Partial<Record<w:${RPrAttributes}, RPrMap[RPrAttributes] | { w:val?: boolean; }>> : never

Defined in: lib/ooxast-util-get-rstyle.ts:7

Syntax tree

Types

Compatibility

Security

Related

Contribute

License

GPL-3.0-or-later © Thomas F. K. Jorna