@@ -5,6 +5,7 @@ import { Report } from './report'
5
5
import { Page } from './page' ;
6
6
import { VisualDescriptor } from './visualDescriptor' ;
7
7
import { IHttpPostMessageResponse } from 'http-post-message' ;
8
+ import { IReportLoadConfiguration } from 'powerbi-models' ;
8
9
9
10
/**
10
11
* The Power BI Visual embed component
@@ -20,6 +21,8 @@ export class Visual extends Report {
20
21
static GetPagesNotSupportedError = "Get pages is not supported while embedding a visual." ;
21
22
/** @hidden */
22
23
static SetPageNotSupportedError = "Set page is not supported while embedding a visual." ;
24
+ /** @hidden */
25
+ static RenderNotSupportedError = "render is not supported while embedding a visual." ;
23
26
24
27
/**
25
28
* Creates an instance of a Power BI Single Visual.
@@ -33,6 +36,9 @@ export class Visual extends Report {
33
36
super ( service , element , baseConfig , phasedRender , isBootstrap , iframe ) ;
34
37
}
35
38
39
+ /**
40
+ * @hidden
41
+ */
36
42
load ( phasedRender ?: boolean ) : Promise < void > {
37
43
var config = < embed . IVisualEmbedConfiguration > this . config ;
38
44
@@ -113,6 +119,16 @@ export class Visual extends Report {
113
119
throw Visual . SetPageNotSupportedError ;
114
120
}
115
121
122
+ /**
123
+ * Render a preloaded report, using phased embedding API
124
+ *
125
+ * @hidden
126
+ * @returns {Promise<void> }
127
+ */
128
+ async render ( config ?: IReportLoadConfiguration | embed . IReportEmbedConfiguration ) : Promise < void > {
129
+ throw Visual . RenderNotSupportedError
130
+ }
131
+
116
132
/**
117
133
* Gets the embedded visual descriptor object that contains the visual name, type, etc.
118
134
*
0 commit comments