Skip to content

Commit b2fb119

Browse files
authored
fix: fix gltf layer batch style when in production env (#2846)
* fix:fix gltf layer batch style when in production env * update
1 parent 235bff9 commit b2fb119

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

packages/layer-gltf/rollup.config.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ const plugins = [
1111
].concat(production ? [
1212
removeGlobal(),
1313
terser({
14-
mangle: {
15-
properties: {
16-
'regex' : /^_/,
17-
'keep_quoted' : true,
18-
'reserved': ['on', 'once', 'off']
19-
}
20-
},
21-
output : {
22-
keep_quoted_props: true,
23-
beautify: false,
24-
comments : '/^!/'
25-
}
14+
// mangle: {
15+
// properties: {
16+
// 'regex' : /^_/,
17+
// 'keep_quoted' : true,
18+
// 'reserved': ['on', 'once', 'off']
19+
// }
20+
// },
21+
// output : {
22+
// keep_quoted_props: true,
23+
// beautify: false,
24+
// comments : '/^!/'
25+
// }
2626
})
2727
] : []);
2828

packages/layer-gltf/src/GLTFMarker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ export default class GLTFMarker extends Marker {
646646
const length = vec3.length([max[0] - min[0], max[1] - min[1], max[2] - min[2]]);
647647
const pixelSize = length / map.getGLScale();
648648
if (pixelSize < 20) {
649-
Util.warnOnce('Model\'s size on screen is too small, try to increase its symbol.scaleX/Y/Z');
649+
Util.warnOnce('Model\'s size on screen is too small, try to increase its symbol.modelHeight');
650650
this.fire('smallonscreen');
651651
}
652652
}

0 commit comments

Comments
 (0)