Skip to content

Commit 7c49977

Browse files
author
reearth-app[bot]
committed
Merge branch 'main' into release
2 parents 916911a + d6f07ce commit 7c49977

File tree

11 files changed

+44
-40
lines changed

11 files changed

+44
-40
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: tj-actions/changed-files@v45
2020
with:
2121
files: |
22-
web
22+
web/
2323
.github/workflows/ci_web.yml
2424
.github/workflows/build_web.yml
2525
.github/workflows/deploy_web_nightly.yml
@@ -30,7 +30,7 @@ jobs:
3030
uses: tj-actions/changed-files@v45
3131
with:
3232
files: |
33-
server
33+
server/
3434
.github/workflows/ci_server.yml
3535
.github/workflows/build_server.yml
3636
.github/workflows/deploy_server_nightly.yml

web/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reearth/visualizer",
3-
"version": "1.0.0-beta.3.1",
3+
"version": "1.0.0-beta.3.2",
44
"repository": "https://github.com/reearth/reearth-visualizer.git",
55
"author": "Re:Earth contributors <[email protected]>",
66
"license": "Apache-2.0",
@@ -129,7 +129,7 @@
129129
"@monaco-editor/react": "4.6.0",
130130
"@popperjs/core": "2.11.8",
131131
"@radix-ui/react-slot": "1.1.0",
132-
"@reearth/core": "0.0.7-alpha.29",
132+
"@reearth/core": "0.0.7-alpha.30",
133133
"@rot1024/use-transition": "1.0.0",
134134
"@sentry/browser": "7.77.0",
135135
"@seznam/compose-react-refs": "1.0.6",

web/postcss.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
plugins: {
33
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
4+
autoprefixer: {}
5+
}
6+
};

web/src/beta/features/Editor/hooks/useLayers.ts

+16-17
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,22 @@ export default function ({
8686

8787
const [sortedLayerIds, setSortedLayerIds] = useState<string[]>([]);
8888

89-
useEffect(() => {
90-
if (!originNlsLayers) return;
91-
92-
setSortedLayerIds((prev) => {
93-
const originIds = originNlsLayers.map((l) => l.id);
94-
if (
95-
prev.length === originIds.length &&
96-
prev.every((id, idx) => id === originIds[idx])
97-
) {
98-
return prev;
99-
}
100-
return [...originNlsLayers]
101-
.sort((a, b) => (a.index ?? 0) - (b.index ?? 0))
102-
.map((l) => l.id);
103-
});
104-
}, [originNlsLayers]);
105-
89+
useEffect(() => {
90+
if (!originNlsLayers) return;
91+
92+
setSortedLayerIds((prev) => {
93+
const originIds = originNlsLayers.map((l) => l.id);
94+
if (
95+
prev.length === originIds.length &&
96+
prev.every((id, idx) => id === originIds[idx])
97+
) {
98+
return prev;
99+
}
100+
return [...originNlsLayers]
101+
.sort((a, b) => (a.index ?? 0) - (b.index ?? 0))
102+
.map((l) => l.id);
103+
});
104+
}, [originNlsLayers]);
106105

107106
const nlsLayers: NLSLayer[] = useMemo(
108107
() =>

web/src/beta/features/PluginPlayground/Plugins/presets/layers/add-kml.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ const layerKmlUrl = {
7171
reearth.layers.add(layerKmlEncoded);
7272
7373
// Add the KML layer from the URL to Re:Earth
74-
reearth.layers.add(layerKmlUrl);`,
75-
74+
reearth.layers.add(layerKmlUrl);`
7675
};
7776

7877
export const addKml: PluginType = {

web/src/beta/features/Visualizer/Crust/Infobox/Block/builtin/PropertyList/CustomFields/useEvaluateProperties.ts

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default ({ properties, selectedFeature }: Props) => {
1818
PropertyListItem[] | undefined
1919
>(undefined);
2020

21-
2221
// We want the useEffect to be called on each render to make sure evaluatedProperties is up to date
2322
useEffect(() => {
2423
if (!isReady) {

web/src/beta/features/Visualizer/Crust/Infobox/Block/builtin/PropertyList/ListEditor/index.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,15 @@ const ListEditor: FC<Props> = ({
106106
/>
107107
)
108108
})),
109-
[currentPropertyList, editKeyIndex, editValueIndex, handleKeyBlur, handleValueBlur, handleDoubleClick, handlePropertyValueRemove]
109+
[
110+
currentPropertyList,
111+
editKeyIndex,
112+
editValueIndex,
113+
handleKeyBlur,
114+
handleValueBlur,
115+
handleDoubleClick,
116+
handlePropertyValueRemove
117+
]
110118
);
111119

112120
return (
@@ -177,4 +185,4 @@ const ActionsWrapper = styled("div")(({ theme }) => ({
177185
gap: theme.spacing.smallest,
178186
alignItems: "center",
179187
boxSizing: "border-box"
180-
}));
188+
}));

web/src/beta/features/Visualizer/Crust/StoryPanel/PanelContent/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ const PagesWrapper = styled("div")<{
155155
}));
156156

157157
const PageGap = styled("div")<{ height?: number }>(({ height }) => ({
158-
height: height ? `${height}px` : "70vh",
158+
height: height ? `${height}px` : "70vh"
159159
}));

web/src/beta/lib/reearth-ui/components/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export * from "./Markdown";
2929
export * from "./Slider";
3030
export * from "./Slide";
3131
export * from "./ClickAway";
32-
export * from "./RangeSlider";
32+
export * from "./RangeSlider";

web/src/beta/ui/fields/CameraField/hooks.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ export default ({
7474
setNewCamera((prev) => (prev ? { ...prev, [key]: value } : defaultCamera));
7575
}, []);
7676

77-
7877
const handleSave = useCallback(() => {
7978
if (!newCamera) return;
8079
const data = handleCameraDegreeToRadian(newCamera);
81-
if (JSON.stringify(newCamera) === JSON.stringify(defaultCamera)) {
82-
onFlyTo?.(data);
83-
}
80+
if (JSON.stringify(newCamera) === JSON.stringify(defaultCamera)) {
81+
onFlyTo?.(data);
82+
}
8483
onSave?.(data);
8584
onClose?.();
8685
}, [newCamera, onClose, onFlyTo, onSave]);

web/yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -8453,9 +8453,9 @@ __metadata:
84538453
languageName: node
84548454
linkType: hard
84558455

8456-
"@reearth/core@npm:0.0.7-alpha.29":
8457-
version: 0.0.7-alpha.29
8458-
resolution: "@reearth/core@npm:0.0.7-alpha.29"
8456+
"@reearth/core@npm:0.0.7-alpha.30":
8457+
version: 0.0.7-alpha.30
8458+
resolution: "@reearth/core@npm:0.0.7-alpha.30"
84598459
dependencies:
84608460
"@radix-ui/react-checkbox": "npm:1.1.1"
84618461
"@radix-ui/react-dialog": "npm:1.1.1"
@@ -8510,7 +8510,7 @@ __metadata:
85108510
cesium: 1.118.x
85118511
react: ^18.2.0
85128512
react-dom: ^18.2.0
8513-
checksum: 10c0/4cd5745c9724c41b26f39089d1792d50a4a8fb6d309df3311d92714b4913bf99754bcecaf1c94205f51056704dfc347347b6531bbb2f5609bf1f74297b3db8dc
8513+
checksum: 10c0/50c201f745e6916557adc3e1740c93fa73849f1710f7bd09b969e60580c095036118b35daf0daad83bba0e456f0c91db73bf1fde7cc389f4cd06936ad779d9cd
85148514
languageName: node
85158515
linkType: hard
85168516

@@ -8559,7 +8559,7 @@ __metadata:
85598559
"@playwright/test": "npm:1.46.1"
85608560
"@popperjs/core": "npm:2.11.8"
85618561
"@radix-ui/react-slot": "npm:1.1.0"
8562-
"@reearth/core": "npm:0.0.7-alpha.29"
8562+
"@reearth/core": "npm:0.0.7-alpha.30"
85638563
"@rollup/plugin-yaml": "npm:4.1.2"
85648564
"@rot1024/use-transition": "npm:1.0.0"
85658565
"@sentry/browser": "npm:7.77.0"

0 commit comments

Comments
 (0)