chore(boundry): rename distict->boundry 测试用例不识别

This commit is contained in:
thinkinggis 2020-05-27 16:28:07 +08:00
parent 6a6fa222a3
commit 4f46745ac7
25 changed files with 33 additions and 6 deletions

View File

@ -36,6 +36,9 @@ module.exports = ({ config }) => {
loader: 'svg-inline-loader'
}
);
config.resolve.alias = {
'@antv/l7-district': path.resolve(__dirname, '../packages/boundry/src'),
}
config.resolve.extensions.push('.ts', '.tsx', 'css', '.js', '.glsl');

View File

@ -21,6 +21,6 @@ exports.onCreateWebpackConfig = ({ getConfig }) => {
'@antv/l7-utils': path.resolve(__dirname, 'packages/utils/src'),
'@antv/l7-react': path.resolve(__dirname, 'packages/react/src'),
'@antv/l7-draw': path.resolve(__dirname, 'packages/draw/src'),
'@antv/l7-district': path.resolve(__dirname, 'packages/district/src')
'@antv/l7-district': path.resolve(__dirname, 'packages/boundry/src')
};
};

View File

@ -28,7 +28,7 @@ module.exports = {
moduleFileExtensions: [ 'ts', 'tsx', 'js' ],
modulePathIgnorePatterns: [ 'dist' ],
moduleNameMapper: {
'@antv/l7-(.+)$': '<rootDir>packages/$1/src',
'@antv/l7-(.+)$': '<rootDir>packages/$1/src'
},
notify: true,
notifyMode: 'always',

View File

@ -209,7 +209,7 @@ export default class Country extends React.Component {
},
popup: {
enable: true,
Html: (props) => {
Html: (props: any) => {
return `<span>${props.NAME_CHN}:</span><span>${props.value}</span>`;
},
},

View File

@ -45,7 +45,7 @@ export default class Country extends React.Component {
},
popup: {
enable: true,
Html: (props) => {
Html: (props: any) => {
return `<span>${props.NAME_CHN}</span>`;
},
},

View File

@ -46,7 +46,7 @@ export default class Country extends React.Component {
},
popup: {
enable: true,
Html: (props) => {
Html: (props: any) => {
return `<span>${props.NAME_CHN}</span>`;
},
},

View File

@ -48,7 +48,7 @@ export default class Country extends React.Component {
},
popup: {
enable: false,
Html: (props) => {
Html: (props: any) => {
return `<span>${props.NAME_CHN}</span>`;
},
},

View File

@ -21,6 +21,29 @@ export default class Circle extends React.Component {
}),
});
this.scene = scene;
const linneData = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
properties: {},
geometry: {
type: 'LineString',
coordinates: [
[79.8046875, 52.482780222078226],
[110.74218749999999, 36.87962060502676],
[111.4453125, 19.973348786110602],
[112.8515625, 9.795677582829743],
[95.2734375, -6.664607562172573],
[82.265625, -14.264383087562637],
[74.53125, -25.799891182088306],
[68.203125, -30.145127183376115],
[41.484375, -16.63619187839765],
],
},
},
],
};
const line = scene.on('loaded', () => {
const drawLine = new DrawLine(scene);
drawLine.enable();

View File

@ -17,6 +17,7 @@
"rootDir": "./",
"baseUrl": "./",
"paths": {
"@antv/l7-district": ["packages/boundry/src"],
"@antv/l7-*": ["packages/*/src"],
"@antv/l7": ["packages/l7/src"],
"*": ["node_modules", "packages", "typings/*"]