@univerjsdrawingclassesUnitdrawingservice

@univerjs/drawing v0.5.4


Class: UnitDrawingService<T>

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:47

unitId -> subUnitId -> drawingId -> drawingParam

Extended by

Type Parameters

Type Parameter
T extends IDrawingParam

Implements

Constructors

new UnitDrawingService()

new UnitDrawingService<T>(): UnitDrawingService<T>

Returns

UnitDrawingService<T>

Properties

PropertyModifierTypeDefault valueDefined in
add$readonlyObservable<IDrawingSearch[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:58
drawingManagerDatapublicIDrawingMap<T>{}submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:48
featurePluginAdd$readonlyObservable<T[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:88
featurePluginGroupUpdate$readonlyObservable<IDrawingGroupUpdateParam[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:97
featurePluginOrderUpdate$readonlyObservable<IDrawingOrderUpdateParam>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:94
featurePluginRemove$readonlyObservable<IDrawingSearch[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:91
featurePluginUngroupUpdate$readonlyObservable<IDrawingGroupUpdateParam[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:100
featurePluginUpdate$readonlyObservable<T[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:85
focus$publicObservable<T[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:82
group$readonlyObservable<IDrawingGroupUpdateParam[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:67
order$readonlyObservable<IDrawingOrderMapParam>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:64
refreshTransform$readonlyObservable<T[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:73
remove$readonlyObservable<IDrawingSearch[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:55
ungroup$readonlyObservable<IDrawingGroupUpdateParam[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:70
update$readonlyObservable<IDrawingSearch[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:61
visible$readonlyObservable<IDrawingVisibleParam[]>undefinedsubmodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:76

Methods

addNotification()

addNotification(insertParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:281

Parameters

ParameterType
insertParamsIDrawingSearch[]

Returns

void

Implementation of

IUnitDrawingService.addNotification


applyJson1()

applyJson1(
   unitId, 
   subUnitId, 
   jsonOp): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:406

Parameters

ParameterType
unitIdstring
subUnitIdstring
jsonOpJSONOp

Returns

void

Implementation of

IUnitDrawingService.applyJson1


dispose()

dispose(): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:105

Returns

void

Implementation of

IUnitDrawingService.dispose


featurePluginAddNotification()

featurePluginAddNotification(insertParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:443

Parameters

ParameterType
insertParamsT[]

Returns

void


featurePluginGroupUpdateNotification()

featurePluginGroupUpdateNotification(groupParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:451

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Implementation of

IUnitDrawingService.featurePluginGroupUpdateNotification


featurePluginOrderUpdateNotification()

featurePluginOrderUpdateNotification(drawingOrderUpdateParam): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:439

Parameters

ParameterType
drawingOrderUpdateParamIDrawingOrderUpdateParam

Returns

void

Implementation of

IUnitDrawingService.featurePluginOrderUpdateNotification


featurePluginRemoveNotification()

featurePluginRemoveNotification(removeParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:447

Parameters

ParameterType
removeParamsIDrawingSearch[]

Returns

void


featurePluginUngroupUpdateNotification()

featurePluginUngroupUpdateNotification(groupParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:455

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Implementation of

IUnitDrawingService.featurePluginUngroupUpdateNotification


featurePluginUpdateNotification()

featurePluginUpdateNotification(updateParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:435

Parameters

ParameterType
updateParamsT[]

Returns

void

Implementation of

IUnitDrawingService.featurePluginUpdateNotification


focusDrawing()

focusDrawing(params): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:472

Parameters

ParameterType
paramsNullable<IDrawingSearch[]>

Returns

void

Implementation of

IUnitDrawingService.focusDrawing


getBackDrawingsOp()

getBackDrawingsOp(orderParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:595

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getBackDrawingsOp


getBackwardDrawingOp()

getBackwardDrawingOp(orderParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:545

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getBackwardDrawingOp


getBatchAddOp()

getBatchAddOp(insertParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:207

Parameters

ParameterType
insertParamsT[]

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getBatchAddOp


getBatchRemoveOp()

getBatchRemoveOp(removeParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:228

Parameters

ParameterType
removeParamsIDrawingSearch[]

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getBatchRemoveOp


getBatchUpdateOp()

getBatchUpdateOp(updateParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:256

Parameters

ParameterType
updateParamsT[]

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getBatchUpdateOp


getDrawingByParam()

getDrawingByParam(param): Nullable<T>

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:459

Parameters

ParameterType
paramNullable<IDrawingSearch>

Returns

Nullable<T>

Implementation of

IUnitDrawingService.getDrawingByParam


getDrawingData()

getDrawingData(unitId, subUnitId): IDrawingMapItemData<T>

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:198

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

IDrawingMapItemData<T>

Implementation of

IUnitDrawingService.getDrawingData


getDrawingDataForUnit()

getDrawingDataForUnit(unitId): IDrawingSubunitMap<T>

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:139

Parameters

ParameterType
unitIdstring

Returns

IDrawingSubunitMap<T>

Implementation of

IUnitDrawingService.getDrawingDataForUnit


getDrawingEditable()

getDrawingEditable(): boolean

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:782

Returns

boolean

Implementation of

IUnitDrawingService.getDrawingEditable


getDrawingOKey()

getDrawingOKey(oKey): Nullable<T>

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:467

Parameters

ParameterType
oKeystring

Returns

Nullable<T>

Implementation of

IUnitDrawingService.getDrawingOKey


getDrawingOrder()

getDrawingOrder(unitId, subUnitId): string[]

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:506

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

string[]

Implementation of

IUnitDrawingService.getDrawingOrder


getDrawingsByGroup()

getDrawingsByGroup(groupParam): IDrawingParam[]

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:333

Parameters

ParameterType
groupParamIDrawingSearch

Returns

IDrawingParam[]

Implementation of

IUnitDrawingService.getDrawingsByGroup


getDrawingVisible()

getDrawingVisible(): boolean

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:778

Returns

boolean

Implementation of

IUnitDrawingService.getDrawingVisible


getFocusDrawings()

getFocusDrawings(): T[]

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:494

Returns

T[]

Implementation of

IUnitDrawingService.getFocusDrawings


getForwardDrawingsOp()

getForwardDrawingsOp(orderParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:519

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getForwardDrawingsOp


getFrontDrawingsOp()

getFrontDrawingsOp(orderParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:571

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getFrontDrawingsOp


getGroupDrawingOp()

getGroupDrawingOp(groupParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:305

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getGroupDrawingOp


getOldDrawingByParam()

getOldDrawingByParam(param): Nullable<T>

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:463

Parameters

ParameterType
paramNullable<IDrawingSearch>

Returns

Nullable<T>

Implementation of

IUnitDrawingService.getOldDrawingByParam


getUngroupDrawingOp()

getUngroupDrawingOp(groupParams): IDrawingJsonUndo1

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:319

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

IDrawingJsonUndo1

Implementation of

IUnitDrawingService.getUngroupDrawingOp


groupUpdateNotification()

groupUpdateNotification(groupParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:293

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Implementation of

IUnitDrawingService.groupUpdateNotification


initializeNotification()

initializeNotification(unitId): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:172

Parameters

ParameterType
unitIdstring

Returns

void

Implementation of

IUnitDrawingService.initializeNotification


orderNotification()

orderNotification(orderParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:289

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

void

Implementation of

IUnitDrawingService.orderNotification


orderUpdateNotification()

orderUpdateNotification(orderParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:515

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

void

Implementation of

IUnitDrawingService.orderUpdateNotification


refreshTransform()

refreshTransform(updateParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:124

Parameters

ParameterType
updateParamsT[]

Returns

void

Implementation of

IUnitDrawingService.refreshTransform


refreshTransformNotification()

refreshTransformNotification(refreshParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:301

Parameters

ParameterType
refreshParamsT[]

Returns

void

Implementation of

IUnitDrawingService.refreshTransformNotification


registerDrawingData()

registerDrawingData(unitId, data): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:168

Parameters

ParameterType
unitIdstring
dataIDrawingSubunitMap<T>

Returns

void

Implementation of

IUnitDrawingService.registerDrawingData


removeDrawingDataForUnit()

removeDrawingDataForUnit(unitId): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:143

Parameters

ParameterType
unitIdstring

Returns

void

Implementation of

IUnitDrawingService.removeDrawingDataForUnit


removeNotification()

removeNotification(removeParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:277

Parameters

ParameterType
removeParamsIDrawingSearch[]

Returns

void

Implementation of

IUnitDrawingService.removeNotification


setDrawingData()

setDrawingData(
   unitId, 
   subUnitId, 
   data): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:203

Parameters

ParameterType
unitIdstring
subUnitIdstring
dataIDrawingMapItemData<T>

Returns

void

Implementation of

IUnitDrawingService.setDrawingData


setDrawingEditable()

setDrawingEditable(editable): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:790

Parameters

ParameterType
editableboolean

Returns

void

Implementation of

IUnitDrawingService.setDrawingEditable


setDrawingOrder()

setDrawingOrder(
   unitId, 
   subUnitId, 
   order): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:511

Parameters

ParameterType
unitIdstring
subUnitIdstring
orderstring[]

Returns

void

Implementation of

IUnitDrawingService.setDrawingOrder


setDrawingVisible()

setDrawingVisible(visible): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:786

Parameters

ParameterType
visibleboolean

Returns

void

Implementation of

IUnitDrawingService.setDrawingVisible


ungroupUpdateNotification()

ungroupUpdateNotification(groupParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:297

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Implementation of

IUnitDrawingService.ungroupUpdateNotification


updateNotification()

updateNotification(updateParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:285

Parameters

ParameterType
updateParamsIDrawingSearch[]

Returns

void

Implementation of

IUnitDrawingService.updateNotification


visibleNotification()

visibleNotification(visibleParams): void

Defined in: submodules/univer/packages/drawing/src/services/drawing-manager-impl.service.ts:120

Parameters

ParameterType
visibleParamsIDrawingVisibleParam[]

Returns

void

Implementation of

IUnitDrawingService.visibleNotification