@univerjs/docs-drawing v0.5.0-beta.1 • Docs


Interface: IDocDrawingService

Extends

Properties

PropertyModifierTypeInherited fromDefined in
add$readonlyObservable<IDrawingSearch[]>IUnitDrawingService.add$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:106
drawingManagerDatapublicIDrawingMap<IDocDrawing>IUnitDrawingService.drawingManagerDatasubmodules/univer/packages/drawing/src/services/drawing-manager.service.ts:183
featurePluginGroupUpdate$readonlyObservable<IDrawingGroupUpdateParam[]>IUnitDrawingService.featurePluginGroupUpdate$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:147
featurePluginOrderUpdate$readonlyObservable<IDrawingOrderUpdateParam>IUnitDrawingService.featurePluginOrderUpdate$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:167
featurePluginUngroupUpdate$readonlyObservable<IDrawingGroupUpdateParam[]>IUnitDrawingService.featurePluginUngroupUpdate$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:148
featurePluginUpdate$readonlyObservable<IDocDrawing[]>IUnitDrawingService.featurePluginUpdate$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:112
focus$readonlyObservable<IDrawingParam[]>IUnitDrawingService.focus$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:134
group$readonlyObservable<IDrawingGroupUpdateParam[]>IUnitDrawingService.group$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:144
order$readonlyObservable<IDrawingOrderMapParam>IUnitDrawingService.order$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:165
refreshTransform$readonlyObservable<IDocDrawing[]>IUnitDrawingService.refreshTransform$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:109
remove$readonlyObservable<IDrawingSearch[]>IUnitDrawingService.remove$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:105
ungroup$readonlyObservable<IDrawingGroupUpdateParam[]>IUnitDrawingService.ungroup$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:145
update$readonlyObservable<IDrawingSearch[]>IUnitDrawingService.update$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:107
visible$readonlyObservable<IDrawingVisibleParam[]>IUnitDrawingService.visible$submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:110

Methods

addNotification()

addNotification(insertParams): void

Parameters

ParameterType
insertParamsIDrawingSearch[]

Returns

void

Inherited from

IUnitDrawingService.addNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:117


applyJson1()

applyJson1(
   unitId, 
   subUnitId, 
   jsonOp): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
jsonOpunknown

Returns

void

Inherited from

IUnitDrawingService.applyJson1

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

IUnitDrawingService.dispose

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:185


featurePluginGroupUpdateNotification()

featurePluginGroupUpdateNotification(groupParams): void

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Inherited from

IUnitDrawingService.featurePluginGroupUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:156


featurePluginOrderUpdateNotification()

featurePluginOrderUpdateNotification(drawingOrderUpdateParam): void

Parameters

ParameterType
drawingOrderUpdateParamIDrawingOrderUpdateParam

Returns

void

Inherited from

IUnitDrawingService.featurePluginOrderUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:179


featurePluginUngroupUpdateNotification()

featurePluginUngroupUpdateNotification(groupParams): void

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Inherited from

IUnitDrawingService.featurePluginUngroupUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:157


featurePluginUpdateNotification()

featurePluginUpdateNotification(updateParams): void

Parameters

ParameterType
updateParamsIDocDrawing[]

Returns

void

Inherited from

IUnitDrawingService.featurePluginUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:127


focusDrawing()

focusDrawing(params): void

Parameters

ParameterType
paramsNullable<IDrawingSearch[]>

Returns

void

Inherited from

IUnitDrawingService.focusDrawing

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:136


getBackDrawingsOp()

getBackDrawingsOp(orderParams): unknown

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

unknown

Inherited from

IUnitDrawingService.getBackDrawingsOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:174


getBackwardDrawingOp()

getBackwardDrawingOp(orderParams): unknown

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

unknown

Inherited from

IUnitDrawingService.getBackwardDrawingOp

Defined in

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


getBatchAddOp()

getBatchAddOp(insertParams): unknown

Parameters

ParameterType
insertParamsIDocDrawing[]

Returns

unknown

Inherited from

IUnitDrawingService.getBatchAddOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:123


getBatchRemoveOp()

getBatchRemoveOp(removeParams): unknown

Parameters

ParameterType
removeParamsIDrawingSearch[]

Returns

unknown

Inherited from

IUnitDrawingService.getBatchRemoveOp

Defined in

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


getBatchUpdateOp()

getBatchUpdateOp(updateParams): unknown

Parameters

ParameterType
updateParamsIDocDrawing[]

Returns

unknown

Inherited from

IUnitDrawingService.getBatchUpdateOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:125


getDrawingByParam()

getDrawingByParam(param): Nullable<IDocDrawing>

Parameters

ParameterType
paramNullable<IDrawingSearch>

Returns

Nullable<IDocDrawing>

Inherited from

IUnitDrawingService.getDrawingByParam

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:195


getDrawingData()

getDrawingData(unitId, subUnitId): IDrawingMapItemData<IDocDrawing>

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

IDrawingMapItemData<IDocDrawing>

Inherited from

IUnitDrawingService.getDrawingData

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:193


getDrawingDataForUnit()

getDrawingDataForUnit(unitId): IDrawingSubunitMap<IDocDrawing>

Parameters

ParameterType
unitIdstring

Returns

IDrawingSubunitMap<IDocDrawing>

Inherited from

IUnitDrawingService.getDrawingDataForUnit

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:187


getDrawingEditable()

getDrawingEditable(): boolean

Returns

boolean

Inherited from

IUnitDrawingService.getDrawingEditable

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:199


getDrawingOKey()

getDrawingOKey(oKey): Nullable<IDocDrawing>

Parameters

ParameterType
oKeystring

Returns

Nullable<IDocDrawing>

Inherited from

IUnitDrawingService.getDrawingOKey

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:197


getDrawingOrder()

getDrawingOrder(unitId, subUnitId): string[]

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

string[]

Inherited from

IUnitDrawingService.getDrawingOrder

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:176


getDrawingsByGroup()

getDrawingsByGroup(groupParam): IDrawingParam[]

Parameters

ParameterType
groupParamIDrawingSearch

Returns

IDrawingParam[]

Inherited from

IUnitDrawingService.getDrawingsByGroup

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:154


getDrawingVisible()

getDrawingVisible(): boolean

Returns

boolean

Inherited from

IUnitDrawingService.getDrawingVisible

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:200


getFocusDrawings()

getFocusDrawings(): IDrawingParam[]

Returns

IDrawingParam[]

Inherited from

IUnitDrawingService.getFocusDrawings

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:137


getForwardDrawingsOp()

getForwardDrawingsOp(orderParams): unknown

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

unknown

Inherited from

IUnitDrawingService.getForwardDrawingsOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:171


getFrontDrawingsOp()

getFrontDrawingsOp(orderParams): unknown

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

unknown

Inherited from

IUnitDrawingService.getFrontDrawingsOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:173


getGroupDrawingOp()

getGroupDrawingOp(groupParams): unknown

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

unknown

Inherited from

IUnitDrawingService.getGroupDrawingOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:150


getOldDrawingByParam()

getOldDrawingByParam(param): Nullable<IDocDrawing>

Parameters

ParameterType
paramNullable<IDrawingSearch>

Returns

Nullable<IDocDrawing>

Inherited from

IUnitDrawingService.getOldDrawingByParam

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:196


getUngroupDrawingOp()

getUngroupDrawingOp(groupParams): unknown

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

unknown

Inherited from

IUnitDrawingService.getUngroupDrawingOp

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:151


groupUpdateNotification()

groupUpdateNotification(groupParams): void

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Inherited from

IUnitDrawingService.groupUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:152


initializeNotification()

initializeNotification(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Inherited from

IUnitDrawingService.initializeNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:191


orderNotification()

orderNotification(orderParams): void

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

void

Inherited from

IUnitDrawingService.orderNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:169


orderUpdateNotification()

orderUpdateNotification(orderParams): void

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

void

Inherited from

IUnitDrawingService.orderUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:178


refreshTransform()

refreshTransform(updateParams): void

Parameters

ParameterType
updateParamsIDocDrawing[]

Returns

void

Inherited from

IUnitDrawingService.refreshTransform

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:114


refreshTransformNotification()

refreshTransformNotification(refreshParams): void

Parameters

ParameterType
refreshParamsIDocDrawing[]

Returns

void

Inherited from

IUnitDrawingService.refreshTransformNotification

Defined in

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


registerDrawingData()

registerDrawingData(unitId, data): void

Parameters

ParameterType
unitIdstring
dataIDrawingSubunitMap<IDocDrawing>

Returns

void

Inherited from

IUnitDrawingService.registerDrawingData

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:189


removeDrawingDataForUnit()

removeDrawingDataForUnit(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Inherited from

IUnitDrawingService.removeDrawingDataForUnit

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:188


removeNotification()

removeNotification(removeParams): void

Parameters

ParameterType
removeParamsIDrawingSearch[]

Returns

void

Inherited from

IUnitDrawingService.removeNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:116


setDrawingData()

setDrawingData(
   unitId, 
   subUnitId, 
   data): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
dataIDrawingMapItemData<IDocDrawing>

Returns

void

Inherited from

IUnitDrawingService.setDrawingData

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:194


setDrawingEditable()

setDrawingEditable(editable): void

Parameters

ParameterType
editableboolean

Returns

void

Inherited from

IUnitDrawingService.setDrawingEditable

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:202


setDrawingOrder()

setDrawingOrder(
   unitId, 
   subUnitId, 
   order): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
orderstring[]

Returns

void

Inherited from

IUnitDrawingService.setDrawingOrder

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:177


setDrawingVisible()

setDrawingVisible(visible): void

Parameters

ParameterType
visibleboolean

Returns

void

Inherited from

IUnitDrawingService.setDrawingVisible

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:201


ungroupUpdateNotification()

ungroupUpdateNotification(groupParams): void

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Inherited from

IUnitDrawingService.ungroupUpdateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:153


updateNotification()

updateNotification(updateParams): void

Parameters

ParameterType
updateParamsIDrawingSearch[]

Returns

void

Inherited from

IUnitDrawingService.updateNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:118


visibleNotification()

visibleNotification(visibleParams): void

Parameters

ParameterType
visibleParamsIDrawingVisibleParam[]

Returns

void

Inherited from

IUnitDrawingService.visibleNotification

Defined in

submodules/univer/packages/drawing/src/services/drawing-manager.service.ts:121