Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/fix-high-zoom-lnglat-precision.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fix-prototype-pollution.md

This file was deleted.

2 changes: 0 additions & 2 deletions .github/actions/prepare-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ runs:
using: 'composite'
steps:
- uses: pnpm/action-setup@v3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Removing the version input from pnpm/action-setup will cause the GitHub Action to fail because there is no packageManager field specified in the root package.json. pnpm/action-setup requires either the version input or the packageManager field to determine which version of pnpm to install.

To resolve this, you can either:

  1. Add the packageManager field to your root package.json (e.g., "packageManager": "pnpm@10.0.0").
  2. Keep the version input in this action (e.g., version: 10 or version: 11 depending on your target version).
    - uses: pnpm/action-setup@v3
      with:
        version: 10

with:
version: 8

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ yarn-debug.log*
yarn-error.log*
yarn.lock
package-lock.json
pnpm-lock.yaml

# Runtime data
pids
Expand Down
1,498 changes: 0 additions & 1,498 deletions L7_API_Reference.md

This file was deleted.

2 changes: 0 additions & 2 deletions examples/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import type { GUIOptions, TestCaseBasemap } from './types';

export const DEFAULT_GUI_OPTIONS: GUIOptions = {
map: 'Map',
renderer: 'device',
animate: false,
enableWebGPU: false,
};

export const SEARCH_PARAMS_KEYS = ['namespace', 'name', 'snapshot'].concat(
Expand Down
1 change: 0 additions & 1 deletion examples/demos/extend/three-animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const threeAnimation: TestCase = async (options) => {
const scene = await CaseScene({
...options,
// Three.js r163+ 需要 WebGL2,必须使用 'device' 渲染器
renderer: 'device',
mapConfig: {
style: 'dark',
center: [116.4074, 39.9042],
Expand Down
1 change: 0 additions & 1 deletion examples/demos/extend/three-buildings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const threeBuildings: TestCase = async (options) => {
const scene = await CaseScene({
...options,
// Three.js r163+ 需要 WebGL2,必须使用 'device' 渲染器
renderer: 'device',
mapConfig: {
style: 'dark',
// 数据位于深圳区域
Expand Down
1 change: 0 additions & 1 deletion examples/demos/extend/three-earthquake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const threeEarthquake: TestCase = async (options) => {
const scene = await CaseScene({
...options,
// Three.js r163+ 需要 WebGL2,必须使用 'device' 渲染器
renderer: 'device',
mapConfig: {
style: 'dark',
center: [-120, 37],
Expand Down
1 change: 0 additions & 1 deletion examples/demos/extend/three-geometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const threeGeometry: TestCase = async (options) => {
const scene = await CaseScene({
...options,
// Three.js r163+ 需要 WebGL2,必须使用 'device' 渲染器
renderer: 'device',
mapConfig: {
style: 'dark',
center: [111.4453125, 32.84267363195431],
Expand Down
1 change: 0 additions & 1 deletion examples/demos/extend/three-particles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const threeParticles: TestCase = async (options) => {
const scene = await CaseScene({
...options,
// Three.js r163+ 需要 WebGL2,必须使用 'device' 渲染器
renderer: 'device',
mapConfig: {
style: 'dark',
center: [112, 28],
Expand Down
1 change: 0 additions & 1 deletion examples/demos/extend/three-shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const threeShader: TestCase = async (options) => {
const scene = await CaseScene({
...options,
// Three.js r163+ 需要 WebGL2,必须使用 'device' 渲染器
renderer: 'device',
mapConfig: {
style: 'dark',
center: [121.48, 31.24],
Expand Down
12 changes: 8 additions & 4 deletions examples/types.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import type { Scene } from '@antv/l7';
import type { ISceneConfig } from '@antv/l7-core';
import type { Controller, GUI } from 'lil-gui';

export type GUIOptions = {
map: TestCaseBasemap;
renderer: ISceneConfig['renderer'];
animate: boolean;
enableWebGPU: boolean;
[keys: string]: any;
};

export type TestCaseBasemap =
'Map' | 'GaodeMap' | 'BaiduMap' | 'MapLibre' | 'TencentMap' | 'Mapbox' | 'TMap' | 'GoogleMap';
| 'Map'
| 'GaodeMap'
| 'BaiduMap'
| 'MapLibre'
| 'TencentMap'
| 'Mapbox'
| 'TMap'
| 'GoogleMap';

export type TestCaseOptions = GUIOptions & {
id: string | HTMLDivElement;
Expand Down
3 changes: 1 addition & 2 deletions examples/utils/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type CaseSceneOptions = TestCaseOptions & {
};

export const CaseScene = (options: CaseSceneOptions) => {
const { map: basemap, animate, mapConfig, renderer } = options;
const { map: basemap, animate, mapConfig } = options;

const isMapbox = ['MapLibre', 'Mapbox'].includes(basemap);
const isGoogleMap = basemap === 'GoogleMap';
Expand Down Expand Up @@ -47,7 +47,6 @@ export const CaseScene = (options: CaseSceneOptions) => {
const scene = new Scene({
...options,
map,
renderer: renderer || 'regl', // 默认使用 regl,Three.js demo 需要传入 'device'
shaderCompilerPath: '/glsl_wgsl_compiler_bg.wasm',
// logoVisible: false,
});
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "l7-monorepo",
"private": true,
"type": "module",
"packageManager": "pnpm@8.15.9",
"repository": {
"type": "git",
"url": "https://github.com/antvis/L7"
Expand All @@ -25,7 +26,7 @@
"test-cover": "cross-env NODE_OPTIONS='--max-old-space-size=8192' jest --config ./jest.config.ts --coverage",
"test:integration": "cross-env NODE_OPTIONS='--max-old-space-size=8192' jest --config ./jest.e2e.config.ts",
"test:size": "pnpm --filter @antv/l7 build && limit-size",
"clean-dist": "pnpm --parallel -r --filter !@antv/l7-site clean",
"clean-dist": "pnpm --parallel -r --filter !@antv/l7-site run clean",
"clean-deps": "./scripts/clean-deps.sh",
"build": "npm run clean-dist && pnpm --parallel -r --filter !@antv/l7-site exec father build",
"changeset": "changeset add",
Expand Down Expand Up @@ -77,6 +78,7 @@
},
"devDependencies": {
"@antv/async-hook": "^2.2.9",
"@antv/l7": "workspace:*",
"@antv/l7-draw": "^3.1.5",
"@antv/translator": "^1.0.1",
"@changesets/changelog-github": "^0.5.0",
Expand Down Expand Up @@ -137,10 +139,5 @@
},
"resolutions": {
"@monaco-editor/loader": "1.5.0"
},
"pnpm": {
"overrides": {
"@monaco-editor/loader": "1.5.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-component",
"version": "2.28.14",
"version": "2.29.0",
"description": "Component for L7",
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-core",
"version": "2.28.14",
"version": "2.29.0",
"description": "",
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/services/config/IConfigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export interface ISceneConfig extends IRenderConfig {
stencil?: boolean;
debug?: boolean;
/**
* Support regl & @antv/g-device-api now
* Renderer engine
*/
renderer?: 'regl' | 'device';
renderer?: 'device';
}

export interface IGlobalConfigService {
Expand Down
2 changes: 1 addition & 1 deletion packages/l7/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7",
"version": "2.28.14",
"version": "2.29.0",
"description": "A Large-scale WebGL-powered Geospatial Data Visualization",
"repository": "git@github.com:antvis/L7.git",
"license": "MIT",
Expand Down
44 changes: 0 additions & 44 deletions packages/layers/__tests__/wind/wind.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/layers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-layers",
"version": "2.28.14",
"version": "2.29.0",
"description": "L7's collection of built-in layers",
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
Expand Down
24 changes: 7 additions & 17 deletions packages/layers/src/core/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,22 +186,6 @@ export interface IMaskLayerStyleOptions extends IBaseLayerStyleOptions {
sourceLayer?: string;
}

export interface IWindLayerStyleOptions extends IBaseLayerStyleOptions {
uMin?: number;
uMax?: number;
vMin?: number;
vMax?: number;
fadeOpacity?: number;
speedFactor?: number;
dropRate?: number;
dropRateBump?: number;
numParticles?: number;
rampColors?: {
[key: number]: string;
};
sizeScale?: number;
}

export interface IImageLayerStyleOptions extends IBaseLayerStyleOptions {
domain?: [number, number];
noDataValue?: number;
Expand Down Expand Up @@ -337,7 +321,13 @@ export interface IRasterTerrainLayerStyleOptions extends IBaseRasterLayerStyleOp
offset?: number;
}
export type ArrowType =
'circle' | 'triangle' | 'rect' | 'diamond' | 'classic' | 'halfTriangle' | 'none';
| 'circle'
| 'triangle'
| 'rect'
| 'diamond'
| 'classic'
| 'halfTriangle'
| 'none';
export interface IArrowOptions {
type: ArrowType;
width?: number;
Expand Down
2 changes: 0 additions & 2 deletions packages/layers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import TileDebugLayer from './tile/core/TileDebugLayer';
import EarthLayer from './earth';

import MaskLayer from './mask';
import WindLayer from './wind';

export * from './core/interface';
export {
Expand All @@ -34,5 +33,4 @@ export {
RasterLayer,
TileDebugLayer,
TileLayer,
WindLayer,
};
33 changes: 0 additions & 33 deletions packages/layers/src/wind/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/layers/src/wind/models/index.ts

This file was deleted.

Loading
Loading