@univerjsdrawinginterfacesIunitdrawingservice

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


Interface: IUnitDrawingService<T>

Extends

  • IUnitNormalDrawingService<T>.IUnitFocusDrawingService.IUnitGroupDrawingService.IUnitOrderDrawingService.IDisposable

Extended by

Type Parameters

Type Parameter
T extends IDrawingParam

Properties

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

Methods

addNotification()

addNotification(insertParams): void

Parameters

ParameterType
insertParamsIDrawingSearch[]

Returns

void

Inherited from

IUnitNormalDrawingService.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

Defined in

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


dispose()

dispose(): void

Returns

void

Overrides

IDisposable.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

IUnitGroupDrawingService.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

IUnitOrderDrawingService.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

IUnitGroupDrawingService.featurePluginUngroupUpdateNotification

Defined in

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


featurePluginUpdateNotification()

featurePluginUpdateNotification(updateParams): void

Parameters

ParameterType
updateParamsT[]

Returns

void

Inherited from

IUnitNormalDrawingService.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

IUnitFocusDrawingService.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

IUnitOrderDrawingService.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

IUnitOrderDrawingService.getBackwardDrawingOp

Defined in

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


getBatchAddOp()

getBatchAddOp(insertParams): unknown

Parameters

ParameterType
insertParamsT[]

Returns

unknown

Inherited from

IUnitNormalDrawingService.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

IUnitNormalDrawingService.getBatchRemoveOp

Defined in

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


getBatchUpdateOp()

getBatchUpdateOp(updateParams): unknown

Parameters

ParameterType
updateParamsT[]

Returns

unknown

Inherited from

IUnitNormalDrawingService.getBatchUpdateOp

Defined in

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


getDrawingByParam()

getDrawingByParam(param): Nullable<T>

Parameters

ParameterType
paramNullable<IDrawingSearch>

Returns

Nullable<T>

Defined in

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


getDrawingData()

getDrawingData(unitId, subUnitId): IDrawingMapItemData<T>

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

IDrawingMapItemData<T>

Defined in

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


getDrawingDataForUnit()

getDrawingDataForUnit(unitId): IDrawingSubunitMap<T>

Parameters

ParameterType
unitIdstring

Returns

IDrawingSubunitMap<T>

Defined in

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


getDrawingEditable()

getDrawingEditable(): boolean

Returns

boolean

Defined in

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


getDrawingOKey()

getDrawingOKey(oKey): Nullable<T>

Parameters

ParameterType
oKeystring

Returns

Nullable<T>

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

IUnitOrderDrawingService.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

IUnitGroupDrawingService.getDrawingsByGroup

Defined in

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


getDrawingVisible()

getDrawingVisible(): boolean

Returns

boolean

Defined in

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


getFocusDrawings()

getFocusDrawings(): IDrawingParam[]

Returns

IDrawingParam[]

Inherited from

IUnitFocusDrawingService.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

IUnitOrderDrawingService.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

IUnitOrderDrawingService.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

IUnitGroupDrawingService.getGroupDrawingOp

Defined in

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


getOldDrawingByParam()

getOldDrawingByParam(param): Nullable<T>

Parameters

ParameterType
paramNullable<IDrawingSearch>

Returns

Nullable<T>

Defined in

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


getUngroupDrawingOp()

getUngroupDrawingOp(groupParams): unknown

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

unknown

Inherited from

IUnitGroupDrawingService.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

IUnitGroupDrawingService.groupUpdateNotification

Defined in

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


initializeNotification()

initializeNotification(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

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


orderNotification()

orderNotification(orderParams): void

Parameters

ParameterType
orderParamsIDrawingOrderMapParam

Returns

void

Inherited from

IUnitOrderDrawingService.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

IUnitOrderDrawingService.orderUpdateNotification

Defined in

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


refreshTransform()

refreshTransform(updateParams): void

Parameters

ParameterType
updateParamsT[]

Returns

void

Inherited from

IUnitNormalDrawingService.refreshTransform

Defined in

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


refreshTransformNotification()

refreshTransformNotification(refreshParams): void

Parameters

ParameterType
refreshParamsT[]

Returns

void

Inherited from

IUnitNormalDrawingService.refreshTransformNotification

Defined in

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


registerDrawingData()

registerDrawingData(unitId, data): void

Parameters

ParameterType
unitIdstring
dataIDrawingSubunitMap<T>

Returns

void

Defined in

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


removeDrawingDataForUnit()

removeDrawingDataForUnit(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

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


removeNotification()

removeNotification(removeParams): void

Parameters

ParameterType
removeParamsIDrawingSearch[]

Returns

void

Inherited from

IUnitNormalDrawingService.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<T>

Returns

void

Defined in

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


setDrawingEditable()

setDrawingEditable(editable): void

Parameters

ParameterType
editableboolean

Returns

void

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

IUnitOrderDrawingService.setDrawingOrder

Defined in

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


setDrawingVisible()

setDrawingVisible(visible): void

Parameters

ParameterType
visibleboolean

Returns

void

Defined in

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


ungroupUpdateNotification()

ungroupUpdateNotification(groupParams): void

Parameters

ParameterType
groupParamsIDrawingGroupUpdateParam[]

Returns

void

Inherited from

IUnitGroupDrawingService.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

IUnitNormalDrawingService.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

IUnitNormalDrawingService.visibleNotification

Defined in

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