@thewhitehaven04/chartjs-plugin-zoom 2.2.1

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.
Files changed (3) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +30 -0
  3. package/package.json +111 -0
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013-2024 chartjs-plugin-zoom contributors
4
+
5
+ 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:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ 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.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # chartjs-plugin-zoom
2
+
3
+ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/chartjs/chartjs-plugin-zoom/ci.yml)](https://github.com/chartjs/chartjs-plugin-zoom/actions/workflows/ci.yml)
4
+ [![Coverage Status](https://coveralls.io/repos/github/chartjs/chartjs-plugin-zoom/badge.svg?branch=master)](https://coveralls.io/github/chartjs/chartjs-plugin-zoom?branch=master)
5
+ [![release](https://img.shields.io/github/v/release/chartjs/chartjs-plugin-zoom?include_prereleases)](https://github.com/chartjs/chartjs-plugin-zoom/releases)
6
+ [![npm (latest)](https://img.shields.io/npm/v/chartjs-plugin-zoom/latest)](https://www.npmjs.com/package/chartjs-plugin-zoom/v/latest)
7
+ [![npm (next)](https://img.shields.io/npm/v/chartjs-plugin-zoom/next)](https://www.npmjs.com/package/chartjs-plugin-zoom/v/next)
8
+ [![documentation](https://img.shields.io/static/v1?message=Documentation&color=informational)](https://www.chartjs.org/chartjs-plugin-zoom/index)
9
+ <a href="https://github.com/chartjs/awesome"><img src="https://awesome.re/badge-flat2.svg" alt="Awesome"></a>
10
+
11
+ A zoom and pan plugin for Chart.js >= 3.0.0
12
+
13
+ For Chart.js 2.6.0 to 2.9.x support, use [version 0.7.7 of this plugin](https://github.com/chartjs/chartjs-plugin-zoom/releases/tag/v0.7.7).
14
+
15
+ Panning can be done via the mouse or with a finger.
16
+ Zooming is done via the mouse wheel or via a pinch gesture. [Hammer.js](https://hammerjs.github.io/) is used for gesture recognition.
17
+
18
+ ## Documentation
19
+
20
+ You can find documentation for chartjs-plugin-zoom at [www.chartjs.org/chartjs-plugin-zoom](https://www.chartjs.org/chartjs-plugin-zoom/).
21
+
22
+ Prior to v0.4.0, this plugin was known as 'Chart.Zoom.js'. Old versions are still available on npm under that name.
23
+
24
+ ## Contributing
25
+
26
+ Before submitting an issue or a pull request to the project, please take a moment to look over the [contributing guidelines](CONTRIBUTING.md) first.
27
+
28
+ ## License
29
+
30
+ chartjs-plugin-zoom.js is available under the [MIT license](https://opensource.org/licenses/MIT).
package/package.json ADDED
@@ -0,0 +1,111 @@
1
+ {
2
+ "name": "@thewhitehaven04/chartjs-plugin-zoom",
3
+ "version": "2.2.1",
4
+ "description": "A fork of the ChartJS Zoom plugin that enables zoom and pan functionality in Chart.js charts",
5
+ "homepage": "https://www.chartjs.org/chartjs-plugin-zoom/",
6
+ "bugs": {
7
+ "url": "https://github.com/thewhitehaven04/chartjs-plugin-zoom/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/thewhitehaven04/chartjs-plugin-zoom.git"
12
+ },
13
+ "license": "MIT",
14
+ "type": "module",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/chartjs-plugin-zoom-esm.js",
19
+ "require": "./dist/chartjs-plugin-zoom.js"
20
+ }
21
+ },
22
+ "main": "dist/chartjs-plugin-zoom.js",
23
+ "types": "dist/index.d.ts",
24
+ "directories": {
25
+ "doc": "docs",
26
+ "test": "test"
27
+ },
28
+ "files": [
29
+ "dist/*.js",
30
+ "dist/*.d.ts",
31
+ "dist/*.map"
32
+ ],
33
+ "scripts": {
34
+ "autobuild": "rollup -c -w",
35
+ "emitDeclarations": "tsc --emitDeclarationOnly",
36
+ "build": "rollup -c && npm run emitDeclarations",
37
+ "dev": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers chrome",
38
+ "dev:ff": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers firefox",
39
+ "docs": "npm run build && vuepress build docs --no-cache",
40
+ "docs:dev": "concurrently \"npm run autobuild\" \"vuepress dev docs --no-cache\"",
41
+ "lint": "eslint \"src/**/*.ts\" \"test/**/*.js\" \"docs/**/*.js\" \"**/*.md\" \"samples/**/*.html\"",
42
+ "typecheck": "tsc -p tsconfig.json --noEmit",
43
+ "test": "npm run test-types && npm run test-unit && npm run test-karma",
44
+ "pretest-unit": "swc --config-file .swcrc-spec src -d build",
45
+ "test-unit": "cross-env JASMINE_CONFIG_PATH=jasmine.json c8 --src=src --reporter=text --reporter=lcov -o=coverage/unit jasmine",
46
+ "test-karma": "cross-env NODE_ENV=test karma start ./karma.conf.cjs --auto-watch --single-run --coverage",
47
+ "test-types": "tsc -p test/types/ --noEmit"
48
+ },
49
+ "dependencies": {
50
+ "@types/hammerjs": "^2.0.45",
51
+ "hammerjs": "^2.0.8"
52
+ },
53
+ "devDependencies": {
54
+ "@babel/core": "^7.20.2",
55
+ "@babel/preset-env": "^7.20.2",
56
+ "@rollup/plugin-commonjs": "^28.0.1",
57
+ "@rollup/plugin-json": "^6.1.0",
58
+ "@rollup/plugin-node-resolve": "^15.2.3",
59
+ "@rollup/plugin-swc": "^0.4.0",
60
+ "@rollup/plugin-terser": "^0.4.4",
61
+ "@simonbrunel/vuepress-plugin-versions": "^0.2.0",
62
+ "@swc/cli": "^0.5.1",
63
+ "@swc/core": "^1.9.3",
64
+ "@types/jasmine": "^5.1.5",
65
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
66
+ "@typescript-eslint/parser": "^5.62.0",
67
+ "babel-loader": "^8.3.0",
68
+ "c8": "^10.1.2",
69
+ "chart.js": "^4.3.2",
70
+ "chartjs-adapter-date-fns": "^3.0.0",
71
+ "chartjs-test-utils": "^0.5.0",
72
+ "concurrently": "^9.1.0",
73
+ "coveralls": "^3.1.0",
74
+ "cross-env": "^7.0.3",
75
+ "date-fns": "^2.21.1",
76
+ "eslint": "^8.2.0",
77
+ "eslint-config-chartjs": "^0.3.0",
78
+ "eslint-plugin-html": "^8.1.2",
79
+ "eslint-plugin-markdown": "^2.0.1",
80
+ "eslint-plugin-prettier": "^5.2.1",
81
+ "hammer-simulator": "^0.0.1",
82
+ "jasmine": "^5.4.0",
83
+ "karma": "^6.4.4",
84
+ "karma-chrome-launcher": "^3.2.0",
85
+ "karma-coverage": "^2.2.1",
86
+ "karma-firefox-launcher": "^2.1.3",
87
+ "karma-jasmine": "^5.1.0",
88
+ "karma-jasmine-html-reporter": "^2.1.0",
89
+ "karma-rollup-preprocessor": "7.0.7",
90
+ "karma-spec-reporter": "0.0.36",
91
+ "ng-hammerjs": "^2.0.8",
92
+ "pixelmatch": "^6.0.0",
93
+ "rollup": "^4.27.4",
94
+ "rollup-plugin-cleanup": "^3.2.1",
95
+ "rollup-plugin-istanbul": "^5.0.0",
96
+ "typedoc": "^0.23.28",
97
+ "typedoc-plugin-markdown": "3.13",
98
+ "typescript": "5.0",
99
+ "vuepress": "^1.8.2",
100
+ "vuepress-plugin-flexsearch": "^0.3.0",
101
+ "vuepress-plugin-redirect": "^1.2.5",
102
+ "vuepress-plugin-typedoc": "^0.10.3",
103
+ "vuepress-theme-chartjs": "^0.2.0"
104
+ },
105
+ "peerDependencies": {
106
+ "chart.js": ">=3.2.0"
107
+ },
108
+ "jsdelivr": "dist/chartjs-plugin-zoom.min.js",
109
+ "unpkg": "dist/chartjs-plugin-zoom.min.js",
110
+ "module": "dist/chartjs-plugin-zoom.esm.js"
111
+ }