mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
12 lines
365 B
Swift
12 lines
365 B
Swift
import LayoutKit
|
|
|
|
extension DivTransform {
|
|
func resolveAnchorPoint(_ expressionResolver: ExpressionResolver) -> LayoutKit.AnchorPoint {
|
|
// must keep package name here due to conflict with CoreText.AnchorPoint
|
|
LayoutKit.AnchorPoint(
|
|
x: pivotX.resolveAnchorValue(expressionResolver),
|
|
y: pivotY.resolveAnchorValue(expressionResolver)
|
|
)
|
|
}
|
|
}
|