@ohos-ports/html2canvas-pro 0.0.0-stage → 2.3.2-beta.0
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/LICENSE +21 -0
- package/README.md +86 -2
- package/dist/html2canvas-pro.cjs +11191 -0
- package/dist/html2canvas-pro.cjs.map +1 -0
- package/dist/html2canvas-pro.esm.js +11182 -0
- package/dist/html2canvas-pro.esm.js.map +1 -0
- package/dist/html2canvas-pro.js +11196 -0
- package/dist/html2canvas-pro.js.map +1 -0
- package/dist/html2canvas-pro.min.js +10 -0
- package/dist/lib/config.js +49 -0
- package/dist/lib/core/abort-helper.js +20 -0
- package/dist/lib/core/background-parser.js +41 -0
- package/dist/lib/core/bitwise.js +5 -0
- package/dist/lib/core/cache-storage.js +268 -0
- package/dist/lib/core/config-assembler.js +88 -0
- package/dist/lib/core/constants.js +25 -0
- package/dist/lib/core/context.js +19 -0
- package/dist/lib/core/debugger.js +27 -0
- package/dist/lib/core/features.js +190 -0
- package/dist/lib/core/logger.js +56 -0
- package/dist/lib/core/lru-map.js +66 -0
- package/dist/lib/core/origin-checker.js +53 -0
- package/dist/lib/core/performance-monitor.js +185 -0
- package/dist/lib/core/render-element.js +132 -0
- package/dist/lib/core/util.js +4 -0
- package/dist/lib/core/validator.js +500 -0
- package/dist/lib/css/grouped/background-styles.js +36 -0
- package/dist/lib/css/grouped/border-styles.js +75 -0
- package/dist/lib/css/grouped/font-styles.js +93 -0
- package/dist/lib/css/grouped/layout-styles.js +127 -0
- package/dist/lib/css/index.js +330 -0
- package/dist/lib/css/layout/bounds.js +52 -0
- package/dist/lib/css/layout/text.js +133 -0
- package/dist/lib/css/property-descriptor.js +2 -0
- package/dist/lib/css/property-descriptors/background-blend-mode.js +41 -0
- package/dist/lib/css/property-descriptors/background-clip.js +23 -0
- package/dist/lib/css/property-descriptors/background-color.js +10 -0
- package/dist/lib/css/property-descriptors/background-image.js +24 -0
- package/dist/lib/css/property-descriptors/background-origin.js +23 -0
- package/dist/lib/css/property-descriptors/background-position.js +19 -0
- package/dist/lib/css/property-descriptors/background-repeat.js +33 -0
- package/dist/lib/css/property-descriptors/background-size.js +23 -0
- package/dist/lib/css/property-descriptors/border-color.js +14 -0
- package/dist/lib/css/property-descriptors/border-image-repeat.js +42 -0
- package/dist/lib/css/property-descriptors/border-image-slice.js +45 -0
- package/dist/lib/css/property-descriptors/border-image-source.js +22 -0
- package/dist/lib/css/property-descriptors/border-radius.js +15 -0
- package/dist/lib/css/property-descriptors/border-style.js +26 -0
- package/dist/lib/css/property-descriptors/border-width.js +20 -0
- package/dist/lib/css/property-descriptors/box-decoration-break.js +18 -0
- package/dist/lib/css/property-descriptors/box-shadow.js +54 -0
- package/dist/lib/css/property-descriptors/clip-path.js +189 -0
- package/dist/lib/css/property-descriptors/color.js +10 -0
- package/dist/lib/css/property-descriptors/content.js +19 -0
- package/dist/lib/css/property-descriptors/counter-increment.js +35 -0
- package/dist/lib/css/property-descriptors/counter-reset.js +18 -0
- package/dist/lib/css/property-descriptors/direction.js +18 -0
- package/dist/lib/css/property-descriptors/display.js +81 -0
- package/dist/lib/css/property-descriptors/duration.js +14 -0
- package/dist/lib/css/property-descriptors/filter.js +76 -0
- package/dist/lib/css/property-descriptors/float.js +22 -0
- package/dist/lib/css/property-descriptors/font-family.js +32 -0
- package/dist/lib/css/property-descriptors/font-size.js +10 -0
- package/dist/lib/css/property-descriptors/font-style.js +20 -0
- package/dist/lib/css/property-descriptors/font-variant-ligatures.js +34 -0
- package/dist/lib/css/property-descriptors/font-variant.js +13 -0
- package/dist/lib/css/property-descriptors/font-weight.js +25 -0
- package/dist/lib/css/property-descriptors/image-rendering.js +33 -0
- package/dist/lib/css/property-descriptors/letter-spacing.js +21 -0
- package/dist/lib/css/property-descriptors/line-break.js +23 -0
- package/dist/lib/css/property-descriptors/line-height.js +24 -0
- package/dist/lib/css/property-descriptors/list-style-image.js +17 -0
- package/dist/lib/css/property-descriptors/list-style-position.js +18 -0
- package/dist/lib/css/property-descriptors/list-style-type.js +122 -0
- package/dist/lib/css/property-descriptors/margin.js +13 -0
- package/dist/lib/css/property-descriptors/mix-blend-mode.js +31 -0
- package/dist/lib/css/property-descriptors/object-fit.js +28 -0
- package/dist/lib/css/property-descriptors/object-position.js +42 -0
- package/dist/lib/css/property-descriptors/opacity.js +16 -0
- package/dist/lib/css/property-descriptors/overflow-wrap.js +18 -0
- package/dist/lib/css/property-descriptors/overflow.js +27 -0
- package/dist/lib/css/property-descriptors/padding.js +14 -0
- package/dist/lib/css/property-descriptors/paint-order.js +33 -0
- package/dist/lib/css/property-descriptors/position.js +22 -0
- package/dist/lib/css/property-descriptors/quotes.js +41 -0
- package/dist/lib/css/property-descriptors/rotate.js +27 -0
- package/dist/lib/css/property-descriptors/text-align.js +21 -0
- package/dist/lib/css/property-descriptors/text-decoration-color.js +10 -0
- package/dist/lib/css/property-descriptors/text-decoration-line.js +28 -0
- package/dist/lib/css/property-descriptors/text-decoration-style.js +24 -0
- package/dist/lib/css/property-descriptors/text-decoration-thickness.js +26 -0
- package/dist/lib/css/property-descriptors/text-overflow.js +18 -0
- package/dist/lib/css/property-descriptors/text-shadow.js +46 -0
- package/dist/lib/css/property-descriptors/text-transform.js +20 -0
- package/dist/lib/css/property-descriptors/text-underline-offset.js +23 -0
- package/dist/lib/css/property-descriptors/transform-origin.js +24 -0
- package/dist/lib/css/property-descriptors/transform.js +57 -0
- package/dist/lib/css/property-descriptors/visibility.js +20 -0
- package/dist/lib/css/property-descriptors/webkit-line-clamp.js +26 -0
- package/dist/lib/css/property-descriptors/webkit-text-stroke-color.js +10 -0
- package/dist/lib/css/property-descriptors/webkit-text-stroke-width.js +16 -0
- package/dist/lib/css/property-descriptors/word-break.js +26 -0
- package/dist/lib/css/property-descriptors/writing-mode.js +28 -0
- package/dist/lib/css/property-descriptors/z-index.js +19 -0
- package/dist/lib/css/property-descriptors/zoom.js +18 -0
- package/dist/lib/css/syntax/parser.js +140 -0
- package/dist/lib/css/syntax/token-constants.js +214 -0
- package/dist/lib/css/syntax/token-singletons.js +36 -0
- package/dist/lib/css/syntax/token-types.js +10 -0
- package/dist/lib/css/syntax/tokenizer.js +502 -0
- package/dist/lib/css/type-descriptor.js +2 -0
- package/dist/lib/css/types/angle.js +80 -0
- package/dist/lib/css/types/color-math.js +25 -0
- package/dist/lib/css/types/color-spaces/a98.js +78 -0
- package/dist/lib/css/types/color-spaces/p3.js +86 -0
- package/dist/lib/css/types/color-spaces/pro-photo.js +83 -0
- package/dist/lib/css/types/color-spaces/rec2020.js +85 -0
- package/dist/lib/css/types/color-spaces/srgb.js +79 -0
- package/dist/lib/css/types/color-utilities.js +342 -0
- package/dist/lib/css/types/color.js +400 -0
- package/dist/lib/css/types/functions/-prefix-linear-gradient.js +32 -0
- package/dist/lib/css/types/functions/-prefix-radial-gradient.js +83 -0
- package/dist/lib/css/types/functions/-webkit-gradient.js +59 -0
- package/dist/lib/css/types/functions/counter.js +367 -0
- package/dist/lib/css/types/functions/gradient.js +163 -0
- package/dist/lib/css/types/functions/linear-gradient.js +27 -0
- package/dist/lib/css/types/functions/radial-gradient.js +90 -0
- package/dist/lib/css/types/functions/repeating-linear-gradient.js +9 -0
- package/dist/lib/css/types/image.js +62 -0
- package/dist/lib/css/types/index.js +2 -0
- package/dist/lib/css/types/length-percentage.js +197 -0
- package/dist/lib/css/types/length.js +5 -0
- package/dist/lib/css/types/safe-eval.js +80 -0
- package/dist/lib/css/types/time.js +17 -0
- package/dist/lib/dom/document-cloner.js +597 -0
- package/dist/lib/dom/dom-normalizer.js +115 -0
- package/dist/lib/dom/element-container.js +56 -0
- package/dist/lib/dom/elements/li-element-container.js +11 -0
- package/dist/lib/dom/elements/ol-element-container.js +12 -0
- package/dist/lib/dom/elements/select-element-container.js +12 -0
- package/dist/lib/dom/elements/textarea-element-container.js +11 -0
- package/dist/lib/dom/node-parser.js +112 -0
- package/dist/lib/dom/node-type-guards.js +81 -0
- package/dist/lib/dom/replaced-elements/canvas-element-container.js +13 -0
- package/dist/lib/dom/replaced-elements/iframe-element-container.js +38 -0
- package/dist/lib/dom/replaced-elements/image-element-container.js +14 -0
- package/dist/lib/dom/replaced-elements/index.js +2 -0
- package/dist/lib/dom/replaced-elements/input-element-container.js +89 -0
- package/dist/lib/dom/replaced-elements/svg-element-container.js +19 -0
- package/dist/lib/dom/slot-cloner.js +176 -0
- package/dist/lib/dom/text-container.js +35 -0
- package/dist/lib/index.js +49 -0
- package/dist/lib/options.js +2 -0
- package/dist/lib/render/background.js +188 -0
- package/dist/lib/render/bezier-curve.js +34 -0
- package/dist/lib/render/border.js +104 -0
- package/dist/lib/render/bound-curves.js +188 -0
- package/dist/lib/render/box-sizing.js +20 -0
- package/dist/lib/render/canvas/background-renderer.js +327 -0
- package/dist/lib/render/canvas/border-image-renderer.js +153 -0
- package/dist/lib/render/canvas/border-renderer.js +184 -0
- package/dist/lib/render/canvas/canvas-path.js +25 -0
- package/dist/lib/render/canvas/canvas-renderer.js +312 -0
- package/dist/lib/render/canvas/content-renderer.js +204 -0
- package/dist/lib/render/canvas/effects-renderer.js +171 -0
- package/dist/lib/render/canvas/font-utils.js +29 -0
- package/dist/lib/render/canvas/foreignobject-renderer.js +38 -0
- package/dist/lib/render/canvas/text/text-decoration-renderer.js +99 -0
- package/dist/lib/render/canvas/text-renderer.js +485 -0
- package/dist/lib/render/effects.js +231 -0
- package/dist/lib/render/font-metrics.js +53 -0
- package/dist/lib/render/object-fit.js +91 -0
- package/dist/lib/render/path.js +26 -0
- package/dist/lib/render/renderer-interface.js +2 -0
- package/dist/lib/render/stacking-context.js +340 -0
- package/dist/lib/render/vector.js +16 -0
- package/dist/types/config.d.ts +44 -0
- package/dist/types/core/abort-helper.d.ts +12 -0
- package/dist/types/core/background-parser.d.ts +16 -0
- package/dist/types/core/bitwise.d.ts +1 -0
- package/dist/types/core/cache-storage.d.ts +68 -0
- package/dist/types/core/config-assembler.d.ts +28 -0
- package/dist/types/core/constants.d.ts +22 -0
- package/dist/types/core/context.d.ts +22 -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/lru-map.d.ts +37 -0
- package/dist/types/core/origin-checker.d.ts +33 -0
- package/dist/types/core/performance-monitor.d.ts +120 -0
- package/dist/types/core/render-element.d.ts +3 -0
- package/dist/types/core/util.d.ts +1 -0
- package/dist/types/core/validator.d.ts +130 -0
- package/dist/types/css/grouped/background-styles.d.ts +16 -0
- package/dist/types/css/grouped/border-styles.d.ts +31 -0
- package/dist/types/css/grouped/font-styles.d.ts +35 -0
- package/dist/types/css/grouped/layout-styles.d.ts +46 -0
- package/dist/types/css/index.d.ts +185 -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-descriptor.d.ts +40 -0
- package/dist/types/css/property-descriptors/background-blend-mode.d.ts +23 -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-image-repeat.d.ts +12 -0
- package/dist/types/css/property-descriptors/border-image-slice.d.ts +10 -0
- package/dist/types/css/property-descriptors/border-image-source.d.ts +4 -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-decoration-break.d.ts +6 -0
- package/dist/types/css/property-descriptors/box-shadow.d.ts +14 -0
- package/dist/types/css/property-descriptors/clip-path.d.ts +62 -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 +10 -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/filter.d.ts +3 -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-ligatures.d.ts +14 -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/image-rendering.d.ts +8 -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/mix-blend-mode.d.ts +21 -0
- package/dist/types/css/property-descriptors/object-fit.d.ts +10 -0
- package/dist/types/css/property-descriptors/object-position.d.ts +4 -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/rotate.d.ts +3 -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-decoration-style.d.ts +9 -0
- package/dist/types/css/property-descriptors/text-decoration-thickness.d.ts +3 -0
- package/dist/types/css/property-descriptors/text-overflow.d.ts +6 -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/text-underline-offset.d.ts +3 -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-line-clamp.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/writing-mode.d.ts +11 -0
- package/dist/types/css/property-descriptors/z-index.d.ts +7 -0
- package/dist/types/css/property-descriptors/zoom.d.ts +3 -0
- package/dist/types/css/syntax/parser.d.ts +34 -0
- package/dist/types/css/syntax/token-constants.d.ts +74 -0
- package/dist/types/css/syntax/token-singletons.d.ts +22 -0
- package/dist/types/css/syntax/token-types.d.ts +72 -0
- package/dist/types/css/syntax/tokenizer.d.ts +32 -0
- package/dist/types/css/type-descriptor.d.ts +6 -0
- package/dist/types/css/types/angle.d.ts +7 -0
- package/dist/types/css/types/color-math.d.ts +12 -0
- package/dist/types/css/types/color-spaces/a98.d.ts +39 -0
- package/dist/types/css/types/color-spaces/p3.d.ts +45 -0
- package/dist/types/css/types/color-spaces/pro-photo.d.ts +45 -0
- package/dist/types/css/types/color-spaces/rec2020.d.ts +45 -0
- package/dist/types/css/types/color-spaces/srgb.d.ts +38 -0
- package/dist/types/css/types/color-utilities.d.ts +107 -0
- package/dist/types/css/types/color.d.ts +8 -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/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/functions/repeating-linear-gradient.d.ts +4 -0
- package/dist/types/css/types/image.d.ts +56 -0
- package/dist/types/css/types/index.d.ts +1 -0
- package/dist/types/css/types/length-percentage.d.ts +62 -0
- package/dist/types/css/types/length.d.ts +4 -0
- package/dist/types/css/types/safe-eval.d.ts +8 -0
- package/dist/types/css/types/time.d.ts +2 -0
- package/dist/types/dom/document-cloner.d.ts +57 -0
- package/dist/types/dom/dom-normalizer.d.ts +62 -0
- package/dist/types/dom/element-container.d.ts +31 -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 +3 -0
- package/dist/types/dom/node-type-guards.d.ts +32 -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 +14 -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 +14 -0
- package/dist/types/dom/replaced-elements/svg-element-container.d.ts +8 -0
- package/dist/types/dom/slot-cloner.d.ts +66 -0
- package/dist/types/dom/text-container.d.ts +8 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/options.d.ts +62 -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/background-renderer.d.ts +94 -0
- package/dist/types/render/canvas/border-image-renderer.d.ts +18 -0
- package/dist/types/render/canvas/border-renderer.d.ts +67 -0
- package/dist/types/render/canvas/canvas-path.d.ts +3 -0
- package/dist/types/render/canvas/canvas-renderer.d.ts +60 -0
- package/dist/types/render/canvas/content-renderer.d.ts +43 -0
- package/dist/types/render/canvas/effects-renderer.d.ts +90 -0
- package/dist/types/render/canvas/font-utils.d.ts +19 -0
- package/dist/types/render/canvas/foreignobject-renderer.d.ts +10 -0
- package/dist/types/render/canvas/text/text-decoration-renderer.d.ts +18 -0
- package/dist/types/render/canvas/text-renderer.d.ts +103 -0
- package/dist/types/render/effects.d.ts +112 -0
- package/dist/types/render/font-metrics.d.ts +11 -0
- package/dist/types/render/object-fit.d.ts +19 -0
- package/dist/types/render/path.d.ts +13 -0
- package/dist/types/render/renderer-interface.d.ts +28 -0
- package/dist/types/render/stacking-context.d.ts +49 -0
- package/dist/types/render/vector.d.ts +9 -0
- package/package.json +139 -4
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
/** When true, the parse result is never stored in parseCache.
|
|
17
|
+
* Set this for descriptors whose parse() has side effects (e.g.,
|
|
18
|
+
* calling context.cache.addImage) that must run on every render pass. */
|
|
19
|
+
skipCache?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface IPropertyIdentValueDescriptor<T> extends IPropertyDescriptor {
|
|
22
|
+
type: PropertyDescriptorParsingType.IDENT_VALUE;
|
|
23
|
+
parse: (context: Context, token: string) => T;
|
|
24
|
+
}
|
|
25
|
+
export interface IPropertyTypeValueDescriptor extends IPropertyDescriptor {
|
|
26
|
+
type: PropertyDescriptorParsingType.TYPE_VALUE;
|
|
27
|
+
format: CSSTypes;
|
|
28
|
+
}
|
|
29
|
+
export interface IPropertyValueDescriptor<T> extends IPropertyDescriptor {
|
|
30
|
+
type: PropertyDescriptorParsingType.VALUE;
|
|
31
|
+
parse: (context: Context, token: CSSValue) => T;
|
|
32
|
+
}
|
|
33
|
+
export interface IPropertyListDescriptor<T> extends IPropertyDescriptor {
|
|
34
|
+
type: PropertyDescriptorParsingType.LIST;
|
|
35
|
+
parse: (context: Context, tokens: CSSValue[]) => T;
|
|
36
|
+
}
|
|
37
|
+
export interface IPropertyTokenValueDescriptor extends IPropertyDescriptor {
|
|
38
|
+
type: PropertyDescriptorParsingType.TOKEN_VALUE;
|
|
39
|
+
}
|
|
40
|
+
export type CSSPropertyDescriptor<T> = IPropertyValueDescriptor<T> | IPropertyListDescriptor<T> | IPropertyIdentValueDescriptor<T> | IPropertyTypeValueDescriptor | IPropertyTokenValueDescriptor;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
2
|
+
export declare const MIX_BLEND_MODE: {
|
|
3
|
+
readonly NORMAL: "normal";
|
|
4
|
+
readonly MULTIPLY: "multiply";
|
|
5
|
+
readonly SCREEN: "screen";
|
|
6
|
+
readonly OVERLAY: "overlay";
|
|
7
|
+
readonly DARKEN: "darken";
|
|
8
|
+
readonly LIGHTEN: "lighten";
|
|
9
|
+
readonly COLOR_DODGE: "color-dodge";
|
|
10
|
+
readonly COLOR_BURN: "color-burn";
|
|
11
|
+
readonly HARD_LIGHT: "hard-light";
|
|
12
|
+
readonly SOFT_LIGHT: "soft-light";
|
|
13
|
+
readonly DIFFERENCE: "difference";
|
|
14
|
+
readonly EXCLUSION: "exclusion";
|
|
15
|
+
readonly HUE: "hue";
|
|
16
|
+
readonly SATURATION: "saturation";
|
|
17
|
+
readonly COLOR: "color";
|
|
18
|
+
readonly LUMINOSITY: "luminosity";
|
|
19
|
+
};
|
|
20
|
+
export type BackgroundBlendMode = BlendModeValue[];
|
|
21
|
+
type BlendModeValue = (typeof MIX_BLEND_MODE)[keyof typeof MIX_BLEND_MODE];
|
|
22
|
+
export declare const backgroundBlendMode: IPropertyListDescriptor<BackgroundBlendMode>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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,12 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
2
|
+
export declare enum BORDER_IMAGE_REPEAT {
|
|
3
|
+
STRETCH = 0,
|
|
4
|
+
REPEAT = 1,
|
|
5
|
+
ROUND = 2,
|
|
6
|
+
SPACE = 3
|
|
7
|
+
}
|
|
8
|
+
export interface BorderImageRepeat {
|
|
9
|
+
horizontal: BORDER_IMAGE_REPEAT;
|
|
10
|
+
vertical: BORDER_IMAGE_REPEAT;
|
|
11
|
+
}
|
|
12
|
+
export declare const borderImageRepeat: IPropertyListDescriptor<BorderImageRepeat>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
2
|
+
export interface BorderImageSlice {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
fill: boolean;
|
|
8
|
+
unit: 'number' | 'percent';
|
|
9
|
+
}
|
|
10
|
+
export declare const borderImageSlice: IPropertyListDescriptor<BorderImageSlice>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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,62 @@
|
|
|
1
|
+
import { IPropertyValueDescriptor } from '../property-descriptor';
|
|
2
|
+
import { LengthPercentage } from '../types/length-percentage';
|
|
3
|
+
export declare const enum CLIP_PATH_TYPE {
|
|
4
|
+
NONE = 0,
|
|
5
|
+
INSET = 1,
|
|
6
|
+
CIRCLE = 2,
|
|
7
|
+
ELLIPSE = 3,
|
|
8
|
+
POLYGON = 4,
|
|
9
|
+
PATH = 5
|
|
10
|
+
}
|
|
11
|
+
/** Radius keyword or length-percentage for circle/ellipse. */
|
|
12
|
+
export type ShapeRadius = LengthPercentage | 'closest-side' | 'farthest-side';
|
|
13
|
+
export interface NoneClipPath {
|
|
14
|
+
type: CLIP_PATH_TYPE.NONE;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* inset(top right bottom left [ round <border-radius> ]?)
|
|
18
|
+
* Amounts to cut from each side of the reference box.
|
|
19
|
+
*/
|
|
20
|
+
export interface InsetClipPath {
|
|
21
|
+
type: CLIP_PATH_TYPE.INSET;
|
|
22
|
+
top: LengthPercentage;
|
|
23
|
+
right: LengthPercentage;
|
|
24
|
+
bottom: LengthPercentage;
|
|
25
|
+
left: LengthPercentage;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* circle( [ <shape-radius> ]? [ at <position> ]? )
|
|
29
|
+
*/
|
|
30
|
+
export interface CircleClipPath {
|
|
31
|
+
type: CLIP_PATH_TYPE.CIRCLE;
|
|
32
|
+
radius: ShapeRadius;
|
|
33
|
+
cx: LengthPercentage;
|
|
34
|
+
cy: LengthPercentage;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )
|
|
38
|
+
*/
|
|
39
|
+
export interface EllipseClipPath {
|
|
40
|
+
type: CLIP_PATH_TYPE.ELLIPSE;
|
|
41
|
+
rx: ShapeRadius;
|
|
42
|
+
ry: ShapeRadius;
|
|
43
|
+
cx: LengthPercentage;
|
|
44
|
+
cy: LengthPercentage;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* polygon( [ <fill-rule>, ]? [ <length-percentage> <length-percentage> ]# )
|
|
48
|
+
*/
|
|
49
|
+
export interface PolygonClipPath {
|
|
50
|
+
type: CLIP_PATH_TYPE.POLYGON;
|
|
51
|
+
points: [LengthPercentage, LengthPercentage][];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* path( [ <fill-rule>, ]? <string> )
|
|
55
|
+
* The string contains SVG path data in the element's local coordinate space.
|
|
56
|
+
*/
|
|
57
|
+
export interface PathClipPath {
|
|
58
|
+
type: CLIP_PATH_TYPE.PATH;
|
|
59
|
+
d: string;
|
|
60
|
+
}
|
|
61
|
+
export type ClipPathValue = NoneClipPath | InsetClipPath | CircleClipPath | EllipseClipPath | PolygonClipPath | PathClipPath;
|
|
62
|
+
export declare const clipPath: IPropertyValueDescriptor<ClipPathValue>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
2
|
+
import { CSSValue } from '../syntax/parser';
|
|
3
|
+
export interface COUNTER_INCREMENT {
|
|
4
|
+
counter: string;
|
|
5
|
+
increment: number;
|
|
6
|
+
}
|
|
7
|
+
export type CounterIncrement = COUNTER_INCREMENT[] | null;
|
|
8
|
+
/** Shared counter-ID parsing: returns next number or a fallback default. */
|
|
9
|
+
export declare const parseCounterValue: (tokens: CSSValue[], defaultNumber: number) => [string, number][];
|
|
10
|
+
export declare const counterIncrement: IPropertyListDescriptor<CounterIncrement>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
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,14 @@
|
|
|
1
|
+
import { IPropertyIdentValueDescriptor } from '../property-descriptor';
|
|
2
|
+
export declare const enum FONT_VARIANT_LIGATURES {
|
|
3
|
+
NORMAL = 0,
|
|
4
|
+
NONE = 1,
|
|
5
|
+
COMMON_LIGATURES = 2,
|
|
6
|
+
NO_COMMON_LIGATURES = 3,
|
|
7
|
+
DISCRETIONARY_LIGATURES = 4,
|
|
8
|
+
NO_DISCRETIONARY_LIGATURES = 5,
|
|
9
|
+
HISTORICAL_LIGATURES = 6,
|
|
10
|
+
NO_HISTORICAL_LIGATURES = 7,
|
|
11
|
+
CONTEXTUAL = 8,
|
|
12
|
+
NO_CONTEXTUAL = 9
|
|
13
|
+
}
|
|
14
|
+
export declare const fontVariantLigatures: IPropertyIdentValueDescriptor<FONT_VARIANT_LIGATURES>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IPropertyIdentValueDescriptor } from '../property-descriptor';
|
|
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
|
+
HIRAGANA = 23,
|
|
28
|
+
HIRAGANA_IROHA = 24,
|
|
29
|
+
JAPANESE_FORMAL = 25,
|
|
30
|
+
JAPANESE_INFORMAL = 26,
|
|
31
|
+
KANNADA = 27,
|
|
32
|
+
KATAKANA = 28,
|
|
33
|
+
KATAKANA_IROHA = 29,
|
|
34
|
+
KHMER = 30,
|
|
35
|
+
KOREAN_HANGUL_FORMAL = 31,
|
|
36
|
+
KOREAN_HANJA_FORMAL = 32,
|
|
37
|
+
KOREAN_HANJA_INFORMAL = 33,
|
|
38
|
+
LAO = 34,
|
|
39
|
+
LOWER_ARMENIAN = 35,
|
|
40
|
+
MALAYALAM = 36,
|
|
41
|
+
MONGOLIAN = 37,
|
|
42
|
+
MYANMAR = 38,
|
|
43
|
+
ORIYA = 39,
|
|
44
|
+
PERSIAN = 40,
|
|
45
|
+
SIMP_CHINESE_FORMAL = 41,
|
|
46
|
+
SIMP_CHINESE_INFORMAL = 42,
|
|
47
|
+
TAMIL = 43,
|
|
48
|
+
TELUGU = 44,
|
|
49
|
+
THAI = 45,
|
|
50
|
+
TIBETAN = 46,
|
|
51
|
+
TRAD_CHINESE_FORMAL = 47,
|
|
52
|
+
TRAD_CHINESE_INFORMAL = 48,
|
|
53
|
+
UPPER_ARMENIAN = 49,
|
|
54
|
+
DISCLOSURE_OPEN = 50,
|
|
55
|
+
DISCLOSURE_CLOSED = 51,
|
|
56
|
+
HEBREW = 52
|
|
57
|
+
}
|
|
58
|
+
export declare const listStyleType: IPropertyIdentValueDescriptor<LIST_STYLE_TYPE>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyTokenValueDescriptor } from '../property-descriptor';
|
|
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,21 @@
|
|
|
1
|
+
import { IPropertyIdentValueDescriptor } from '../property-descriptor';
|
|
2
|
+
export declare const MIX_BLEND_MODE: {
|
|
3
|
+
readonly NORMAL: "normal";
|
|
4
|
+
readonly MULTIPLY: "multiply";
|
|
5
|
+
readonly SCREEN: "screen";
|
|
6
|
+
readonly OVERLAY: "overlay";
|
|
7
|
+
readonly DARKEN: "darken";
|
|
8
|
+
readonly LIGHTEN: "lighten";
|
|
9
|
+
readonly COLOR_DODGE: "color-dodge";
|
|
10
|
+
readonly COLOR_BURN: "color-burn";
|
|
11
|
+
readonly HARD_LIGHT: "hard-light";
|
|
12
|
+
readonly SOFT_LIGHT: "soft-light";
|
|
13
|
+
readonly DIFFERENCE: "difference";
|
|
14
|
+
readonly EXCLUSION: "exclusion";
|
|
15
|
+
readonly HUE: "hue";
|
|
16
|
+
readonly SATURATION: "saturation";
|
|
17
|
+
readonly COLOR: "color";
|
|
18
|
+
readonly LUMINOSITY: "luminosity";
|
|
19
|
+
};
|
|
20
|
+
export type MixBlendMode = (typeof MIX_BLEND_MODE)[keyof typeof MIX_BLEND_MODE];
|
|
21
|
+
export declare const mixBlendMode: IPropertyIdentValueDescriptor<MixBlendMode>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
2
|
+
export declare const enum OBJECT_FIT {
|
|
3
|
+
FILL = 0,
|
|
4
|
+
CONTAIN = 2,
|
|
5
|
+
COVER = 4,
|
|
6
|
+
NONE = 8,
|
|
7
|
+
SCALE_DOWN = 16
|
|
8
|
+
}
|
|
9
|
+
export type ObjectFit = number;
|
|
10
|
+
export declare const objectFit: IPropertyListDescriptor<ObjectFit>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IPropertyListDescriptor } from '../property-descriptor';
|
|
2
|
+
import { LengthPercentage } from '../types/length-percentage';
|
|
3
|
+
export type ObjectPosition = [LengthPercentage, LengthPercentage];
|
|
4
|
+
export declare const objectPosition: IPropertyListDescriptor<ObjectPosition>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPropertyTypeValueDescriptor } from '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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 '../property-descriptor';
|
|
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;
|