feat: add vertical canvas editors and host-owned scopes LUT workspace; boundary review in progress

这个提交包含在:
mac 于 2026-11-04 21:51:44 +08:00 提交
1 父节点 0dfb838b39
当前提交 031c704f0f
29 个文件已更改
+1062 -234

没有与搜索条件相匹配的文件

+6 -2
查看文件
@@ -163,7 +163,7 @@ static void DYBrowserGeometrySample(NSView *root,NSString *phase){
NSCache *_thumbnailCache;
dispatch_queue_t _previewQueue;
DYBrowserWork *_work;
BOOL _closed,_sizing,_visible,_remoteMode,_importing,_layingOut,_detached;
BOOL _closed,_sizing,_visible,_remoteMode,_importing,_layingOut,_detached,_embedded;
NSProgress *_libraryTask,*_selectionTask;
NSTimer *_progressTimer;
NSUInteger _libraryGeneration,_selectionGeneration;
@@ -271,6 +271,9 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
if([NSUserDefaults.standardUserDefaults boolForKey:@"DYBrowserGeometryDiagnostics"])dispatch_after(dispatch_time(DISPATCH_TIME_NOW,NSEC_PER_SEC),dispatch_get_main_queue(),^{if(!_closed)DYBrowserGeometrySample(_root,@"settled");});
NSAccessibilityPostNotification(parent,NSAccessibilityLayoutChangedNotification);
}
- (void)embedInView:(NSView *)parent close:(void (^)(void))closeAction{
_embedded=YES;[self showInRemoteParent:parent close:closeAction];_done.title=@"返回示波器";
}
- (void)fitRemoteParent{
NSView *parent=_root.superview;if(_closed||!_remoteMode||!parent)return;
// A scaled-display ViewBridge service can hand us its top-level content
@@ -279,7 +282,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
// container. Align that content origin using AppKit's coordinate APIs;
// leave the host's window, content size and bridge resize policy intact.
NSWindow *window=parent.window;
if(window&&parent==window.contentView&&parent.superview){
if(!_embedded&&window&&parent==window.contentView&&parent.superview){
NSRect screenContent=[window contentRectForFrameRect:window.frame];
NSRect windowContent=[window convertRectFromScreen:screenContent];
NSPoint origin=[parent.superview convertPoint:windowContent.origin fromView:nil];
@@ -293,6 +296,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
DYBrowserGeometrySample(_root,notification.name);
}
- (void)configurePresentationWindow{
if(_embedded)return;
NSWindow *window=_root.window;if(!window||window==self.window)return;
if(_presentationWindow!=window){[_presentationWindow release];_presentationWindow=[window retain];
for(NSNotificationName name in @[NSWindowDidMoveNotification,NSWindowDidResizeNotification])[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(presentationGeometryChanged:) name:name object:window];