mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
add perf test
This commit is contained in:
parent
c260bf1729
commit
575ad1d76d
@ -21,7 +21,7 @@
|
|||||||
"test:build": "parcel build ./test/unit-tests.html --dist-dir ./test-build --target none --public-url ./ --no-source-maps",
|
"test:build": "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",
|
"test:browser": "npm run test:build && mocha-headless-chrome -f ./test-build/unit-tests.html -a disable-web-security",
|
||||||
"test:node": "ts-mocha -p ./test/tsconfig.json test/unit/**/*.ts --exit && npm run test:import",
|
"test:node": "ts-mocha -p ./test/tsconfig.json test/unit/**/*.ts --exit && npm run test:import",
|
||||||
"test:watch": "rm -rf ./parcel-cache && parcel serve ./test/unit-tests.html ./test/manual-tests.html ./test/sandbox.html ./test/text-paths.html",
|
"test:watch": "rm -rf ./parcel-cache && parcel serve ./test/unit-tests.html ./test/manual-tests.html ./test/sandbox.html ./test/text-paths.html ./test/bunnies.html",
|
||||||
"tsc": "tsc --removeComments",
|
"tsc": "tsc --removeComments",
|
||||||
"rollup": "rollup -c --bundleConfigAsCjs",
|
"rollup": "rollup -c --bundleConfigAsCjs",
|
||||||
"clean": "rm -rf ./lib && rm -rf ./types && rm -rf ./cmj && rm -rf ./test-build",
|
"clean": "rm -rf ./lib && rm -rf ./types && rm -rf ./cmj && rm -rf ./test-build",
|
||||||
|
@ -10,12 +10,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container"></div>
|
<div id="container"></div>
|
||||||
<!-- this line for dev version -->
|
|
||||||
<script src="../../src/index.ts"></script>
|
|
||||||
<!-- this line for old version -->
|
|
||||||
<!-- <script src="https://unpkg.com/konva@7.0.3/konva.min.js"></script> -->
|
|
||||||
<script src="http://www.html5canvastutorials.com/lib/stats/stats.js"></script>
|
<script src="http://www.html5canvastutorials.com/lib/stats/stats.js"></script>
|
||||||
<script defer="defer">
|
<script type="module">
|
||||||
|
import Konva from '../src/index.ts';
|
||||||
Konva.isUnminified = false;
|
Konva.isUnminified = false;
|
||||||
// Konva.autoDrawEnabled = trye;
|
// Konva.autoDrawEnabled = trye;
|
||||||
var lastTime = 0;
|
var lastTime = 0;
|
Loading…
Reference in New Issue
Block a user