Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 851bdea

Browse files
committed
Update index.html
1 parent 250aca2 commit 851bdea

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

draw-shapes/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
y = 0,
5454
width = 100,
5555
height = 200;
56-
const rectItem = new Dynamsoft.DCE.DrawingItem.RectDrawingItem({
56+
const rectItem = new Dynamsoft.DCE.RectDrawingItem({
5757
x,
5858
y,
5959
width,
@@ -82,7 +82,7 @@
8282
y: 300,
8383
},
8484
];
85-
const quadItem = new Dynamsoft.DCE.DrawingItem.QuadDrawingItem({
85+
const quadItem = new Dynamsoft.DCE.QuadDrawingItem({
8686
points,
8787
});
8888
drawingLayer.addDrawingItems([quadItem]);
@@ -92,7 +92,7 @@
9292
{
9393
const startPoint = { x: 400, y: 100 },
9494
endPoint = { x: 600, y: 300 };
95-
const lineItem = new Dynamsoft.DCE.DrawingItem.LineDrawingItem({
95+
const lineItem = new Dynamsoft.DCE.LineDrawingItem({
9696
startPoint,
9797
endPoint,
9898
});
@@ -106,7 +106,7 @@
106106
y = 100,
107107
width = 200,
108108
height = 100;
109-
const textItem = new Dynamsoft.DCE.DrawingItem.TextDrawingItem(
109+
const textItem = new Dynamsoft.DCE.TextDrawingItem(
110110
text,
111111
{
112112
x,
@@ -128,7 +128,7 @@
128128
image.src = "image.png";
129129
image.decode().then(() => {
130130
const imageItem =
131-
new Dynamsoft.DCE.DrawingItem.ImageDrawingItem(
131+
new Dynamsoft.DCE.ImageDrawingItem(
132132
image,
133133
{ x, y, width, height },
134134
true

0 commit comments

Comments
 (0)