style: lint style

This commit is contained in:
shihui 2022-10-19 09:54:07 +08:00
parent e56801b10f
commit 93b0160a13
1 changed files with 36 additions and 36 deletions

View File

@ -1,6 +1,6 @@
// @ts-ignore
// import { TestScene } from '@antv/l7-test-utils';
// import PointLayer from '../';
import { TestScene } from '@antv/l7-test-utils';
import PointLayer from '../';
describe('template', () => {
@ -10,42 +10,42 @@ describe('template', () => {
});
// const el = document.createElement('div');
// el.id = 'test-div-id';
// const body = document.querySelector('body') as HTMLBodyElement;
// body.appendChild(el);
// const scene = TestScene({});
// const testData = [
// {
// x: 112,
// y: 30,
// name:'text1',
// v:10,
// },
// {
// x: 112,
// y: 32,
// name:'text2',
// v:20
// },
// ];
const el = document.createElement('div');
el.id = 'test-div-id';
const body = document.querySelector('body') as HTMLBodyElement;
body.appendChild(el);
const scene = TestScene({});
const testData = [
{
x: 112,
y: 30,
name:'text1',
v:10,
},
{
x: 112,
y: 32,
name:'text2',
v:20
},
];
// it('scene layer fill', async () => {
// const layer = new PointLayer().source(
// testData,
// {
// parser: {
// type: 'json',
// x: 'x',
// y: 'y',
// },
// },
// ).shape('circle')
// .color('red')
// .size(10)
// scene.addLayer(layer)
it('scene layer fill', async () => {
const layer = new PointLayer().source(
testData,
{
parser: {
type: 'json',
x: 'x',
y: 'y',
},
},
).shape('circle')
.color('red')
.size(10)
scene.addLayer(layer)
// });
});
// it('scene layer text', async () => {
// const layer = new PointLayer({name:'text'}).source(
// testData,