GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lowcode-engine/docs/docs/api/canvas.md at main · EsonSu2000/lowcode-engine

Expand file tree

/

canvas.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
87 lines (60 loc) · 2.57 KB
/

canvas.md

Copy path

File metadata and controls

87 lines (60 loc) · 2.57 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
title canvas - 画布 API
sidebar_position 12

@types IPublicApiCanvas
@since v1.1.0

模块简介

通过该模块可以触达对画布拖拽相关的一些能力。

变量

dragon

获取拖拽操作对象的实例

@type {IPublicModelDragon | null}

相关类型:IPublicModelDragon

activeTracker

获取活动追踪器实例

@type {IPublicModelActiveTracker | null}

相关类型:IPublicModelActiveTracker

isInLiveEditing

是否处于 LiveEditing 状态

@type {boolean}

clipboard

全局剪贴板实例

@type {IPublicModelClipboard}

相关类型:IPublicModelClipboard

方法

createLocation

创建一个文档插入位置对象,该对象用来描述一个即将插入的节点在文档中的位置

/**
 * 创建一个文档插入位置对象,该对象用来描述一个即将插入的节点在文档中的位置
 * create a drop location for document, drop location describes a location in document
 * @since v1.1.0
 */
createLocation(locationData: IPublicTypeLocationData): IPublicModelDropLocation;

createScroller

创建一个滚动控制器 Scroller,赋予一个视图滚动的基本能力,

/**
 * 创建一个滚动控制器 Scroller,赋予一个视图滚动的基本能力,
 * a Scroller is a controller that gives a view (IPublicTypeScrollable) the ability scrolling
 * to some cordination by api scrollTo.
 *
 * when a scroller is inited, will need to pass is a scrollable, which has a scrollTarget.
 * and when scrollTo(options: { left?: number; top?: number }) is called, scroller will
 * move scrollTarget`s top-left corner to (options.left, options.top) that passed in.
 * @since v1.1.0
 */
createScroller(scrollable: IPublicTypeScrollable): IPublicModelScroller;

createScrollTarget

创建一个 ScrollTarget,与 Scroller 一起发挥作用,详见 createScroller 中的描述

/**
 * 创建一个 ScrollTarget,与 Scroller 一起发挥作用,详见 createScroller 中的描述
 * this works with Scroller, refer to createScroller`s description
 * @since v1.1.0
 */
createScrollTarget(shell: HTMLDivElement): IPublicModelScrollTarget;
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.