@fimagine/writeboard
Preparing search index...
IShapesMgr
Interface IShapesMgr
interface
IShapesMgr
{
add
(
...
items
:
Shape
<
ShapeData
>
[]
)
:
number
;
exists
(
...
items
:
Shape
<
ShapeData
>
[]
)
:
number
;
find
(
id
:
string
)
:
null
|
Shape
<
ShapeData
>
;
hit
(
rect
:
IRect
)
:
null
|
Shape
<
ShapeData
>
;
hits
(
rect
:
IRect
)
:
Shape
<
ShapeData
>
[]
;
remove
(
...
items
:
Shape
<
ShapeData
>
[]
)
:
number
;
shapes
()
:
Shape
<
ShapeData
>
[]
;
}
Implemented by
DefaultShapesMgr
Index
Methods
add
exists
find
hit
hits
remove
shapes
Methods
add
add
(
...
items
:
Shape
<
ShapeData
>
[]
)
:
number
Parameters
...
items
:
Shape
<
ShapeData
>
[]
Returns
number
exists
exists
(
...
items
:
Shape
<
ShapeData
>
[]
)
:
number
Parameters
...
items
:
Shape
<
ShapeData
>
[]
Returns
number
find
find
(
id
:
string
)
:
null
|
Shape
<
ShapeData
>
查找指定ID的图形
Parameters
id
:
string
指定ID
Returns
null
|
Shape
<
ShapeData
>
存在时,返回图形,否则返回undefined
Memberof
IShapesMgr
hit
hit
(
rect
:
IRect
)
:
null
|
Shape
<
ShapeData
>
Parameters
rect
:
IRect
Returns
null
|
Shape
<
ShapeData
>
hits
hits
(
rect
:
IRect
)
:
Shape
<
ShapeData
>
[]
Parameters
rect
:
IRect
Returns
Shape
<
ShapeData
>
[]
remove
remove
(
...
items
:
Shape
<
ShapeData
>
[]
)
:
number
Parameters
...
items
:
Shape
<
ShapeData
>
[]
Returns
number
shapes
shapes
()
:
Shape
<
ShapeData
>
[]
获取全部图形
Returns
Shape
<
ShapeData
>
[]
全部图形
Memberof
IShapesMgr
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
exists
find
hit
hits
remove
shapes
@fimagine/writeboard
Loading...
查找指定ID的图形