fix(text): demo

This commit is contained in:
thinkinggis 2019-08-21 17:36:33 +08:00
parent 6538753e3b
commit 07f7ab29c9
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@
}) })
.shape('name', 'text') .shape('name', 'text')
.size(20) .size(20)
.color('#FFF') .color('#000')
.style({ .style({
// fontFamily: 'Monaco, monospace', // 字体 // fontFamily: 'Monaco, monospace', // 字体
fontWeight: 200, fontWeight: 200,
@ -72,7 +72,7 @@
spacing: 2, // 字符间距 spacing: 2, // 字符间距
padding: [ 4, 4 ], // 文本包围盒 padding [水平,垂直],影响碰撞检测结果,避免相邻文本靠的太近 padding: [ 4, 4 ], // 文本包围盒 padding [水平,垂直],影响碰撞检测结果,避免相邻文本靠的太近
strokeColor: '#fff', // 描边颜色 strokeColor: '#fff', // 描边颜色
strokeWidth: 1, // 描边宽度 strokeWidth: 4, // 描边宽度
opacity: 1.0 opacity: 1.0
}) })
.render(); .render();

View File

@ -1,6 +1,6 @@
{ {
"name": "@antv/l7", "name": "@antv/l7",
"version": "1.3.0-beta.3", "version": "1.3.0-beta.4",
"description": "Large-scale WebGL-powered Geospatial Data Visualization", "description": "Large-scale WebGL-powered Geospatial Data Visualization",
"main": "build/L7.js", "main": "build/L7.js",
"browser": "build/L7-min.js", "browser": "build/L7-min.js",

View File

@ -23,6 +23,6 @@ void main() {
highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist); highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);
gl_FragColor = mix(v_color * u_font_opacity, u_halo_color, smoothstep(0., .5, 1. - dist)) * alpha; gl_FragColor = mix(v_color * u_font_opacity, u_halo_color, smoothstep(0., 0.5, 1. - dist)) * alpha;
#pragma include "pick" #pragma include "pick"
} }