dompdf.js 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -154
- package/dist/dom/node-parser.d.ts +1 -1
- package/dist/dompdf.esm.js +3243 -3257
- package/dist/dompdf.esm.js.map +1 -1
- package/dist/dompdf.js +3244 -3258
- package/dist/dompdf.js.map +1 -1
- package/dist/lib/__tests__/index.js +144 -0
- package/dist/lib/__tests__/index.js.map +1 -0
- package/dist/lib/core/__mocks__/cache-storage.js +10 -0
- package/dist/lib/core/__mocks__/cache-storage.js.map +1 -0
- package/dist/lib/core/__mocks__/context.js +22 -0
- package/dist/lib/core/__mocks__/context.js.map +1 -0
- package/dist/lib/core/__mocks__/features.js +12 -0
- package/dist/lib/core/__mocks__/features.js.map +1 -0
- package/dist/lib/core/__mocks__/logger.js +24 -0
- package/dist/lib/core/__mocks__/logger.js.map +1 -0
- package/dist/lib/core/__tests__/cache-storage.js +420 -0
- package/dist/lib/core/__tests__/cache-storage.js.map +1 -0
- package/dist/lib/core/__tests__/logger.js +28 -0
- package/dist/lib/core/__tests__/logger.js.map +1 -0
- package/dist/lib/core/bitwise.js +6 -0
- package/dist/lib/core/bitwise.js.map +1 -0
- package/dist/lib/core/cache-storage.js +198 -0
- package/dist/lib/core/cache-storage.js.map +1 -0
- package/dist/lib/core/context.js +18 -0
- package/dist/lib/core/context.js.map +1 -0
- package/dist/lib/core/debugger.js +25 -0
- package/dist/lib/core/debugger.js.map +1 -0
- package/dist/lib/core/features.js +193 -0
- package/dist/lib/core/features.js.map +1 -0
- package/dist/lib/core/logger.js +92 -0
- package/dist/lib/core/logger.js.map +1 -0
- package/dist/lib/core/util.js +5 -0
- package/dist/lib/core/util.js.map +1 -0
- package/dist/lib/css/IPropertyDescriptor.js +3 -0
- package/dist/lib/css/IPropertyDescriptor.js.map +1 -0
- package/dist/lib/css/ITypeDescriptor.js +3 -0
- package/dist/lib/css/ITypeDescriptor.js.map +1 -0
- package/dist/lib/css/index.js +216 -0
- package/dist/lib/css/index.js.map +1 -0
- package/dist/lib/css/layout/__mocks__/bounds.js +9 -0
- package/dist/lib/css/layout/__mocks__/bounds.js.map +1 -0
- package/dist/lib/css/layout/bounds.js +42 -0
- package/dist/lib/css/layout/bounds.js.map +1 -0
- package/dist/lib/css/layout/text.js +137 -0
- package/dist/lib/css/layout/text.js.map +1 -0
- package/dist/lib/css/property-descriptors/__tests__/background-tests.js +48 -0
- package/dist/lib/css/property-descriptors/__tests__/background-tests.js.map +1 -0
- package/dist/lib/css/property-descriptors/__tests__/font-family.js +25 -0
- package/dist/lib/css/property-descriptors/__tests__/font-family.js.map +1 -0
- package/dist/lib/css/property-descriptors/__tests__/paint-order.js +88 -0
- package/dist/lib/css/property-descriptors/__tests__/paint-order.js.map +1 -0
- package/dist/lib/css/property-descriptors/__tests__/text-shadow.js +94 -0
- package/dist/lib/css/property-descriptors/__tests__/text-shadow.js.map +1 -0
- package/dist/lib/css/property-descriptors/__tests__/transform-tests.js +18 -0
- package/dist/lib/css/property-descriptors/__tests__/transform-tests.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-clip.js +24 -0
- package/dist/lib/css/property-descriptors/background-clip.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-color.js +11 -0
- package/dist/lib/css/property-descriptors/background-color.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-image.js +24 -0
- package/dist/lib/css/property-descriptors/background-image.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-origin.js +24 -0
- package/dist/lib/css/property-descriptors/background-origin.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-position.js +17 -0
- package/dist/lib/css/property-descriptors/background-position.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-repeat.js +36 -0
- package/dist/lib/css/property-descriptors/background-repeat.js.map +1 -0
- package/dist/lib/css/property-descriptors/background-size.js +24 -0
- package/dist/lib/css/property-descriptors/background-size.js.map +1 -0
- package/dist/lib/css/property-descriptors/border-color.js +15 -0
- package/dist/lib/css/property-descriptors/border-color.js.map +1 -0
- package/dist/lib/css/property-descriptors/border-radius.js +18 -0
- package/dist/lib/css/property-descriptors/border-radius.js.map +1 -0
- package/dist/lib/css/property-descriptors/border-style.js +30 -0
- package/dist/lib/css/property-descriptors/border-style.js.map +1 -0
- package/dist/lib/css/property-descriptors/border-width.js +21 -0
- package/dist/lib/css/property-descriptors/border-width.js.map +1 -0
- package/dist/lib/css/property-descriptors/box-shadow.js +55 -0
- package/dist/lib/css/property-descriptors/box-shadow.js.map +1 -0
- package/dist/lib/css/property-descriptors/color.js +11 -0
- package/dist/lib/css/property-descriptors/color.js.map +1 -0
- package/dist/lib/css/property-descriptors/content.js +20 -0
- package/dist/lib/css/property-descriptors/content.js.map +1 -0
- package/dist/lib/css/property-descriptors/counter-increment.js +31 -0
- package/dist/lib/css/property-descriptors/counter-increment.js.map +1 -0
- package/dist/lib/css/property-descriptors/counter-reset.js +27 -0
- package/dist/lib/css/property-descriptors/counter-reset.js.map +1 -0
- package/dist/lib/css/property-descriptors/direction.js +19 -0
- package/dist/lib/css/property-descriptors/direction.js.map +1 -0
- package/dist/lib/css/property-descriptors/display.js +82 -0
- package/dist/lib/css/property-descriptors/display.js.map +1 -0
- package/dist/lib/css/property-descriptors/duration.js +15 -0
- package/dist/lib/css/property-descriptors/duration.js.map +1 -0
- package/dist/lib/css/property-descriptors/float.js +23 -0
- package/dist/lib/css/property-descriptors/float.js.map +1 -0
- package/dist/lib/css/property-descriptors/font-family.js +33 -0
- package/dist/lib/css/property-descriptors/font-family.js.map +1 -0
- package/dist/lib/css/property-descriptors/font-size.js +11 -0
- package/dist/lib/css/property-descriptors/font-size.js.map +1 -0
- package/dist/lib/css/property-descriptors/font-style.js +21 -0
- package/dist/lib/css/property-descriptors/font-style.js.map +1 -0
- package/dist/lib/css/property-descriptors/font-variant.js +14 -0
- package/dist/lib/css/property-descriptors/font-variant.js.map +1 -0
- package/dist/lib/css/property-descriptors/font-weight.js +26 -0
- package/dist/lib/css/property-descriptors/font-weight.js.map +1 -0
- package/dist/lib/css/property-descriptors/letter-spacing.js +22 -0
- package/dist/lib/css/property-descriptors/letter-spacing.js.map +1 -0
- package/dist/lib/css/property-descriptors/line-break.js +24 -0
- package/dist/lib/css/property-descriptors/line-break.js.map +1 -0
- package/dist/lib/css/property-descriptors/line-height.js +25 -0
- package/dist/lib/css/property-descriptors/line-height.js.map +1 -0
- package/dist/lib/css/property-descriptors/list-style-image.js +17 -0
- package/dist/lib/css/property-descriptors/list-style-image.js.map +1 -0
- package/dist/lib/css/property-descriptors/list-style-position.js +19 -0
- package/dist/lib/css/property-descriptors/list-style-position.js.map +1 -0
- package/dist/lib/css/property-descriptors/list-style-type.js +123 -0
- package/dist/lib/css/property-descriptors/list-style-type.js.map +1 -0
- package/dist/lib/css/property-descriptors/margin.js +14 -0
- package/dist/lib/css/property-descriptors/margin.js.map +1 -0
- package/dist/lib/css/property-descriptors/opacity.js +17 -0
- package/dist/lib/css/property-descriptors/opacity.js.map +1 -0
- package/dist/lib/css/property-descriptors/overflow-wrap.js +19 -0
- package/dist/lib/css/property-descriptors/overflow-wrap.js.map +1 -0
- package/dist/lib/css/property-descriptors/overflow.js +28 -0
- package/dist/lib/css/property-descriptors/overflow.js.map +1 -0
- package/dist/lib/css/property-descriptors/padding.js +15 -0
- package/dist/lib/css/property-descriptors/padding.js.map +1 -0
- package/dist/lib/css/property-descriptors/paint-order.js +34 -0
- package/dist/lib/css/property-descriptors/paint-order.js.map +1 -0
- package/dist/lib/css/property-descriptors/position.js +23 -0
- package/dist/lib/css/property-descriptors/position.js.map +1 -0
- package/dist/lib/css/property-descriptors/quotes.js +42 -0
- package/dist/lib/css/property-descriptors/quotes.js.map +1 -0
- package/dist/lib/css/property-descriptors/text-align.js +22 -0
- package/dist/lib/css/property-descriptors/text-align.js.map +1 -0
- package/dist/lib/css/property-descriptors/text-decoration-color.js +11 -0
- package/dist/lib/css/property-descriptors/text-decoration-color.js.map +1 -0
- package/dist/lib/css/property-descriptors/text-decoration-line.js +29 -0
- package/dist/lib/css/property-descriptors/text-decoration-line.js.map +1 -0
- package/dist/lib/css/property-descriptors/text-shadow.js +47 -0
- package/dist/lib/css/property-descriptors/text-shadow.js.map +1 -0
- package/dist/lib/css/property-descriptors/text-transform.js +21 -0
- package/dist/lib/css/property-descriptors/text-transform.js.map +1 -0
- package/dist/lib/css/property-descriptors/transform-origin.js +25 -0
- package/dist/lib/css/property-descriptors/transform-origin.js.map +1 -0
- package/dist/lib/css/property-descriptors/transform.js +37 -0
- package/dist/lib/css/property-descriptors/transform.js.map +1 -0
- package/dist/lib/css/property-descriptors/visibility.js +21 -0
- package/dist/lib/css/property-descriptors/visibility.js.map +1 -0
- package/dist/lib/css/property-descriptors/webkit-text-stroke-color.js +11 -0
- package/dist/lib/css/property-descriptors/webkit-text-stroke-color.js.map +1 -0
- package/dist/lib/css/property-descriptors/webkit-text-stroke-width.js +17 -0
- package/dist/lib/css/property-descriptors/webkit-text-stroke-width.js.map +1 -0
- package/dist/lib/css/property-descriptors/word-break.js +27 -0
- package/dist/lib/css/property-descriptors/word-break.js.map +1 -0
- package/dist/lib/css/property-descriptors/z-index.js +20 -0
- package/dist/lib/css/property-descriptors/z-index.js.map +1 -0
- package/dist/lib/css/syntax/__tests__/tokernizer-tests.js +34 -0
- package/dist/lib/css/syntax/__tests__/tokernizer-tests.js.map +1 -0
- package/dist/lib/css/syntax/parser.js +147 -0
- package/dist/lib/css/syntax/parser.js.map +1 -0
- package/dist/lib/css/syntax/tokenizer.js +630 -0
- package/dist/lib/css/syntax/tokenizer.js.map +1 -0
- package/dist/lib/css/types/__tests__/color-tests.js +66 -0
- package/dist/lib/css/types/__tests__/color-tests.js.map +1 -0
- package/dist/lib/css/types/__tests__/image-tests.js +233 -0
- package/dist/lib/css/types/__tests__/image-tests.js.map +1 -0
- package/dist/lib/css/types/angle.js +81 -0
- package/dist/lib/css/types/angle.js.map +1 -0
- package/dist/lib/css/types/color.js +311 -0
- package/dist/lib/css/types/color.js.map +1 -0
- package/dist/lib/css/types/functions/-prefix-linear-gradient.js +33 -0
- package/dist/lib/css/types/functions/-prefix-linear-gradient.js.map +1 -0
- package/dist/lib/css/types/functions/-prefix-radial-gradient.js +84 -0
- package/dist/lib/css/types/functions/-prefix-radial-gradient.js.map +1 -0
- package/dist/lib/css/types/functions/-webkit-gradient.js +60 -0
- package/dist/lib/css/types/functions/-webkit-gradient.js.map +1 -0
- package/dist/lib/css/types/functions/__tests__/radial-gradient.js +68 -0
- package/dist/lib/css/types/functions/__tests__/radial-gradient.js.map +1 -0
- package/dist/lib/css/types/functions/counter.js +374 -0
- package/dist/lib/css/types/functions/counter.js.map +1 -0
- package/dist/lib/css/types/functions/gradient.js +165 -0
- package/dist/lib/css/types/functions/gradient.js.map +1 -0
- package/dist/lib/css/types/functions/linear-gradient.js +28 -0
- package/dist/lib/css/types/functions/linear-gradient.js.map +1 -0
- package/dist/lib/css/types/functions/radial-gradient.js +91 -0
- package/dist/lib/css/types/functions/radial-gradient.js.map +1 -0
- package/dist/lib/css/types/image.js +53 -0
- package/dist/lib/css/types/image.js.map +1 -0
- package/dist/lib/css/types/index.js +3 -0
- package/dist/lib/css/types/index.js.map +1 -0
- package/dist/lib/css/types/length-percentage.js +52 -0
- package/dist/lib/css/types/length-percentage.js.map +1 -0
- package/dist/lib/css/types/length.js +8 -0
- package/dist/lib/css/types/length.js.map +1 -0
- package/dist/lib/css/types/time.js +18 -0
- package/dist/lib/css/types/time.js.map +1 -0
- package/dist/lib/dom/__mocks__/document-cloner.js +24 -0
- package/dist/lib/dom/__mocks__/document-cloner.js.map +1 -0
- package/dist/lib/dom/document-cloner.js +530 -0
- package/dist/lib/dom/document-cloner.js.map +1 -0
- package/dist/lib/dom/element-container.js +37 -0
- package/dist/lib/dom/element-container.js.map +1 -0
- package/dist/lib/dom/elements/li-element-container.js +30 -0
- package/dist/lib/dom/elements/li-element-container.js.map +1 -0
- package/dist/lib/dom/elements/ol-element-container.js +31 -0
- package/dist/lib/dom/elements/ol-element-container.js.map +1 -0
- package/dist/lib/dom/elements/select-element-container.js +31 -0
- package/dist/lib/dom/elements/select-element-container.js.map +1 -0
- package/dist/lib/dom/elements/textarea-element-container.js +30 -0
- package/dist/lib/dom/elements/textarea-element-container.js.map +1 -0
- package/dist/lib/dom/node-parser.js +360 -0
- package/dist/lib/dom/node-parser.js.map +1 -0
- package/dist/lib/dom/replaced-elements/canvas-element-container.js +32 -0
- package/dist/lib/dom/replaced-elements/canvas-element-container.js.map +1 -0
- package/dist/lib/dom/replaced-elements/iframe-element-container.js +54 -0
- package/dist/lib/dom/replaced-elements/iframe-element-container.js.map +1 -0
- package/dist/lib/dom/replaced-elements/image-element-container.js +33 -0
- package/dist/lib/dom/replaced-elements/image-element-container.js.map +1 -0
- package/dist/lib/dom/replaced-elements/index.js +3 -0
- package/dist/lib/dom/replaced-elements/index.js.map +1 -0
- package/dist/lib/dom/replaced-elements/input-element-container.js +102 -0
- package/dist/lib/dom/replaced-elements/input-element-container.js.map +1 -0
- package/dist/lib/dom/replaced-elements/pseudo-elements.js +1 -0
- package/dist/lib/dom/replaced-elements/pseudo-elements.js.map +1 -0
- package/dist/lib/dom/replaced-elements/svg-element-container.js +38 -0
- package/dist/lib/dom/replaced-elements/svg-element-container.js.map +1 -0
- package/dist/lib/dom/text-container.js +32 -0
- package/dist/lib/dom/text-container.js.map +1 -0
- package/dist/lib/index.js +202 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/invariant.js +10 -0
- package/dist/lib/invariant.js.map +1 -0
- package/dist/lib/render/background.js +187 -0
- package/dist/lib/render/background.js.map +1 -0
- package/dist/lib/render/bezier-curve.js +36 -0
- package/dist/lib/render/bezier-curve.js.map +1 -0
- package/dist/lib/render/border.js +105 -0
- package/dist/lib/render/border.js.map +1 -0
- package/dist/lib/render/bound-curves.js +190 -0
- package/dist/lib/render/bound-curves.js.map +1 -0
- package/dist/lib/render/box-sizing.js +21 -0
- package/dist/lib/render/box-sizing.js.map +1 -0
- package/dist/lib/render/canvas/canvas-renderer2.js +1415 -0
- package/dist/lib/render/canvas/canvas-renderer2.js.map +1 -0
- package/dist/lib/render/canvas/foreignobject-renderer.js +108 -0
- package/dist/lib/render/canvas/foreignobject-renderer.js.map +1 -0
- package/dist/lib/render/canvas/pdf-renderer.js +1406 -0
- package/dist/lib/render/canvas/pdf-renderer.js.map +1 -0
- package/dist/lib/render/effects.js +41 -0
- package/dist/lib/render/effects.js.map +1 -0
- package/dist/lib/render/font-metrics.js +55 -0
- package/dist/lib/render/font-metrics.js.map +1 -0
- package/dist/lib/render/path.js +27 -0
- package/dist/lib/render/path.js.map +1 -0
- package/dist/lib/render/renderer.js +12 -0
- package/dist/lib/render/renderer.js.map +1 -0
- package/dist/lib/render/stacking-context.js +172 -0
- package/dist/lib/render/stacking-context.js.map +1 -0
- package/dist/lib/render/vector.js +18 -0
- package/dist/lib/render/vector.js.map +1 -0
- package/dist/render/canvas/pdf-renderer.d.ts +0 -1
- package/dist/types/__tests__/index.d.ts +1 -0
- package/dist/types/core/__mocks__/cache-storage.d.ts +2 -0
- package/dist/types/core/__mocks__/context.d.ts +9 -0
- package/dist/types/core/__mocks__/features.d.ts +8 -0
- package/dist/types/core/__mocks__/logger.d.ts +9 -0
- package/dist/types/core/__tests__/cache-storage.d.ts +1 -0
- package/dist/types/core/__tests__/logger.d.ts +1 -0
- package/dist/types/core/bitwise.d.ts +1 -0
- package/dist/types/core/cache-storage.d.ts +26 -0
- package/dist/types/core/context.d.ts +15 -0
- package/dist/types/core/debugger.d.ts +8 -0
- package/dist/types/core/features.d.ts +12 -0
- package/dist/types/core/logger.d.ts +18 -0
- package/dist/types/core/util.d.ts +1 -0
- package/dist/types/css/IPropertyDescriptor.d.ts +36 -0
- package/dist/types/css/ITypeDescriptor.d.ts +6 -0
- package/dist/types/css/index.d.ts +132 -0
- package/dist/types/css/layout/__mocks__/bounds.d.ts +2 -0
- package/dist/types/css/layout/bounds.d.ts +14 -0
- package/dist/types/css/layout/text.d.ts +10 -0
- package/dist/types/css/property-descriptors/__tests__/background-tests.d.ts +1 -0
- package/dist/types/css/property-descriptors/__tests__/font-family.d.ts +1 -0
- package/dist/types/css/property-descriptors/__tests__/paint-order.d.ts +1 -0
- package/dist/types/css/property-descriptors/__tests__/text-shadow.d.ts +1 -0
- package/dist/types/css/property-descriptors/__tests__/transform-tests.d.ts +1 -0
- package/dist/types/css/property-descriptors/background-clip.d.ts +8 -0
- package/dist/types/css/property-descriptors/background-color.d.ts +2 -0
- package/dist/types/css/property-descriptors/background-image.d.ts +3 -0
- package/dist/types/css/property-descriptors/background-origin.d.ts +8 -0
- package/dist/types/css/property-descriptors/background-position.d.ts +5 -0
- package/dist/types/css/property-descriptors/background-repeat.d.ts +9 -0
- package/dist/types/css/property-descriptors/background-size.d.ts +11 -0
- package/dist/types/css/property-descriptors/border-color.d.ts +5 -0
- package/dist/types/css/property-descriptors/border-radius.d.ts +7 -0
- package/dist/types/css/property-descriptors/border-style.d.ts +12 -0
- package/dist/types/css/property-descriptors/border-width.d.ts +5 -0
- package/dist/types/css/property-descriptors/box-shadow.d.ts +14 -0
- package/dist/types/css/property-descriptors/color.d.ts +2 -0
- package/dist/types/css/property-descriptors/content.d.ts +4 -0
- package/dist/types/css/property-descriptors/counter-increment.d.ts +7 -0
- package/dist/types/css/property-descriptors/counter-reset.d.ts +7 -0
- package/dist/types/css/property-descriptors/direction.d.ts +6 -0
- package/dist/types/css/property-descriptors/display.d.ts +35 -0
- package/dist/types/css/property-descriptors/duration.d.ts +2 -0
- package/dist/types/css/property-descriptors/float.d.ts +9 -0
- package/dist/types/css/property-descriptors/font-family.d.ts +4 -0
- package/dist/types/css/property-descriptors/font-size.d.ts +2 -0
- package/dist/types/css/property-descriptors/font-style.d.ts +7 -0
- package/dist/types/css/property-descriptors/font-variant.d.ts +2 -0
- package/dist/types/css/property-descriptors/font-weight.d.ts +2 -0
- package/dist/types/css/property-descriptors/letter-spacing.d.ts +2 -0
- package/dist/types/css/property-descriptors/line-break.d.ts +6 -0
- package/dist/types/css/property-descriptors/line-height.d.ts +4 -0
- package/dist/types/css/property-descriptors/list-style-image.d.ts +3 -0
- package/dist/types/css/property-descriptors/list-style-position.d.ts +6 -0
- package/dist/types/css/property-descriptors/list-style-type.d.ts +58 -0
- package/dist/types/css/property-descriptors/margin.d.ts +5 -0
- package/dist/types/css/property-descriptors/opacity.d.ts +2 -0
- package/dist/types/css/property-descriptors/overflow-wrap.d.ts +6 -0
- package/dist/types/css/property-descriptors/overflow.d.ts +9 -0
- package/dist/types/css/property-descriptors/padding.d.ts +5 -0
- package/dist/types/css/property-descriptors/paint-order.d.ts +8 -0
- package/dist/types/css/property-descriptors/position.d.ts +9 -0
- package/dist/types/css/property-descriptors/quotes.d.ts +8 -0
- package/dist/types/css/property-descriptors/text-align.d.ts +7 -0
- package/dist/types/css/property-descriptors/text-decoration-color.d.ts +2 -0
- package/dist/types/css/property-descriptors/text-decoration-line.d.ts +10 -0
- package/dist/types/css/property-descriptors/text-shadow.d.ts +12 -0
- package/dist/types/css/property-descriptors/text-transform.d.ts +8 -0
- package/dist/types/css/property-descriptors/transform-origin.d.ts +4 -0
- package/dist/types/css/property-descriptors/transform.d.ts +4 -0
- package/dist/types/css/property-descriptors/visibility.d.ts +7 -0
- package/dist/types/css/property-descriptors/webkit-text-stroke-color.d.ts +2 -0
- package/dist/types/css/property-descriptors/webkit-text-stroke-width.d.ts +2 -0
- package/dist/types/css/property-descriptors/word-break.d.ts +7 -0
- package/dist/types/css/property-descriptors/z-index.d.ts +7 -0
- package/dist/types/css/syntax/__tests__/tokernizer-tests.d.ts +1 -0
- package/dist/types/css/syntax/parser.d.ts +34 -0
- package/dist/types/css/syntax/tokenizer.d.ts +94 -0
- package/dist/types/css/types/__tests__/color-tests.d.ts +1 -0
- package/dist/types/css/types/__tests__/image-tests.d.ts +1 -0
- package/dist/types/css/types/angle.d.ts +7 -0
- package/dist/types/css/types/color.d.ts +11 -0
- package/dist/types/css/types/functions/-prefix-linear-gradient.d.ts +4 -0
- package/dist/types/css/types/functions/-prefix-radial-gradient.d.ts +4 -0
- package/dist/types/css/types/functions/-webkit-gradient.d.ts +4 -0
- package/dist/types/css/types/functions/__tests__/radial-gradient.d.ts +1 -0
- package/dist/types/css/types/functions/counter.d.ts +10 -0
- package/dist/types/css/types/functions/gradient.d.ts +7 -0
- package/dist/types/css/types/functions/linear-gradient.d.ts +4 -0
- package/dist/types/css/types/functions/radial-gradient.d.ts +12 -0
- package/dist/types/css/types/image.d.ts +54 -0
- package/dist/types/css/types/index.d.ts +1 -0
- package/dist/types/css/types/length-percentage.d.ts +11 -0
- package/dist/types/css/types/length.d.ts +4 -0
- package/dist/types/css/types/time.d.ts +2 -0
- package/dist/types/dom/__mocks__/document-cloner.d.ts +6 -0
- package/dist/types/dom/document-cloner.d.ts +45 -0
- package/dist/types/dom/element-container.d.ts +21 -0
- package/dist/types/dom/elements/li-element-container.d.ts +6 -0
- package/dist/types/dom/elements/ol-element-container.d.ts +7 -0
- package/dist/types/dom/elements/select-element-container.d.ts +6 -0
- package/dist/types/dom/elements/textarea-element-container.d.ts +6 -0
- package/dist/types/dom/node-parser.d.ts +23 -0
- package/dist/types/dom/replaced-elements/canvas-element-container.d.ts +8 -0
- package/dist/types/dom/replaced-elements/iframe-element-container.d.ts +11 -0
- package/dist/types/dom/replaced-elements/image-element-container.d.ts +8 -0
- package/dist/types/dom/replaced-elements/index.d.ts +4 -0
- package/dist/types/dom/replaced-elements/input-element-container.d.ts +12 -0
- package/dist/types/dom/replaced-elements/pseudo-elements.d.ts +0 -0
- package/dist/types/dom/replaced-elements/svg-element-container.d.ts +8 -0
- package/dist/types/dom/text-container.d.ts +8 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/invariant.d.ts +1 -0
- package/dist/types/render/background.d.ts +16 -0
- package/dist/types/render/bezier-curve.d.ts +14 -0
- package/dist/types/render/border.d.ts +6 -0
- package/dist/types/render/bound-curves.d.ts +32 -0
- package/dist/types/render/box-sizing.d.ts +4 -0
- package/dist/types/render/canvas/canvas-renderer2.d.ts +81 -0
- package/dist/types/render/canvas/foreignobject-renderer.d.ts +11 -0
- package/dist/types/render/canvas/pdf-renderer.d.ts +80 -0
- package/dist/types/render/effects.d.ts +38 -0
- package/dist/types/render/font-metrics.d.ts +11 -0
- package/dist/types/render/path.d.ts +13 -0
- package/dist/types/render/renderer.d.ts +7 -0
- package/dist/types/render/stacking-context.d.ts +24 -0
- package/dist/types/render/vector.d.ts +9 -0
- package/package.json +134 -134
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CSSValue } from './syntax/parser';
|
|
2
|
+
import { CSSTypes } from './types';
|
|
3
|
+
import { Context } from '../core/context';
|
|
4
|
+
export declare const enum PropertyDescriptorParsingType {
|
|
5
|
+
VALUE = 0,
|
|
6
|
+
LIST = 1,
|
|
7
|
+
IDENT_VALUE = 2,
|
|
8
|
+
TYPE_VALUE = 3,
|
|
9
|
+
TOKEN_VALUE = 4
|
|
10
|
+
}
|
|
11
|
+
export interface IPropertyDescriptor {
|
|
12
|
+
name: string;
|
|
13
|
+
type: PropertyDescriptorParsingType;
|
|
14
|
+
initialValue: string;
|
|
15
|
+
prefix: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IPropertyIdentValueDescriptor<T> extends IPropertyDescriptor {
|
|
18
|
+
type: PropertyDescriptorParsingType.IDENT_VALUE;
|
|
19
|
+
parse: (context: Context, token: string) => T;
|
|
20
|
+
}
|
|
21
|
+
export interface IPropertyTypeValueDescriptor extends IPropertyDescriptor {
|
|
22
|
+
type: PropertyDescriptorParsingType.TYPE_VALUE;
|
|
23
|
+
format: CSSTypes;
|
|
24
|
+
}
|
|
25
|
+
export interface IPropertyValueDescriptor<T> extends IPropertyDescriptor {
|
|
26
|
+
type: PropertyDescriptorParsingType.VALUE;
|
|
27
|
+
parse: (context: Context, token: CSSValue) => T;
|
|
28
|
+
}
|
|
29
|
+
export interface IPropertyListDescriptor<T> extends IPropertyDescriptor {
|
|
30
|
+
type: PropertyDescriptorParsingType.LIST;
|
|
31
|
+
parse: (context: Context, tokens: CSSValue[]) => T;
|
|
32
|
+
}
|
|
33
|
+
export interface IPropertyTokenValueDescriptor extends IPropertyDescriptor {
|
|
34
|
+
type: PropertyDescriptorParsingType.TOKEN_VALUE;
|
|
35
|
+
}
|
|
36
|
+
export type CSSPropertyDescriptor<T> = IPropertyValueDescriptor<T> | IPropertyListDescriptor<T> | IPropertyIdentValueDescriptor<T> | IPropertyTypeValueDescriptor | IPropertyTokenValueDescriptor;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { backgroundClip } from './property-descriptors/background-clip';
|
|
2
|
+
import { backgroundImage } from './property-descriptors/background-image';
|
|
3
|
+
import { backgroundOrigin } from './property-descriptors/background-origin';
|
|
4
|
+
import { backgroundPosition } from './property-descriptors/background-position';
|
|
5
|
+
import { backgroundRepeat } from './property-descriptors/background-repeat';
|
|
6
|
+
import { backgroundSize } from './property-descriptors/background-size';
|
|
7
|
+
import { borderBottomLeftRadius, borderBottomRightRadius, borderTopLeftRadius, borderTopRightRadius } from './property-descriptors/border-radius';
|
|
8
|
+
import { borderBottomStyle, borderLeftStyle, borderRightStyle, borderTopStyle } from './property-descriptors/border-style';
|
|
9
|
+
import { borderBottomWidth, borderLeftWidth, borderRightWidth, borderTopWidth } from './property-descriptors/border-width';
|
|
10
|
+
import { direction } from './property-descriptors/direction';
|
|
11
|
+
import { display } from './property-descriptors/display';
|
|
12
|
+
import { float } from './property-descriptors/float';
|
|
13
|
+
import { letterSpacing } from './property-descriptors/letter-spacing';
|
|
14
|
+
import { lineBreak } from './property-descriptors/line-break';
|
|
15
|
+
import { listStyleImage } from './property-descriptors/list-style-image';
|
|
16
|
+
import { listStylePosition } from './property-descriptors/list-style-position';
|
|
17
|
+
import { listStyleType } from './property-descriptors/list-style-type';
|
|
18
|
+
import { OVERFLOW } from './property-descriptors/overflow';
|
|
19
|
+
import { overflowWrap } from './property-descriptors/overflow-wrap';
|
|
20
|
+
import { textAlign } from './property-descriptors/text-align';
|
|
21
|
+
import { position } from './property-descriptors/position';
|
|
22
|
+
import { textShadow } from './property-descriptors/text-shadow';
|
|
23
|
+
import { textTransform } from './property-descriptors/text-transform';
|
|
24
|
+
import { transform } from './property-descriptors/transform';
|
|
25
|
+
import { transformOrigin } from './property-descriptors/transform-origin';
|
|
26
|
+
import { visibility } from './property-descriptors/visibility';
|
|
27
|
+
import { wordBreak } from './property-descriptors/word-break';
|
|
28
|
+
import { zIndex } from './property-descriptors/z-index';
|
|
29
|
+
import { CSSValue } from './syntax/parser';
|
|
30
|
+
import { Color } from './types/color';
|
|
31
|
+
import { opacity } from './property-descriptors/opacity';
|
|
32
|
+
import { textDecorationLine } from './property-descriptors/text-decoration-line';
|
|
33
|
+
import { LengthPercentage } from './types/length-percentage';
|
|
34
|
+
import { fontFamily } from './property-descriptors/font-family';
|
|
35
|
+
import { fontWeight } from './property-descriptors/font-weight';
|
|
36
|
+
import { fontVariant } from './property-descriptors/font-variant';
|
|
37
|
+
import { fontStyle } from './property-descriptors/font-style';
|
|
38
|
+
import { content } from './property-descriptors/content';
|
|
39
|
+
import { counterIncrement } from './property-descriptors/counter-increment';
|
|
40
|
+
import { counterReset } from './property-descriptors/counter-reset';
|
|
41
|
+
import { duration } from './property-descriptors/duration';
|
|
42
|
+
import { quotes } from './property-descriptors/quotes';
|
|
43
|
+
import { boxShadow } from './property-descriptors/box-shadow';
|
|
44
|
+
import { paintOrder } from './property-descriptors/paint-order';
|
|
45
|
+
import { webkitTextStrokeWidth } from './property-descriptors/webkit-text-stroke-width';
|
|
46
|
+
import { Context } from '../core/context';
|
|
47
|
+
export declare class CSSParsedDeclaration {
|
|
48
|
+
animationDuration: ReturnType<typeof duration.parse>;
|
|
49
|
+
backgroundClip: ReturnType<typeof backgroundClip.parse>;
|
|
50
|
+
backgroundColor: Color;
|
|
51
|
+
backgroundImage: ReturnType<typeof backgroundImage.parse>;
|
|
52
|
+
backgroundOrigin: ReturnType<typeof backgroundOrigin.parse>;
|
|
53
|
+
backgroundPosition: ReturnType<typeof backgroundPosition.parse>;
|
|
54
|
+
backgroundRepeat: ReturnType<typeof backgroundRepeat.parse>;
|
|
55
|
+
backgroundSize: ReturnType<typeof backgroundSize.parse>;
|
|
56
|
+
borderTopColor: Color;
|
|
57
|
+
borderRightColor: Color;
|
|
58
|
+
borderBottomColor: Color;
|
|
59
|
+
borderLeftColor: Color;
|
|
60
|
+
borderTopLeftRadius: ReturnType<typeof borderTopLeftRadius.parse>;
|
|
61
|
+
borderTopRightRadius: ReturnType<typeof borderTopRightRadius.parse>;
|
|
62
|
+
borderBottomRightRadius: ReturnType<typeof borderBottomRightRadius.parse>;
|
|
63
|
+
borderBottomLeftRadius: ReturnType<typeof borderBottomLeftRadius.parse>;
|
|
64
|
+
borderTopStyle: ReturnType<typeof borderTopStyle.parse>;
|
|
65
|
+
borderRightStyle: ReturnType<typeof borderRightStyle.parse>;
|
|
66
|
+
borderBottomStyle: ReturnType<typeof borderBottomStyle.parse>;
|
|
67
|
+
borderLeftStyle: ReturnType<typeof borderLeftStyle.parse>;
|
|
68
|
+
borderTopWidth: ReturnType<typeof borderTopWidth.parse>;
|
|
69
|
+
borderRightWidth: ReturnType<typeof borderRightWidth.parse>;
|
|
70
|
+
borderBottomWidth: ReturnType<typeof borderBottomWidth.parse>;
|
|
71
|
+
borderLeftWidth: ReturnType<typeof borderLeftWidth.parse>;
|
|
72
|
+
boxShadow: ReturnType<typeof boxShadow.parse>;
|
|
73
|
+
color: Color;
|
|
74
|
+
direction: ReturnType<typeof direction.parse>;
|
|
75
|
+
display: ReturnType<typeof display.parse>;
|
|
76
|
+
float: ReturnType<typeof float.parse>;
|
|
77
|
+
fontFamily: ReturnType<typeof fontFamily.parse>;
|
|
78
|
+
fontSize: LengthPercentage;
|
|
79
|
+
fontStyle: ReturnType<typeof fontStyle.parse>;
|
|
80
|
+
fontVariant: ReturnType<typeof fontVariant.parse>;
|
|
81
|
+
fontWeight: ReturnType<typeof fontWeight.parse>;
|
|
82
|
+
letterSpacing: ReturnType<typeof letterSpacing.parse>;
|
|
83
|
+
lineBreak: ReturnType<typeof lineBreak.parse>;
|
|
84
|
+
lineHeight: CSSValue;
|
|
85
|
+
listStyleImage: ReturnType<typeof listStyleImage.parse>;
|
|
86
|
+
listStylePosition: ReturnType<typeof listStylePosition.parse>;
|
|
87
|
+
listStyleType: ReturnType<typeof listStyleType.parse>;
|
|
88
|
+
marginTop: CSSValue;
|
|
89
|
+
marginRight: CSSValue;
|
|
90
|
+
marginBottom: CSSValue;
|
|
91
|
+
marginLeft: CSSValue;
|
|
92
|
+
opacity: ReturnType<typeof opacity.parse>;
|
|
93
|
+
overflowX: OVERFLOW;
|
|
94
|
+
overflowY: OVERFLOW;
|
|
95
|
+
overflowWrap: ReturnType<typeof overflowWrap.parse>;
|
|
96
|
+
paddingTop: LengthPercentage;
|
|
97
|
+
paddingRight: LengthPercentage;
|
|
98
|
+
paddingBottom: LengthPercentage;
|
|
99
|
+
paddingLeft: LengthPercentage;
|
|
100
|
+
paintOrder: ReturnType<typeof paintOrder.parse>;
|
|
101
|
+
position: ReturnType<typeof position.parse>;
|
|
102
|
+
textAlign: ReturnType<typeof textAlign.parse>;
|
|
103
|
+
textDecorationColor: Color;
|
|
104
|
+
textDecorationLine: ReturnType<typeof textDecorationLine.parse>;
|
|
105
|
+
textShadow: ReturnType<typeof textShadow.parse>;
|
|
106
|
+
textTransform: ReturnType<typeof textTransform.parse>;
|
|
107
|
+
transform: ReturnType<typeof transform.parse>;
|
|
108
|
+
transformOrigin: ReturnType<typeof transformOrigin.parse>;
|
|
109
|
+
visibility: ReturnType<typeof visibility.parse>;
|
|
110
|
+
webkitTextStrokeColor: Color;
|
|
111
|
+
webkitTextStrokeWidth: ReturnType<typeof webkitTextStrokeWidth.parse>;
|
|
112
|
+
wordBreak: ReturnType<typeof wordBreak.parse>;
|
|
113
|
+
zIndex: ReturnType<typeof zIndex.parse>;
|
|
114
|
+
constructor(context: Context, declaration: CSSStyleDeclaration);
|
|
115
|
+
isVisible(): boolean;
|
|
116
|
+
isTransparent(): boolean;
|
|
117
|
+
isTransformed(): boolean;
|
|
118
|
+
isPositioned(): boolean;
|
|
119
|
+
isPositionedWithZIndex(): boolean;
|
|
120
|
+
isFloating(): boolean;
|
|
121
|
+
isInlineLevel(): boolean;
|
|
122
|
+
}
|
|
123
|
+
export declare class CSSParsedPseudoDeclaration {
|
|
124
|
+
content: ReturnType<typeof content.parse>;
|
|
125
|
+
quotes: ReturnType<typeof quotes.parse>;
|
|
126
|
+
constructor(context: Context, declaration: CSSStyleDeclaration);
|
|
127
|
+
}
|
|
128
|
+
export declare class CSSParsedCounterDeclaration {
|
|
129
|
+
counterIncrement: ReturnType<typeof counterIncrement.parse>;
|
|
130
|
+
counterReset: ReturnType<typeof counterReset.parse>;
|
|
131
|
+
constructor(context: Context, declaration: CSSStyleDeclaration);
|
|
132
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Context } from '../../core/context';
|
|
2
|
+
export declare class Bounds {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
constructor(left: number, top: number, width: number, height: number);
|
|
8
|
+
add(x: number, y: number, w: number, h: number): Bounds;
|
|
9
|
+
static fromClientRect(context: Context, clientRect: ClientRect): Bounds;
|
|
10
|
+
static fromDOMRectList(context: Context, domRectList: DOMRectList): Bounds;
|
|
11
|
+
static EMPTY: Bounds;
|
|
12
|
+
}
|
|
13
|
+
export declare const parseBounds: (context: Context, node: Element) => Bounds;
|
|
14
|
+
export declare const parseDocumentSize: (document: Document) => Bounds;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSParsedDeclaration } from '../index';
|
|
2
|
+
import { Bounds } from './bounds';
|
|
3
|
+
import { Context } from '../../core/context';
|
|
4
|
+
export declare class TextBounds {
|
|
5
|
+
readonly text: string;
|
|
6
|
+
readonly bounds: Bounds;
|
|
7
|
+
constructor(text: string, bounds: Bounds);
|
|
8
|
+
}
|
|
9
|
+
export declare const parseTextBounds: (context: Context, value: string, styles: CSSParsedDeclaration, node: Text) => TextBounds[];
|
|
10
|
+
export declare const segmentGraphemes: (value: string) => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum BACKGROUND_CLIP {
|
|
3
|
+
BORDER_BOX = 0,
|
|
4
|
+
PADDING_BOX = 1,
|
|
5
|
+
CONTENT_BOX = 2
|
|
6
|
+
}
|
|
7
|
+
export type BackgroundClip = BACKGROUND_CLIP[];
|
|
8
|
+
export declare const backgroundClip: IPropertyListDescriptor<BackgroundClip>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum BACKGROUND_ORIGIN {
|
|
3
|
+
BORDER_BOX = 0,
|
|
4
|
+
PADDING_BOX = 1,
|
|
5
|
+
CONTENT_BOX = 2
|
|
6
|
+
}
|
|
7
|
+
export type BackgroundOrigin = BACKGROUND_ORIGIN[];
|
|
8
|
+
export declare const backgroundOrigin: IPropertyListDescriptor<BackgroundOrigin>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
import { LengthPercentageTuple } from '../types/length-percentage';
|
|
3
|
+
export type BackgroundPosition = BackgroundImagePosition[];
|
|
4
|
+
export type BackgroundImagePosition = LengthPercentageTuple;
|
|
5
|
+
export declare const backgroundPosition: IPropertyListDescriptor<BackgroundPosition>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export type BackgroundRepeat = BACKGROUND_REPEAT[];
|
|
3
|
+
export declare const enum BACKGROUND_REPEAT {
|
|
4
|
+
REPEAT = 0,
|
|
5
|
+
NO_REPEAT = 1,
|
|
6
|
+
REPEAT_X = 2,
|
|
7
|
+
REPEAT_Y = 3
|
|
8
|
+
}
|
|
9
|
+
export declare const backgroundRepeat: IPropertyListDescriptor<BackgroundRepeat>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
import { LengthPercentage } from '../types/length-percentage';
|
|
3
|
+
import { StringValueToken } from '../syntax/tokenizer';
|
|
4
|
+
export declare enum BACKGROUND_SIZE {
|
|
5
|
+
AUTO = "auto",
|
|
6
|
+
CONTAIN = "contain",
|
|
7
|
+
COVER = "cover"
|
|
8
|
+
}
|
|
9
|
+
export type BackgroundSizeInfo = LengthPercentage | StringValueToken;
|
|
10
|
+
export type BackgroundSize = BackgroundSizeInfo[][];
|
|
11
|
+
export declare const backgroundSize: IPropertyListDescriptor<BackgroundSize>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyTypeValueDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const borderTopColor: IPropertyTypeValueDescriptor;
|
|
3
|
+
export declare const borderRightColor: IPropertyTypeValueDescriptor;
|
|
4
|
+
export declare const borderBottomColor: IPropertyTypeValueDescriptor;
|
|
5
|
+
export declare const borderLeftColor: IPropertyTypeValueDescriptor;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
import { LengthPercentageTuple } from '../types/length-percentage';
|
|
3
|
+
export type BorderRadius = LengthPercentageTuple;
|
|
4
|
+
export declare const borderTopLeftRadius: IPropertyListDescriptor<BorderRadius>;
|
|
5
|
+
export declare const borderTopRightRadius: IPropertyListDescriptor<BorderRadius>;
|
|
6
|
+
export declare const borderBottomRightRadius: IPropertyListDescriptor<BorderRadius>;
|
|
7
|
+
export declare const borderBottomLeftRadius: IPropertyListDescriptor<BorderRadius>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPropertyIdentValueDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum BORDER_STYLE {
|
|
3
|
+
NONE = 0,
|
|
4
|
+
SOLID = 1,
|
|
5
|
+
DASHED = 2,
|
|
6
|
+
DOTTED = 3,
|
|
7
|
+
DOUBLE = 4
|
|
8
|
+
}
|
|
9
|
+
export declare const borderTopStyle: IPropertyIdentValueDescriptor<BORDER_STYLE>;
|
|
10
|
+
export declare const borderRightStyle: IPropertyIdentValueDescriptor<BORDER_STYLE>;
|
|
11
|
+
export declare const borderBottomStyle: IPropertyIdentValueDescriptor<BORDER_STYLE>;
|
|
12
|
+
export declare const borderLeftStyle: IPropertyIdentValueDescriptor<BORDER_STYLE>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyValueDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const borderTopWidth: IPropertyValueDescriptor<number>;
|
|
3
|
+
export declare const borderRightWidth: IPropertyValueDescriptor<number>;
|
|
4
|
+
export declare const borderBottomWidth: IPropertyValueDescriptor<number>;
|
|
5
|
+
export declare const borderLeftWidth: IPropertyValueDescriptor<number>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
import { Color } from '../types/color';
|
|
3
|
+
import { Length } from '../types/length';
|
|
4
|
+
export type BoxShadow = BoxShadowItem[];
|
|
5
|
+
interface BoxShadowItem {
|
|
6
|
+
inset: boolean;
|
|
7
|
+
color: Color;
|
|
8
|
+
offsetX: Length;
|
|
9
|
+
offsetY: Length;
|
|
10
|
+
blur: Length;
|
|
11
|
+
spread: Length;
|
|
12
|
+
}
|
|
13
|
+
export declare const boxShadow: IPropertyListDescriptor<BoxShadow>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export interface COUNTER_INCREMENT {
|
|
3
|
+
counter: string;
|
|
4
|
+
increment: number;
|
|
5
|
+
}
|
|
6
|
+
export type CounterIncrement = COUNTER_INCREMENT[] | null;
|
|
7
|
+
export declare const counterIncrement: IPropertyListDescriptor<CounterIncrement>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum DISPLAY {
|
|
3
|
+
NONE = 0,
|
|
4
|
+
BLOCK = 2,
|
|
5
|
+
INLINE = 4,
|
|
6
|
+
RUN_IN = 8,
|
|
7
|
+
FLOW = 16,
|
|
8
|
+
FLOW_ROOT = 32,
|
|
9
|
+
TABLE = 64,
|
|
10
|
+
FLEX = 128,
|
|
11
|
+
GRID = 256,
|
|
12
|
+
RUBY = 512,
|
|
13
|
+
SUBGRID = 1024,
|
|
14
|
+
LIST_ITEM = 2048,
|
|
15
|
+
TABLE_ROW_GROUP = 4096,
|
|
16
|
+
TABLE_HEADER_GROUP = 8192,
|
|
17
|
+
TABLE_FOOTER_GROUP = 16384,
|
|
18
|
+
TABLE_ROW = 32768,
|
|
19
|
+
TABLE_CELL = 65536,
|
|
20
|
+
TABLE_COLUMN_GROUP = 131072,
|
|
21
|
+
TABLE_COLUMN = 262144,
|
|
22
|
+
TABLE_CAPTION = 524288,
|
|
23
|
+
RUBY_BASE = 1048576,
|
|
24
|
+
RUBY_TEXT = 2097152,
|
|
25
|
+
RUBY_BASE_CONTAINER = 4194304,
|
|
26
|
+
RUBY_TEXT_CONTAINER = 8388608,
|
|
27
|
+
CONTENTS = 16777216,
|
|
28
|
+
INLINE_BLOCK = 33554432,
|
|
29
|
+
INLINE_LIST_ITEM = 67108864,
|
|
30
|
+
INLINE_TABLE = 134217728,
|
|
31
|
+
INLINE_FLEX = 268435456,
|
|
32
|
+
INLINE_GRID = 536870912
|
|
33
|
+
}
|
|
34
|
+
export type Display = number;
|
|
35
|
+
export declare const display: IPropertyListDescriptor<Display>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IPropertyIdentValueDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum LIST_STYLE_TYPE {
|
|
3
|
+
NONE = -1,
|
|
4
|
+
DISC = 0,
|
|
5
|
+
CIRCLE = 1,
|
|
6
|
+
SQUARE = 2,
|
|
7
|
+
DECIMAL = 3,
|
|
8
|
+
CJK_DECIMAL = 4,
|
|
9
|
+
DECIMAL_LEADING_ZERO = 5,
|
|
10
|
+
LOWER_ROMAN = 6,
|
|
11
|
+
UPPER_ROMAN = 7,
|
|
12
|
+
LOWER_GREEK = 8,
|
|
13
|
+
LOWER_ALPHA = 9,
|
|
14
|
+
UPPER_ALPHA = 10,
|
|
15
|
+
ARABIC_INDIC = 11,
|
|
16
|
+
ARMENIAN = 12,
|
|
17
|
+
BENGALI = 13,
|
|
18
|
+
CAMBODIAN = 14,
|
|
19
|
+
CJK_EARTHLY_BRANCH = 15,
|
|
20
|
+
CJK_HEAVENLY_STEM = 16,
|
|
21
|
+
CJK_IDEOGRAPHIC = 17,
|
|
22
|
+
DEVANAGARI = 18,
|
|
23
|
+
ETHIOPIC_NUMERIC = 19,
|
|
24
|
+
GEORGIAN = 20,
|
|
25
|
+
GUJARATI = 21,
|
|
26
|
+
GURMUKHI = 22,
|
|
27
|
+
HEBREW = 22,
|
|
28
|
+
HIRAGANA = 23,
|
|
29
|
+
HIRAGANA_IROHA = 24,
|
|
30
|
+
JAPANESE_FORMAL = 25,
|
|
31
|
+
JAPANESE_INFORMAL = 26,
|
|
32
|
+
KANNADA = 27,
|
|
33
|
+
KATAKANA = 28,
|
|
34
|
+
KATAKANA_IROHA = 29,
|
|
35
|
+
KHMER = 30,
|
|
36
|
+
KOREAN_HANGUL_FORMAL = 31,
|
|
37
|
+
KOREAN_HANJA_FORMAL = 32,
|
|
38
|
+
KOREAN_HANJA_INFORMAL = 33,
|
|
39
|
+
LAO = 34,
|
|
40
|
+
LOWER_ARMENIAN = 35,
|
|
41
|
+
MALAYALAM = 36,
|
|
42
|
+
MONGOLIAN = 37,
|
|
43
|
+
MYANMAR = 38,
|
|
44
|
+
ORIYA = 39,
|
|
45
|
+
PERSIAN = 40,
|
|
46
|
+
SIMP_CHINESE_FORMAL = 41,
|
|
47
|
+
SIMP_CHINESE_INFORMAL = 42,
|
|
48
|
+
TAMIL = 43,
|
|
49
|
+
TELUGU = 44,
|
|
50
|
+
THAI = 45,
|
|
51
|
+
TIBETAN = 46,
|
|
52
|
+
TRAD_CHINESE_FORMAL = 47,
|
|
53
|
+
TRAD_CHINESE_INFORMAL = 48,
|
|
54
|
+
UPPER_ARMENIAN = 49,
|
|
55
|
+
DISCLOSURE_OPEN = 50,
|
|
56
|
+
DISCLOSURE_CLOSED = 51
|
|
57
|
+
}
|
|
58
|
+
export declare const listStyleType: IPropertyIdentValueDescriptor<LIST_STYLE_TYPE>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyTokenValueDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const marginTop: IPropertyTokenValueDescriptor;
|
|
3
|
+
export declare const marginRight: IPropertyTokenValueDescriptor;
|
|
4
|
+
export declare const marginBottom: IPropertyTokenValueDescriptor;
|
|
5
|
+
export declare const marginLeft: IPropertyTokenValueDescriptor;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyTypeValueDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const paddingTop: IPropertyTypeValueDescriptor;
|
|
3
|
+
export declare const paddingRight: IPropertyTypeValueDescriptor;
|
|
4
|
+
export declare const paddingBottom: IPropertyTypeValueDescriptor;
|
|
5
|
+
export declare const paddingLeft: IPropertyTypeValueDescriptor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum PAINT_ORDER_LAYER {
|
|
3
|
+
FILL = 0,
|
|
4
|
+
STROKE = 1,
|
|
5
|
+
MARKERS = 2
|
|
6
|
+
}
|
|
7
|
+
export type PaintOrder = PAINT_ORDER_LAYER[];
|
|
8
|
+
export declare const paintOrder: IPropertyListDescriptor<PaintOrder>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export interface QUOTE {
|
|
3
|
+
open: string;
|
|
4
|
+
close: string;
|
|
5
|
+
}
|
|
6
|
+
export type Quotes = QUOTE[] | null;
|
|
7
|
+
export declare const quotes: IPropertyListDescriptor<Quotes>;
|
|
8
|
+
export declare const getQuote: (quotes: Quotes, depth: number, open: boolean) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../IPropertyDescriptor';
|
|
2
|
+
export declare const enum TEXT_DECORATION_LINE {
|
|
3
|
+
NONE = 0,
|
|
4
|
+
UNDERLINE = 1,
|
|
5
|
+
OVERLINE = 2,
|
|
6
|
+
LINE_THROUGH = 3,
|
|
7
|
+
BLINK = 4
|
|
8
|
+
}
|
|
9
|
+
export type TextDecorationLine = TEXT_DECORATION_LINE[];
|
|
10
|
+
export declare const textDecorationLine: IPropertyListDescriptor<TextDecorationLine>;
|