@reearth/core 0.0.7-alpha.36 → 0.0.7-alpha.37

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/core.js CHANGED
@@ -26199,7 +26199,7 @@ const rangeTypes = {
26199
26199
  }, layerIdField = "__reearth_layer_id", defaultImageSize = 50, drawIcon = (t, n, o, s = "none", c = !1, d = "rgba(0, 0, 0, 0.7)", h = 3, p = 0, y = 0) => {
26200
26200
  const S = document.createElement("canvas"), P = S.getContext("2d");
26201
26201
  if (!(!t || !P))
26202
- return P.save(), S.width = n + h, S.height = o + h, P.shadowBlur = h, P.shadowOffsetX = p, P.shadowOffsetY = y, P.globalCompositeOperation = "source-over", P.clearRect(0, 0, S.width, S.height), P.drawImage(t, (S.width - n) / 2, (S.height - o) / 2, n, o), s === "circle" ? (P.fillStyle = "black", P.globalCompositeOperation = "destination-in", P.arc(n / 2, o / 2, Math.min(n, o) / 2, 0, 2 * Math.PI), P.fill(), c && (P.shadowColor = d, P.globalCompositeOperation = "destination-over", P.fillStyle = "black", P.arc(n / 2, o / 2, Math.min(n, o) / 2, 0, 2 * Math.PI), P.fill())) : c && (P.shadowColor = d, P.globalCompositeOperation = "destination-over", P.fillStyle = "black", P.rect((S.width - n) / 2, (S.height - o) / 2, n, o), P.fill()), P.restore(), S.toDataURL();
26202
+ return P.save(), S.width = n + h * 2, S.height = o + h * 2, P.shadowBlur = h, P.shadowOffsetX = p, P.shadowOffsetY = y, P.globalCompositeOperation = "source-over", P.clearRect(0, 0, S.width, S.height), P.drawImage(t, (S.width - n) / 2, (S.height - o) / 2, n, o), s === "circle" ? (P.fillStyle = "black", P.globalCompositeOperation = "destination-in", P.arc(S.width / 2, S.height / 2, Math.min(n, o) / 2, 0, 2 * Math.PI), P.fill(), c && (P.shadowColor = d, P.globalCompositeOperation = "destination-over", P.fillStyle = "black", P.arc(S.width / 2, S.height / 2, Math.min(n, o) / 2, 0, 2 * Math.PI), P.fill())) : c && (P.shadowColor = d, P.globalCompositeOperation = "destination-over", P.fillStyle = "black", P.rect((S.width - n) / 2, (S.height - o) / 2, n, o), P.fill()), P.restore(), S.toDataURL();
26203
26203
  }, useIcon = ({
26204
26204
  image: t,
26205
26205
  imageSize: n,
@@ -91386,7 +91386,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
91386
91386
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
91387
91387
  ] });
91388
91388
  }
91389
- const version = "0.0.7-alpha.36", useCoreAPI = ({ viewerProperty: t }) => {
91389
+ const version = "0.0.7-alpha.37", useCoreAPI = ({ viewerProperty: t }) => {
91390
91390
  const n = useRef(t);
91391
91391
  n.current = t;
91392
91392
  const o = useMemo(