fix(test):threejs

This commit is contained in:
李正学 2018-11-01 14:32:02 +08:00
parent 7a16585897
commit bc081f869e
3 changed files with 4 additions and 4 deletions

View File

@ -40,4 +40,4 @@
// BufferAttribute
// } from 'three/src/core/BufferAttribute.js';
export * from '../../build/Three.js';
export * from '../../build/Three.js';

View File

@ -10,7 +10,7 @@ export default class PolygonLayer extends Layer {
}
render() {
this.type = 'polygon';
const { opacity} = this.get('styleOptions');
const { opacity } = this.get('styleOptions');
this.init();
const source = this.layerSource;
const geometry = this.geometry = new THREE.BufferGeometry();
@ -35,7 +35,7 @@ export default class PolygonLayer extends Layer {
if (this.shape === 'line') {
polygonMesh = new THREE.LineSegments(geometry, lineMaterial);
} else {
const material = new PolygonMaterial({
u_opacity: opacity
});

View File

@ -1,5 +1,5 @@
import { expect } from 'chai';
import LoadImage from '../../../src/core/image';
import LoadImage from '../../../src/core/image';
describe('core LoadImage Test', function() {
it('test create', function() {