mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Return public find node at
This commit is contained in:
parent
15027f0e53
commit
0341e6d84e
@ -97,6 +97,10 @@ open class MacawView: MView, MGestureRecognizerDelegate {
|
||||
initializeView()
|
||||
}
|
||||
|
||||
public final func findNodeAt(location: CGPoint) -> Node? {
|
||||
return drawingView.findNodeAt(location: location)
|
||||
}
|
||||
|
||||
private func onZoomChange(t: Transform) {
|
||||
if let viewLayer = drawingView.mLayer {
|
||||
viewLayer.transform = CATransform3DMakeAffineTransform(t.toCG())
|
||||
@ -230,11 +234,11 @@ internal class DrawingView: MView {
|
||||
}
|
||||
}
|
||||
|
||||
public var place: Transform {
|
||||
var place: Transform {
|
||||
return placeManager.placeVar.value
|
||||
}
|
||||
|
||||
public var placeVar: Variable<Transform> {
|
||||
var placeVar: Variable<Transform> {
|
||||
return placeManager.placeVar
|
||||
}
|
||||
|
||||
@ -323,7 +327,7 @@ internal class DrawingView: MView {
|
||||
renderer.render(in: ctx, force: false, opacity: node.opacity)
|
||||
}
|
||||
|
||||
public final func findNodeAt(location: CGPoint) -> Node? {
|
||||
final func findNodeAt(location: CGPoint) -> Node? {
|
||||
guard let ctx = context.cgContext else {
|
||||
return .none
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user