Skip to content

Commit 3d21a2d

Browse files
authored
merge maptalks into maptalks.js (#2501)
* prepare Abstract Classes for webgpu * mv Shader.ts * some method renames for consistency between gl and gpu * simplify some regl command config and change createMeshCommand parameter to mesh * implement all needed by GPUShader.run * implement DynamicBufferPool, DynamicBuffer and GraphicsDevice * implement Geometry.createBuffer/createElementBuffer and fix Geometry buffer descriptor * fix typo * merge GL Classes and GPUClasses, add device in getCommandKey and fix bundling * fix reshader.gl * add GraphicsDevice.commandEncoder and Shader._getCurrentRenderPassEncoder * fix rendering call for example cube.html * add webgpu cube.html * first successful webgpu rendering * add GraphicsTexture and fix cube-texture.html * implement InstancedMesh on webgpu * fix WGSL preprocess * initial commit for GraphicsFramebuffer * fix depthTexture and incorrect dynamicOffsets * fix webgpu/shadowmapping.html * add support of device.framebuffer(width, height) * adaption of gl renderer for VectorTileLayer and Vector3DLayer * merge maptalks-canvas into @maptalks/map and add LayerGLRenderer, MapGLAbstractRenderer TileLayerRenderable for maptalks-gl * @maptalks/maptalks => maptalks * fix build * fixing circleci * updating circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing circleci * fixing * fixing * fixing * fixing * fixing * fixing * fixing * fixing * fixing specs * fixing specs * fixing specs * fixing specs * fixing specs * fixing specs * add OverlayLayerGLRenderer * fixing OverlayLayerGLRenderer
1 parent 2fa6268 commit 3d21a2d

File tree

132 files changed

+5821
-1761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+5821
-1761
lines changed

.circleci/config.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,44 @@
33
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
44
#
55
version: 2.1
6+
executors:
7+
node-browser-executor:
8+
docker:
9+
- image: cimg/node:22.14-browsers
610
orbs:
711
browser-tools: circleci/browser-tools@1.4.8
812
jobs:
9-
build:
10-
docker:
11-
# specify the version you desire here
12-
- image: cimg/node:20.11-browsers
13-
environment:
14-
CHROME_BIN: "/usr/bin/google-chrome"
15-
16-
# Specify service dependencies here if necessary
17-
# CircleCI maintains a library of pre-built images
18-
# documented at https://circleci.com/docs/2.0/circleci-images/
19-
# - image: circleci/mongo:3.4.4
13+
maptalks-test:
14+
executor: node-browser-executor
2015

21-
working_directory: ~/repo
16+
working_directory: ~/repo/
2217

2318
steps:
2419
- browser-tools/install-chrome
2520
- checkout
2621

2722
# Download and cache dependencies
2823
- restore_cache:
24+
name: Restore pnpm Package Cache
2925
keys:
30-
- v1-dependencies-{{ checksum "package-lock.json" }}
31-
# fallback to using the latest cache if no exact match is found
32-
- v1-dependencies-
26+
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
3327

34-
- run: npm install
28+
- run:
29+
name: Install pnpm package manager
30+
command: |
31+
sudo npm install --global pnpm
32+
33+
- run: pnpm i
3534

3635
- save_cache:
36+
name: Save pnpm Package Cache
37+
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
3738
paths:
38-
- node_modules
39-
key: v1-dependencies-{{ checksum "package-lock.json" }}
40-
39+
- .pnpm-store
4140
# run tests!
42-
- run: npm test
43-
41+
- run: npm run maptalks-test
4442

43+
workflows:
44+
maptalks:
45+
jobs:
46+
- maptalks-test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build-dev": "turbo run build-dev*",
1212
"lint": "turbo run lint",
1313
"prettier": "prettier --parser=typescript --write **/*.{js,ts,md}",
14-
"test": "turbo run test",
14+
"maptalks-test": "pnpm --filter=maptalks run test",
1515
"changeset": "changeset",
1616
"changeset-version": "changeset version",
1717
"release": "pnpm build && changeset publish"
@@ -43,6 +43,6 @@
4343
"git add"
4444
]
4545
},
46-
"packageManager": "pnpm@9.1.2",
46+
"packageManager": "pnpm@10.4.1",
4747
"license": "MIT"
4848
}

packages/analysis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"karma-expect": "^1.1.3",
4949
"karma-mocha": "^2.0.1",
5050
"karma-mocha-reporter": "^2.2.5",
51-
"@maptalks/map": "workspace:*",
51+
"maptalks": "workspace:*",
5252
"mocha": "^10.3.0",
5353
"pixelmatch": "^4.0.2",
5454
"rollup": "^4.17.2"

packages/analysis/src/Analysis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { reshader, mat4, quat, earcut } from '@maptalks/gl';
2-
import { Class, Eventable, Handlerable, Polygon } from '@maptalks/map';
2+
import { Class, Eventable, Handlerable, Polygon } from 'maptalks';
33
import ExtentPass from './pass/ExtentPass';
44
import { coordinateToWorld } from './common/Util';
55

packages/analysis/src/CrossCutAnalysis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Analysis from './Analysis';
2-
import * as maptalks from '@maptalks/map';
2+
import * as maptalks from 'maptalks';
33
import { reshader, mat4 } from '@maptalks/gl';
44
import CrossCutPass from './pass/CrossCutPass';
55
import pickingVert from './pass/glsl/picking.vert';

packages/analysis/src/ExcavateRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { reshader, mat4, vec4 } from '@maptalks/gl';
2-
import { Util } from '@maptalks/map';
2+
import { Util } from 'maptalks';
33
import HeightmapPass from './pass/HeightmapPass';
44
import { coordinateToWorld, altitudeToDistance } from './common/Util';
55
import { ExtrudePolygonLayer } from '@maptalks/vt';

packages/analysis/src/common/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as maptalks from '@maptalks/map';
1+
import * as maptalks from 'maptalks';
22

33

44
export function containerPointToWorldPoint(point, map) {

packages/analysis/src/pass/CrossCutPass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { reshader, mat4 } from '@maptalks/gl';
22
import vert from './glsl/crosscut.vert';
33
import frag from './glsl/crosscut.frag';
4-
import { Util } from '@maptalks/map';
4+
import { Util } from 'maptalks';
55
import AnalysisPass from './AnalysisPass';
66

77
export default class CrossCutPass extends AnalysisPass {

packages/analysis/src/pass/CutAnalysisController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { reshader, mat4, quat, vec3, vec2 } from '@maptalks/gl';
22
import partsModels from '../common/parts';
3-
import { Util } from '@maptalks/map';
3+
import { Util } from 'maptalks';
44
import { defined } from '../common/Util';
55
import pickingVert from './glsl/picking.vert';
66

packages/analysis/src/pass/CutPass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { mat4 } from '@maptalks/gl';
22
import { reshader } from '@maptalks/gl';
33
import vert from './glsl/cut.vert';
44
import frag from './glsl/cut.frag';
5-
import { Util } from '@maptalks/map';
5+
import { Util } from 'maptalks';
66
import CutAnalysisController from './CutAnalysisController';
77
import CutShader from './CutShader';
88
import AnalysisPass from './AnalysisPass';

0 commit comments

Comments
 (0)