Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add animation layer hierarchy #568

Merged
merged 18 commits into from
Jul 15, 2019
Merged

Conversation

f3dm76
Copy link
Collaborator

@f3dm76 f3dm76 commented Apr 30, 2019

No description provided.

@@ -6,24 +6,67 @@ import UIKit
import AppKit
#endif

public enum Relativity {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this class to original location. NodeRenderer file is a wrong location for public class.

// layer.backgroundColor = MColor.green.cgColor
// layer.borderWidth = 1.0
// layer.borderColor = MColor.blue.cgColor
// sublayer.backgroundColor = MColor.green.cgColor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented code should be removed

CATransaction.setDisableActions(true)
defer {
CATransaction.commit()
//CATransaction.flush()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to delete comment

@@ -36,11 +37,13 @@ public struct TouchPoint {

private let absoluteLocation: Point
private let relativeLocation: Point // location inside the node
private let viewLocation: Point // location relative t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location relative t?

@@ -275,12 +252,15 @@ open class MacawView: MView, MGestureRecognizerDelegate {
let inverted = node.place.invert()!
let loc = location.applying(inverted.toCG())

let invertedViewPlace = self.place.invert()!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a normal case when invert return nil. Please handle this case correctly.

@ystrot ystrot self-assigned this Jul 15, 2019
@ystrot ystrot added this to the 0.9.6 milestone Jul 15, 2019
@ystrot ystrot merged commit e101eec into exyte:master Jul 15, 2019
@f3dm76 f3dm76 deleted the task/cascade-animation branch February 14, 2020 07:14
@ystrot ystrot modified the milestones: 0.9.6, 0.9.7 Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants