mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 21:34:50 +08:00
refactor tests
This commit is contained in:
@@ -10,10 +10,13 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<!-- <script src="../../konva.js"></script> -->
|
||||
<script src="https://unpkg.com/konva@7.0.3/konva.min.js"></script>
|
||||
<!-- this line for dev version -->
|
||||
<script src="../../"></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 defer="defer">
|
||||
Konva.isUnminified = false;
|
||||
var lastTime = 0;
|
||||
|
||||
var width = window.innerWidth;
|
||||
@@ -53,7 +56,7 @@
|
||||
wabbitTexture.onload = function () {
|
||||
_handleTextureLoaded();
|
||||
};
|
||||
wabbitTexture.src = '../assets/bunny.png';
|
||||
wabbitTexture.src = 'https://konvajs.org/assets/bunny.png';
|
||||
|
||||
document.body.appendChild(stats.domElement);
|
||||
stats.domElement.style.position = 'absolute';
|
||||
|
||||
Reference in New Issue
Block a user