-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split tripartite map (#2503)
* chore: delete legacy map * chore: move to extensions --------- Co-authored-by: lvisei <[email protected]>
- Loading branch information
Showing
452 changed files
with
2,359 additions
and
10,619 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@antv/l7-maps': major | ||
--- | ||
|
||
refactor: split tripartite map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "alpha", | ||
"initialVersions": { | ||
"@antv/l7-extension-maps": "2.22.0", | ||
"@antv/l7-component": "2.22.0", | ||
"@antv/l7-core": "2.22.0", | ||
"@antv/l7": "2.22.0", | ||
"@antv/l7-layers": "2.22.0", | ||
"@antv/l7-map": "2.22.0", | ||
"@antv/l7-maps": "2.22.0", | ||
"@antv/l7-renderer": "2.22.0", | ||
"@antv/l7-scene": "2.22.0", | ||
"@antv/l7-source": "2.22.0", | ||
"@antv/l7-test-utils": "2.22.0", | ||
"@antv/l7-three": "2.22.0", | ||
"@antv/l7-utils": "2.22.0", | ||
"@antv/l7-site": "2.21.4" | ||
}, | ||
"changesets": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import type { IFatherConfig } from 'father'; | ||
import { defineConfig } from 'father'; | ||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; | ||
|
||
const isProduction = process.env.NODE_ENV === 'production'; | ||
|
||
const umdConfig: IFatherConfig['umd'] = { | ||
name: 'L7ExtensionMaps', | ||
output: { | ||
path: './dist', | ||
filename: 'l7-extension-maps.min.js', | ||
}, | ||
platform: 'browser', | ||
targets: { ie: 11 }, | ||
externals: { | ||
'mapbox-gl': { | ||
root: 'mapboxgl', | ||
commonjs: 'mapbox-gl', | ||
commonjs2: 'mapbox-gl', | ||
amd: 'mapbox-gl', | ||
}, | ||
'maplibre-gl': { | ||
root: 'maplibregl', | ||
commonjs: 'maplibre-gl', | ||
commonjs2: 'maplibre-gl', | ||
amd: 'maplibre-gl', | ||
}, | ||
}, | ||
chainWebpack(memo) { | ||
// 关闭压缩方便调试,默认开启 | ||
// memo.optimization.minimize(false); | ||
|
||
// 打包体积分析 | ||
memo | ||
.plugin('webpack-bundle-analyzer') | ||
.use(BundleAnalyzerPlugin, [{ analyzerMode: 'static', openAnalyzer: false }]); | ||
|
||
return memo; | ||
}, | ||
}; | ||
|
||
export default defineConfig({ | ||
extends: '../../.fatherrc.base.ts', | ||
// 使用 babel 编译 esm/cjs 产物,启用 transform-import-css-l7 插件完成 CSS 内联打包 | ||
esm: { transformer: 'babel' }, | ||
cjs: isProduction ? { transformer: 'babel' } : undefined, | ||
umd: isProduction ? umdConfig : undefined, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/lib | ||
/es | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Change Log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@antv/l7-extension-maps", | ||
"version": "2.22.0", | ||
"description": "Extension Maps for L7", | ||
"license": "MIT", | ||
"author": "https://github.com/orgs/antvis/people", | ||
"sideEffects": [ | ||
"**/*.css" | ||
], | ||
"main": "lib/index.js", | ||
"unpkg": "dist/l7-extension-maps.min.js", | ||
"module": "es/index.js", | ||
"types": "es/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"lib", | ||
"es", | ||
"!dist/report.html" | ||
], | ||
"scripts": { | ||
"dev": "father dev", | ||
"build": "npm run clean && father build", | ||
"check-deps": "father doctor", | ||
"lint": "eslint src", | ||
"clean": "rimraf dist es lib" | ||
}, | ||
"dependencies": { | ||
"@amap/amap-jsapi-loader": "^1.0.1", | ||
"@antv/l7-core": "workspace:*", | ||
"@antv/l7-utils": "workspace:*", | ||
"@babel/runtime": "^7.7.7", | ||
"gl-matrix": "^3.1.0", | ||
"mapbox-gl": "^1.2.1", | ||
"maplibre-gl": "^3.5.2", | ||
"viewport-mercator-project": "^6.2.1" | ||
}, | ||
"devDependencies": { | ||
"@map-component/tmap-types": "^0.1.3", | ||
"@types/amap-js-api": "^1.4.6", | ||
"@types/bmapgl": "^0.0.7", | ||
"@types/gl-matrix": "^2.4.5", | ||
"@types/google.maps": "^3.54.10", | ||
"@types/mapbox-gl": "^1.11.2", | ||
"@types/viewport-mercator-project": "^6.1.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"repository": "[email protected]:antvis/L7.git" | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/maps/src/amap-next/index.ts → extensions/extension-maps/src/amap/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
packages/maps/src/bmap/index.ts → extensions/extension-maps/src/bmap/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.