ooxast-util-get-style
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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

Package Sidebar

Install

npm i ooxast-util-get-style

Weekly Downloads

4

Version

0.4.1

License

GPL-3.0-or-later

Unpacked Size

8.78 kB

Total Files

10

Last publish

Collaborators

  • tefkah