imageTool - Methods - Questions API

Questions API Methods

imageTool

Important ImageTool type only.

Examples

const imagetoolFeature = myLearnosityApp.feature('60001');

// center image tool to current viewport
imagetoolFeature.imageTool.position();

// position image tool 100px from the top and 200px from the left of its container
imagetoolFeature.imageTool.position({
    top: 100,
    left: 200
});

Values

Type object

Properties

  • position function

    Position the Image Tool. Centers the Image Tool to the current viewport. An object with top and left values can be optionally provided as a parameter to override the position relative to its container.

    • coordinates object

      • left integer

      • top integer

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.