Skip to content

Latest commit

 

History

History
executable file
·
152 lines (105 loc) · 4.96 KB

File metadata and controls

executable file
·
152 lines (105 loc) · 4.96 KB

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: P | R): RPrJSON | undefined;

Parameters

| Name | Type | | :--- | :--- | --- | | r | P | R |

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]["attributes"] | { 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