@anker-in/ui 0.1.8 → 0.1.9

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.
@@ -16,6 +16,7 @@ interface DemoRoomPageData {
16
16
  * 加载失败文案
17
17
  */
18
18
  errorTitle?: string;
19
+ machine?: string;
19
20
  /**
20
21
  * 位置筛选相关文案
21
22
  */
@@ -16,6 +16,7 @@ interface DemoRoomPageData {
16
16
  * 加载失败文案
17
17
  */
18
18
  errorTitle?: string;
19
+ machine?: string;
19
20
  /**
20
21
  * 位置筛选相关文案
21
22
  */
@@ -1,4 +1,4 @@
1
- export { D as DemoRoom, b as DemoRoomPageData, a as DemoRoomProps } from './DemoRoom-Dx3PluHP.mjs';
1
+ export { D as DemoRoom, b as DemoRoomPageData, a as DemoRoomProps } from './DemoRoom-YZ2To7p9.mjs';
2
2
  import React from 'react';
3
3
 
4
4
  interface EventCardButton {
@@ -1,4 +1,4 @@
1
- export { D as DemoRoom, b as DemoRoomPageData, a as DemoRoomProps } from './DemoRoom-Dx3PluHP.js';
1
+ export { D as DemoRoom, b as DemoRoomPageData, a as DemoRoomProps } from './DemoRoom-YZ2To7p9.js';
2
2
  import React from 'react';
3
3
 
4
4
  interface EventCardButton {
package/dist/demo-room.js CHANGED
@@ -341,18 +341,22 @@ var StudioMap = ({
341
341
  validLocations.forEach((location) => {
342
342
  const lat = Number(location.lat);
343
343
  const lng = Number(location.lng);
344
+ const svgIcon = {
345
+ url: `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(`
346
+ <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
347
+ <circle cx="24" cy="24" r="22" fill="#00000010"/>
348
+ <circle cx="24" cy="24" r="10" fill="#000000"/>
349
+ <circle cx="24" cy="24" r="5" fill="#3ADB67"/>
350
+ </svg>
351
+ `)}`,
352
+ scaledSize: { width: 48, height: 48 },
353
+ anchor: { x: 24, y: 24 }
354
+ };
344
355
  const marker = new google.maps.Marker({
345
356
  position: { lat, lng },
346
357
  map: googleMapRef.current,
347
358
  title: location.name,
348
- icon: {
349
- path: google.maps.SymbolPath.CIRCLE,
350
- scale: 10,
351
- fillColor: "#000000",
352
- fillOpacity: 1,
353
- strokeColor: "#ffffff",
354
- strokeWeight: 2
355
- }
359
+ icon: svgIcon
356
360
  });
357
361
  marker.addListener("click", () => {
358
362
  setSelectedLocation(location);
@@ -868,6 +872,7 @@ var defaultPageData = {
868
872
  title: "Find a Studio Near You",
869
873
  loadingText: "Loading demo rooms...",
870
874
  errorTitle: "Failed to load demo rooms",
875
+ machine: "eufymake E1",
871
876
  locationFilter: {
872
877
  allLocations: "All Locations",
873
878
  clear: "Clear",
@@ -1138,7 +1143,7 @@ var RoomsList = ({
1138
1143
  }
1139
1144
  ),
1140
1145
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex text-[#767880] cursor-not-allowed", children: [
1141
- "eufymake E1",
1146
+ mergedPageData.machine,
1142
1147
  /* @__PURE__ */ jsxRuntime.jsx(
1143
1148
  "svg",
1144
1149
  {