mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
cleaned up Canvas
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css"href="../base.css">
|
||||
<script src="../../dist/kinetic-vcurrent.js"></script>
|
||||
|
||||
<!-- assets -->
|
||||
<script src="../assets/worldMap.js"></script>
|
||||
<script src="../assets/tiger.js"></script>
|
||||
|
@@ -28,24 +28,7 @@ Test.Modules.LAYER = {
|
||||
test(style.padding === '0px', 'canvas padding style should be 0px');
|
||||
test(style.backgroundColor === 'transparent', 'canvas backgroundColor style should be transparent');
|
||||
},
|
||||
'webgl context type': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
width: 578,
|
||||
height: 200
|
||||
});
|
||||
|
||||
var layer = new Kinetic.Layer({
|
||||
contextType: 'experimental-webgl'
|
||||
});
|
||||
|
||||
|
||||
stage.add(layer);
|
||||
|
||||
test(layer.getContextType() === 'experimental-webgl', 'context type should be experimental-webgl');
|
||||
|
||||
|
||||
},
|
||||
'layer getIntersections()': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
|
Reference in New Issue
Block a user