webapi: github.com/gowebapi/webapi/dom/intersection Index | Files

package intersection

import "github.com/gowebapi/webapi/dom/intersection"

Package intersection is used to understand the visibility and position of DOM elements ("targets") relative to a containing element or to the top-level viewport ("root").

Index

Package Files

doc.go intersection.go

type IntersectionObserver Uses

type IntersectionObserver struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IntersectionObserver

func IntersectionObserverFromJS Uses

func IntersectionObserverFromJS(value js.Wrapper) *IntersectionObserver

IntersectionObserverFromJS is casting a js.Wrapper into IntersectionObserver.

func NewIntersectionObserver Uses

func NewIntersectionObserver(callback *IntersectionObserverCallback, options *IntersectionObserverInit) (_result *IntersectionObserver)

func (*IntersectionObserver) Disconnect Uses

func (_this *IntersectionObserver) Disconnect()

func (*IntersectionObserver) JSValue Uses

func (_this *IntersectionObserver) JSValue() js.Value

func (*IntersectionObserver) Observe Uses

func (_this *IntersectionObserver) Observe(target *dom.Element)

func (*IntersectionObserver) Root Uses

func (_this *IntersectionObserver) Root() *dom.Element

Root returning attribute 'root' with type dom.Element (idl: Element).

func (*IntersectionObserver) RootMargin Uses

func (_this *IntersectionObserver) RootMargin() string

RootMargin returning attribute 'rootMargin' with type string (idl: DOMString).

func (*IntersectionObserver) TakeRecords Uses

func (_this *IntersectionObserver) TakeRecords() (_result []*IntersectionObserverEntry)

func (*IntersectionObserver) Thresholds Uses

func (_this *IntersectionObserver) Thresholds() *javascript.FrozenArray

Thresholds returning attribute 'thresholds' with type javascript.FrozenArray (idl: FrozenArray).

func (*IntersectionObserver) Unobserve Uses

func (_this *IntersectionObserver) Unobserve(target *dom.Element)

type IntersectionObserverCallback Uses

type IntersectionObserverCallback js.Func

IntersectionObserverCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func IntersectionObserverCallbackToJS Uses

func IntersectionObserverCallbackToJS(callback IntersectionObserverCallbackFunc) *IntersectionObserverCallback

type IntersectionObserverCallbackFunc Uses

type IntersectionObserverCallbackFunc func(entries []*IntersectionObserverEntry, observer *IntersectionObserver)

callback: IntersectionObserverCallback

func IntersectionObserverCallbackFromJS Uses

func IntersectionObserverCallbackFromJS(_value js.Value) IntersectionObserverCallbackFunc

type IntersectionObserverEntry Uses

type IntersectionObserverEntry struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IntersectionObserverEntry

func IntersectionObserverEntryFromJS Uses

func IntersectionObserverEntryFromJS(value js.Wrapper) *IntersectionObserverEntry

IntersectionObserverEntryFromJS is casting a js.Wrapper into IntersectionObserverEntry.

func NewIntersectionObserverEntry Uses

func NewIntersectionObserverEntry(intersectionObserverEntryInit *IntersectionObserverEntryInit) (_result *IntersectionObserverEntry)

func (*IntersectionObserverEntry) BoundingClientRect Uses

func (_this *IntersectionObserverEntry) BoundingClientRect() *geometry.DOMRectReadOnly

BoundingClientRect returning attribute 'boundingClientRect' with type geometry.DOMRectReadOnly (idl: DOMRectReadOnly).

func (*IntersectionObserverEntry) IntersectionRatio Uses

func (_this *IntersectionObserverEntry) IntersectionRatio() float64

IntersectionRatio returning attribute 'intersectionRatio' with type float64 (idl: double).

func (*IntersectionObserverEntry) IntersectionRect Uses

func (_this *IntersectionObserverEntry) IntersectionRect() *geometry.DOMRectReadOnly

IntersectionRect returning attribute 'intersectionRect' with type geometry.DOMRectReadOnly (idl: DOMRectReadOnly).

func (*IntersectionObserverEntry) IsIntersecting Uses

func (_this *IntersectionObserverEntry) IsIntersecting() bool

IsIntersecting returning attribute 'isIntersecting' with type bool (idl: boolean).

func (*IntersectionObserverEntry) JSValue Uses

func (_this *IntersectionObserverEntry) JSValue() js.Value

func (*IntersectionObserverEntry) RootBounds Uses

func (_this *IntersectionObserverEntry) RootBounds() *geometry.DOMRectReadOnly

RootBounds returning attribute 'rootBounds' with type geometry.DOMRectReadOnly (idl: DOMRectReadOnly).

func (*IntersectionObserverEntry) Target Uses

func (_this *IntersectionObserverEntry) Target() *dom.Element

Target returning attribute 'target' with type dom.Element (idl: Element).

func (*IntersectionObserverEntry) Time Uses

func (_this *IntersectionObserverEntry) Time() float64

Time returning attribute 'time' with type float64 (idl: double).

type IntersectionObserverEntryInit Uses

type IntersectionObserverEntryInit struct {
    Time               float64
    RootBounds         *geometry.DOMRectInit
    BoundingClientRect *geometry.DOMRectInit
    IntersectionRect   *geometry.DOMRectInit
    IsIntersecting     bool
    IntersectionRatio  float64
    Target             *dom.Element
}

dictionary: IntersectionObserverEntryInit

func IntersectionObserverEntryInitFromJS Uses

func IntersectionObserverEntryInitFromJS(value js.Wrapper) *IntersectionObserverEntryInit

IntersectionObserverEntryInitFromJS is allocating a new IntersectionObserverEntryInit object and copy all values from input javascript object

func (*IntersectionObserverEntryInit) JSValue Uses

func (_this *IntersectionObserverEntryInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type IntersectionObserverInit Uses

type IntersectionObserverInit struct {
    Root       *dom.Element
    RootMargin string
    Threshold  *Union
}

dictionary: IntersectionObserverInit

func IntersectionObserverInitFromJS Uses

func IntersectionObserverInitFromJS(value js.Wrapper) *IntersectionObserverInit

IntersectionObserverInitFromJS is allocating a new IntersectionObserverInit object and copy all values from input javascript object

func (*IntersectionObserverInit) JSValue Uses

func (_this *IntersectionObserverInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package intersection imports 4 packages (graph). Updated 2019-09-19. Refresh now. Tools for package owners.