Blockbench Reference Docs
Preparing search index...
generated/preview/reference_images
ReferenceImage
Class ReferenceImage
Index
Constructors
constructor
Properties
_
edit_
events_
initialized
_
modify_
nodes
attached_
side
auto_
aspect_
ratio
cache_
version
clear_
mode
condition
dark_
background
defaults
flip_
x
flip_
y
image_
is_
loaded
img
is_
blueprint
is_
video
layer
menu
modes
name
node
opacity
opacity_
slider
position
removed
rotation
scope
size
source
sync_
to_
timeline
toolbar
uuid
video
visibility
image_
extensions
supported_
extensions
video_
extensions
Accessors
aspect_
ratio
selected
source_
height
source_
width
Methods
add
As
Built
In
add
As
Global
Reference
add
As
Reference
change
Layer
change
Scope
delete
detach
enable
Blueprint
Mode
extend
get
Save
Copy
get
Zoom
Level
open
Context
Menu
project
Mouse
Cursor
properties
Dialog
reset
resolve
Condition
save
select
setup
Edit
Handles
unselect
update
update
Clear
Mode
update
Transform
Constructors
constructor
new
ReferenceImage
(
data
?:
{}
)
:
ReferenceImage
Parameters
Optional
data
:
{}
Returns
ReferenceImage
Properties
_
edit_
events_
initialized
_edit_events_initialized
:
boolean
_
modify_
nodes
_modify_nodes
:
any
[]
attached_
side
attached_side
:
number
auto_
aspect_
ratio
auto_aspect_ratio
:
boolean
cache_
version
cache_version
:
number
clear_
mode
clear_mode
:
boolean
condition
condition
:
any
dark_
background
dark_background
:
boolean
defaults
defaults
:
{}
flip_
x
flip_x
:
boolean
flip_
y
flip_y
:
boolean
image_
is_
loaded
image_is_loaded
:
boolean
img
img
:
HTMLImageElement
is_
blueprint
is_blueprint
:
boolean
is_
video
is_video
:
boolean
layer
layer
:
string
menu
menu
:
Menu
modes
modes
:
any
[]
name
name
:
string
node
node
:
HTMLElement
opacity
opacity
:
number
opacity_
slider
opacity_slider
:
void
position
position
:
number
[]
removed
removed
:
boolean
rotation
rotation
:
number
scope
scope
:
string
size
size
:
number
[]
source
source
:
string
sync_
to_
timeline
sync_to_timeline
:
boolean
toolbar
toolbar
:
HTMLElement
uuid
uuid
:
string
video
video
:
HTMLElement
visibility
visibility
:
boolean
Static
image_
extensions
image_extensions
:
string
[]
Static
supported_
extensions
supported_extensions
:
string
[]
Static
video_
extensions
video_extensions
:
string
[]
Accessors
aspect_
ratio
get
aspect_ratio
()
:
number
Returns
number
selected
get
selected
()
:
boolean
Returns
boolean
source_
height
get
source_height
()
:
any
Returns
any
source_
width
get
source_width
()
:
any
Returns
any
Methods
add
As
Built
In
addAsBuiltIn
(
save
:
any
)
:
this
Parameters
save
:
any
Returns
this
add
As
Global
Reference
addAsGlobalReference
(
save
:
any
)
:
this
Parameters
save
:
any
Returns
this
add
As
Reference
addAsReference
(
save
:
any
)
:
this
Parameters
save
:
any
Returns
this
change
Layer
changeLayer
(
layer
:
any
)
:
this
Parameters
layer
:
any
Returns
this
change
Scope
changeScope
(
new_scope
:
any
)
:
this
Parameters
new_scope
:
any
Returns
this
delete
delete
(
force
:
any
)
:
Promise
<
void
>
Parameters
force
:
any
Returns
Promise
<
void
>
detach
detach
()
:
void
Returns
void
enable
Blueprint
Mode
enableBlueprintMode
()
:
void
Returns
void
extend
extend
(
data
:
any
)
:
void
Parameters
data
:
any
Returns
void
get
Save
Copy
getSaveCopy
()
:
{
modes
:
any
[]
;
source
:
any
}
Returns
{
modes
:
any
[]
;
source
:
any
}
get
Zoom
Level
getZoomLevel
()
:
number
Returns
number
open
Context
Menu
openContextMenu
(
event
:
any
)
:
this
Parameters
event
:
any
Returns
this
project
Mouse
Cursor
projectMouseCursor
(
x
:
any
,
y
:
any
)
:
false
|
number
[]
Parameters
x
:
any
y
:
any
Returns
false
|
number
[]
properties
Dialog
propertiesDialog
()
:
this
Returns
this
reset
reset
()
:
this
Returns
this
resolve
Condition
resolveCondition
()
:
boolean
Returns
boolean
save
save
()
:
this
Returns
this
select
select
(
force
:
any
)
:
this
Parameters
force
:
any
Returns
this
setup
Edit
Handles
setupEditHandles
()
:
this
Returns
this
unselect
unselect
()
:
this
Returns
this
update
update
()
:
this
Returns
this
update
Clear
Mode
updateClearMode
()
:
void
Returns
void
update
Transform
updateTransform
()
:
this
Returns
this
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
edit_
events_
initialized
_
modify_
nodes
attached_
side
auto_
aspect_
ratio
cache_
version
clear_
mode
condition
dark_
background
defaults
flip_
x
flip_
y
image_
is_
loaded
img
is_
blueprint
is_
video
layer
menu
modes
name
node
opacity
opacity_
slider
position
removed
rotation
scope
size
source
sync_
to_
timeline
toolbar
uuid
video
visibility
image_
extensions
supported_
extensions
video_
extensions
Accessors
aspect_
ratio
selected
source_
height
source_
width
Methods
add
As
Built
In
add
As
Global
Reference
add
As
Reference
change
Layer
change
Scope
delete
detach
enable
Blueprint
Mode
extend
get
Save
Copy
get
Zoom
Level
open
Context
Menu
project
Mouse
Cursor
properties
Dialog
reset
resolve
Condition
save
select
setup
Edit
Handles
unselect
update
update
Clear
Mode
update
Transform
Blockbench Reference Docs
Loading...