Search
Preparing search index...
The search index is not available
@kano/code
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
DataPart
Class DataPart<T>
Type parameters
T
Hierarchy
Part
DataPart
WeatherPart
Index
Constructors
constructor
Properties
_components
data
id
name
subscriptions
user
Subscriptions
value
Accessors
type
Methods
apply
Transform
dispose
get
Component
load
on
Install
on
Start
on
Stop
on
Update
query
refresh
render
Components
reset
reset
Transform
serialize
get
Base
Url
transform
Legacy
Constructors
constructor
new
Data
Part
(
)
:
DataPart
Returns
DataPart
Properties
Protected
_components
_components
:
Map
<
string
,
PartComponent
>
= new Map()
data
data
:
DataComponent
Optional
id
id
:
undefined
|
string
Optional
name
name
:
undefined
|
string
Protected
subscriptions
subscriptions
:
IDisposable
[]
= []
Protected
user
Subscriptions
user
Subscriptions
:
IDisposable
[]
= []
Protected
value
value
:
T
|
null
= null
Accessors
Static
type
type
:
Methods
apply
Transform
apply
Transform
(
ctx
:
CanvasRenderingContext2D
)
:
void
Parameters
ctx:
CanvasRenderingContext2D
Returns
void
dispose
dispose
(
)
:
void
Returns
void
get
Component
get
Component
(
id
:
string
)
:
undefined
|
PartComponent
Parameters
id:
string
Returns
undefined
|
PartComponent
load
load
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
on
Install
on
Install
(
context
:
IPartContext
)
:
void
Parameters
context:
IPartContext
Returns
void
on
Start
on
Start
(
)
:
void
Returns
void
on
Stop
on
Stop
(
)
:
void
Returns
void
on
Update
on
Update
(
callback
:
function
)
:
void
Parameters
callback:
function
(
)
:
void
Returns
void
Returns
void
Abstract
query
query
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
refresh
refresh
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
render
Components
render
Components
(
ctx
:
CanvasRenderingContext2D
)
:
Promise
<
void
>
Parameters
ctx:
CanvasRenderingContext2D
Returns
Promise
<
void
>
reset
reset
(
)
:
void
Returns
void
reset
Transform
reset
Transform
(
ctx
:
CanvasRenderingContext2D
)
:
void
Parameters
ctx:
CanvasRenderingContext2D
Returns
void
serialize
serialize
(
)
:
object
Returns
object
[
K:
string
]:
any
Static
get
Base
Url
get
Base
Url
(
)
:
string
Returns
string
Static
transform
Legacy
transform
Legacy
(
app
:
any
)
:
void
Parameters
app:
any
Returns
void
Globals
Data
Part
constructor
_components
data
id
name
subscriptions
user
Subscriptions
value
type
apply
Transform
dispose
get
Component
load
on
Install
on
Start
on
Stop
on
Update
query
refresh
render
Components
reset
reset
Transform
serialize
get
Base
Url
transform
Legacy
Generated using
TypeDoc