API Reference
@univerjs
@univerjs/engine-render
functions
Getgroupstate

@univerjs/engine-render v0.4.2Docs


Function: getGroupState()

function getGroupState(
   parentLeft, 
   parentTop, 
   objectStates): {
  angle: 0;
  height: groupHeight;
  left: number;
  scaleX: 1;
  scaleY: 1;
  top: number;
  width: groupWidth;
}

Parameters

ParameterType
parentLeftnumber
parentTopnumber
objectStatesITransformState[]

Returns

{
  angle: 0;
  height: groupHeight;
  left: number;
  scaleX: 1;
  scaleY: 1;
  top: number;
  width: groupWidth;
}
NameTypeDefault valueDefined in
anglenumber0submodules/univer/packages/engine-render/src/basics/group-transform.ts:43 (opens in a new tab)
heightnumbergroupHeightsubmodules/univer/packages/engine-render/src/basics/group-transform.ts:42 (opens in a new tab)
leftnumber-submodules/univer/packages/engine-render/src/basics/group-transform.ts:39 (opens in a new tab)
scaleXnumber1submodules/univer/packages/engine-render/src/basics/group-transform.ts:44 (opens in a new tab)
scaleYnumber1submodules/univer/packages/engine-render/src/basics/group-transform.ts:45 (opens in a new tab)
topnumber-submodules/univer/packages/engine-render/src/basics/group-transform.ts:40 (opens in a new tab)
widthnumbergroupWidthsubmodules/univer/packages/engine-render/src/basics/group-transform.ts:41 (opens in a new tab)

Defined in

submodules/univer/packages/engine-render/src/basics/group-transform.ts:21 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.