mirror of https://gitee.com/antv-l7/antv-l7
chore: merge master
This commit is contained in:
commit
9dce2c63c2
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable */
|
|
||||||
import { Scene } from '@antv/l7';
|
import { Scene } from '@antv/l7';
|
||||||
import { CountryLayer } from '@antv/l7-district';
|
import { CountryLayer } from '@antv/l7-district';
|
||||||
import { Mapbox } from '@antv/l7-maps';
|
import { Mapbox } from '@antv/l7-maps';
|
||||||
|
@ -188,8 +187,8 @@ const scene = new Scene({
|
||||||
|
|
||||||
scene.on('loaded', () => {
|
scene.on('loaded', () => {
|
||||||
new CountryLayer(scene, {
|
new CountryLayer(scene, {
|
||||||
// data: ProvinceData,
|
data: ProvinceData,
|
||||||
// joinBy: [ 'NAME_CHN', 'name' ],
|
joinBy: [ 'NAME_CHN', 'name' ],
|
||||||
depth: 1,
|
depth: 1,
|
||||||
fill: {
|
fill: {
|
||||||
color: {
|
color: {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
require('./site/css/demo.css');
|
require('./site/css/demo.css');
|
||||||
require('./packages/component/src/css/l7.css');
|
require('./packages/component/src/css/l7.css');
|
||||||
require('antd/dist/antd.css');
|
|
||||||
window.geotiff = require('geotiff');
|
window.geotiff = require('geotiff');
|
||||||
window.g2 = require('@antv/g2');
|
window.g2 = require('@antv/g2');
|
||||||
window.l7 = require('@antv/l7');
|
window.l7 = require('@antv/l7');
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
"site:deploy": "yarn run site:build && gh-pages -d public",
|
"site:deploy": "yarn run site:build && gh-pages -d public",
|
||||||
"site:publish": "gh-pages -d public",
|
"site:publish": "gh-pages -d public",
|
||||||
"lint:fix": "prettier --write docs/api/**/*.md docs/api/*.md packages/**/*.ts{,x} packages/**/*.{spec,story}.ts{,x} stories/**/**/*.tsx *.md",
|
"lint:fix": "prettier --write docs/api/**/*.md docs/api/*.md packages/**/*.ts{,x} packages/**/*.{spec,story}.ts{,x} stories/**/**/*.tsx *.md",
|
||||||
"lint:examples": "eslint examples/**/**/*.js --fix",
|
"lint:examples": "eslint examples --fix --ext .js",
|
||||||
"prebuild": "run-p tsc lint",
|
"prebuild": "run-p tsc lint",
|
||||||
"build": "yarn clean && lerna run build",
|
"build": "yarn clean && lerna run build",
|
||||||
"postbuild": "yarn build:declarations",
|
"postbuild": "yarn build:declarations",
|
||||||
|
@ -186,6 +186,5 @@
|
||||||
},
|
},
|
||||||
"tnpm": {
|
"tnpm": {
|
||||||
"mode": "yarn"
|
"mode": "yarn"
|
||||||
},
|
}
|
||||||
"version": "0.0.0"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,6 +137,7 @@ describe('uniforms in ReglModel', () => {
|
||||||
expect(model2.uniforms['u_Struct.k'] instanceof ReglTexture2D).toBeTruthy();
|
expect(model2.uniforms['u_Struct.k'] instanceof ReglTexture2D).toBeTruthy();
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
expect(
|
expect(
|
||||||
|
// @ts-ignore
|
||||||
model2.uniforms['u_Struct.l'] instanceof ReglFramebuffer,
|
model2.uniforms['u_Struct.l'] instanceof ReglFramebuffer,
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -179,6 +180,7 @@ describe('uniforms in ReglModel', () => {
|
||||||
u_4: {
|
u_4: {
|
||||||
a: 2,
|
a: 2,
|
||||||
},
|
},
|
||||||
|
// @ts-ignore
|
||||||
u_5: [
|
u_5: [
|
||||||
{
|
{
|
||||||
c: 100, // 只修改第一个
|
c: 100, // 只修改第一个
|
||||||
|
|
Loading…
Reference in New Issue