mirror of https://gitee.com/antv-l7/antv-l7
fix(test):threejs
This commit is contained in:
parent
7a16585897
commit
bc081f869e
|
@ -40,4 +40,4 @@
|
|||
// BufferAttribute
|
||||
// } from 'three/src/core/BufferAttribute.js';
|
||||
|
||||
export * from '../../build/Three.js';
|
||||
export * from '../../build/Three.js';
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue