fl-web-component 2.1.1-beta.0 → 2.1.1-beta.10

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.
@@ -1085,9 +1085,14 @@ function draw2Dmodel(geom, instanceName, instanceCount, nColor, nOpacity, option
1085
1085
 
1086
1086
  const { color, linewidth } = geom.prop;
1087
1087
  const formatLinewidth = (linewidth < 1 ? linewidth * 50 : linewidth) || 5;
1088
+ const meshLineResolution = options.meshLineResolution || {};
1089
+ const resolutionWidth = meshLineResolution.width || window.innerWidth || 1;
1090
+ const resolutionHeight = meshLineResolution.height || window.innerHeight || 1;
1088
1091
  const material = new MeshLineMaterial({
1089
1092
  color: new THREE.Color(`rgb(${color[0]}, ${color[1]}, ${color[2]})`),
1090
1093
  lineWidth: formatLinewidth,
1094
+ resolution: new THREE.Vector2(resolutionWidth, resolutionHeight),
1095
+ sizeAttenuation: 0,
1091
1096
  });
1092
1097
 
1093
1098
  const lineGeometry = new MeshLineGeometry();