@adatechnology/game-urban 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/networks/index.d.ts +225 -2
- package/dist/networks/index.js +315 -2
- package/dist/networks/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -254,7 +254,7 @@ var DEFAULT_POLES = [
|
|
|
254
254
|
];
|
|
255
255
|
|
|
256
256
|
// src/streets.ts
|
|
257
|
-
var DEFAULT_ROAD_STYLE = { color: 2237480, dash: { color: 9404239, every: 5, first: 2, length: 1.8, width: 0.16, height: 0.01, y: 0.025 } };
|
|
257
|
+
var DEFAULT_ROAD_STYLE = { color: 2237480, plane: true, dash: { color: 9404239, every: 5, first: 2, length: 1.8, width: 0.16, height: 0.01, y: 0.025 } };
|
|
258
258
|
var DEFAULT_WALK_STYLE = { color: 3816252, height: 0.15, castShadow: false };
|
|
259
259
|
var ROAD_LEVEL = 0.02;
|
|
260
260
|
var DEFAULT_GROUND_COLOR = 1382426;
|
|
@@ -264,7 +264,7 @@ var walkStyle = (o) => ({ ...DEFAULT_WALK_STYLE, ...o?.walk });
|
|
|
264
264
|
function drawRoad(b, x, z, w, l, along2, options) {
|
|
265
265
|
const style = roadStyle(options);
|
|
266
266
|
const alongX = along2 === "x";
|
|
267
|
-
b.plane(x, ROAD_LEVEL, z, alongX ? l : w, alongX ? w : l, style.color);
|
|
267
|
+
if (style.plane) b.plane(x, ROAD_LEVEL, z, alongX ? l : w, alongX ? w : l, style.color);
|
|
268
268
|
const { dash } = style;
|
|
269
269
|
for (let u = -l / 2 + dash.first; u < l / 2; u += dash.every) {
|
|
270
270
|
b.item(alongX ? x + u : x, dash.y, alongX ? z : z + u, alongX ? dash.length : dash.width, dash.height, alongX ? dash.width : dash.length, dash.color);
|