Options
All
  • Public
  • Public/Protected
  • All
Menu

A optional base visual which contains some base functionality for visuals inheriting from it.

Hierarchy

Implements

Index

Constructors

constructor

  • new VisualBase(name: string, noCss?: boolean): VisualBase

Properties

Private _sandboxed

_sandboxed: boolean

Protected container

container: JQuery

Private cssModule

cssModule: any

Protected element

element: JQuery

Private height

height: number

Protected loadSandboxed

loadSandboxed: boolean

Private parent

parent: JQuery

Protected throwErrors

throwErrors: boolean

Protected visualName

visualName: string

Private width

width: number

Static DEFAULT_SANDBOX_ENABLED

DEFAULT_SANDBOX_ENABLED: boolean = window.parent === window

True if the sandbox is enabled by default

Static EXPERIMENTAL_ENABLED

EXPERIMENTAL_ENABLED: boolean = false

Static capabilities

capabilities: VisualCapabilities = VisualBase.EXPERIMENTAL_ENABLED ? {objects: {experimental: {displayName: "Experimental",properties: {sandboxed: {type: { bool: true },displayName: "Enable to sandbox the visual into an IFrame",},},},},} : {}

The set of capabilities for the visual

Accessors

sandboxed

  • get sandboxed(): boolean

template

  • get template(): string

Methods

Private HACK_fonts

  • HACK_fonts(): void

Private HACK_getFontFaces

  • HACK_getFontFaces(obj?: any): object

Protected attach

  • attach(isSandboxed: boolean): void

Protected buildExternalCssLink

canResizeTo

  • canResizeTo(viewport: IViewport): boolean

destroy

  • destroy(): void

Protected doDestroy

  • doDestroy(): void

Protected doInit

  • doInit(options: VisualInitOptions): void

Protected doOnResizing

  • doOnResizing(finalViewport: IViewport, resizeMode?: ResizeMode): void

Protected doUpdate

  • doUpdate(options: VisualUpdateOptions): void

enumerateObjectInstances

  • enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): powerbi.VisualObjectInstanceEnumeration

enumerateObjectRepetition

  • enumerateObjectRepetition(): VisualObjectRepetition[]

Protected getCss

  • getCss(): string[]

Protected getExternalCssResources

Protected handleCanResizeTo

  • handleCanResizeTo(viewport: IViewport): boolean

Protected handleEnumerateObjectInstances

  • handleEnumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): powerbi.VisualObjectInstanceEnumeration

Protected handleEnumerateObjectRepetition

  • handleEnumerateObjectRepetition(): VisualObjectRepetition[]

Protected handleOnClearSelection

  • handleOnClearSelection(): void

Protected handleOnDataChanged

  • handleOnDataChanged(options: VisualDataChangedOptions): void

Protected handleOnViewModeChanged

  • handleOnViewModeChanged(viewMode: ViewMode): void

init

  • init(options: VisualInitOptions): void

onClearSelection

  • onClearSelection(): void

Optional onDataChanged

  • onDataChanged(options: VisualDataChangedOptions): void

onResizing

  • onResizing(finalViewport: IViewport, resizeMode?: ResizeMode): void

Optional onViewModeChanged

  • onViewModeChanged(viewMode: ViewMode): void

update

  • update(options: VisualUpdateOptions): void

updateWithType

  • updateWithType(options: VisualUpdateOptions, updateType: UpdateType): void

Generated using TypeDoc