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.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3382,9 +3382,11 @@ var createSVGPathFromMarkerSymbol2 = (style) => {
|
|
|
3382
3382
|
fill = "#000000"
|
|
3383
3383
|
} = style;
|
|
3384
3384
|
const scale2 = markerWidth / 24;
|
|
3385
|
+
const strokeWidth = 2;
|
|
3386
|
+
const halfStrokeWidth = 0.5 * strokeWidth;
|
|
3385
3387
|
if (Array.isArray(markerPath)) {
|
|
3386
3388
|
return markerPath.map(
|
|
3387
|
-
({ path, fill: fill2 }) => `<path d="${path}" style="transform:translate(${markerDx}px, ${markerDy}px) scale(${scale2})" fill="${fill2}"/>`
|
|
3389
|
+
({ path, fill: fill2 }) => `<path d="${path}" style="transform:translate(${markerDx}px, ${markerDy}px) scale(${scale2})" fill="${fill2}" stroke="#ffffff" stroke-width="${strokeWidth}" />`
|
|
3388
3390
|
);
|
|
3389
3391
|
}
|
|
3390
3392
|
return `<path d="${markerPath}" style="transform:translate(${markerDx}px, ${markerDy}px) scale(${scale2})" fill="${fill}" />`;
|
|
@@ -3399,7 +3401,6 @@ var createSpriteMaterialByLabelSymbol2 = (labelSymbol) => {
|
|
|
3399
3401
|
const baseSVG = createSVGPathFromMarkerSymbol2(base);
|
|
3400
3402
|
const iconSVG = icon ? createSVGPathFromMarkerSymbol2(icon) : "";
|
|
3401
3403
|
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${viewBoxDimension}" height="${viewBoxDimension}">${baseSVG}${iconSVG}</svg>`;
|
|
3402
|
-
console.log(svg);
|
|
3403
3404
|
const textureLoader = new import_three7.TextureLoader();
|
|
3404
3405
|
const scaleFactor = 200 / 24;
|
|
3405
3406
|
svgToDataURL(svg, scaleFactor).then((png) => {
|
|
@@ -3489,14 +3490,12 @@ var Element3DRenderer = class extends EventTarget {
|
|
|
3489
3490
|
markerType: "path",
|
|
3490
3491
|
markerPath: [
|
|
3491
3492
|
{
|
|
3492
|
-
path: "
|
|
3493
|
+
path: "M20.775 1.2H1.225V20.35H8.215L11.3 22.8L14.385 20.35H20.775V1.2Z",
|
|
3493
3494
|
fill: "#ff0000"
|
|
3494
3495
|
}
|
|
3495
3496
|
],
|
|
3496
3497
|
markerPathWidth: 24,
|
|
3497
|
-
markerPathHeight: 24
|
|
3498
|
-
markerWidth: 30,
|
|
3499
|
-
markerHeight: 30
|
|
3498
|
+
markerPathHeight: 24
|
|
3500
3499
|
};
|
|
3501
3500
|
const markerSymbol = {
|
|
3502
3501
|
markerType: "path",
|