feat(spatial): 空间查询和索引系统 (#324)
* feat(spatial): 添加空间查询包
- ISpatialQuery: 空间查询接口
- findInRadius, findInRect, findNearest, findKNearest
- raycast, raycastFirst
- IBounds, IRaycastHit, SpatialFilter 类型
- ISpatialIndex: 空间索引接口
- insert, remove, update, clear, getAll
- GridSpatialIndex: 网格空间索引实现
- 基于均匀网格的空间划分
- 支持所有 ISpatialQuery 操作
- 工具函数
- createBounds, isPointInBounds, boundsIntersect
- distanceSquared, distance
* feat(spatial): 添加空间查询蓝图节点
- 添加 FindInRadius/FindInRect/FindNearest/FindKNearest 节点
- 添加 Raycast/RaycastFirst 射线检测节点
- 每个节点包含模板和执行器
- 使用 menuPath: ['Spatial', ...] 组织节点菜单
2025-12-25 12:15:06 +08:00
|
|
|
{
|
|
|
|
|
"name": "@esengine/spatial",
|
2025-12-26 22:32:12 +08:00
|
|
|
"version": "1.0.2",
|
feat(spatial): 空间查询和索引系统 (#324)
* feat(spatial): 添加空间查询包
- ISpatialQuery: 空间查询接口
- findInRadius, findInRect, findNearest, findKNearest
- raycast, raycastFirst
- IBounds, IRaycastHit, SpatialFilter 类型
- ISpatialIndex: 空间索引接口
- insert, remove, update, clear, getAll
- GridSpatialIndex: 网格空间索引实现
- 基于均匀网格的空间划分
- 支持所有 ISpatialQuery 操作
- 工具函数
- createBounds, isPointInBounds, boundsIntersect
- distanceSquared, distance
* feat(spatial): 添加空间查询蓝图节点
- 添加 FindInRadius/FindInRect/FindNearest/FindKNearest 节点
- 添加 Raycast/RaycastFirst 射线检测节点
- 每个节点包含模板和执行器
- 使用 menuPath: ['Spatial', ...] 组织节点菜单
2025-12-25 12:15:06 +08:00
|
|
|
"description": "Spatial query and indexing system for ECS Framework / ECS 框架的空间查询和索引系统",
|
|
|
|
|
"type": "module",
|
|
|
|
|
"main": "./dist/index.js",
|
|
|
|
|
"module": "./dist/index.js",
|
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
|
"exports": {
|
|
|
|
|
".": {
|
|
|
|
|
"import": "./dist/index.js",
|
|
|
|
|
"types": "./dist/index.d.ts"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"files": [
|
|
|
|
|
"dist",
|
|
|
|
|
"module.json"
|
|
|
|
|
],
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build": "tsup",
|
|
|
|
|
"build:watch": "tsup --watch",
|
|
|
|
|
"type-check": "tsc --noEmit",
|
|
|
|
|
"clean": "rimraf dist"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"tslib": "^2.8.1"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@esengine/ecs-framework": "workspace:*",
|
|
|
|
|
"@esengine/ecs-framework-math": "workspace:*",
|
|
|
|
|
"@esengine/blueprint": "workspace:*",
|
|
|
|
|
"@esengine/build-config": "workspace:*",
|
|
|
|
|
"@types/node": "^20.19.17",
|
|
|
|
|
"rimraf": "^5.0.0",
|
|
|
|
|
"tsup": "^8.0.0",
|
|
|
|
|
"typescript": "^5.8.3"
|
|
|
|
|
},
|
fix(framework): 补充包配置 peerDeps/repository/keywords (#346)
* fix(framework): 补充 peerDependencies, repository 和 keywords 配置
- fsm: 添加 peerDeps, repository, keywords
- timer: 添加 peerDeps, repository, keywords
- spatial: 添加 peerDeps, repository, keywords
- procgen: 添加 peerDeps, repository, keywords
- pathfinding: 移除重复的 dependencies,添加 repository, keywords
* chore: update pnpm-lock.yaml
2025-12-26 18:05:37 +08:00
|
|
|
"peerDependencies": {
|
|
|
|
|
"@esengine/ecs-framework": "workspace:*",
|
|
|
|
|
"@esengine/ecs-framework-math": "workspace:*",
|
|
|
|
|
"@esengine/blueprint": "workspace:*"
|
|
|
|
|
},
|
feat(spatial): 空间查询和索引系统 (#324)
* feat(spatial): 添加空间查询包
- ISpatialQuery: 空间查询接口
- findInRadius, findInRect, findNearest, findKNearest
- raycast, raycastFirst
- IBounds, IRaycastHit, SpatialFilter 类型
- ISpatialIndex: 空间索引接口
- insert, remove, update, clear, getAll
- GridSpatialIndex: 网格空间索引实现
- 基于均匀网格的空间划分
- 支持所有 ISpatialQuery 操作
- 工具函数
- createBounds, isPointInBounds, boundsIntersect
- distanceSquared, distance
* feat(spatial): 添加空间查询蓝图节点
- 添加 FindInRadius/FindInRect/FindNearest/FindKNearest 节点
- 添加 Raycast/RaycastFirst 射线检测节点
- 每个节点包含模板和执行器
- 使用 menuPath: ['Spatial', ...] 组织节点菜单
2025-12-25 12:15:06 +08:00
|
|
|
"publishConfig": {
|
fix(framework): 补充包配置 peerDeps/repository/keywords (#346)
* fix(framework): 补充 peerDependencies, repository 和 keywords 配置
- fsm: 添加 peerDeps, repository, keywords
- timer: 添加 peerDeps, repository, keywords
- spatial: 添加 peerDeps, repository, keywords
- procgen: 添加 peerDeps, repository, keywords
- pathfinding: 移除重复的 dependencies,添加 repository, keywords
* chore: update pnpm-lock.yaml
2025-12-26 18:05:37 +08:00
|
|
|
"access": "public",
|
|
|
|
|
"registry": "https://registry.npmjs.org/"
|
|
|
|
|
},
|
|
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
|
|
|
|
"url": "https://github.com/esengine/esengine.git",
|
|
|
|
|
"directory": "packages/framework/spatial"
|
|
|
|
|
},
|
|
|
|
|
"keywords": [
|
|
|
|
|
"ecs",
|
|
|
|
|
"spatial",
|
|
|
|
|
"spatial-index",
|
|
|
|
|
"grid",
|
|
|
|
|
"aoi",
|
|
|
|
|
"area-of-interest",
|
|
|
|
|
"game-engine",
|
|
|
|
|
"cocos",
|
|
|
|
|
"laya",
|
|
|
|
|
"esengine"
|
|
|
|
|
]
|
feat(spatial): 空间查询和索引系统 (#324)
* feat(spatial): 添加空间查询包
- ISpatialQuery: 空间查询接口
- findInRadius, findInRect, findNearest, findKNearest
- raycast, raycastFirst
- IBounds, IRaycastHit, SpatialFilter 类型
- ISpatialIndex: 空间索引接口
- insert, remove, update, clear, getAll
- GridSpatialIndex: 网格空间索引实现
- 基于均匀网格的空间划分
- 支持所有 ISpatialQuery 操作
- 工具函数
- createBounds, isPointInBounds, boundsIntersect
- distanceSquared, distance
* feat(spatial): 添加空间查询蓝图节点
- 添加 FindInRadius/FindInRect/FindNearest/FindKNearest 节点
- 添加 Raycast/RaycastFirst 射线检测节点
- 每个节点包含模板和执行器
- 使用 menuPath: ['Spatial', ...] 组织节点菜单
2025-12-25 12:15:06 +08:00
|
|
|
}
|