NgRuler class

An implementation of ruler that works on Angular ElementRef objects.

Annotations
  • @Deprecated('Use DomRuler instead. ElementRef is deprecated.')
  • @Injectable.new()

Constructors

NgRuler(DomRuler _domRuler)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

measure(ElementRef elementRef, {bool offset = false}) Future<Rectangle<num>>
Returns a dimension client rectangle for element.
measureSync(ElementRef element, {bool offset = false}) Rectangle<num>
Returns a dimension client rectangle for element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
track(ElementRef elementRef) Stream<Rectangle<num>>
Returns a stream of bounding client rectangles for element.
update(ElementRef elementRef, {List<String>? cssClasses, Visibility? visibility, Position? position, num? width, num? height, num? left, num? top, num? right, num? bottom, num? zIndex, bool useCssTransform = true}) Future<void>
Returns a future that completes after updating position and dimension based properties on element.
updateSync(ElementRef elementRef, {List<String>? cssClasses, Visibility? visibility, Position? position, num? width, num? height, num? left, num? top, num? right, num? bottom, num? zIndex, bool useCssTransform = true}) → void
Updates position and dimension based properties on element.

Operators

operator ==(Object other) bool
The equality operator.
inherited