0.4.0 • Published 7 months ago

ooxast-util-get-style v0.4.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
7 months ago

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

NameType
pP

Returns

string | null | undefined

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


getRStyle()

Signature

getRStyle(r: P | R): RPrJSON | undefined;

Parameters

NameType
rPR

Returns

RPrJSON | undefined

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}, NonNullable<RPrMap[RPrAttributes]>number | { w:val?: string; }>> : 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