first commit
This commit is contained in:
1
node_modules/dom-to-image-more/.gitattributes
generated
vendored
Normal file
1
node_modules/dom-to-image-more/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dist/*.min.js -diff
|
||||
14
node_modules/dom-to-image-more/.github/ISSUE_TEMPLATE.md
generated
vendored
Normal file
14
node_modules/dom-to-image-more/.github/ISSUE_TEMPLATE.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Use case: description, code
|
||||
|
||||
[jsfiddle](https://jsfiddle.net/IDisposable/emjL1ow8/)
|
||||
|
||||
## Expected behavior
|
||||
|
||||
## Actual behavior (stack traces, console logs etc)
|
||||
|
||||
## Library version
|
||||
|
||||
## Browsers
|
||||
|
||||
- [ ] Chrome 49+
|
||||
- [ ] Firefox 45+
|
||||
19
node_modules/dom-to-image-more/.github/dependabot.yml
generated
vendored
Normal file
19
node_modules/dom-to-image-more/.github/dependabot.yml
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
- package-ecosystem: docker
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
- package-ecosystem: npm
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- 'type: dependencies'
|
||||
|
||||
42
node_modules/dom-to-image-more/.github/release-drafter.yml
generated
vendored
Normal file
42
node_modules/dom-to-image-more/.github/release-drafter.yml
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name-template: 'v$RESOLVED_VERSION'
|
||||
tag-template: 'v$RESOLVED_VERSION'
|
||||
template: |
|
||||
# What's Changed
|
||||
|
||||
$CHANGES
|
||||
|
||||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
|
||||
|
||||
categories:
|
||||
- title: 'Breaking'
|
||||
label: 'type: breaking'
|
||||
- title: 'New'
|
||||
label: 'type: feature'
|
||||
- title: 'Bug Fixes'
|
||||
label: 'type: bug'
|
||||
- title: 'Maintenance'
|
||||
label: 'type: maintenance'
|
||||
- title: 'Documentation'
|
||||
label: 'type: docs'
|
||||
- title: 'Other changes'
|
||||
- title: 'Dependency Updates'
|
||||
label: 'type: dependencies'
|
||||
collapse-after: 5
|
||||
|
||||
version-resolver:
|
||||
major:
|
||||
labels:
|
||||
- 'type: breaking'
|
||||
minor:
|
||||
labels:
|
||||
- 'type: feature'
|
||||
patch:
|
||||
labels:
|
||||
- 'type: bug'
|
||||
- 'type: maintenance'
|
||||
- 'type: docs'
|
||||
- 'type: dependencies'
|
||||
- 'type: security'
|
||||
|
||||
exclude-labels:
|
||||
- 'skip-changelog'
|
||||
75
node_modules/dom-to-image-more/.github/workflows/codeql-analysis-v2.yml
generated
vendored
Normal file
75
node_modules/dom-to-image-more/.github/workflows/codeql-analysis-v2.yml
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: 'CodeQL'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main', 'v2.x']
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: ['main', 'v2.x']
|
||||
schedule:
|
||||
- cron: '17 11 * * 1'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['javascript']
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||
# Use only 'java' to analyze code written in Java, Kotlin or both
|
||||
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
||||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
|
||||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||||
# queries: security-extended,security-and-quality
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||||
|
||||
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
||||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
||||
|
||||
# - run: |
|
||||
# echo "Run, Build Application using script"
|
||||
# ./location_of_script_within_repo/buildscript.sh
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: '/language:${{matrix.language}}'
|
||||
12
node_modules/dom-to-image-more/.github/workflows/labels.yml
generated
vendored
Normal file
12
node_modules/dom-to-image-more/.github/workflows/labels.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: Sync labels
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
schedule:
|
||||
- cron: "34 5 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
workflows:
|
||||
uses: hassio-addons/workflows/.github/workflows/labels.yaml@main
|
||||
12
node_modules/dom-to-image-more/.github/workflows/lock.yml
generated
vendored
Normal file
12
node_modules/dom-to-image-more/.github/workflows/lock.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: Lock
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 9 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
workflows:
|
||||
uses: hassio-addons/workflows/.github/workflows/lock.yaml@main
|
||||
15
node_modules/dom-to-image-more/.github/workflows/pr-labels.yml
generated
vendored
Normal file
15
node_modules/dom-to-image-more/.github/workflows/pr-labels.yml
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
name: PR Labels
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- labeled
|
||||
- unlabeled
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
workflows:
|
||||
uses: hassio-addons/workflows/.github/workflows/pr-labels.yaml@main
|
||||
30
node_modules/dom-to-image-more/.github/workflows/publish.yml
generated
vendored
Normal file
30
node_modules/dom-to-image-more/.github/workflows/publish.yml
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Publish Package to npmjs
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '19.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Install npm packages
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build:ci
|
||||
|
||||
- name: Publish NPM package
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
17
node_modules/dom-to-image-more/.github/workflows/release-drafter.yml
generated
vendored
Normal file
17
node_modules/dom-to-image-more/.github/workflows/release-drafter.yml
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Release Drafter
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
workflows:
|
||||
permissions:
|
||||
# Write permission is required to create a github release
|
||||
contents: write
|
||||
# Write permission is required for autolabeler
|
||||
pull-requests: write
|
||||
uses: hassio-addons/workflows/.github/workflows/release-drafter.yaml@main
|
||||
12
node_modules/dom-to-image-more/.github/workflows/stale.yml
generated
vendored
Normal file
12
node_modules/dom-to-image-more/.github/workflows/stale.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: Stale
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 8 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
workflows:
|
||||
uses: hassio-addons/workflows/.github/workflows/stale.yaml@main
|
||||
30
node_modules/dom-to-image-more/.github/workflows/verify.yml
generated
vendored
Normal file
30
node_modules/dom-to-image-more/.github/workflows/verify.yml
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, v2.x]
|
||||
pull_request:
|
||||
branches: [main, v2.x]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Setup Chrome
|
||||
uses: browser-actions/setup-chrome@v1
|
||||
- name: Check dependencies
|
||||
run: npm ci --dry-run
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run build only
|
||||
run: npm run build:ci
|
||||
8
node_modules/dom-to-image-more/.gitpod.yml
generated
vendored
Normal file
8
node_modules/dom-to-image-more/.gitpod.yml
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# This configuration file was automatically generated by Gitpod.
|
||||
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
|
||||
# and commit this file to your remote git repository to share the goodness with others.
|
||||
|
||||
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
|
||||
|
||||
tasks:
|
||||
- init: npm install && npm run build
|
||||
41
node_modules/dom-to-image-more/.jsbeautifyrc
generated
vendored
Normal file
41
node_modules/dom-to-image-more/.jsbeautifyrc
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"html": {
|
||||
"brace_style": "collapse",
|
||||
"end_with_newline": true,
|
||||
"indent_char": " ",
|
||||
"indent_scripts": "keep",
|
||||
"indent_size": 4,
|
||||
"preserve_newlines": true,
|
||||
"max_preserve_newlines": 1,
|
||||
"wrap_attributes": "auto",
|
||||
"wrap_line_length": 100
|
||||
},
|
||||
"js": {
|
||||
"allowed_file_extensions": ["js", "jsx", "json", "jsbeautifyrc"],
|
||||
"brace_style": "collapse-preserve-inline",
|
||||
"break_chained_methods": false,
|
||||
"comma_first": false,
|
||||
"e4x": false,
|
||||
"end_with_newline": true,
|
||||
"indent_char": " ",
|
||||
"indent_level": 0,
|
||||
"indent_size": 4,
|
||||
"jslint_happy": false,
|
||||
"keep_array_indentation": false,
|
||||
"keep_function_indentation": false,
|
||||
"max_preserve_newlines": 0,
|
||||
"preserve_newlines": true,
|
||||
"space_in_empty_paren": false,
|
||||
"space_in_paren": false
|
||||
},
|
||||
"css": {
|
||||
"allowed_file_extensions": ["css", "scss", "sass", "less"],
|
||||
"end_with_newline": true,
|
||||
"indent_char": " ",
|
||||
"indent_size": 4,
|
||||
"newline_between_rules": true,
|
||||
"selector_separator": " ",
|
||||
"selector_separator_newline": false,
|
||||
"preserve_newlines": true
|
||||
}
|
||||
}
|
||||
8
node_modules/dom-to-image-more/.jshintrc
generated
vendored
Normal file
8
node_modules/dom-to-image-more/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"newcap": true,
|
||||
"unused": "strict",
|
||||
"esnext": true,
|
||||
"laxbreak": true
|
||||
}
|
||||
9
node_modules/dom-to-image-more/.markdownlink.json
generated
vendored
Normal file
9
node_modules/dom-to-image-more/.markdownlink.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"list-marker-space": {
|
||||
"ul_multi": 3,
|
||||
"ul_single": 3
|
||||
},
|
||||
"ul-indent": {
|
||||
"indent": 4
|
||||
}
|
||||
}
|
||||
2
node_modules/dom-to-image-more/.prettierignore
generated
vendored
Normal file
2
node_modules/dom-to-image-more/.prettierignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
test-lib/
|
||||
dist/
|
||||
12
node_modules/dom-to-image-more/.prettierrc
generated
vendored
Normal file
12
node_modules/dom-to-image-more/.prettierrc
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"semi": true,
|
||||
"trailingComma": "es5",
|
||||
"quoteProps": "consistent",
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "always",
|
||||
"endOfLine": "lf",
|
||||
"tabWidth": 4,
|
||||
"printWidth": 90,
|
||||
"proseWrap": "always"
|
||||
}
|
||||
5
node_modules/dom-to-image-more/.stylelintrc
generated
vendored
Normal file
5
node_modules/dom-to-image-more/.stylelintrc
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
"indentation": 4
|
||||
}
|
||||
}
|
||||
42
node_modules/dom-to-image-more/Gruntfile.js
generated
vendored
Normal file
42
node_modules/dom-to-image-more/Gruntfile.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
module.exports = function (grunt) {
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
jshint: {
|
||||
files: ['Gruntfile.js', 'src/**/*.js', 'spec/**/*.js'],
|
||||
options: {
|
||||
jshintrc: true,
|
||||
},
|
||||
},
|
||||
karma: {
|
||||
unit: {
|
||||
configFile: 'karma.conf.js',
|
||||
background: false,
|
||||
singleRun: true,
|
||||
},
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n',
|
||||
sourceMap: true,
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
'dist/<%= pkg.name %>.min.js': ['src/dom-to-image-more.js'],
|
||||
},
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
files: ['<%= jshint.files %>'],
|
||||
tasks: ['test'],
|
||||
},
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-karma');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.registerTask('test', ['karma']);
|
||||
grunt.registerTask('default', ['jshint', 'test', 'uglify']);
|
||||
grunt.registerTask('ci', ['jshint', 'uglify']);
|
||||
};
|
||||
29
node_modules/dom-to-image-more/LICENSE
generated
vendored
Normal file
29
node_modules/dom-to-image-more/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2018 Marc Brooks
|
||||
https://about.me/idisposable
|
||||
|
||||
Copyright 2015 Anatolii Saienko
|
||||
https://github.com/tsayen
|
||||
|
||||
Copyright 2012 Paul Bakaus
|
||||
http://paulbakaus.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
419
node_modules/dom-to-image-more/README.md
generated
vendored
Normal file
419
node_modules/dom-to-image-more/README.md
generated
vendored
Normal file
@@ -0,0 +1,419 @@
|
||||
# DOM to Image
|
||||
|
||||
[](https://npmjs.com/package/dom-to-image-more)
|
||||
[](https://bundlephobia.com/result?p=dom-to-image-more)
|
||||
[](https://github.com/1904labs/dom-to-image-more/issues)
|
||||
[](https://github.com/1904labs/dom-to-image-more)
|
||||
[](https://www.twitter.com/idisposable)
|
||||
|
||||
## Breaking Change Notice
|
||||
|
||||
The 3.x release branch included some breaking changes in the very infrequently used
|
||||
ability to configure some utility methods used in this internal processing of
|
||||
dom-to-image-more. As browsers have matured, many of the hacks we're accumulated over the
|
||||
years are not needed, or better ways have been found to handle some edge-cases. With the
|
||||
help of folks like @meche-gh, in #99 we're stripping out the following members:
|
||||
|
||||
- `.mimes` - was the not-very-comprehensive list of mime types used to handle inlining
|
||||
things
|
||||
- `.parseExtension` - was a method to extract the extension from a filename, used to guess
|
||||
mime types
|
||||
- `.mimeType` - was a method to map file extensions to mime types
|
||||
- `.dataAsUrl` - was a method to reassemble a `data:` URI from a Base64 representation and
|
||||
mime type
|
||||
|
||||
The 3.x release branch should also fix more node compatibility and `iframe` issues.
|
||||
|
||||
## What is it
|
||||
|
||||
**dom-to-image-more** is a library which can turn arbitrary DOM node, including same
|
||||
origin and blob iframes, into a vector (SVG) or raster (PNG or JPEG) image, written in
|
||||
JavaScript.
|
||||
|
||||
This fork of
|
||||
[dom-to-image by Anatolii Saienko (tsayen)](https://github.com/tsayen/dom-to-image) with
|
||||
some important fixes merged. We are eternally grateful for his starting point.
|
||||
|
||||
Anatolii's version was based on [domvas by Paul Bakaus](https://github.com/pbakaus/domvas)
|
||||
and has been completely rewritten, with some bugs fixed and some new features (like web
|
||||
font and image support) added.
|
||||
|
||||
Moved to [1904labs organization](https://github.com/1904labs/) from my repositories
|
||||
2019-02-06 as of version 2.7.3
|
||||
|
||||
## Installation
|
||||
|
||||
### NPM
|
||||
|
||||
`npm install dom-to-image-more`
|
||||
|
||||
Then load
|
||||
|
||||
```javascript
|
||||
/* in ES 6 */
|
||||
import domtoimage from 'dom-to-image-more';
|
||||
/* in ES 5 */
|
||||
var domtoimage = require('dom-to-image-more');
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
All the top level functions accept DOM node and rendering options, and return promises,
|
||||
which are fulfilled with corresponding data URLs. Get a PNG image base64-encoded data URL
|
||||
and display right away:
|
||||
|
||||
```javascript
|
||||
var node = document.getElementById('my-node');
|
||||
|
||||
domtoimage
|
||||
.toPng(node)
|
||||
.then(function (dataUrl) {
|
||||
var img = new Image();
|
||||
img.src = dataUrl;
|
||||
document.body.appendChild(img);
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('oops, something went wrong!', error);
|
||||
});
|
||||
```
|
||||
|
||||
Get a PNG image blob and download it (using
|
||||
[FileSaver](https://github.com/eligrey/FileSaver.js/), for example):
|
||||
|
||||
```javascript
|
||||
domtoimage.toBlob(document.getElementById('my-node')).then(function (blob) {
|
||||
window.saveAs(blob, 'my-node.png');
|
||||
});
|
||||
```
|
||||
|
||||
Save and download a compressed JPEG image:
|
||||
|
||||
```javascript
|
||||
domtoimage
|
||||
.toJpeg(document.getElementById('my-node'), { quality: 0.95 })
|
||||
.then(function (dataUrl) {
|
||||
var link = document.createElement('a');
|
||||
link.download = 'my-image-name.jpeg';
|
||||
link.href = dataUrl;
|
||||
link.click();
|
||||
});
|
||||
```
|
||||
|
||||
Get an SVG data URL, but filter out all the `<i>` elements:
|
||||
|
||||
```javascript
|
||||
function filter(node) {
|
||||
return node.tagName !== 'i';
|
||||
}
|
||||
|
||||
domtoimage
|
||||
.toSvg(document.getElementById('my-node'), { filter: filter })
|
||||
.then(function (dataUrl) {
|
||||
/* do something */
|
||||
});
|
||||
```
|
||||
|
||||
Get the raw pixel data as a
|
||||
[Uint8Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)
|
||||
with every 4 array elements representing the RGBA data of a pixel:
|
||||
|
||||
```javascript
|
||||
var node = document.getElementById('my-node');
|
||||
|
||||
domtoimage.toPixelData(node).then(function (pixels) {
|
||||
for (var y = 0; y < node.scrollHeight; ++y) {
|
||||
for (var x = 0; x < node.scrollWidth; ++x) {
|
||||
pixelAtXYOffset = 4 * y * node.scrollHeight + 4 * x;
|
||||
/* pixelAtXY is a Uint8Array[4] containing RGBA values of the pixel at (x, y) in the range 0..255 */
|
||||
pixelAtXY = pixels.slice(pixelAtXYOffset, pixelAtXYOffset + 4);
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
Get a canvas object:
|
||||
|
||||
```javascript
|
||||
domtoimage.toCanvas(document.getElementById('my-node')).then(function (canvas) {
|
||||
console.log('canvas', canvas.width, canvas.height);
|
||||
});
|
||||
```
|
||||
|
||||
Adjust cloned nodes before/after children are cloned
|
||||
[sample fiddle](https://jsfiddle.net/IDisposable/grLtjwe5/12/)
|
||||
|
||||
```javascript
|
||||
const adjustClone = (node, clone, after) => {
|
||||
if (!after && clone.id === 'element') {
|
||||
clone.style.transform = 'translateY(100px)';
|
||||
}
|
||||
return clone;
|
||||
};
|
||||
|
||||
const wrapper = document.getElementById('wrapper');
|
||||
const blob = domtoimage.toBlob(wrapper, { adjustClonedNode: adjustClone });
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
_All the functions under `impl` are not public API and are exposed only for unit testing._
|
||||
|
||||
---
|
||||
|
||||
### Rendering options
|
||||
|
||||
#### filter
|
||||
|
||||
A function taking DOM node as argument. Should return true if passed node should be
|
||||
included in the output (excluding node means excluding it's children as well). Not called
|
||||
on the root node.
|
||||
|
||||
#### filterStyles
|
||||
|
||||
A function taking style propertie name as argument. Should return true if passed propertie
|
||||
should be included in the output
|
||||
|
||||
Sample use:
|
||||
|
||||
```javascript
|
||||
filterStyles(node, propertyName) {
|
||||
return !propertyName.startssWith('--'); // to filter out CSS variables
|
||||
}
|
||||
```
|
||||
|
||||
#### adjustClonedNode
|
||||
|
||||
A function that will be invoked on each node as they are cloned. Useful to adjust nodes in
|
||||
any way needed before the conversion. Note that this be invoked before the onclone
|
||||
callback. The handler gets the original node, the cloned node, and a boolean that says if
|
||||
we've cloned the children already (so you can handle either before or after)
|
||||
|
||||
Sample use:
|
||||
|
||||
```javascript
|
||||
const adjustClone = (node, clone, after) => {
|
||||
if (!after && clone.id === 'element') {
|
||||
clone.style.transform = 'translateY(100px)';
|
||||
}
|
||||
return clone;
|
||||
};
|
||||
```
|
||||
|
||||
const wrapper = document.getElementById('wrapper'); const blob =
|
||||
domtoimage.toBlob(wrapper, { adjustClonedNode: adjustClone});
|
||||
|
||||
#### onclone
|
||||
|
||||
A function taking the cloned and modified DOM node as argument. It allows to make final
|
||||
adjustements to the elements before rendering, on the whole clone, after all elements have
|
||||
been individually cloned. Note that this will be invoked after all the onclone callbacks
|
||||
have been fired.
|
||||
|
||||
The cloned DOM might differ a lot from the original DOM, for example canvas will be
|
||||
replaced with image tags, some class might have changed, the style are inlined. It can be
|
||||
useful to log the clone to get a better senses of the transformations.
|
||||
|
||||
#### bgcolor
|
||||
|
||||
A string value for the background color, any valid CSS color value.
|
||||
|
||||
#### height, width
|
||||
|
||||
Height and width in pixels to be applied to node before rendering.
|
||||
|
||||
#### style
|
||||
|
||||
An object whose properties to be copied to node's style before rendering. You might want
|
||||
to check
|
||||
[this reference](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Properties_Reference)
|
||||
for JavaScript names of CSS properties.
|
||||
|
||||
#### quality
|
||||
|
||||
A number between 0 and 1 indicating image quality (e.g. 0.92 => 92%) of the JPEG image.
|
||||
Defaults to 1.0 (100%)
|
||||
|
||||
#### cacheBust
|
||||
|
||||
Set to true to append the current time as a query string to URL requests to enable cache
|
||||
busting. Defaults to false
|
||||
|
||||
#### imagePlaceholder
|
||||
|
||||
A data URL for a placeholder image that will be used when fetching an image fails.
|
||||
Defaults to undefined and will throw an error on failed images
|
||||
|
||||
#### copyDefaultStyles
|
||||
|
||||
Set to true to enable the copying of the default styles of elements. This will make the
|
||||
process faster. Try disabling it if seeing extra padding and using resetting / normalizing
|
||||
in CSS. Defaults to true.
|
||||
|
||||
#### disableInlineImages
|
||||
|
||||
Set to true to disable the normal inlining images into the SVG output. This will generate
|
||||
SVGs that reference the original image files, so they my break if a referenced URL fails.
|
||||
This is always safe to use when generating a PNG/JPG file because the entire SVG image is
|
||||
rendered.
|
||||
|
||||
#### useCredentialFeatures
|
||||
|
||||
Allows optionally setting the `useCredentials` option if the resource matches a pattern in
|
||||
the `useCredentialFilters` array.
|
||||
|
||||
#### scale
|
||||
|
||||
Scale value to be applied on canvas's `ctx.scale()` on both x and y axis. Can be used to
|
||||
increase the image quality with higher image size.
|
||||
|
||||
### Alternative Solutions to CORS Policy Issue
|
||||
|
||||
Are you facing a [CORS policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
|
||||
issue in your app? Don't worry, there are alternative solutions to this problem that you
|
||||
can explore. Here are some options to consider:
|
||||
|
||||
1. **Use the option.corsImg support by passing images** With this option, you can setup a
|
||||
proxy service that will process the requests in a safe CORS context.
|
||||
|
||||
2. **Use third-party services like [allOrigins](https://allorigins.win/).** With this
|
||||
service, you can fetch the source code or an image in base64 format from any website.
|
||||
However, this method can be a bit slow.
|
||||
|
||||
3. **Set up your own API service.** Compared to third-party services like
|
||||
[allOrigins](https://allorigins.win/), this method can be faster, but you'll need to
|
||||
convert the image URL to base64 format. You can use the
|
||||
"[image-to-base64](https://github.com/renanbastos93/image-to-base64)" package for this
|
||||
purpose.
|
||||
|
||||
4. **Utilize
|
||||
[server-side functions](https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props)
|
||||
features of frameworks like [Next.js](https://nextjs.org/).** This is the easiest and
|
||||
most convenient method, where you can directly fetch a URL source within
|
||||
[server-side functions](https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props)
|
||||
and convert it to base64 format if needed.
|
||||
|
||||
By exploring these alternative solutions, you can overcome
|
||||
[the CORS policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issue in your
|
||||
app and ensure that your images are accessible to everyone.
|
||||
|
||||
## Browsers
|
||||
|
||||
It's tested on latest Chrome and Firefox (49 and 45 respectively at the time of writing),
|
||||
with Chrome performing significantly better on big DOM trees, possibly due to it's more
|
||||
performant SVG support, and the fact that it supports `CSSStyleDeclaration.cssText`
|
||||
property.
|
||||
|
||||
_Internet Explorer is not (and will not be) supported, as it does not support SVG
|
||||
`<foreignObject>` tag_
|
||||
|
||||
_Safari [is not supported](https://github.com/tsayen/dom-to-image/issues/27), as it uses a
|
||||
stricter security model on `<foreignObject`> tag. Suggested workaround is to use `toSvg`
|
||||
and render on the server._`
|
||||
|
||||
## Dependencies
|
||||
|
||||
Uses Object.hasOwn() so needs at least Chrome/Edge 93, Firefox 92, Opera 79. Safari 15.4
|
||||
or Node 16.9.0
|
||||
|
||||
### Source
|
||||
|
||||
Only standard lib is currently used, but make sure your browser supports:
|
||||
|
||||
- [Promise](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
||||
- SVG `<foreignObject>` tag
|
||||
|
||||
### Tests
|
||||
|
||||
As of this v3 branch chain, the testing jig is taking advantage of the `onclone` hook to
|
||||
insert the clone-output into the testing page. This should make it a tiny bit easier to
|
||||
track down where exactly the inlining of CSS styles against the DOM nodes is wrong.
|
||||
|
||||
Most importantly, tests **only** depend on:
|
||||
|
||||
- [ocrad.js](https://github.com/antimatter15/ocrad.js), for the parts when you can't
|
||||
compare images (due to the browser rendering differences) and just have to test whether
|
||||
the text is rendered
|
||||
|
||||
## How it works
|
||||
|
||||
There might some day exist (or maybe already exists?) a simple and standard way of
|
||||
exporting parts of the HTML to image (and then this script can only serve as an evidence
|
||||
of all the hoops I had to jump through in order to get such obvious thing done) but I
|
||||
haven't found one so far.
|
||||
|
||||
This library uses a feature of SVG that allows having arbitrary HTML content inside of the
|
||||
`<foreignObject>` tag. So, in order to render that DOM node for you, following steps are
|
||||
taken:
|
||||
|
||||
1. Clone the original DOM node recursively
|
||||
|
||||
1. Compute the style for the node and each sub-node and copy it to corresponding clone
|
||||
- and don't forget to recreate pseudo-elements, as they are not cloned in any way, of
|
||||
course
|
||||
|
||||
1. Embed web fonts
|
||||
- find all the `@font-face` declarations that might represent web fonts
|
||||
|
||||
- parse file URLs, download corresponding files
|
||||
|
||||
- base64-encode and inline content as `data:` URLs
|
||||
|
||||
- concatenate all the processed CSS rules and put them into one `<style>` element,
|
||||
then attach it to the clone
|
||||
|
||||
1. Embed images
|
||||
- embed image URLs in `<img>` elements
|
||||
|
||||
- inline images used in `background` CSS property, in a fashion similar to fonts
|
||||
|
||||
1. Serialize the cloned node to XML
|
||||
|
||||
1. Wrap XML into the `<foreignObject>` tag, then into the SVG, then make it a data URL
|
||||
|
||||
1. Optionally, to get PNG content or raw pixel data as a Uint8Array, create an Image
|
||||
element with the SVG as a source, and render it on an off-screen canvas, that you have
|
||||
also created, then read the content from the canvas
|
||||
|
||||
1. Done!
|
||||
|
||||
## Using Typescript
|
||||
|
||||
1. Use original `dom-to-image` type definition
|
||||
`npm install @types/dom-to-image --save-dev`
|
||||
|
||||
1. Create dom-to-image-more type definition (`dom-to-image-more.d.ts`)
|
||||
|
||||
```javascript
|
||||
declare module 'dom-to-image-more' {
|
||||
import domToImage = require('dom-to-image-more');
|
||||
export = domToImage;
|
||||
}
|
||||
```
|
||||
|
||||
## Things to watch out for
|
||||
|
||||
- if the DOM node you want to render includes a `<canvas>` element with something drawn on
|
||||
it, it should be handled fine, unless the canvas is
|
||||
[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image) - in
|
||||
this case rendering will rather not succeed.
|
||||
|
||||
- at the time of writing, Firefox has a problem with some external stylesheets (see issue
|
||||
#13). In such case, the error will be caught and logged.
|
||||
|
||||
## Authors
|
||||
|
||||
Marc Brooks, Anatolii Saienko (original dom-to-image), Paul Bakaus (original idea), Aidas
|
||||
Klimas (fixes), Edgardo Di Gesto (fixes), 樊冬 Fan Dong (fixes), Shrijan Tripathi (docs),
|
||||
SNDST00M (optimize), Joseph White (performance CSS), Phani Rithvij (test), David
|
||||
DOLCIMASCOLO (packaging), Zee (ZM) @zm-cttae (many major updates), Joshua Walsh
|
||||
@JoshuaWalsh (Firefox issues), Emre Coban @emrecoban (documentation), Nate Stuyvesant
|
||||
@nstuyvesant (fixes), King Wang @eachmawzw (CORS image proxy), TMM Schmit @tmmschmit
|
||||
(useCredentialsFilters), Aravind @codesculpture (fix overridden props), Shi Wenyu @cWenyu
|
||||
(shadow slot fix), David Burns @davidburns573 and Yujia Cheng @YujiaCheng1996 (font copy
|
||||
optional), Julien Dorra @juliendorra (documentation), Sean Zhang @SeanZhang-eaton (regex
|
||||
fixes), Ludovic Bouges @ludovic (style property filter), Roland Ma @RolandMa1986 (URL
|
||||
regex)", Kasim Tan @kasimtan
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
3
node_modules/dom-to-image-more/dist/dom-to-image-more.min.js
generated
vendored
Normal file
3
node_modules/dom-to-image-more/dist/dom-to-image-more.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/dom-to-image-more/dist/dom-to-image-more.min.js.map
generated
vendored
Normal file
1
node_modules/dom-to-image-more/dist/dom-to-image-more.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
42
node_modules/dom-to-image-more/eslint.config.mjs
generated
vendored
Normal file
42
node_modules/dom-to-image-more/eslint.config.mjs
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import globals from 'globals';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import js from '@eslint/js';
|
||||
import { FlatCompat } from '@eslint/eslintrc';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all,
|
||||
});
|
||||
|
||||
export default [
|
||||
...compat.extends('eslint:recommended'),
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
},
|
||||
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
},
|
||||
|
||||
rules: {
|
||||
'indent': ['error', 4],
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
'quotes': ['error', 'single'],
|
||||
'semi': ['error', 'always'],
|
||||
'no-unused-vars': [
|
||||
'error',
|
||||
{
|
||||
argsIgnorePattern: '^_',
|
||||
caughtErrorsIgnorePattern: '^_',
|
||||
varsIgnorePattern: '^_',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
54
node_modules/dom-to-image-more/karma.conf.js
generated
vendored
Normal file
54
node_modules/dom-to-image-more/karma.conf.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
module.exports = function (config) {
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['mocha', 'chai'],
|
||||
concurrency: 1,
|
||||
|
||||
files: [
|
||||
{
|
||||
pattern: 'spec/resources/**/*',
|
||||
included: false,
|
||||
served: true,
|
||||
},
|
||||
{
|
||||
pattern: 'test-lib/fontawesome/webfonts/*.*',
|
||||
included: false,
|
||||
served: true,
|
||||
},
|
||||
{
|
||||
pattern: 'test-lib/fontawesome/css/*.*',
|
||||
included: false,
|
||||
served: true,
|
||||
},
|
||||
|
||||
'test-lib/tesseract-4.0.2.min.js',
|
||||
|
||||
'src/dom-to-image-more.js',
|
||||
'spec/dom-to-image-more.spec.js',
|
||||
],
|
||||
|
||||
exclude: [],
|
||||
preprocessors: {},
|
||||
reporters: ['mocha'],
|
||||
port: 9876,
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
client: {
|
||||
captureConsole: true,
|
||||
},
|
||||
autoWatch: true,
|
||||
browsers: ['chrome'],
|
||||
customLaunchers: {
|
||||
chrome: {
|
||||
base: 'Chrome',
|
||||
flags: [
|
||||
'--no-sandbox --remote-debugging-port=9876 --window-size=1024,768',
|
||||
],
|
||||
debug: true,
|
||||
},
|
||||
},
|
||||
|
||||
singleRun: false,
|
||||
browserNoActivityTimeout: 60000,
|
||||
});
|
||||
};
|
||||
84
node_modules/dom-to-image-more/package.json
generated
vendored
Normal file
84
node_modules/dom-to-image-more/package.json
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"name": "dom-to-image-more",
|
||||
"version": "3.7.2",
|
||||
"description": "Generates an image from a DOM node using HTML5 canvas and SVG",
|
||||
"main": "dist/dom-to-image-more.min.js",
|
||||
"devDependencies": {
|
||||
"chai": "^4.4.1",
|
||||
"eslint": "^9.38.0",
|
||||
"grunt": "^1.6.1",
|
||||
"grunt-cli": "^1.5.0",
|
||||
"grunt-contrib-jshint": "^3.2.0",
|
||||
"grunt-contrib-uglify": "^5.2.2",
|
||||
"grunt-contrib-watch": "^1.1.0",
|
||||
"grunt-karma": "^4.0.2",
|
||||
"js-yaml": "^4.1.0",
|
||||
"karma": "^6.4.4",
|
||||
"karma-chai": "^0.1.0",
|
||||
"karma-chrome-launcher": "^3.2.0",
|
||||
"karma-firefox-launcher": "^2.1.3",
|
||||
"karma-mocha": "^2.0.1",
|
||||
"karma-mocha-reporter": "^2.2.5",
|
||||
"mocha": "^11.7.4",
|
||||
"prettier": "^3.6.2",
|
||||
"semver": "^7.7.3"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "eslint src --fix && prettier --write .",
|
||||
"lint": "eslint --max-warnings=0 src && prettier --check .",
|
||||
"test": "grunt test --debug",
|
||||
"build": "grunt",
|
||||
"build:ci": "grunt ci",
|
||||
"beta-version-patch": "npm version $(semver $npm_package_version -i prerelease --preid beta)",
|
||||
"beta-version-minor": "npm version $(semver $npm_package_version -i preminor --preid beta)",
|
||||
"beta-version-major": "npm version $(semver $npm_package_version -i premajor --preid beta)",
|
||||
"rc-version": "npm version $(semver $npm_package_version -i prerelease --preid rc)",
|
||||
"final-release": "npm version $(semver $npm_package_version -i)",
|
||||
"postversion": "npm run test && git push && git push --tags"
|
||||
},
|
||||
"repository": "github:1904labs/dom-to-image-more",
|
||||
"keywords": [
|
||||
"dom",
|
||||
"image",
|
||||
"raster",
|
||||
"render",
|
||||
"html",
|
||||
"canvas",
|
||||
"svg",
|
||||
"png"
|
||||
],
|
||||
"author": "Marc Brooks <idisposable@gmail.com> (https://about.me/IDisposable)",
|
||||
"contributors": [
|
||||
"Anatolii Saienko <anatoly.sayenko@gmail.com>",
|
||||
"Marc Brooks <idisposable@gmail.com>",
|
||||
"Daniel Fischer <daniel.fischer@iqdoq.de>",
|
||||
"Aidas Klimas",
|
||||
"Edgardo Di Gesto",
|
||||
"樊冬 Fan Dong <CG-man@outlook.com>",
|
||||
"Joseph White @JosWhite",
|
||||
"Phani Rithvij @phanirithvij",
|
||||
"David DOLCIMASCOLO @ddolcimascolo",
|
||||
"Nikita Staroseltsev @Nikitozz13",
|
||||
"Zee @zm-cttae",
|
||||
"Andoni Zubimendi @AndoniZubimendi",
|
||||
"Joshua Walsh @JoshuaWalsh",
|
||||
"Emre Coban @emrecoban",
|
||||
"Nate Stuyvesant @nstuyvesant",
|
||||
"King Wang @eachmawzw",
|
||||
"TMM Schmit @tmmschmit",
|
||||
"Aravind @codesculpture",
|
||||
"Shi Wenyu @cWenyu",
|
||||
"David Burns @davidburns573",
|
||||
"Yujia Cheng @YujiaCheng1996",
|
||||
"Julien Dorra @juliendorra",
|
||||
"Sean Zhang @SeanZhang-eaton",
|
||||
"Ludovic Bouges @ludovic",
|
||||
"Roland Ma @RolandMa1986",
|
||||
"Kasim Tan @kasimtan"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/1904labs/dom-to-image-more/issues"
|
||||
},
|
||||
"homepage": "https://github.com/1904labs/dom-to-image-more#readme"
|
||||
}
|
||||
4
node_modules/dom-to-image-more/package.sh
generated
vendored
Normal file
4
node_modules/dom-to-image-more/package.sh
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
npm run build
|
||||
git push
|
||||
git push --tags
|
||||
npm publish
|
||||
1356
node_modules/dom-to-image-more/spec/dom-to-image-more.spec.js
generated
vendored
Normal file
1356
node_modules/dom-to-image-more/spec/dom-to-image-more.spec.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/dom-to-image-more/spec/resources/background-clip/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/background-clip/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/dom-to-image-more/spec/resources/background-clip/dom-node.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/background-clip/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<div class="high-gloss">There's a lot of style here</div>
|
||||
34
node_modules/dom-to-image-more/spec/resources/background-clip/rendered.html
generated
vendored
Normal file
34
node_modules/dom-to-image-more/spec/resources/background-clip/rendered.html
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<div
|
||||
class="high-gloss"
|
||||
style="
|
||||
background-image: linear-gradient(
|
||||
rgba(50, 50, 50, 0.95) 24%,
|
||||
rgb(186, 186, 186) 45%,
|
||||
rgba(226, 235, 238, 0.953) 49%,
|
||||
rgba(50, 50, 50, 0.93) 50%,
|
||||
rgba(50, 50, 50, 0.97) 100%
|
||||
);
|
||||
block-size: 32px;
|
||||
border-block-color: rgba(0, 0, 0, 0);
|
||||
border-color: rgba(0, 0, 0, 0);
|
||||
border-inline-color: rgba(0, 0, 0, 0);
|
||||
box-sizing: border-box;
|
||||
caret-color: rgba(0, 0, 0, 0);
|
||||
color: rgba(0, 0, 0, 0);
|
||||
column-rule-color: rgba(0, 0, 0, 0);
|
||||
height: 32px;
|
||||
inline-size: 914px;
|
||||
outline-color: rgba(0, 0, 0, 0);
|
||||
perspective-origin: 457px 16px;
|
||||
text-decoration: none solid rgba(0, 0, 0, 0);
|
||||
text-emphasis-color: rgba(0, 0, 0, 0);
|
||||
text-shadow: rgba(0, 0, 0, 0.1) 5px 5px 10px;
|
||||
transform-origin: 457px 16px;
|
||||
width: 914px;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: rgba(0, 0, 0, 0);
|
||||
-webkit-text-stroke-color: rgba(0, 0, 0, 0);
|
||||
"
|
||||
>
|
||||
There's a lot of style here
|
||||
</div>
|
||||
22
node_modules/dom-to-image-more/spec/resources/background-clip/style.css
generated
vendored
Normal file
22
node_modules/dom-to-image-more/spec/resources/background-clip/style.css
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#dom-node {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.high-gloss {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(50, 50, 50, 0.95) 24%,
|
||||
rgba(186, 186, 186, 1) 45%,
|
||||
rgba(226, 235, 238, 0.9514006286108193) 49%,
|
||||
rgba(50, 50, 50, 0.93) 50%,
|
||||
rgba(50, 50, 50, 0.97) 100%
|
||||
);
|
||||
color: transparent;
|
||||
text-shadow: rgba(0, 0, 0, 0.1) 5px 5px 10px;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
3
node_modules/dom-to-image-more/spec/resources/bare-text-nodes/dom-node.html
generated
vendored
Normal file
3
node_modules/dom-to-image-more/spec/resources/bare-text-nodes/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
BARE TEXT NODES ARE FUN
|
||||
<!-- This is a comment -->
|
||||
<div>IGNORE ME</div>
|
||||
16
node_modules/dom-to-image-more/spec/resources/bare-text-nodes/style.css
generated
vendored
Normal file
16
node_modules/dom-to-image-more/spec/resources/bare-text-nodes/style.css
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
* {
|
||||
color: black;
|
||||
background-color: white;
|
||||
font-family: monospace;
|
||||
font-size: 20px;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
font-variant: normal;
|
||||
}
|
||||
|
||||
#dom-node {
|
||||
text-align: center;
|
||||
width: 500px;
|
||||
padding: 20px;
|
||||
background-color: brown;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/bgcolor/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/bgcolor/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAdxJREFUeF7t3MGJw1AUQ9HvCjL9V+kOPB1kIVAQ5nj/ZPleRHa57vt+zguez+fvBV9xzkXIlkdCtnxYyJgPQggpEfCjXgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdEVICm8YSkpIr3RFSApvGEpKSK90RUgKbxhKSkivdvUbI85xX/KNcyfPPYy9Cfs786wsJ2fJxCCFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LIWSMwFgdCyFkjMBYHQshZIzAWB0LGRPyD33xXUh8cFpQAAAAAElFTkSuQmCC
|
||||
1
node_modules/dom-to-image-more/spec/resources/bgcolor/dom-node.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/bgcolor/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<div id="content"></div>
|
||||
10
node_modules/dom-to-image-more/spec/resources/bgcolor/style.css
generated
vendored
Normal file
10
node_modules/dom-to-image-more/spec/resources/bgcolor/style.css
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#dom-node {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
#content {
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/big/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/big/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABlCAYAAAC7vkbxAAABMElEQVR4nO3XwQnEMBAEwQ3dOSog3c8gHIAarh4VQTNCOzOzSZm91iLgCLJnuOgThPsEiTmCzDNcZCFBgsScT9b9j8Zfs5AgQWIchiEWEiRIjMMwxEKCBIlxGIZYSJAgMQ7DEAsJEiTGYRhiIUGCxDgMQywkSJAYh2GIhQQJEuMwDLGQIEFiHIYhFhIkSIzDMMRCggSJcRiGWEiQIDEOwxALCRIkxmEYYiFBgsQ4DEMsJEiQGIdhiIUECRLjMAyxkCBBYhyGIRYSJEiMwzDEQoIEiXEYhlhIkCAxDsMQCwkSJMZhGGIhQYLEOAxDLCRIkBiHYYiFBAkS4zAMsZAgQWIchiEWEiRIjMMwxEKCBIlxGIZYSJAgMQ7DEAsJEiTGYRhiIUGCxDgMQywk6A1Cxw8SIrcz/VMBBAAAAABJRU5ErkJggg==
|
||||
1
node_modules/dom-to-image-more/spec/resources/bigger/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/bigger/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABjCAYAAABt56XsAAAB10lEQVR4Xu3dgW3CQBAAQegHV0OdVPP0A7IRj54KRvKmggujnLxvO1zHGK9LP8wncN1BbtvGDHTmQZ5jXA6QM38I2u8eCCZygGyPVpbgMu6tLMFhmaGVhZF8VtZ2w8Y65zhjPLvK0uhbWZhIYQiBFIYQxneUVhaGUhhCIIUhhNHKAjH2kQpDCKYwhDBaWSDGXFndMTR0CkPDoeN30GGOVBhCOoUhhNFVFohRGGIohSEGMv9CwLlOO1J3DCH6whDC6CoLxPhdZfUoKcFTGBIM6xA95IChdMcQAikMIYyuskCM7hhiKIUhBtJZlgrSO4aGTGFoOCxTFIYYSmEIgRSGEEZhCGIUhhhKYYiBFIYqSGFoyBSGhkNhCDrMkQpDSKcwhDAKQxCjMMRQCkMMpDBUQQpDQ6YwNBwKQ9ChMBRRCkNQpYccMJTeMYRACkMIo7MsEGOWemFo6BSGhkNhCDoUhiJKYQiqFIYYSmEIgRSGEEZhCGIUhhhKYYiB9JCDCtL3GBoyhaHh0FkW6LCeZfV1FQZRYWg4tLJAh7/j9/4rKWFUGBIM6xAdv2MovWMIgRSGEEbH7yDGPFwsDA2dwtBwKAxBh8JQRCkMQZXCEEMpDCGQwhDC+I7yBsViutvRkyz3AAAAAElFTkSuQmCC
|
||||
5
node_modules/dom-to-image-more/spec/resources/bigger/dom-node.html
generated
vendored
Normal file
5
node_modules/dom-to-image-more/spec/resources/bigger/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="dom-child-node">
|
||||
<div class="red"></div>
|
||||
<div class="green"></div>
|
||||
<div class="blue"></div>
|
||||
</div>
|
||||
26
node_modules/dom-to-image-more/spec/resources/bigger/style.css
generated
vendored
Normal file
26
node_modules/dom-to-image-more/spec/resources/bigger/style.css
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#dom-node {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.child-node {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.green {
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
.blue {
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
.red,
|
||||
.green,
|
||||
.blue {
|
||||
height: 3px;
|
||||
border: 1px solid lightgrey;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/border/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/border/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACBElEQVR4Xu3dQQrDQAzAwPT/j25pX2DoYHxQzkZrJJaQU17P87yfnjMGXgU50+K3SEFu9SjIsR4FKcg1A8f26R1SkGMGjq3TDSnIMQPH1hnfkD7n/yv3FT15CjKxBGYKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gSsggCJElEQaROwCgIkSkRBpE3AKgiQKBEFkTYBqyBAokQURNoErIIAiRJREGkTsAoCJEpEQaRNwCoIkCgRBZE2AasgQKJEFETaBKyCAIkSURBpE7AKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gSsggCJElEQaROwCgIkSkRBpE3AKgiQKBEFkTYBqyBAokQURNoErIIAiRJREGkTsAoCJEpEQaRNwCoIkCgRBZE2AasgQKJEFETaBKyCAIkSURBpE7AKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gSsggCJElEQaROwCgIkSkRBpE3AKgiQKBEFkTYBqyBAokQURNoErIIAiRJREGkTsAoCJEpEQaRNwCoIkCgRBZE2AasgQKJEFETaBKyCAIkSURBpE7AKAiRKREGkTcAqCJAoEQWRNgGrIECiRBRE2gQsHgTsFGJg4Buuf9cPRG2NFGTL9PCcggxFbY0VZMv08JyCDEVtjRVky/TwnIIMRW2NFWTL9PCcggxFbY19AL3RtAEdMr15AAAAAElFTkSuQmCC
|
||||
0
node_modules/dom-to-image-more/spec/resources/border/dom-node.html
generated
vendored
Normal file
0
node_modules/dom-to-image-more/spec/resources/border/dom-node.html
generated
vendored
Normal file
9
node_modules/dom-to-image-more/spec/resources/border/style.css
generated
vendored
Normal file
9
node_modules/dom-to-image-more/spec/resources/border/style.css
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
#dom-node {
|
||||
font-size: 16px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: red;
|
||||
border-color: black;
|
||||
border: solid;
|
||||
border-width: 10px 10px 0.625em 10px;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/canvas/dom-node.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/canvas/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<canvas id="content"></canvas>
|
||||
7
node_modules/dom-to-image-more/spec/resources/canvas/empty-data.html
generated
vendored
Normal file
7
node_modules/dom-to-image-more/spec/resources/canvas/empty-data.html
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<div id="dom-node">
|
||||
BLANK_TEMPLATE
|
||||
|
||||
<canvas width="0"></canvas>
|
||||
</div>
|
||||
|
||||
<div id="result"></div>
|
||||
11
node_modules/dom-to-image-more/spec/resources/canvas/empty-style.css
generated
vendored
Normal file
11
node_modules/dom-to-image-more/spec/resources/canvas/empty-style.css
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
#dom-node {
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
background-color: lightgrey;
|
||||
text-align: center;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
#result {
|
||||
margin-top: 10px;
|
||||
}
|
||||
10
node_modules/dom-to-image-more/spec/resources/canvas/style.css
generated
vendored
Normal file
10
node_modules/dom-to-image-more/spec/resources/canvas/style.css
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#dom-node {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
#content {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/css-bg/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/css-bg/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAADWVJREFUeF7tXHWoFU8bnmt3o2JjgYXYLYqgiIKKXagYWPiH2B2IiYKKrWBjIyiKiokdqIiNYotid388w+9Z3jPuvXfOOfeuq98syDlnd3bieebtuSb8+vXrl3JXaBBIcISEhgs9EUdIuPhwhISMD0eIIyRsCIRsPs6GOEJChkDIpuMkxBESMgRCNh0nIY6QkCEQsuk4CXGEhAyBkE3HSYgjJGQIhGw6TkIcISFDIGTTcRLiCAkZAiGbjpMQR0jIEA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ErkJggg==
|
||||
1
node_modules/dom-to-image-more/spec/resources/css-bg/dom-node.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/css-bg/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<div class="with-background"></div>
|
||||
BIN
node_modules/dom-to-image-more/spec/resources/css-bg/image.jpeg
generated
vendored
Normal file
BIN
node_modules/dom-to-image-more/spec/resources/css-bg/image.jpeg
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
12
node_modules/dom-to-image-more/spec/resources/css-bg/style.css
generated
vendored
Normal file
12
node_modules/dom-to-image-more/spec/resources/css-bg/style.css
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
#dom-node {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: white;
|
||||
color: black;
|
||||
}
|
||||
.with-background {
|
||||
background: url(/base/spec/resources/css-bg/image.jpeg) no-repeat left top;
|
||||
background-size: 100px 100px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/defaultStyles/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/defaultStyles/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
53
node_modules/dom-to-image-more/spec/resources/defaultStyles/defaultStyles.html
generated
vendored
Normal file
53
node_modules/dom-to-image-more/spec/resources/defaultStyles/defaultStyles.html
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<div class="rounded-lg bg-gray-100 px-4 py-4" id="informacion_estadistica">
|
||||
<div>
|
||||
<h3 class="mt-5 text-2xl leading-6 font-medium text-gray-900">Results</h3>
|
||||
<dl
|
||||
class="m-auto w-3/4 mt-5 grid grid-cols-1 rounded-lg bg-white overflow-hidden shadow divide-y divide-gray-200 md:grid-cols-2 md:divide-y-0 md:divide-x"
|
||||
>
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
<dt class="text-center text-base font-extrabold text-gray-900">
|
||||
ABC <br />
|
||||
DEF ABC ABC
|
||||
</dt>
|
||||
<dd class="mt-1 flex justify-center items-baseline md:block lg:flex">
|
||||
<div class="text-gray-500">
|
||||
<div
|
||||
class="mx-auto px-2.5 py-0.5 text-5xl font-extrabold text-green-500 md:mt-2 lg:mt-0"
|
||||
>
|
||||
<p class="text-center">50.00%</p>
|
||||
</div>
|
||||
<div class="text-center text-sm">
|
||||
<span class="font-semibold text-indigo-600">5</span> de
|
||||
<span class="font-semibold text-indigo-600">10</span>
|
||||
resueltas
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
</div>
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
<dt class="text-center text-base font-extrabold text-gray-900">
|
||||
Audiencias<br />
|
||||
celebradas
|
||||
</dt>
|
||||
<dd class="mt-1 flex justify-center items-baseline md:block lg:flex">
|
||||
<div class="text-gray-500">
|
||||
<div
|
||||
class="mx-auto px-2.5 py-0.5 text-5xl font-extrabold text-green-500 md:mt-2 lg:mt-0"
|
||||
>
|
||||
<p class="text-center">10</p>
|
||||
</div>
|
||||
<div class="text-center text-sm">
|
||||
<span class="font-semibold text-indigo-600">5</span> Aud.
|
||||
Preliminares
|
||||
</div>
|
||||
<div class="text-center text-sm">
|
||||
<span class="font-semibold text-indigo-600">5</span> Aud.
|
||||
Vista de Causa
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
<p class="text-sm text-gray-800 text-right mt-2">Last update: 2023-02-04</p>
|
||||
</div>
|
||||
405
node_modules/dom-to-image-more/spec/resources/defaultStyles/style.css
generated
vendored
Normal file
405
node_modules/dom-to-image-more/spec/resources/defaultStyles/style.css
generated
vendored
Normal file
@@ -0,0 +1,405 @@
|
||||
*,
|
||||
:after,
|
||||
:before {
|
||||
border-style: none;
|
||||
border-color: #e5e7eb;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:after,
|
||||
:before {
|
||||
--tw-content: '';
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
font-family: 'Inter var, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji';
|
||||
line-height: 1.5;
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
:-moz-focusring {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
::-webkit-inner-spin-button,
|
||||
::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
dd,
|
||||
dl,
|
||||
h3,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-date-and-time-value {
|
||||
min-height: 1.5em;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-meridiem-field,
|
||||
::-webkit-datetime-edit-millisecond-field,
|
||||
::-webkit-datetime-edit-minute-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-second-field,
|
||||
::-webkit-datetime-edit-year-field {
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
*,
|
||||
:after,
|
||||
:before {
|
||||
--tw-border-spacing-x: 0;
|
||||
--tw-border-spacing-y: 0;
|
||||
--tw-translate-x: 0;
|
||||
--tw-translate-y: 0;
|
||||
--tw-rotate: 0;
|
||||
--tw-skew-x: 0;
|
||||
--tw-skew-y: 0;
|
||||
--tw-scale-x: 1;
|
||||
--tw-scale-y: 1;
|
||||
--tw-scroll-snap-strictness: proximity;
|
||||
--tw-ring-offset-width: 0px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: rgba(59, 130, 246, 0.5);
|
||||
--tw-ring-offset-shadow: 0 0 #0000;
|
||||
--tw-ring-shadow: 0 0 #0000;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
--tw-shadow-colored: 0 0 #0000;
|
||||
}
|
||||
|
||||
::-webkit-backdrop {
|
||||
--tw-border-spacing-x: 0;
|
||||
--tw-border-spacing-y: 0;
|
||||
--tw-translate-x: 0;
|
||||
--tw-translate-y: 0;
|
||||
--tw-rotate: 0;
|
||||
--tw-skew-x: 0;
|
||||
--tw-skew-y: 0;
|
||||
--tw-scale-x: 1;
|
||||
--tw-scale-y: 1;
|
||||
--tw-scroll-snap-strictness: proximity;
|
||||
--tw-ring-offset-width: 0px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: rgba(59, 130, 246, 0.5);
|
||||
--tw-ring-offset-shadow: 0 0 #0000;
|
||||
--tw-ring-shadow: 0 0 #0000;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
--tw-shadow-colored: 0 0 #0000;
|
||||
}
|
||||
|
||||
::backdrop {
|
||||
--tw-border-spacing-x: 0;
|
||||
--tw-border-spacing-y: 0;
|
||||
--tw-translate-x: 0;
|
||||
--tw-translate-y: 0;
|
||||
--tw-rotate: 0;
|
||||
--tw-skew-x: 0;
|
||||
--tw-skew-y: 0;
|
||||
--tw-scale-x: 1;
|
||||
--tw-scale-y: 1;
|
||||
--tw-scroll-snap-strictness: proximity;
|
||||
--tw-ring-offset-width: 0px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: rgba(59, 130, 246, 0.5);
|
||||
--tw-ring-offset-shadow: 0 0 #0000;
|
||||
--tw-ring-shadow: 0 0 #0000;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
--tw-shadow-colored: 0 0 #0000;
|
||||
}
|
||||
|
||||
.m-auto {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.mx-auto {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.mt-1 {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.mt-5 {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.w-3\/4 {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.flex-1 {
|
||||
flex: 1 1 0%;
|
||||
}
|
||||
|
||||
.grid-cols-1 {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.items-baseline {
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.divide-y > :not([hidden]) ~ :not([hidden]) {
|
||||
--tw-divide-y-reverse: 0;
|
||||
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
|
||||
border-top-width: calc(1px * (1 - var(--tw-divide-y-reverse)));
|
||||
}
|
||||
|
||||
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
|
||||
--tw-divide-opacity: 1;
|
||||
border-color: rgb(229 231 235 / var(--tw-divide-opacity));
|
||||
}
|
||||
|
||||
.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.overflow-y-auto {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.rounded-lg {
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-gray-100 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-indigo-50 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(238 242 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.p-4 {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.py-4 {
|
||||
padding-bottom: 1rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.px-4 {
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.py-5 {
|
||||
padding-bottom: 1.25rem;
|
||||
padding-top: 1.25rem;
|
||||
}
|
||||
|
||||
.px-2\.5 {
|
||||
padding-left: 0.625rem;
|
||||
padding-right: 0.625rem;
|
||||
}
|
||||
|
||||
.py-0\.5 {
|
||||
padding-bottom: 0.125rem;
|
||||
padding-top: 0.125rem;
|
||||
}
|
||||
|
||||
.py-10 {
|
||||
padding-bottom: 2.5rem;
|
||||
padding-top: 2.5rem;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.text-5xl {
|
||||
font-size: 3rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-base {
|
||||
font-size: 1rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.text-2xl {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.font-extrabold {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.font-medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.font-semibold {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.leading-6 {
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
.text-gray-800 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(31 41 55 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-gray-500 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(107 114 128 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-gray-900 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(17 24 39 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-indigo-600 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(79 70 229 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-green-500 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(34 197 94 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.shadow {
|
||||
--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
||||
--tw-shadow-colored:
|
||||
0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
||||
}
|
||||
|
||||
.shadow {
|
||||
box-shadow:
|
||||
var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
||||
var(--tw-shadow);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.sm\:p-6 {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.sm\:px-6 {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.md\:block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.md\:grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.md\:divide-y-0 > :not([hidden]) ~ :not([hidden]) {
|
||||
--tw-divide-y-reverse: 0;
|
||||
border-bottom-width: calc(0px * var(--tw-divide-y-reverse));
|
||||
border-top-width: calc(0px * (1 - var(--tw-divide-y-reverse)));
|
||||
}
|
||||
|
||||
.md\:divide-x > :not([hidden]) ~ :not([hidden]) {
|
||||
--tw-divide-x-reverse: 0;
|
||||
border-left-width: calc(1px * (1 - var(--tw-divide-x-reverse)));
|
||||
border-right-width: calc(1px * var(--tw-divide-x-reverse));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.lg\:mt-0 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.lg\:flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.lg\:px-8 {
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/dimensions/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/dimensions/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAFJklEQVR4Xu3VsRGAQAwEsaf/oqEBINj0RO7A8u9w3efcx0eAwKvAJRAvg8C3gEC8DgI/AgLxPAgIxBsg0AT8QZqbqREBgYwc2ppNQCDNzdSIgEBGDm3NJiCQ5mZqREAgI4e2ZhMQSHMzNSIgkJFDW7MJCKS5mRoREMjIoa3ZBATS3EyNCAhk5NDWbAICaW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1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aW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IiCQkUNbswkIpLmZGhEQyMihrdkEBNLcTI0ICGTk0NZsAgJpbqZGBAQycmhrNgGBNDdTIwICGTm0NZuAQJqbqREBgYwc2ppNQCDNzdSIwAOn4Y9IyHT+ZAAAAABJRU5ErkJggg==
|
||||
0
node_modules/dom-to-image-more/spec/resources/dimensions/dom-node.html
generated
vendored
Normal file
0
node_modules/dom-to-image-more/spec/resources/dimensions/dom-node.html
generated
vendored
Normal file
5
node_modules/dom-to-image-more/spec/resources/dimensions/style.css
generated
vendored
Normal file
5
node_modules/dom-to-image-more/spec/resources/dimensions/style.css
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#dom-node {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: red;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/eventing/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/eventing/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/dom-to-image-more/spec/resources/eventing/dom-node.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/eventing/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<div id="element" style="width: 100px; height: 100px; background-color: green"></div>
|
||||
5
node_modules/dom-to-image-more/spec/resources/eventing/style.css
generated
vendored
Normal file
5
node_modules/dom-to-image-more/spec/resources/eventing/style.css
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#dom-node {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background-color: blue;
|
||||
}
|
||||
4
node_modules/dom-to-image-more/spec/resources/ext-css/dom-node.html
generated
vendored
Normal file
4
node_modules/dom-to-image-more/spec/resources/ext-css/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
5
node_modules/dom-to-image-more/spec/resources/ext-css/style.css
generated
vendored
Normal file
5
node_modules/dom-to-image-more/spec/resources/ext-css/style.css
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#dom-node {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background-color: black;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/filter/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/filter/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABbUlEQVR4Xu3VgQkAIAzEwHb/oRWc4sA4QUj6uDPnTI8xsAVhWjyQglg9CoL1KEhBNAMYT39IQTADGE4LKQhmAMNpIQXBDGA4LaQgmAEMp4UUBDOA4bSQgmAGMJwWUhDMAIbTQgqCGcBwWkhBMAMYTgspCGYAw2khBcEMYDgtpCCYAQynhRQEM4DhtJCCYAYwnBZSEMwAhtNCCoIZwHBaSEEwAxhOCykIZgDDaSEFwQxgOC2kIJgBDKeFFAQzgOG0kIJgBjCcxXi+xykIdgIFKQhmAMNpIQXBDGA4LaQgmAEMp4UUBDOA4bSQgmAGMJwWUhDMAIbTQgqCGcBwWkhBMAMYTgspCGYAw2khBcEMYDgtpCCYAQynhRQEM4DhtJCCYAYwnBZSEMwAhtNCCoIZwHBaSEEwAxhOCykIZgDDaSEFwQxgOC2kIJgBDKeFFAQzgOG0kIJgBjCcFlIQzACG00IKghnAcFpIQTADGM4FBilkAQH5WFMAAAAASUVORK5CYII=
|
||||
2
node_modules/dom-to-image-more/spec/resources/filter/dom-node.html
generated
vendored
Normal file
2
node_modules/dom-to-image-more/spec/resources/filter/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<div class="include"></div>
|
||||
<div class="omit"></div>
|
||||
13
node_modules/dom-to-image-more/spec/resources/filter/style.css
generated
vendored
Normal file
13
node_modules/dom-to-image-more/spec/resources/filter/style.css
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
#dom-node {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.include {
|
||||
height: 50px;
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
.omit {
|
||||
height: 50px;
|
||||
background-color: red;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/filterStyles/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/filterStyles/control-image
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABGBJREFUeF7tnV2oTWkYx39H+ShKadygyEdyMY1cDHFBuaCUfBZyR83kjtxMowhX8lFSciU3M1woIlcoSUq5IeWjZsyMfORCJDWKrKfeXavTOXutd7+v1bP3+u+bU2c977P+z/+3n/2uvU7rOUPo5cqBIVdqJAYBcfYmEBABceaAMznqkD4BsgE4CBwCLoyg+QfgbZda/gZmO6u1L+QM75DFwHFgaVC/pQLI9VGqNFjb+sIBZyLLQH4DpgJXgV+BzUA3IC+Bcc7q6Xs5o+0hfwYYAtIwYgFp2PCq0wlIlUMNH08BYhu3berzgJmA7Sn/AA+Bo8CzhmsZiNP1CmQssAz4C/gXmAjMBZYDvwMTgNXA3YFwqcEiegXSTaJdoZ0GLgKbGqxlIE71PYD8CDwA3gFTBsKlBov4HkCmAy9CDeOBzw3W0/en6hXImrB52/4x/NXpENvgZ/W9Qw0X0CsQu4p6DpwaQa9t6oeBE8Cehuvp+9P1CmR/cQW1CtgH3AM+hv1ie7jktT1kRfh935vUZAFlIP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
2
node_modules/dom-to-image-more/spec/resources/filterStyles/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<div class="rect1">15</div>
|
||||
<div class="rect2">22</div>
|
||||
15
node_modules/dom-to-image-more/spec/resources/filterStyles/style.css
generated
vendored
Normal file
15
node_modules/dom-to-image-more/spec/resources/filterStyles/style.css
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
#dom-node {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.rect1 {
|
||||
height: 50px;
|
||||
background-color: green;
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
.rect2 {
|
||||
height: 50px;
|
||||
background-color: red;
|
||||
font-size: x-large;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/fonts/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/fonts/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/dom-to-image-more/spec/resources/fonts/control-image-no-font
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/fonts/control-image-no-font
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/dom-to-image-more/spec/resources/fonts/dom-node.html
generated
vendored
Normal file
2
node_modules/dom-to-image-more/spec/resources/fonts/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<link rel="stylesheet" href="/base/test-lib/fontawesome/css/all.css" />
|
||||
<div>HELLO <i class="fa fa-xmark"></i> THERE</div>
|
||||
8
node_modules/dom-to-image-more/spec/resources/fonts/style.css
generated
vendored
Normal file
8
node_modules/dom-to-image-more/spec/resources/fonts/style.css
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
#dom-node {
|
||||
padding: 16px;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
font-size: 32px;
|
||||
background-color: white;
|
||||
color: black;
|
||||
}
|
||||
8
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/embedded.css
generated
vendored
Normal file
8
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/embedded.css
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
@font-face {
|
||||
font-family: 'Font1';
|
||||
src:
|
||||
url('data:application/x-font-woff2;base64,AAA') format('woff2'),
|
||||
local(Arial);
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
0
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/empty.html
generated
vendored
Normal file
0
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/empty.html
generated
vendored
Normal file
9
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/remote.css
generated
vendored
Normal file
9
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/remote.css
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
@font-face {
|
||||
font-family: 'Font1';
|
||||
src:
|
||||
url('http://fonts.com/font1.woff2') format('woff2'),
|
||||
url('http://fonts.com/font1.woff') format('woff'),
|
||||
local(Arial);
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
8
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/rules-relative.css
generated
vendored
Normal file
8
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/rules-relative.css
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
@font-face {
|
||||
font-family: 'Font1';
|
||||
src: url('../font1.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Font2';
|
||||
src: url('font2.woff2') format('woff2');
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/rules-relative.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/rules-relative.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<link rel="stylesheet" href="/base/spec/resources/fonts/web-fonts/rules-relative.css" />
|
||||
34
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/rules.css
generated
vendored
Normal file
34
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/rules.css
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
@font-face {
|
||||
font-family: 'Font1';
|
||||
src:
|
||||
url('http://fonts.com/font1.woff') format('woff'),
|
||||
url('http://fonts.com/font1.woff2') format('woff2'),
|
||||
local('Arial');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Font2';
|
||||
src:
|
||||
url('http://fonts.com/font2.ttf?v1.1.3') format('truetype'),
|
||||
local('Ubuntu');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Font3';
|
||||
src:
|
||||
url('data:font/woff2;base64,AAA') format('woff2'),
|
||||
local('Ubuntu');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Font4';
|
||||
src: local('Comic Sans');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
8
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/with-query.css
generated
vendored
Normal file
8
node_modules/dom-to-image-more/spec/resources/fonts/web-fonts/with-query.css
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
@font-face {
|
||||
font-family: 'Font1';
|
||||
src:
|
||||
url('http://fonts.com/font1.woff2?v=4.3.0') format('woff2'),
|
||||
local(Arial);
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
3
node_modules/dom-to-image-more/spec/resources/hash/dom-node.html
generated
vendored
Normal file
3
node_modules/dom-to-image-more/spec/resources/hash/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="red" data-stroke="#234"></div>
|
||||
<div class="green"></div>
|
||||
<div class="blue"></div>
|
||||
22
node_modules/dom-to-image-more/spec/resources/hash/style.css
generated
vendored
Normal file
22
node_modules/dom-to-image-more/spec/resources/hash/style.css
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#dom-node {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: #ff0000;
|
||||
}
|
||||
|
||||
.green {
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
.blue {
|
||||
background-color: #0000ff;
|
||||
}
|
||||
|
||||
.red,
|
||||
.green,
|
||||
.blue {
|
||||
height: 3px;
|
||||
border: 1px solid lightgrey;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/iframe/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/iframe/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
node_modules/dom-to-image-more/spec/resources/iframe/street-view.html
generated
vendored
Normal file
14
node_modules/dom-to-image-more/spec/resources/iframe/street-view.html
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<iframe
|
||||
id="street_view"
|
||||
title="Street View"
|
||||
width="500px"
|
||||
height="500px"
|
||||
style="border: 0"
|
||||
allowfullscreengit
|
||||
src="https://www.google.com/maps/embed/v1/streetview?key=
|
||||
&location=47.2740517,-2.2116541
|
||||
&heading=10
|
||||
&pitch=10
|
||||
&fov=70"
|
||||
>
|
||||
</iframe>
|
||||
6
node_modules/dom-to-image-more/spec/resources/iframe/style.css
generated
vendored
Normal file
6
node_modules/dom-to-image-more/spec/resources/iframe/style.css
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#dom-node {
|
||||
background-color: white;
|
||||
color: black;
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
}
|
||||
10
node_modules/dom-to-image-more/spec/resources/images/dom-node.html
generated
vendored
Normal file
10
node_modules/dom-to-image-more/spec/resources/images/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<div>
|
||||
<div>
|
||||
<img src="/base/spec/resources/images/image.jpeg" />
|
||||
</div>
|
||||
<span>
|
||||
<span>
|
||||
<img src="/base/spec/resources/images/image.png" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
BIN
node_modules/dom-to-image-more/spec/resources/images/image.jpeg
generated
vendored
Normal file
BIN
node_modules/dom-to-image-more/spec/resources/images/image.jpeg
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
node_modules/dom-to-image-more/spec/resources/images/image.png
generated
vendored
Normal file
BIN
node_modules/dom-to-image-more/spec/resources/images/image.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
3
node_modules/dom-to-image-more/spec/resources/images/style.css
generated
vendored
Normal file
3
node_modules/dom-to-image-more/spec/resources/images/style.css
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#dom-node {
|
||||
background-color: white;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/input/dom-node.html
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/input/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<input id="input" />
|
||||
13
node_modules/dom-to-image-more/spec/resources/input/style.css
generated
vendored
Normal file
13
node_modules/dom-to-image-more/spec/resources/input/style.css
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
#dom-node {
|
||||
width: 400px;
|
||||
background-color: white;
|
||||
padding: 1em;
|
||||
}
|
||||
input {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-family: monospace;
|
||||
font-size: 20px;
|
||||
border: 1px solid grey;
|
||||
padding: 1em;
|
||||
}
|
||||
1
node_modules/dom-to-image-more/spec/resources/math/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/math/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
37
node_modules/dom-to-image-more/spec/resources/math/dom-node.html
generated
vendored
Normal file
37
node_modules/dom-to-image-more/spec/resources/math/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<div>
|
||||
The infinite sum
|
||||
<math display="inline">
|
||||
<mrow>
|
||||
<munderover>
|
||||
<mo>∑</mo>
|
||||
<mrow>
|
||||
<mi>n</mi>
|
||||
<mo>=</mo>
|
||||
<mn>1</mn>
|
||||
</mrow>
|
||||
<mrow>
|
||||
<mo>+</mo>
|
||||
<mn>∞</mn>
|
||||
</mrow>
|
||||
</munderover>
|
||||
<mfrac>
|
||||
<mn>1</mn>
|
||||
<msup>
|
||||
<mi>n</mi>
|
||||
<mn>2</mn>
|
||||
</msup>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</math>
|
||||
<br />
|
||||
Is equal to the real number
|
||||
<math display="inline">
|
||||
<mfrac>
|
||||
<msup>
|
||||
<mi>π</mi>
|
||||
<mn>2</mn>
|
||||
</msup>
|
||||
<mn>6</mn>
|
||||
</mfrac>
|
||||
</math>
|
||||
</div>
|
||||
1
node_modules/dom-to-image-more/spec/resources/padding/control-image
generated
vendored
Normal file
1
node_modules/dom-to-image-more/spec/resources/padding/control-image
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
51
node_modules/dom-to-image-more/spec/resources/padding/dom-node.html
generated
vendored
Normal file
51
node_modules/dom-to-image-more/spec/resources/padding/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
<div id="mywrap" class="wrapper">
|
||||
<style type="text/css">
|
||||
.tg {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.tg .tg-lqy6 {
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.tg .tg-ogn4 {
|
||||
background-color: #cb0000;
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.tg .tg-zv49 {
|
||||
background-color: #6200c9;
|
||||
color: #ffffff;
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
<table class="tg">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tg-lqy6"></th>
|
||||
<th class="tg-lqy6" style="padding-left: 5px"></th>
|
||||
<th class="tg-ogn4">aaaaa</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="tg-lqy6"></td>
|
||||
<td class="tg-lqy6"></td>
|
||||
<td class="tg-ogn4">aaaaaa</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-zv49">ssssss</td>
|
||||
<td class="tg-zv49">sssss</td>
|
||||
<td class="tg-zv49">aaaaaaa</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
17
node_modules/dom-to-image-more/spec/resources/padding/style.css
generated
vendored
Normal file
17
node_modules/dom-to-image-more/spec/resources/padding/style.css
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
th,
|
||||
td {
|
||||
padding: 0px;
|
||||
border: 2px solid #585c5c;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: inline-block;
|
||||
}
|
||||
27
node_modules/dom-to-image-more/spec/resources/page.html
generated
vendored
Normal file
27
node_modules/dom-to-image-more/spec/resources/page.html
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style id="style"></style>
|
||||
|
||||
<div>
|
||||
<h1>DOM node</h1>
|
||||
<div id="dom-node"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1>Cloned node</h1>
|
||||
<div id="cloned-node"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1>Rendered image</h1>
|
||||
<canvas id="canvas"></canvas>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1>Control image</h1>
|
||||
<img id="control-image" alt="What we loaded from the spec" />
|
||||
</div>
|
||||
11
node_modules/dom-to-image-more/spec/resources/pixeldata/dom-node.html
generated
vendored
Normal file
11
node_modules/dom-to-image-more/spec/resources/pixeldata/dom-node.html
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<div id="dom-node">
|
||||
<div class="pixel top left"></div>
|
||||
<div class="pixel top center"></div>
|
||||
<div class="pixel top right"></div>
|
||||
<div class="pixel middle left"></div>
|
||||
<div class="pixel middle center"></div>
|
||||
<div class="pixel middle right"></div>
|
||||
<div class="pixel bottom left"></div>
|
||||
<div class="pixel bottom center"></div>
|
||||
<div class="pixel bottom right"></div>
|
||||
</div>
|
||||
27
node_modules/dom-to-image-more/spec/resources/pixeldata/style.css
generated
vendored
Normal file
27
node_modules/dom-to-image-more/spec/resources/pixeldata/style.css
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
.pixel {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
float: left;
|
||||
}
|
||||
.top {
|
||||
background-color: rgb(255, 0, 0);
|
||||
}
|
||||
.middle {
|
||||
background-color: rgb(0, 255, 0);
|
||||
}
|
||||
.bottom {
|
||||
background-color: rgb(0, 0, 255);
|
||||
}
|
||||
.left {
|
||||
clear: left;
|
||||
}
|
||||
.center {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.right {
|
||||
opacity: 0.2;
|
||||
}
|
||||
#dom-node {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user