MLightCAD
Preparing search index...
@mlightcad/cad-viewer
useInsertableBlocks
Function useInsertableBlocks
useInsertableBlocks
()
:
{
blocks
:
Ref
<
{
name
:
string
;
previewUrl
?:
string
}
[]
,
InsertableBlockItem
[]
|
{
name
:
string
;
previewUrl
?:
string
}
[]
,
>
;
cancelRefresh
:
()
=>
void
;
refreshBlocks
:
(
filterNames
?:
string
[]
|
null
,
isActive
?:
()
=>
boolean
,
)
=>
Promise
<
void
>
;
}
Loads insertable block definitions from the current drawing and fills thumbnails progressively.
Returns
{
blocks
:
Ref
<
{
name
:
string
;
previewUrl
?:
string
}
[]
,
InsertableBlockItem
[]
|
{
name
:
string
;
previewUrl
?:
string
}
[]
,
>
;
cancelRefresh
:
()
=>
void
;
refreshBlocks
:
(
filterNames
?:
string
[]
|
null
,
isActive
?:
()
=>
boolean
,
)
=>
Promise
<
void
>
;
}
blocks
:
Ref
<
{
name
:
string
;
previewUrl
?:
string
}
[]
,
InsertableBlockItem
[]
|
{
name
:
string
;
previewUrl
?:
string
}
[]
,
>
cancelRefresh
:
()
=>
void
refreshBlocks
:
(
filterNames
?:
string
[]
|
null
,
isActive
?:
()
=>
boolean
)
=>
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
MLightCAD
Loading...
Loads insertable block definitions from the current drawing and fills thumbnails progressively.