venue-js 1.0.0-3 → 1.0.0-next.1

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/dist/index.mjs CHANGED
@@ -3339,9 +3339,11 @@ var createSVGPathFromMarkerSymbol2 = (style) => {
3339
3339
  fill = "#000000"
3340
3340
  } = style;
3341
3341
  const scale2 = markerWidth / 24;
3342
+ const strokeWidth = 2;
3343
+ const halfStrokeWidth = 0.5 * strokeWidth;
3342
3344
  if (Array.isArray(markerPath)) {
3343
3345
  return markerPath.map(
3344
- ({ path, fill: fill2 }) => `<path d="${path}" style="transform:translate(${markerDx}px, ${markerDy}px) scale(${scale2})" fill="${fill2}"/>`
3346
+ ({ path, fill: fill2 }) => `<path d="${path}" style="transform:translate(${markerDx}px, ${markerDy}px) scale(${scale2})" fill="${fill2}" stroke="#ffffff" stroke-width="${strokeWidth}" />`
3345
3347
  );
3346
3348
  }
3347
3349
  return `<path d="${markerPath}" style="transform:translate(${markerDx}px, ${markerDy}px) scale(${scale2})" fill="${fill}" />`;
@@ -3356,7 +3358,6 @@ var createSpriteMaterialByLabelSymbol2 = (labelSymbol) => {
3356
3358
  const baseSVG = createSVGPathFromMarkerSymbol2(base);
3357
3359
  const iconSVG = icon ? createSVGPathFromMarkerSymbol2(icon) : "";
3358
3360
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${viewBoxDimension}" height="${viewBoxDimension}">${baseSVG}${iconSVG}</svg>`;
3359
- console.log(svg);
3360
3361
  const textureLoader = new TextureLoader3();
3361
3362
  const scaleFactor = 200 / 24;
3362
3363
  svgToDataURL(svg, scaleFactor).then((png) => {
@@ -3446,14 +3447,12 @@ var Element3DRenderer = class extends EventTarget {
3446
3447
  markerType: "path",
3447
3448
  markerPath: [
3448
3449
  {
3449
- path: "M21.75 0H0.25V21.5H8.35L11.3 24L14.2 21.5H21.75V0Z",
3450
+ path: "M20.775 1.2H1.225V20.35H8.215L11.3 22.8L14.385 20.35H20.775V1.2Z",
3450
3451
  fill: "#ff0000"
3451
3452
  }
3452
3453
  ],
3453
3454
  markerPathWidth: 24,
3454
- markerPathHeight: 24,
3455
- markerWidth: 30,
3456
- markerHeight: 30
3455
+ markerPathHeight: 24
3457
3456
  };
3458
3457
  const markerSymbol = {
3459
3458
  markerType: "path",