@univerjs/drawing v0.4.2 • Docs
Class: UnitDrawingService<T>
unitId -> subUnitId -> drawingId -> drawingParam
Extended by
Type Parameters
Type Parameter |
---|
T extends IDrawingParam |
Implements
Constructors
new UnitDrawingService()
new UnitDrawingService<T>(): UnitDrawingService<T>
Returns
Properties
Methods
addNotification()
addNotification(insertParams): void
Parameters
Parameter | Type |
---|---|
insertParams | IDrawingSearch [] |
Returns
void
Implementation of
IUnitDrawingService
.addNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:281 (opens in a new tab)
applyJson1()
applyJson1(
unitId,
subUnitId,
jsonOp): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
jsonOp | JSONOp |
Returns
void
Implementation of
IUnitDrawingService
.applyJson1
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:406 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:105 (opens in a new tab)
featurePluginAddNotification()
featurePluginAddNotification(insertParams): void
Parameters
Parameter | Type |
---|---|
insertParams | T [] |
Returns
void
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:443 (opens in a new tab)
featurePluginGroupUpdateNotification()
featurePluginGroupUpdateNotification(groupParams): void
Parameters
Parameter | Type |
---|---|
groupParams | IDrawingGroupUpdateParam [] |
Returns
void
Implementation of
IUnitDrawingService
.featurePluginGroupUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:451 (opens in a new tab)
featurePluginOrderUpdateNotification()
featurePluginOrderUpdateNotification(drawingOrderUpdateParam): void
Parameters
Parameter | Type |
---|---|
drawingOrderUpdateParam | IDrawingOrderUpdateParam |
Returns
void
Implementation of
IUnitDrawingService
.featurePluginOrderUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:439 (opens in a new tab)
featurePluginRemoveNotification()
featurePluginRemoveNotification(removeParams): void
Parameters
Parameter | Type |
---|---|
removeParams | IDrawingSearch [] |
Returns
void
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:447 (opens in a new tab)
featurePluginUngroupUpdateNotification()
featurePluginUngroupUpdateNotification(groupParams): void
Parameters
Parameter | Type |
---|---|
groupParams | IDrawingGroupUpdateParam [] |
Returns
void
Implementation of
IUnitDrawingService
.featurePluginUngroupUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:455 (opens in a new tab)
featurePluginUpdateNotification()
featurePluginUpdateNotification(updateParams): void
Parameters
Parameter | Type |
---|---|
updateParams | T [] |
Returns
void
Implementation of
IUnitDrawingService
.featurePluginUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:435 (opens in a new tab)
focusDrawing()
focusDrawing(params): void
Parameters
Parameter | Type |
---|---|
params | Nullable <IDrawingSearch []> |
Returns
void
Implementation of
IUnitDrawingService
.focusDrawing
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:472 (opens in a new tab)
getBackDrawingsOp()
getBackDrawingsOp(orderParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
orderParams | IDrawingOrderMapParam |
Returns
Implementation of
IUnitDrawingService
.getBackDrawingsOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:595 (opens in a new tab)
getBackwardDrawingOp()
getBackwardDrawingOp(orderParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
orderParams | IDrawingOrderMapParam |
Returns
Implementation of
IUnitDrawingService
.getBackwardDrawingOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:545 (opens in a new tab)
getBatchAddOp()
getBatchAddOp(insertParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
insertParams | T [] |
Returns
Implementation of
IUnitDrawingService
.getBatchAddOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:207 (opens in a new tab)
getBatchRemoveOp()
getBatchRemoveOp(removeParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
removeParams | IDrawingSearch [] |
Returns
Implementation of
IUnitDrawingService
.getBatchRemoveOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:228 (opens in a new tab)
getBatchUpdateOp()
getBatchUpdateOp(updateParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
updateParams | T [] |
Returns
Implementation of
IUnitDrawingService
.getBatchUpdateOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:256 (opens in a new tab)
getDrawingByParam()
getDrawingByParam(param): Nullable<T>
Parameters
Parameter | Type |
---|---|
param | Nullable <IDrawingSearch > |
Returns
Nullable
<T
>
Implementation of
IUnitDrawingService
.getDrawingByParam
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:459 (opens in a new tab)
getDrawingData()
getDrawingData(unitId, subUnitId): IDrawingMapItemData<T>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
Implementation of
IUnitDrawingService
.getDrawingData
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:198 (opens in a new tab)
getDrawingDataForUnit()
getDrawingDataForUnit(unitId): IDrawingSubunitMap<T>
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
Implementation of
IUnitDrawingService
.getDrawingDataForUnit
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:139 (opens in a new tab)
getDrawingEditable()
getDrawingEditable(): boolean
Returns
boolean
Implementation of
IUnitDrawingService
.getDrawingEditable
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:782 (opens in a new tab)
getDrawingOKey()
getDrawingOKey(oKey): Nullable<T>
Parameters
Parameter | Type |
---|---|
oKey | string |
Returns
Nullable
<T
>
Implementation of
IUnitDrawingService
.getDrawingOKey
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:467 (opens in a new tab)
getDrawingOrder()
getDrawingOrder(unitId, subUnitId): string[]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
string
[]
Implementation of
IUnitDrawingService
.getDrawingOrder
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:506 (opens in a new tab)
getDrawingVisible()
getDrawingVisible(): boolean
Returns
boolean
Implementation of
IUnitDrawingService
.getDrawingVisible
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:778 (opens in a new tab)
getDrawingsByGroup()
getDrawingsByGroup(groupParam): IDrawingParam[]
Parameters
Parameter | Type |
---|---|
groupParam | IDrawingSearch |
Returns
Implementation of
IUnitDrawingService
.getDrawingsByGroup
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:333 (opens in a new tab)
getFocusDrawings()
getFocusDrawings(): T[]
Returns
T
[]
Implementation of
IUnitDrawingService
.getFocusDrawings
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:494 (opens in a new tab)
getForwardDrawingsOp()
getForwardDrawingsOp(orderParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
orderParams | IDrawingOrderMapParam |
Returns
Implementation of
IUnitDrawingService
.getForwardDrawingsOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:519 (opens in a new tab)
getFrontDrawingsOp()
getFrontDrawingsOp(orderParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
orderParams | IDrawingOrderMapParam |
Returns
Implementation of
IUnitDrawingService
.getFrontDrawingsOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:571 (opens in a new tab)
getGroupDrawingOp()
getGroupDrawingOp(groupParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
groupParams | IDrawingGroupUpdateParam [] |
Returns
Implementation of
IUnitDrawingService
.getGroupDrawingOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:305 (opens in a new tab)
getOldDrawingByParam()
getOldDrawingByParam(param): Nullable<T>
Parameters
Parameter | Type |
---|---|
param | Nullable <IDrawingSearch > |
Returns
Nullable
<T
>
Implementation of
IUnitDrawingService
.getOldDrawingByParam
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:463 (opens in a new tab)
getUngroupDrawingOp()
getUngroupDrawingOp(groupParams): IDrawingJsonUndo1
Parameters
Parameter | Type |
---|---|
groupParams | IDrawingGroupUpdateParam [] |
Returns
Implementation of
IUnitDrawingService
.getUngroupDrawingOp
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:319 (opens in a new tab)
groupUpdateNotification()
groupUpdateNotification(groupParams): void
Parameters
Parameter | Type |
---|---|
groupParams | IDrawingGroupUpdateParam [] |
Returns
void
Implementation of
IUnitDrawingService
.groupUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:293 (opens in a new tab)
initializeNotification()
initializeNotification(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IUnitDrawingService
.initializeNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:172 (opens in a new tab)
orderNotification()
orderNotification(orderParams): void
Parameters
Parameter | Type |
---|---|
orderParams | IDrawingOrderMapParam |
Returns
void
Implementation of
IUnitDrawingService
.orderNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:289 (opens in a new tab)
orderUpdateNotification()
orderUpdateNotification(orderParams): void
Parameters
Parameter | Type |
---|---|
orderParams | IDrawingOrderMapParam |
Returns
void
Implementation of
IUnitDrawingService
.orderUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:515 (opens in a new tab)
refreshTransform()
refreshTransform(updateParams): void
Parameters
Parameter | Type |
---|---|
updateParams | T [] |
Returns
void
Implementation of
IUnitDrawingService
.refreshTransform
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:124 (opens in a new tab)
refreshTransformNotification()
refreshTransformNotification(refreshParams): void
Parameters
Parameter | Type |
---|---|
refreshParams | T [] |
Returns
void
Implementation of
IUnitDrawingService
.refreshTransformNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:301 (opens in a new tab)
registerDrawingData()
registerDrawingData(unitId, data): void
Parameters
Parameter | Type |
---|---|
unitId | string |
data | IDrawingSubunitMap <T > |
Returns
void
Implementation of
IUnitDrawingService
.registerDrawingData
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:168 (opens in a new tab)
removeDrawingDataForUnit()
removeDrawingDataForUnit(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IUnitDrawingService
.removeDrawingDataForUnit
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:143 (opens in a new tab)
removeNotification()
removeNotification(removeParams): void
Parameters
Parameter | Type |
---|---|
removeParams | IDrawingSearch [] |
Returns
void
Implementation of
IUnitDrawingService
.removeNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:277 (opens in a new tab)
setDrawingData()
setDrawingData(
unitId,
subUnitId,
data): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
data | IDrawingMapItemData <T > |
Returns
void
Implementation of
IUnitDrawingService
.setDrawingData
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:203 (opens in a new tab)
setDrawingEditable()
setDrawingEditable(editable): void
Parameters
Parameter | Type |
---|---|
editable | boolean |
Returns
void
Implementation of
IUnitDrawingService
.setDrawingEditable
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:790 (opens in a new tab)
setDrawingOrder()
setDrawingOrder(
unitId,
subUnitId,
order): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
order | string [] |
Returns
void
Implementation of
IUnitDrawingService
.setDrawingOrder
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:511 (opens in a new tab)
setDrawingVisible()
setDrawingVisible(visible): void
Parameters
Parameter | Type |
---|---|
visible | boolean |
Returns
void
Implementation of
IUnitDrawingService
.setDrawingVisible
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:786 (opens in a new tab)
ungroupUpdateNotification()
ungroupUpdateNotification(groupParams): void
Parameters
Parameter | Type |
---|---|
groupParams | IDrawingGroupUpdateParam [] |
Returns
void
Implementation of
IUnitDrawingService
.ungroupUpdateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:297 (opens in a new tab)
updateNotification()
updateNotification(updateParams): void
Parameters
Parameter | Type |
---|---|
updateParams | IDrawingSearch [] |
Returns
void
Implementation of
IUnitDrawingService
.updateNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:285 (opens in a new tab)
visibleNotification()
visibleNotification(visibleParams): void
Parameters
Parameter | Type |
---|---|
visibleParams | IDrawingVisibleParam [] |
Returns
void
Implementation of
IUnitDrawingService
.visibleNotification
Defined in
packages/drawing/src/services/drawing-manager-impl.service.ts:120 (opens in a new tab)