MCPcopy Index your code
hub / github.com/apache/echarts / viewCoordSysSetRoamOptionFromModel

Function viewCoordSysSetRoamOptionFromModel

src/coord/View.ts:427–441  ·  view source on GitHub ↗
(
    viewCoordSys: View,
    hostModel: RoamHostComponentOrSeries
)

Source from the content-addressed store, hash-verified

425 * rather than canvas viewport, and the unit is not necessarily pixel (e.g., in geo case).
426 */
427export function viewCoordSysSetRoamOptionFromModel(
428 viewCoordSys: View,
429 hostModel: RoamHostComponentOrSeries
430): void {
431 const viewInner = inner(viewCoordSys);
432 viewInner.centerOption = hostModel.getShallow('center');
433 const zoomLimit = viewInner.zoomLimit = hostModel.getShallow('scaleLimit');
434 const zoomOption = hostModel.getShallow('zoom');
435
436 viewInner.zoom = clampByZoomLimit(zoomOption || 1, zoomLimit) || 1;
437
438 if (viewCoordSysIsInputReady(viewInner)) {
439 viewCoordSysUpdateTransform(viewInner);
440 }
441}
442
443/**
444 * @see ViewInner['dataRect']

Callers 3

createViewCoordSysSimplyFunction · 0.90
resizeGeoFunction · 0.90

Calls 5

innerFunction · 0.85
clampByZoomLimitFunction · 0.85
viewCoordSysIsInputReadyFunction · 0.85
getShallowMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…