sample-ui-component-library 0.0.64-dev → 0.0.66-dev
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/package.json
CHANGED
|
@@ -151,9 +151,11 @@ export const MonacoInstance = forwardRef(({ onSelectAbstraction }, ref) => {
|
|
|
151
151
|
}
|
|
152
152
|
}, []);
|
|
153
153
|
|
|
154
|
+
// Programatically trigger layout of editor and render overlays.
|
|
154
155
|
const layoutModel = useCallback(() => {
|
|
155
156
|
editorRef.current?.layout();
|
|
156
|
-
|
|
157
|
+
updateOverlays();
|
|
158
|
+
}, [editorRef, state.activeTab, state.mode, onSelectAbstraction]);
|
|
157
159
|
|
|
158
160
|
const api = useMemo(() => {
|
|
159
161
|
return {
|
|
@@ -145,8 +145,11 @@ const Template = (args) => {
|
|
|
145
145
|
if (tool === "mapping-mode") {
|
|
146
146
|
editorRef.current.setMode(EDITOR_MODES.MAPPING);
|
|
147
147
|
} else if (tool === "implementation-mode") {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
console.log("draing");
|
|
149
|
+
editorRef.current.layoutEditor();
|
|
150
|
+
// editorRef.current.setMode(EDITOR_MODES.MAPPING);
|
|
151
|
+
// editorRef.current.setMode(EDITOR_MODES.DESIGN);
|
|
152
|
+
}
|
|
150
153
|
}, [editorRef]);
|
|
151
154
|
|
|
152
155
|
const onSelectAbstraction = useCallback((entry) => {
|