70000374 Copy command in web library.

Article 70000374
Type Wish
Product WebJS
Version 7003
Date Added 3/26/2015 12:00:00 AM
Fixed (3/27/2015 12:00:00 AM)
Submitted by Vdraw Team

Summary

Copy command in web library.

Solution

In version 7004.0.1 a new command was added in vectordraw web library. CmdCopy with which the user can copy an array of objects from one point of the document to another.

CmdCopy(entities, from, to)

The function takes the following parameters
  • entities: An array of vdraw entities or null so the user can pick the objects on screen.
  • from: The base point in World coordinates or null so the user can pick this point to the screen. This point will be the origin of the move command.
  • to: Another point representing where the copied objects will be placed in World coordinates or null so the user picks this point on screen.

Example

 
    var vdcanvas = vdmanager.vdrawObject(canvasId);          
    vdcanvas.CmdCopy(null, null, null);

Send comments on this topic.