groove-dev 0.27.86 โ 0.27.87
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/CLAUDE.md +10 -0
- package/moe-training/client/scrubber.js +4 -2
- package/moe-training/client/step-classifier.js +17 -0
- package/moe-training/client/trajectory-capture.js +80 -6
- package/moe-training/client/transmission-queue.js +11 -0
- package/moe-training/test/client/scrubber.test.js +14 -4
- package/moe-training/test/client/step-classifier.test.js +47 -0
- package/moe-training/test/client/transmission-queue.test.js +33 -0
- package/node_modules/@groove-dev/cli/bin/groove.js +10 -1
- package/node_modules/@groove-dev/cli/package.json +1 -1
- package/node_modules/@groove-dev/cli/src/commands/connect.js +116 -205
- package/node_modules/@groove-dev/cli/src/commands/disconnect.js +38 -62
- package/node_modules/@groove-dev/cli/src/commands/remotes.js +75 -0
- package/node_modules/@groove-dev/daemon/package.json +1 -1
- package/node_modules/@groove-dev/daemon/src/process.js +56 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-BCQY8ojz.css +1 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-C5e7KVGN.js +8637 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/package.json +2 -1
- package/node_modules/@groove-dev/gui/src/components/preview/preview-workspace.jsx +6 -5
- package/node_modules/@groove-dev/gui/src/components/preview/screenshot-overlay.jsx +41 -29
- package/node_modules/@groove-dev/gui/src/stores/groove.js +6 -2
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +15 -1
- package/node_modules/@groove-dev/gui/src/views/settings.jsx +104 -26
- package/node_modules/base64-arraybuffer/CHANGELOG.md +28 -0
- package/node_modules/base64-arraybuffer/LICENSE +22 -0
- package/node_modules/base64-arraybuffer/README.md +27 -0
- package/node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js +50 -0
- package/node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js.map +1 -0
- package/node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js +61 -0
- package/node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js.map +1 -0
- package/node_modules/base64-arraybuffer/dist/lib/index.js +48 -0
- package/node_modules/base64-arraybuffer/dist/lib/index.js.map +1 -0
- package/node_modules/base64-arraybuffer/dist/types/index.d.ts +2 -0
- package/node_modules/base64-arraybuffer/package.json +54 -0
- package/node_modules/base64-arraybuffer/rollup.config.ts +40 -0
- package/node_modules/css-line-break/CHANGELOG.md +58 -0
- package/node_modules/css-line-break/LICENSE +22 -0
- package/node_modules/css-line-break/README.md +66 -0
- package/node_modules/css-line-break/dist/css-line-break.es5.js +706 -0
- package/node_modules/css-line-break/dist/css-line-break.es5.js.map +1 -0
- package/node_modules/css-line-break/dist/css-line-break.umd.js +718 -0
- package/node_modules/css-line-break/dist/css-line-break.umd.js.map +1 -0
- package/node_modules/css-line-break/dist/lib/LineBreak.js +516 -0
- package/node_modules/css-line-break/dist/lib/LineBreak.js.map +1 -0
- package/node_modules/css-line-break/dist/lib/Util.js +109 -0
- package/node_modules/css-line-break/dist/lib/Util.js.map +1 -0
- package/node_modules/css-line-break/dist/lib/index.js +9 -0
- package/node_modules/css-line-break/dist/lib/index.js.map +1 -0
- package/node_modules/css-line-break/dist/lib/linebreak-trie.js +6 -0
- package/node_modules/css-line-break/dist/lib/linebreak-trie.js.map +1 -0
- package/node_modules/css-line-break/dist/types/LineBreak.d.ts +38 -0
- package/node_modules/css-line-break/dist/types/Util.d.ts +5 -0
- package/node_modules/css-line-break/dist/types/index.d.ts +2 -0
- package/node_modules/css-line-break/dist/types/linebreak-trie.d.ts +2 -0
- package/node_modules/css-line-break/package.json +61 -0
- package/node_modules/css-line-break/rollup.config.ts +40 -0
- package/node_modules/html2canvas/CHANGELOG.md +566 -0
- package/node_modules/html2canvas/LICENSE +22 -0
- package/node_modules/html2canvas/README.md +73 -0
- package/node_modules/html2canvas/dist/html2canvas.esm.js +7822 -0
- package/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -0
- package/node_modules/html2canvas/dist/html2canvas.js +7830 -0
- package/node_modules/html2canvas/dist/html2canvas.js.map +1 -0
- package/node_modules/html2canvas/dist/html2canvas.min.js +20 -0
- package/node_modules/html2canvas/dist/lib/__tests__/index.js +144 -0
- package/node_modules/html2canvas/dist/lib/__tests__/index.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/cache-storage.js +10 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/cache-storage.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/context.js +22 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/context.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/features.js +12 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/features.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/logger.js +24 -0
- package/node_modules/html2canvas/dist/lib/core/__mocks__/logger.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/__tests__/cache-storage.js +420 -0
- package/node_modules/html2canvas/dist/lib/core/__tests__/cache-storage.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/__tests__/logger.js +28 -0
- package/node_modules/html2canvas/dist/lib/core/__tests__/logger.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/bitwise.js +6 -0
- package/node_modules/html2canvas/dist/lib/core/bitwise.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/cache-storage.js +198 -0
- package/node_modules/html2canvas/dist/lib/core/cache-storage.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/context.js +18 -0
- package/node_modules/html2canvas/dist/lib/core/context.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/debugger.js +25 -0
- package/node_modules/html2canvas/dist/lib/core/debugger.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/features.js +193 -0
- package/node_modules/html2canvas/dist/lib/core/features.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/logger.js +88 -0
- package/node_modules/html2canvas/dist/lib/core/logger.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/core/util.js +5 -0
- package/node_modules/html2canvas/dist/lib/core/util.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/IPropertyDescriptor.js +3 -0
- package/node_modules/html2canvas/dist/lib/css/IPropertyDescriptor.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/ITypeDescriptor.js +3 -0
- package/node_modules/html2canvas/dist/lib/css/ITypeDescriptor.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/index.js +216 -0
- package/node_modules/html2canvas/dist/lib/css/index.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/layout/__mocks__/bounds.js +9 -0
- package/node_modules/html2canvas/dist/lib/css/layout/__mocks__/bounds.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/layout/bounds.js +42 -0
- package/node_modules/html2canvas/dist/lib/css/layout/bounds.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/layout/text.js +137 -0
- package/node_modules/html2canvas/dist/lib/css/layout/text.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/background-tests.js +48 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/background-tests.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/font-family.js +25 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/font-family.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/paint-order.js +88 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/paint-order.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/text-shadow.js +94 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/text-shadow.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/transform-tests.js +18 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/__tests__/transform-tests.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-clip.js +24 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-clip.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-color.js +11 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-color.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-image.js +24 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-image.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-origin.js +24 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-origin.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-position.js +17 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-position.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-repeat.js +36 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-repeat.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-size.js +24 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/background-size.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-color.js +15 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-color.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-radius.js +18 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-radius.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-style.js +27 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-style.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-width.js +21 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/border-width.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/box-shadow.js +55 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/box-shadow.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/color.js +11 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/color.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/content.js +20 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/content.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/counter-increment.js +31 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/counter-increment.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/counter-reset.js +27 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/counter-reset.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/direction.js +19 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/direction.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/display.js +82 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/display.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/duration.js +15 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/duration.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/float.js +23 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/float.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-family.js +33 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-family.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-size.js +11 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-size.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-style.js +21 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-style.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-variant.js +14 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-variant.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-weight.js +26 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/font-weight.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/letter-spacing.js +22 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/letter-spacing.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/line-break.js +24 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/line-break.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/line-height.js +25 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/line-height.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/list-style-image.js +17 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/list-style-image.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/list-style-position.js +19 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/list-style-position.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/list-style-type.js +123 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/list-style-type.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/margin.js +14 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/margin.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/opacity.js +17 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/opacity.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/overflow-wrap.js +19 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/overflow-wrap.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/overflow.js +28 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/overflow.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/padding.js +15 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/padding.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/paint-order.js +34 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/paint-order.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/position.js +23 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/position.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/quotes.js +42 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/quotes.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-align.js +22 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-align.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-decoration-color.js +11 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-decoration-color.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-decoration-line.js +29 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-decoration-line.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-shadow.js +47 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-shadow.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-transform.js +21 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/text-transform.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/transform-origin.js +25 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/transform-origin.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/transform.js +37 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/transform.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/visibility.js +21 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/visibility.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/webkit-text-stroke-color.js +11 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/webkit-text-stroke-color.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/webkit-text-stroke-width.js +17 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/webkit-text-stroke-width.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/word-break.js +27 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/word-break.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/z-index.js +20 -0
- package/node_modules/html2canvas/dist/lib/css/property-descriptors/z-index.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/syntax/__tests__/tokernizer-tests.js +34 -0
- package/node_modules/html2canvas/dist/lib/css/syntax/__tests__/tokernizer-tests.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/syntax/parser.js +147 -0
- package/node_modules/html2canvas/dist/lib/css/syntax/parser.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/syntax/tokenizer.js +630 -0
- package/node_modules/html2canvas/dist/lib/css/syntax/tokenizer.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/__tests__/color-tests.js +66 -0
- package/node_modules/html2canvas/dist/lib/css/types/__tests__/color-tests.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/__tests__/image-tests.js +233 -0
- package/node_modules/html2canvas/dist/lib/css/types/__tests__/image-tests.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/angle.js +81 -0
- package/node_modules/html2canvas/dist/lib/css/types/angle.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/color.js +288 -0
- package/node_modules/html2canvas/dist/lib/css/types/color.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/-prefix-linear-gradient.js +33 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/-prefix-linear-gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/-prefix-radial-gradient.js +84 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/-prefix-radial-gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/-webkit-gradient.js +60 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/-webkit-gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/__tests__/radial-gradient.js +68 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/__tests__/radial-gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/counter.js +374 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/counter.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/gradient.js +165 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/linear-gradient.js +28 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/linear-gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/radial-gradient.js +91 -0
- package/node_modules/html2canvas/dist/lib/css/types/functions/radial-gradient.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/image.js +53 -0
- package/node_modules/html2canvas/dist/lib/css/types/image.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/index.js +3 -0
- package/node_modules/html2canvas/dist/lib/css/types/index.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/length-percentage.js +52 -0
- package/node_modules/html2canvas/dist/lib/css/types/length-percentage.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/length.js +8 -0
- package/node_modules/html2canvas/dist/lib/css/types/length.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/css/types/time.js +18 -0
- package/node_modules/html2canvas/dist/lib/css/types/time.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/__mocks__/document-cloner.js +24 -0
- package/node_modules/html2canvas/dist/lib/dom/__mocks__/document-cloner.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/document-cloner.js +530 -0
- package/node_modules/html2canvas/dist/lib/dom/document-cloner.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/element-container.js +35 -0
- package/node_modules/html2canvas/dist/lib/dom/element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/li-element-container.js +30 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/li-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/ol-element-container.js +31 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/ol-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/select-element-container.js +31 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/select-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/textarea-element-container.js +30 -0
- package/node_modules/html2canvas/dist/lib/dom/elements/textarea-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/node-parser.js +142 -0
- package/node_modules/html2canvas/dist/lib/dom/node-parser.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/canvas-element-container.js +32 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/canvas-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/iframe-element-container.js +55 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/iframe-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/image-element-container.js +33 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/image-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/index.js +3 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/index.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/input-element-container.js +102 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/input-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/pseudo-elements.js +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/pseudo-elements.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/svg-element-container.js +38 -0
- package/node_modules/html2canvas/dist/lib/dom/replaced-elements/svg-element-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/dom/text-container.js +32 -0
- package/node_modules/html2canvas/dist/lib/dom/text-container.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/index.js +181 -0
- package/node_modules/html2canvas/dist/lib/index.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/invariant.js +10 -0
- package/node_modules/html2canvas/dist/lib/invariant.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/background.js +187 -0
- package/node_modules/html2canvas/dist/lib/render/background.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/bezier-curve.js +36 -0
- package/node_modules/html2canvas/dist/lib/render/bezier-curve.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/border.js +105 -0
- package/node_modules/html2canvas/dist/lib/render/border.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/bound-curves.js +190 -0
- package/node_modules/html2canvas/dist/lib/render/bound-curves.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/box-sizing.js +21 -0
- package/node_modules/html2canvas/dist/lib/render/box-sizing.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/canvas/canvas-renderer.js +1030 -0
- package/node_modules/html2canvas/dist/lib/render/canvas/canvas-renderer.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/canvas/foreignobject-renderer.js +108 -0
- package/node_modules/html2canvas/dist/lib/render/canvas/foreignobject-renderer.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/effects.js +41 -0
- package/node_modules/html2canvas/dist/lib/render/effects.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/font-metrics.js +55 -0
- package/node_modules/html2canvas/dist/lib/render/font-metrics.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/path.js +27 -0
- package/node_modules/html2canvas/dist/lib/render/path.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/renderer.js +12 -0
- package/node_modules/html2canvas/dist/lib/render/renderer.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/stacking-context.js +172 -0
- package/node_modules/html2canvas/dist/lib/render/stacking-context.js.map +1 -0
- package/node_modules/html2canvas/dist/lib/render/vector.js +18 -0
- package/node_modules/html2canvas/dist/lib/render/vector.js.map +1 -0
- package/node_modules/html2canvas/dist/types/__tests__/index.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/core/__mocks__/cache-storage.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/core/__mocks__/context.d.ts +9 -0
- package/node_modules/html2canvas/dist/types/core/__mocks__/features.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/core/__mocks__/logger.d.ts +9 -0
- package/node_modules/html2canvas/dist/types/core/__tests__/cache-storage.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/core/__tests__/logger.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/core/bitwise.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/core/cache-storage.d.ts +26 -0
- package/node_modules/html2canvas/dist/types/core/context.d.ts +15 -0
- package/node_modules/html2canvas/dist/types/core/debugger.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/core/features.d.ts +12 -0
- package/node_modules/html2canvas/dist/types/core/logger.d.ts +18 -0
- package/node_modules/html2canvas/dist/types/core/util.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/IPropertyDescriptor.d.ts +36 -0
- package/node_modules/html2canvas/dist/types/css/ITypeDescriptor.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/css/index.d.ts +132 -0
- package/node_modules/html2canvas/dist/types/css/layout/__mocks__/bounds.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/layout/bounds.d.ts +14 -0
- package/node_modules/html2canvas/dist/types/css/layout/text.d.ts +10 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/__tests__/background-tests.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/__tests__/font-family.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/__tests__/paint-order.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/__tests__/text-shadow.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/__tests__/transform-tests.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-clip.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-color.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-image.d.ts +3 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-origin.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-position.d.ts +5 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-repeat.d.ts +9 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/background-size.d.ts +11 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/border-color.d.ts +5 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/border-radius.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/border-style.d.ts +12 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/border-width.d.ts +5 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/box-shadow.d.ts +14 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/color.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/content.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/counter-increment.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/counter-reset.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/direction.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/display.d.ts +35 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/duration.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/float.d.ts +9 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/font-family.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/font-size.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/font-style.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/font-variant.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/font-weight.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/letter-spacing.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/line-break.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/line-height.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/list-style-image.d.ts +3 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/list-style-position.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/list-style-type.d.ts +58 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/margin.d.ts +5 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/opacity.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/overflow-wrap.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/overflow.d.ts +9 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/padding.d.ts +5 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/paint-order.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/position.d.ts +9 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/quotes.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/text-align.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/text-decoration-color.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/text-decoration-line.d.ts +10 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/text-shadow.d.ts +12 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/text-transform.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/transform-origin.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/transform.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/visibility.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/webkit-text-stroke-color.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/webkit-text-stroke-width.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/word-break.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/property-descriptors/z-index.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/syntax/__tests__/tokernizer-tests.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/syntax/parser.d.ts +34 -0
- package/node_modules/html2canvas/dist/types/css/syntax/tokenizer.d.ts +94 -0
- package/node_modules/html2canvas/dist/types/css/types/__tests__/color-tests.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/types/__tests__/image-tests.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/types/angle.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/types/color.d.ts +11 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/-prefix-linear-gradient.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/-prefix-radial-gradient.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/-webkit-gradient.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/__tests__/radial-gradient.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/counter.d.ts +10 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/gradient.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/linear-gradient.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/types/functions/radial-gradient.d.ts +12 -0
- package/node_modules/html2canvas/dist/types/css/types/image.d.ts +54 -0
- package/node_modules/html2canvas/dist/types/css/types/index.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/css/types/length-percentage.d.ts +11 -0
- package/node_modules/html2canvas/dist/types/css/types/length.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/css/types/time.d.ts +2 -0
- package/node_modules/html2canvas/dist/types/dom/__mocks__/document-cloner.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/dom/document-cloner.d.ts +45 -0
- package/node_modules/html2canvas/dist/types/dom/element-container.d.ts +19 -0
- package/node_modules/html2canvas/dist/types/dom/elements/li-element-container.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/dom/elements/ol-element-container.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/dom/elements/select-element-container.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/dom/elements/textarea-element-container.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/dom/node-parser.d.ts +23 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/canvas-element-container.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/iframe-element-container.d.ts +11 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/image-element-container.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/index.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/input-element-container.d.ts +12 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/pseudo-elements.d.ts +0 -0
- package/node_modules/html2canvas/dist/types/dom/replaced-elements/svg-element-container.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/dom/text-container.d.ts +8 -0
- package/node_modules/html2canvas/dist/types/index.d.ts +10 -0
- package/node_modules/html2canvas/dist/types/invariant.d.ts +1 -0
- package/node_modules/html2canvas/dist/types/render/background.d.ts +16 -0
- package/node_modules/html2canvas/dist/types/render/bezier-curve.d.ts +14 -0
- package/node_modules/html2canvas/dist/types/render/border.d.ts +6 -0
- package/node_modules/html2canvas/dist/types/render/bound-curves.d.ts +32 -0
- package/node_modules/html2canvas/dist/types/render/box-sizing.d.ts +4 -0
- package/node_modules/html2canvas/dist/types/render/canvas/canvas-renderer.d.ts +53 -0
- package/node_modules/html2canvas/dist/types/render/canvas/foreignobject-renderer.d.ts +11 -0
- package/node_modules/html2canvas/dist/types/render/effects.d.ts +38 -0
- package/node_modules/html2canvas/dist/types/render/font-metrics.d.ts +11 -0
- package/node_modules/html2canvas/dist/types/render/path.d.ts +13 -0
- package/node_modules/html2canvas/dist/types/render/renderer.d.ts +7 -0
- package/node_modules/html2canvas/dist/types/render/stacking-context.d.ts +24 -0
- package/node_modules/html2canvas/dist/types/render/vector.d.ts +9 -0
- package/node_modules/html2canvas/package.json +124 -0
- package/node_modules/html2canvas/tsconfig.json +21 -0
- package/node_modules/text-segmentation/CHANGELOG.md +43 -0
- package/node_modules/text-segmentation/LICENSE +22 -0
- package/node_modules/text-segmentation/README.md +27 -0
- package/node_modules/text-segmentation/dist/lib/GraphemeBreak.js +218 -0
- package/node_modules/text-segmentation/dist/lib/GraphemeBreak.js.map +1 -0
- package/node_modules/text-segmentation/dist/lib/grapheme-break-trie.js +6 -0
- package/node_modules/text-segmentation/dist/lib/grapheme-break-trie.js.map +1 -0
- package/node_modules/text-segmentation/dist/lib/index.js +9 -0
- package/node_modules/text-segmentation/dist/lib/index.js.map +1 -0
- package/node_modules/text-segmentation/dist/text-segmentation.es5.js +384 -0
- package/node_modules/text-segmentation/dist/text-segmentation.es5.js.map +1 -0
- package/node_modules/text-segmentation/dist/text-segmentation.umd.js +397 -0
- package/node_modules/text-segmentation/dist/text-segmentation.umd.js.map +1 -0
- package/node_modules/text-segmentation/dist/types/GraphemeBreak.d.ts +21 -0
- package/node_modules/text-segmentation/dist/types/grapheme-break-trie.d.ts +2 -0
- package/node_modules/text-segmentation/dist/types/index.d.ts +1 -0
- package/node_modules/text-segmentation/package.json +55 -0
- package/node_modules/text-segmentation/rollup.config.ts +40 -0
- package/node_modules/utrie/CHANGELOG.md +32 -0
- package/node_modules/utrie/LICENSE +22 -0
- package/node_modules/utrie/dist/lib/Trie.js +143 -0
- package/node_modules/utrie/dist/lib/Trie.js.map +1 -0
- package/node_modules/utrie/dist/lib/TrieBuilder.js +888 -0
- package/node_modules/utrie/dist/lib/TrieBuilder.js.map +1 -0
- package/node_modules/utrie/dist/lib/Util.js +54 -0
- package/node_modules/utrie/dist/lib/Util.js.map +1 -0
- package/node_modules/utrie/dist/lib/index.js +10 -0
- package/node_modules/utrie/dist/lib/index.js.map +1 -0
- package/node_modules/utrie/dist/types/Trie.d.ts +76 -0
- package/node_modules/utrie/dist/types/TrieBuilder.d.ts +65 -0
- package/node_modules/utrie/dist/types/Util.d.ts +3 -0
- package/node_modules/utrie/dist/types/index.d.ts +2 -0
- package/node_modules/utrie/dist/utrie.es5.js +1101 -0
- package/node_modules/utrie/dist/utrie.es5.js.map +1 -0
- package/node_modules/utrie/dist/utrie.umd.js +1114 -0
- package/node_modules/utrie/dist/utrie.umd.js.map +1 -0
- package/node_modules/utrie/package.json +53 -0
- package/node_modules/utrie/rollup.config.ts +40 -0
- package/package.json +1 -1
- package/packages/cli/bin/groove.js +10 -1
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/commands/connect.js +116 -205
- package/packages/cli/src/commands/disconnect.js +38 -62
- package/packages/cli/src/commands/remotes.js +75 -0
- package/packages/daemon/package.json +1 -1
- package/packages/daemon/src/process.js +56 -1
- package/packages/gui/dist/assets/index-BCQY8ojz.css +1 -0
- package/packages/gui/dist/assets/index-C5e7KVGN.js +8637 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/package.json +2 -1
- package/packages/gui/src/components/preview/preview-workspace.jsx +6 -5
- package/packages/gui/src/components/preview/screenshot-overlay.jsx +41 -29
- package/packages/gui/src/stores/groove.js +6 -2
- package/packages/gui/src/views/agents.jsx +15 -1
- package/packages/gui/src/views/settings.jsx +104 -26
- package/node_modules/@groove-dev/gui/dist/assets/index-BbDDgazC.js +0 -8616
- package/node_modules/@groove-dev/gui/dist/assets/index-fhMxiPGp.css +0 -1
- package/packages/gui/dist/assets/index-BbDDgazC.js +0 -8616
- package/packages/gui/dist/assets/index-fhMxiPGp.css +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CanvasElementContainer } from './canvas-element-container';
|
|
2
|
+
import { ImageElementContainer } from './image-element-container';
|
|
3
|
+
import { SVGElementContainer } from './svg-element-container';
|
|
4
|
+
export declare type ReplacedElementContainer = CanvasElementContainer | ImageElementContainer | SVGElementContainer;
|
package/node_modules/html2canvas/dist/types/dom/replaced-elements/input-element-container.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementContainer } from '../element-container';
|
|
2
|
+
import { Context } from '../../core/context';
|
|
3
|
+
export declare const CHECKBOX = "checkbox";
|
|
4
|
+
export declare const RADIO = "radio";
|
|
5
|
+
export declare const PASSWORD = "password";
|
|
6
|
+
export declare const INPUT_COLOR = 707406591;
|
|
7
|
+
export declare class InputElementContainer extends ElementContainer {
|
|
8
|
+
readonly type: string;
|
|
9
|
+
readonly checked: boolean;
|
|
10
|
+
readonly value: string;
|
|
11
|
+
constructor(context: Context, input: HTMLInputElement);
|
|
12
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementContainer } from '../element-container';
|
|
2
|
+
import { Context } from '../../core/context';
|
|
3
|
+
export declare class SVGElementContainer extends ElementContainer {
|
|
4
|
+
svg: string;
|
|
5
|
+
intrinsicWidth: number;
|
|
6
|
+
intrinsicHeight: number;
|
|
7
|
+
constructor(context: Context, img: SVGSVGElement);
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSParsedDeclaration } from '../css/index';
|
|
2
|
+
import { TextBounds } from '../css/layout/text';
|
|
3
|
+
import { Context } from '../core/context';
|
|
4
|
+
export declare class TextContainer {
|
|
5
|
+
text: string;
|
|
6
|
+
textBounds: TextBounds[];
|
|
7
|
+
constructor(context: Context, node: Text, styles: CSSParsedDeclaration);
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CloneOptions, WindowOptions } from './dom/document-cloner';
|
|
2
|
+
import { RenderOptions } from './render/canvas/canvas-renderer';
|
|
3
|
+
import { ContextOptions } from './core/context';
|
|
4
|
+
export declare type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {
|
|
5
|
+
backgroundColor: string | null;
|
|
6
|
+
foreignObjectRendering: boolean;
|
|
7
|
+
removeContainer?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const html2canvas: (element: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>;
|
|
10
|
+
export default html2canvas;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const invariant: (assertion: boolean, error: string) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Bounds } from '../css/layout/bounds';
|
|
2
|
+
import { BACKGROUND_ORIGIN } from '../css/property-descriptors/background-origin';
|
|
3
|
+
import { ElementContainer } from '../dom/element-container';
|
|
4
|
+
import { BackgroundSizeInfo } from '../css/property-descriptors/background-size';
|
|
5
|
+
import { Vector } from './vector';
|
|
6
|
+
import { BACKGROUND_REPEAT } from '../css/property-descriptors/background-repeat';
|
|
7
|
+
import { CSSValue } from '../css/syntax/parser';
|
|
8
|
+
import { Path } from './path';
|
|
9
|
+
import { BACKGROUND_CLIP } from '../css/property-descriptors/background-clip';
|
|
10
|
+
export declare const calculateBackgroundPositioningArea: (backgroundOrigin: BACKGROUND_ORIGIN, element: ElementContainer) => Bounds;
|
|
11
|
+
export declare const calculateBackgroundPaintingArea: (backgroundClip: BACKGROUND_CLIP, element: ElementContainer) => Bounds;
|
|
12
|
+
export declare const calculateBackgroundRendering: (container: ElementContainer, index: number, intrinsicSize: [number | null, number | null, number | null]) => [Path[], number, number, number, number];
|
|
13
|
+
export declare const isAuto: (token: CSSValue) => boolean;
|
|
14
|
+
export declare const calculateBackgroundSize: (size: BackgroundSizeInfo[], [intrinsicWidth, intrinsicHeight, intrinsicProportion]: [number | null, number | null, number | null], bounds: Bounds) => [number, number];
|
|
15
|
+
export declare const getBackgroundValueForIndex: <T>(values: T[], index: number) => T;
|
|
16
|
+
export declare const calculateBackgroundRepeatPath: (repeat: BACKGROUND_REPEAT, [x, y]: [number, number], [width, height]: [number, number], backgroundPositioningArea: Bounds, backgroundPaintingArea: Bounds) => [Vector, Vector, Vector, Vector];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Vector } from './vector';
|
|
2
|
+
import { IPath, PathType, Path } from './path';
|
|
3
|
+
export declare class BezierCurve implements IPath {
|
|
4
|
+
type: PathType;
|
|
5
|
+
start: Vector;
|
|
6
|
+
startControl: Vector;
|
|
7
|
+
endControl: Vector;
|
|
8
|
+
end: Vector;
|
|
9
|
+
constructor(start: Vector, startControl: Vector, endControl: Vector, end: Vector);
|
|
10
|
+
subdivide(t: number, firstHalf: boolean): BezierCurve;
|
|
11
|
+
add(deltaX: number, deltaY: number): BezierCurve;
|
|
12
|
+
reverse(): BezierCurve;
|
|
13
|
+
}
|
|
14
|
+
export declare const isBezierCurve: (path: Path) => path is BezierCurve;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Path } from './path';
|
|
2
|
+
import { BoundCurves } from './bound-curves';
|
|
3
|
+
export declare const parsePathForBorder: (curves: BoundCurves, borderSide: number) => Path[];
|
|
4
|
+
export declare const parsePathForBorderDoubleOuter: (curves: BoundCurves, borderSide: number) => Path[];
|
|
5
|
+
export declare const parsePathForBorderDoubleInner: (curves: BoundCurves, borderSide: number) => Path[];
|
|
6
|
+
export declare const parsePathForBorderStroke: (curves: BoundCurves, borderSide: number) => Path[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ElementContainer } from '../dom/element-container';
|
|
2
|
+
import { Path } from './path';
|
|
3
|
+
export declare class BoundCurves {
|
|
4
|
+
readonly topLeftBorderDoubleOuterBox: Path;
|
|
5
|
+
readonly topRightBorderDoubleOuterBox: Path;
|
|
6
|
+
readonly bottomRightBorderDoubleOuterBox: Path;
|
|
7
|
+
readonly bottomLeftBorderDoubleOuterBox: Path;
|
|
8
|
+
readonly topLeftBorderDoubleInnerBox: Path;
|
|
9
|
+
readonly topRightBorderDoubleInnerBox: Path;
|
|
10
|
+
readonly bottomRightBorderDoubleInnerBox: Path;
|
|
11
|
+
readonly bottomLeftBorderDoubleInnerBox: Path;
|
|
12
|
+
readonly topLeftBorderStroke: Path;
|
|
13
|
+
readonly topRightBorderStroke: Path;
|
|
14
|
+
readonly bottomRightBorderStroke: Path;
|
|
15
|
+
readonly bottomLeftBorderStroke: Path;
|
|
16
|
+
readonly topLeftBorderBox: Path;
|
|
17
|
+
readonly topRightBorderBox: Path;
|
|
18
|
+
readonly bottomRightBorderBox: Path;
|
|
19
|
+
readonly bottomLeftBorderBox: Path;
|
|
20
|
+
readonly topLeftPaddingBox: Path;
|
|
21
|
+
readonly topRightPaddingBox: Path;
|
|
22
|
+
readonly bottomRightPaddingBox: Path;
|
|
23
|
+
readonly bottomLeftPaddingBox: Path;
|
|
24
|
+
readonly topLeftContentBox: Path;
|
|
25
|
+
readonly topRightContentBox: Path;
|
|
26
|
+
readonly bottomRightContentBox: Path;
|
|
27
|
+
readonly bottomLeftContentBox: Path;
|
|
28
|
+
constructor(element: ElementContainer);
|
|
29
|
+
}
|
|
30
|
+
export declare const calculateBorderBoxPath: (curves: BoundCurves) => Path[];
|
|
31
|
+
export declare const calculateContentBoxPath: (curves: BoundCurves) => Path[];
|
|
32
|
+
export declare const calculatePaddingBoxPath: (curves: BoundCurves) => Path[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ElementPaint, StackingContext } from '../stacking-context';
|
|
2
|
+
import { Color } from '../../css/types/color';
|
|
3
|
+
import { ElementContainer } from '../../dom/element-container';
|
|
4
|
+
import { BORDER_STYLE } from '../../css/property-descriptors/border-style';
|
|
5
|
+
import { CSSParsedDeclaration } from '../../css';
|
|
6
|
+
import { TextContainer } from '../../dom/text-container';
|
|
7
|
+
import { Path } from '../path';
|
|
8
|
+
import { BoundCurves } from '../bound-curves';
|
|
9
|
+
import { TextBounds } from '../../css/layout/text';
|
|
10
|
+
import { ReplacedElementContainer } from '../../dom/replaced-elements';
|
|
11
|
+
import { IElementEffect } from '../effects';
|
|
12
|
+
import { Renderer } from '../renderer';
|
|
13
|
+
import { Context } from '../../core/context';
|
|
14
|
+
export declare type RenderConfigurations = RenderOptions & {
|
|
15
|
+
backgroundColor: Color | null;
|
|
16
|
+
};
|
|
17
|
+
export interface RenderOptions {
|
|
18
|
+
scale: number;
|
|
19
|
+
canvas?: HTMLCanvasElement;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
}
|
|
25
|
+
export declare class CanvasRenderer extends Renderer {
|
|
26
|
+
canvas: HTMLCanvasElement;
|
|
27
|
+
ctx: CanvasRenderingContext2D;
|
|
28
|
+
private readonly _activeEffects;
|
|
29
|
+
private readonly fontMetrics;
|
|
30
|
+
constructor(context: Context, options: RenderConfigurations);
|
|
31
|
+
applyEffects(effects: IElementEffect[]): void;
|
|
32
|
+
applyEffect(effect: IElementEffect): void;
|
|
33
|
+
popEffect(): void;
|
|
34
|
+
renderStack(stack: StackingContext): Promise<void>;
|
|
35
|
+
renderNode(paint: ElementPaint): Promise<void>;
|
|
36
|
+
renderTextWithLetterSpacing(text: TextBounds, letterSpacing: number, baseline: number): void;
|
|
37
|
+
private createFontStyle;
|
|
38
|
+
renderTextNode(text: TextContainer, styles: CSSParsedDeclaration): Promise<void>;
|
|
39
|
+
renderReplacedElement(container: ReplacedElementContainer, curves: BoundCurves, image: HTMLImageElement | HTMLCanvasElement): void;
|
|
40
|
+
renderNodeContent(paint: ElementPaint): Promise<void>;
|
|
41
|
+
renderStackContent(stack: StackingContext): Promise<void>;
|
|
42
|
+
mask(paths: Path[]): void;
|
|
43
|
+
path(paths: Path[]): void;
|
|
44
|
+
formatPath(paths: Path[]): void;
|
|
45
|
+
renderRepeat(path: Path[], pattern: CanvasPattern | CanvasGradient, offsetX: number, offsetY: number): void;
|
|
46
|
+
resizeImage(image: HTMLImageElement, width: number, height: number): HTMLCanvasElement | HTMLImageElement;
|
|
47
|
+
renderBackgroundImage(container: ElementContainer): Promise<void>;
|
|
48
|
+
renderSolidBorder(color: Color, side: number, curvePoints: BoundCurves): Promise<void>;
|
|
49
|
+
renderDoubleBorder(color: Color, width: number, side: number, curvePoints: BoundCurves): Promise<void>;
|
|
50
|
+
renderNodeBackgroundAndBorders(paint: ElementPaint): Promise<void>;
|
|
51
|
+
renderDashedDottedBorder(color: Color, width: number, side: number, curvePoints: BoundCurves, style: BORDER_STYLE): Promise<void>;
|
|
52
|
+
render(element: ElementContainer): Promise<HTMLCanvasElement>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RenderConfigurations } from './canvas-renderer';
|
|
2
|
+
import { Renderer } from '../renderer';
|
|
3
|
+
import { Context } from '../../core/context';
|
|
4
|
+
export declare class ForeignObjectRenderer extends Renderer {
|
|
5
|
+
canvas: HTMLCanvasElement;
|
|
6
|
+
ctx: CanvasRenderingContext2D;
|
|
7
|
+
options: RenderConfigurations;
|
|
8
|
+
constructor(context: Context, options: RenderConfigurations);
|
|
9
|
+
render(element: HTMLElement): Promise<HTMLCanvasElement>;
|
|
10
|
+
}
|
|
11
|
+
export declare const loadSerializedSVG: (svg: Node) => Promise<HTMLImageElement>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Matrix } from '../css/property-descriptors/transform';
|
|
2
|
+
import { Path } from './path';
|
|
3
|
+
export declare const enum EffectType {
|
|
4
|
+
TRANSFORM = 0,
|
|
5
|
+
CLIP = 1,
|
|
6
|
+
OPACITY = 2
|
|
7
|
+
}
|
|
8
|
+
export declare const enum EffectTarget {
|
|
9
|
+
BACKGROUND_BORDERS = 2,
|
|
10
|
+
CONTENT = 4
|
|
11
|
+
}
|
|
12
|
+
export interface IElementEffect {
|
|
13
|
+
readonly type: EffectType;
|
|
14
|
+
readonly target: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class TransformEffect implements IElementEffect {
|
|
17
|
+
readonly offsetX: number;
|
|
18
|
+
readonly offsetY: number;
|
|
19
|
+
readonly matrix: Matrix;
|
|
20
|
+
readonly type: EffectType;
|
|
21
|
+
readonly target: number;
|
|
22
|
+
constructor(offsetX: number, offsetY: number, matrix: Matrix);
|
|
23
|
+
}
|
|
24
|
+
export declare class ClipEffect implements IElementEffect {
|
|
25
|
+
readonly path: Path[];
|
|
26
|
+
readonly target: EffectTarget;
|
|
27
|
+
readonly type: EffectType;
|
|
28
|
+
constructor(path: Path[], target: EffectTarget);
|
|
29
|
+
}
|
|
30
|
+
export declare class OpacityEffect implements IElementEffect {
|
|
31
|
+
readonly opacity: number;
|
|
32
|
+
readonly type: EffectType;
|
|
33
|
+
readonly target: number;
|
|
34
|
+
constructor(opacity: number);
|
|
35
|
+
}
|
|
36
|
+
export declare const isTransformEffect: (effect: IElementEffect) => effect is TransformEffect;
|
|
37
|
+
export declare const isClipEffect: (effect: IElementEffect) => effect is ClipEffect;
|
|
38
|
+
export declare const isOpacityEffect: (effect: IElementEffect) => effect is OpacityEffect;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FontMetric {
|
|
2
|
+
baseline: number;
|
|
3
|
+
middle: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class FontMetrics {
|
|
6
|
+
private readonly _data;
|
|
7
|
+
private readonly _document;
|
|
8
|
+
constructor(document: Document);
|
|
9
|
+
private parseMetrics;
|
|
10
|
+
getMetrics(fontFamily: string, fontSize: string): FontMetric;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BezierCurve } from './bezier-curve';
|
|
2
|
+
import { Vector } from './vector';
|
|
3
|
+
export declare const enum PathType {
|
|
4
|
+
VECTOR = 0,
|
|
5
|
+
BEZIER_CURVE = 1
|
|
6
|
+
}
|
|
7
|
+
export interface IPath {
|
|
8
|
+
type: PathType;
|
|
9
|
+
add(deltaX: number, deltaY: number): IPath;
|
|
10
|
+
}
|
|
11
|
+
export declare const equalPath: (a: Path[], b: Path[]) => boolean;
|
|
12
|
+
export declare const transformPath: (path: Path[], deltaX: number, deltaY: number, deltaW: number, deltaH: number) => Path[];
|
|
13
|
+
export declare type Path = Vector | BezierCurve;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Context } from '../core/context';
|
|
2
|
+
import { RenderConfigurations } from './canvas/canvas-renderer';
|
|
3
|
+
export declare class Renderer {
|
|
4
|
+
protected readonly context: Context;
|
|
5
|
+
protected readonly options: RenderConfigurations;
|
|
6
|
+
constructor(context: Context, options: RenderConfigurations);
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementContainer } from '../dom/element-container';
|
|
2
|
+
import { BoundCurves } from './bound-curves';
|
|
3
|
+
import { EffectTarget, IElementEffect } from './effects';
|
|
4
|
+
export declare class StackingContext {
|
|
5
|
+
element: ElementPaint;
|
|
6
|
+
negativeZIndex: StackingContext[];
|
|
7
|
+
zeroOrAutoZIndexOrTransformedOrOpacity: StackingContext[];
|
|
8
|
+
positiveZIndex: StackingContext[];
|
|
9
|
+
nonPositionedFloats: StackingContext[];
|
|
10
|
+
nonPositionedInlineLevel: StackingContext[];
|
|
11
|
+
inlineLevel: ElementPaint[];
|
|
12
|
+
nonInlineLevel: ElementPaint[];
|
|
13
|
+
constructor(container: ElementPaint);
|
|
14
|
+
}
|
|
15
|
+
export declare class ElementPaint {
|
|
16
|
+
readonly container: ElementContainer;
|
|
17
|
+
readonly parent: ElementPaint | null;
|
|
18
|
+
readonly effects: IElementEffect[];
|
|
19
|
+
readonly curves: BoundCurves;
|
|
20
|
+
listValue?: string;
|
|
21
|
+
constructor(container: ElementContainer, parent: ElementPaint | null);
|
|
22
|
+
getEffects(target: EffectTarget): IElementEffect[];
|
|
23
|
+
}
|
|
24
|
+
export declare const parseStackingContexts: (container: ElementContainer) => StackingContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPath, Path, PathType } from './path';
|
|
2
|
+
export declare class Vector implements IPath {
|
|
3
|
+
type: PathType;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
constructor(x: number, y: number);
|
|
7
|
+
add(deltaX: number, deltaY: number): Vector;
|
|
8
|
+
}
|
|
9
|
+
export declare const isVector: (path: Path) => path is Vector;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "html2canvas",
|
|
3
|
+
"name": "html2canvas",
|
|
4
|
+
"description": "Screenshots with JavaScript",
|
|
5
|
+
"main": "dist/html2canvas.js",
|
|
6
|
+
"module": "dist/html2canvas.esm.js",
|
|
7
|
+
"typings": "dist/types/index.d.ts",
|
|
8
|
+
"browser": "dist/html2canvas.js",
|
|
9
|
+
"version": "1.4.1",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Niklas von Hertzen",
|
|
12
|
+
"email": "niklasvh@gmail.com",
|
|
13
|
+
"url": "https://hertzen.com"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=8.0.0"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git@github.com:niklasvh/html2canvas.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/niklasvh/html2canvas/issues"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/cli": "^7.4.3",
|
|
27
|
+
"@babel/core": "^7.4.3",
|
|
28
|
+
"@babel/preset-env": "^7.4.3",
|
|
29
|
+
"@babel/preset-flow": "^7.0.0",
|
|
30
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
|
31
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
32
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
33
|
+
"@rollup/plugin-typescript": "^8.2.1",
|
|
34
|
+
"@types/chai": "^4.1.7",
|
|
35
|
+
"@types/express": "^4.17.13",
|
|
36
|
+
"@types/glob": "^7.1.1",
|
|
37
|
+
"@types/jest": "^26.0.24",
|
|
38
|
+
"@types/jest-image-snapshot": "^4.3.1",
|
|
39
|
+
"@types/karma": "^6.3.0",
|
|
40
|
+
"@types/mocha": "^8.2.3",
|
|
41
|
+
"@types/node": "^16.3.1",
|
|
42
|
+
"@types/platform": "^1.3.4",
|
|
43
|
+
"@types/promise-polyfill": "^6.0.3",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^4.28.2",
|
|
45
|
+
"@typescript-eslint/parser": "^4.28.2",
|
|
46
|
+
"appium-ios-simulator": "^3.10.0",
|
|
47
|
+
"babel-eslint": "^10.0.1",
|
|
48
|
+
"babel-loader": "^8.0.5",
|
|
49
|
+
"babel-plugin-add-module-exports": "^1.0.2",
|
|
50
|
+
"babel-plugin-dev-expression": "^0.2.1",
|
|
51
|
+
"base64-arraybuffer": "1.0.1",
|
|
52
|
+
"body-parser": "^1.19.0",
|
|
53
|
+
"chai": "4.1.1",
|
|
54
|
+
"chromeless": "^1.5.2",
|
|
55
|
+
"cors": "^2.8.5",
|
|
56
|
+
"es6-promise": "^4.2.8",
|
|
57
|
+
"eslint": "^7.30.0",
|
|
58
|
+
"eslint-config-prettier": "^8.3.0",
|
|
59
|
+
"eslint-plugin-prettier": "3.4.0",
|
|
60
|
+
"express": "^4.17.1",
|
|
61
|
+
"filenamify-url": "1.0.0",
|
|
62
|
+
"glob": "7.1.3",
|
|
63
|
+
"html2canvas-proxy": "1.0.1",
|
|
64
|
+
"jest": "^27.0.6",
|
|
65
|
+
"jest-image-snapshot": "^4.5.1",
|
|
66
|
+
"jquery": "^3.5.1",
|
|
67
|
+
"js-polyfills": "^0.1.42",
|
|
68
|
+
"karma": "^6.3.2",
|
|
69
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
70
|
+
"karma-edge-launcher": "^0.4.2",
|
|
71
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
72
|
+
"karma-ie-launcher": "^1.0.0",
|
|
73
|
+
"karma-junit-reporter": "^2.0.1",
|
|
74
|
+
"karma-mocha": "^2.0.1",
|
|
75
|
+
"karma-safarinative-launcher": "^1.1.0",
|
|
76
|
+
"karma-sauce-launcher": "^2.0.2",
|
|
77
|
+
"mocha": "^9.0.2",
|
|
78
|
+
"node-simctl": "^5.3.0",
|
|
79
|
+
"platform": "^1.3.6",
|
|
80
|
+
"prettier": "^2.3.2",
|
|
81
|
+
"replace-in-file": "^3.0.0",
|
|
82
|
+
"rimraf": "^3.0.2",
|
|
83
|
+
"rollup": "^2.53.1",
|
|
84
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
85
|
+
"serve-index": "^1.9.1",
|
|
86
|
+
"slash": "1.0.0",
|
|
87
|
+
"standard-version": "^8.0.2",
|
|
88
|
+
"ts-jest": "^27.0.3",
|
|
89
|
+
"ts-loader": "^8.3.0",
|
|
90
|
+
"ts-node": "^10.1.0",
|
|
91
|
+
"tslib": "^2.3.0",
|
|
92
|
+
"typescript": "^4.3.5",
|
|
93
|
+
"uglify-js": "^3.13.10",
|
|
94
|
+
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
95
|
+
"webpack": "^4.46.0",
|
|
96
|
+
"webpack-cli": "^3.3.12",
|
|
97
|
+
"yargs": "^17.0.1"
|
|
98
|
+
},
|
|
99
|
+
"scripts": {
|
|
100
|
+
"prebuild": "rimraf dist/ && rimraf build/ && mkdirp dist && mkdirp build",
|
|
101
|
+
"build": "tsc --module commonjs && rollup -c rollup.config.ts && npm run build:create-reftest-list && npm run build:testrunner && npm run build:minify",
|
|
102
|
+
"build:testrunner": "rollup -c tests/rollup.config.ts",
|
|
103
|
+
"build:minify": "uglifyjs --compress --comments /^!/ -o dist/html2canvas.min.js --mangle -- dist/html2canvas.js",
|
|
104
|
+
"build:reftest-result-list": "ts-node scripts/create-reftest-result-list.ts",
|
|
105
|
+
"build:create-reftest-list": "ts-node scripts/create-reftest-list.ts tests/reftests/ignore.txt build/reftests.ts",
|
|
106
|
+
"build:reftest-preview": "webpack --config www/webpack.config.js",
|
|
107
|
+
"release": "standard-version",
|
|
108
|
+
"format": "prettier --write \"{src,www/src,tests,scripts}/**/*.ts\"",
|
|
109
|
+
"lint": "eslint src/**/*.ts --max-warnings 0",
|
|
110
|
+
"test": "npm run lint && npm run unittest && npm run karma",
|
|
111
|
+
"unittest": "jest",
|
|
112
|
+
"reftests-diff": "mkdirp tmp/snapshots && jest --roots=tests --testMatch=**/reftest-diff.ts",
|
|
113
|
+
"karma": "ts-node tests/karma",
|
|
114
|
+
"watch": "rollup -c rollup.config.ts -w",
|
|
115
|
+
"watch:unittest": "mocha --require ts-node/register --watch-extensions ts -w src/**/__tests__/*.ts",
|
|
116
|
+
"start": "ts-node tests/server --port=8080 --cors=8081"
|
|
117
|
+
},
|
|
118
|
+
"homepage": "https://html2canvas.hertzen.com",
|
|
119
|
+
"license": "MIT",
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"css-line-break": "^2.1.0",
|
|
122
|
+
"text-segmentation": "^1.0.3"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"noImplicitAny": true,
|
|
4
|
+
"noImplicitThis": true,
|
|
5
|
+
"noUnusedLocals": true,
|
|
6
|
+
"noUnusedParameters": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"strictPropertyInitialization": true,
|
|
9
|
+
"types": ["node", "jest"],
|
|
10
|
+
"target": "es5",
|
|
11
|
+
"lib": ["es2015", "dom"],
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"outDir": "dist/lib",
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"declarationDir": "dist/types",
|
|
16
|
+
"resolveJsonModule": true
|
|
17
|
+
},
|
|
18
|
+
"include": [
|
|
19
|
+
"src"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
## [1.0.3](https://github.com/niklasvh/text-segmentation/compare/v1.0.2...v1.0.3) (2022-01-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### fix
|
|
9
|
+
|
|
10
|
+
* source maps ([4108278](https://github.com/niklasvh/text-segmentation/commit/4108278c278b271543e9a997dbf14ce14e946fe7))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.2](https://github.com/niklasvh/text-segmentation/compare/v1.0.1...v1.0.2) (2021-08-10)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### deps
|
|
18
|
+
|
|
19
|
+
* update base64-arraybuffer ([3804223](https://github.com/niklasvh/text-segmentation/commit/3804223855fa4f37e8c784dca5ce5113c33d3e27))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [1.0.1](https://github.com/niklasvh/text-segmentation/compare/v1.0.0...v1.0.1) (2021-08-09)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### docs
|
|
27
|
+
|
|
28
|
+
* add readme ([c3f1dd3](https://github.com/niklasvh/text-segmentation/commit/c3f1dd31ef4880ad7b8ecab5155f7362d4d652d3))
|
|
29
|
+
|
|
30
|
+
### feat
|
|
31
|
+
|
|
32
|
+
* expose fromCodePoint / toCodePoints ([a497aeb](https://github.com/niklasvh/text-segmentation/commit/a497aeb75255fec597b8c4b0803e3b57d6a06a25))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# 1.0.0 (2021-08-09)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### feat
|
|
40
|
+
|
|
41
|
+
* add grapheme breaker trie ([0e5a06b](https://github.com/niklasvh/text-segmentation/commit/0e5a06b4ab7f1eef9cf7b01fc47bdb270c5704c0))
|
|
42
|
+
* implement grapheme breaker ([7e065b5](https://github.com/niklasvh/text-segmentation/commit/7e065b5b2484d2dcd06efc487d938289c197fee0))
|
|
43
|
+
* implement splitter ([8a52b31](https://github.com/niklasvh/text-segmentation/commit/8a52b318368ea994b245daf4ac056319ee697f24))
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2021 Niklas von Hertzen
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
text-segmentation
|
|
2
|
+
==============
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+
[](https://www.npmjs.org/package/text-segmentation)
|
|
6
|
+
[](https://www.npmjs.org/package/text-segmentation)
|
|
7
|
+
|
|
8
|
+
A JavaScript library for Grapheme Breaking and identifying Grapheme Boundaries, [implementing the Unicode Line Breaking Algorithm (UAX #29)](https://unicode.org/reports/tr29/)
|
|
9
|
+
|
|
10
|
+
### Installing
|
|
11
|
+
You can install the module via npm:
|
|
12
|
+
|
|
13
|
+
npm install text-segmentation
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
```javascript
|
|
17
|
+
import {splitGraphemes} from 'text-segmentation';
|
|
18
|
+
|
|
19
|
+
const graphemes = splitGraphemes('Hello ๐จโ๐ฉโ๐งโ๐ฆ!');
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Testing
|
|
23
|
+
You can run the test suite with:
|
|
24
|
+
|
|
25
|
+
npm test
|
|
26
|
+
|
|
27
|
+
The library implements all the [GraphemeBreakTest.txt tests](https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakTest.txt).
|