mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3dd73e724c | ||
![]() |
84c1c7eff7 | ||
![]() |
9a9bd00cd3 | ||
![]() |
c33366e97d | ||
![]() |
ab14636f62 | ||
![]() |
7930b95667 |
@@ -1,5 +1,5 @@
|
||||
<p align="center">
|
||||
<img src="https://konvajs.org/android-chrome-192x192.png" alt="Konva logo" height="180" />
|
||||
<img src="https://konvajs.org/img/icon.png" alt="Konva logo" height="60" />
|
||||
</p>
|
||||
|
||||
<h1 align="center">Konva</h1>
|
||||
|
@@ -44,13 +44,13 @@
|
||||
"test": "npm run test:browser && npm run test:node && npm run test:import",
|
||||
"test:build": "PARCEL_WORKER_BACKEND=process parcel build ./test/unit-tests.html --dist-dir ./test-build --target none --public-url ./ --no-source-maps",
|
||||
"test:browser": "npm run test:build && mocha-headless-chrome -f ./test-build/unit-tests.html -a disable-web-security -a no-sandbox -a disable-setuid-sandbox",
|
||||
"test:watch": "rm -rf ./.parcel-cache && PARCEL_WORKERS=0 parcel serve ./test/unit-tests.html ./test/manual-tests.html ./test/sandbox.html ./test/text-paths.html ./test/bunnies.html",
|
||||
"test:watch": "rimraf ./.parcel-cache && PARCEL_WORKERS=0 parcel serve ./test/unit-tests.html ./test/manual-tests.html ./test/sandbox.html ./test/text-paths.html ./test/bunnies.html",
|
||||
"test:node:canvas": "mocha -r tsx -r ./test/node-canvas-global-setup.mjs --extension ts --recursive './test/unit/' --exit",
|
||||
"test:node:skia": "mocha -r tsx -r ./test/node-skia-global-setup.mjs --extension ts --recursive './test/unit/' --exit",
|
||||
"test:node": "npm run test:node:canvas && npm run test:node:skia",
|
||||
"tsc": "tsc --removeComments",
|
||||
"rollup": "rollup -c",
|
||||
"clean": "rm -rf ./lib && rm -rf ./types && rm -rf ./cmj && rm -rf ./test-build",
|
||||
"clean": "rimraf ./lib && rimraf ./types && rimraf ./cmj && rimraf ./test-build",
|
||||
"watch": "rollup -c -w",
|
||||
"size": "size-limit"
|
||||
},
|
||||
@@ -107,6 +107,7 @@
|
||||
"parcel": "2.15.4",
|
||||
"prettier": "^3.6.2",
|
||||
"process": "^0.11.10",
|
||||
"rimraf": "^6.0.1",
|
||||
"rollup": "^4.48.0",
|
||||
"rollup-plugin-typescript2": "^0.36.0",
|
||||
"size-limit": "^11.2.0",
|
||||
|
@@ -196,7 +196,7 @@ export const Konva = {
|
||||
_injectGlobal(Konva) {
|
||||
if (typeof glob.Konva !== 'undefined') {
|
||||
console.error(
|
||||
'Severa Konva instances detected. It is not recommended to use multiple Konva instances in the same environment.'
|
||||
'Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment.'
|
||||
);
|
||||
}
|
||||
glob.Konva = Konva;
|
||||
|
Reference in New Issue
Block a user