Skip to content

Commit 0679d3a

Browse files
[Word] (shapes) Add snippet for geometric shapes (#1020)
* [Word] (shapes) Add snippet for geometric shapes * Updates based on feedback
1 parent 14b4a02 commit 0679d3a

File tree

7 files changed

+265
-0
lines changed

7 files changed

+265
-0
lines changed

playlists-prod/word.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,15 @@
386386
group: Shapes
387387
api_set:
388388
WordApiDesktop: '1.2'
389+
- id: word-shapes-manage-geometric-shapes
390+
name: Manage geometric shapes
391+
fileName: manage-geometric-shapes.yaml
392+
description: Shows how to work with geometric shapes.
393+
rawUrl: >-
394+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-geometric-shapes.yaml
395+
group: Shapes
396+
api_set:
397+
WordApiDesktop: '1.2'
389398
- id: word-document-manage-body
390399
name: Manage body
391400
fileName: manage-body.yaml

playlists/word.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,15 @@
386386
group: Shapes
387387
api_set:
388388
WordApiDesktop: '1.2'
389+
- id: word-shapes-manage-geometric-shapes
390+
name: Manage geometric shapes
391+
fileName: manage-geometric-shapes.yaml
392+
description: Shows how to work with geometric shapes.
393+
rawUrl: >-
394+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/45-shapes/manage-geometric-shapes.yaml
395+
group: Shapes
396+
api_set:
397+
WordApiDesktop: '1.2'
389398
- id: word-document-manage-body
390399
name: Manage body
391400
fileName: manage-body.yaml
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
order: 2
2+
id: word-shapes-manage-geometric-shapes
3+
name: Manage geometric shapes
4+
description: Shows how to work with geometric shapes.
5+
host: WORD
6+
api_set:
7+
WordApiDesktop: '1.2'
8+
script:
9+
content: |
10+
document.getElementById("insert-heptagon").addEventListener("click", () => tryCatch(insertGeometricShape_Heptagon));
11+
document.getElementById("insert-moon").addEventListener("click", () => tryCatch(insertGeometricShape_Moon));
12+
document.getElementById("get-geometric-shapes").addEventListener("click", () => tryCatch(getGeometricShapes));
13+
document.getElementById("get-moons").addEventListener("click", () => tryCatch(getMoonGeometricShapes));
14+
document.getElementById("get-first-geometric-shape").addEventListener("click", () => tryCatch(getFirstGeometricShape));
15+
document.getElementById("get-first-heptagon").addEventListener("click", () => tryCatch(getFirstHeptagon));
16+
17+
async function insertGeometricShape_Heptagon() {
18+
await Word.run(async (context) => {
19+
// Inserts a heptagon geometric shape at the beginning of the selection.
20+
const selection: Word.Range = context.document.getSelection();
21+
const shapeOptions: Word.InsertShapeOptions = {
22+
height: 120,
23+
width: 120,
24+
};
25+
selection.insertGeometricShape(Word.GeometricShapeType.heptagon, shapeOptions);
26+
await context.sync();
27+
28+
console.log("Inserted a heptagon.");
29+
});
30+
}
31+
32+
async function insertGeometricShape_Moon() {
33+
await Word.run(async (context) => {
34+
// Inserts a moon geometric shape at the beginning of the selection.
35+
const selection: Word.Range = context.document.getSelection();
36+
const shapeOptions: Word.InsertShapeOptions = {
37+
height: 120,
38+
width: 120,
39+
left: 120,
40+
};
41+
selection.insertGeometricShape(Word.GeometricShapeType.moon, shapeOptions);
42+
await context.sync();
43+
44+
console.log("Inserted a heptagon.");
45+
});
46+
}
47+
48+
async function getGeometricShapes() {
49+
await Word.run(async (context) => {
50+
// Gets the geometric shapes from the document body.
51+
const geometricShapes: Word.ShapeCollection = context.document.body.shapes.getByTypes([
52+
Word.ShapeType.geometricShape,
53+
]);
54+
geometricShapes.load();
55+
await context.sync();
56+
57+
console.log("Geometric shapes found in the document body:", geometricShapes);
58+
});
59+
}
60+
61+
async function getMoonGeometricShapes() {
62+
await Word.run(async (context) => {
63+
// Gets the moon geometric shapes from the document body.
64+
const moons: Word.ShapeCollection = context.document.body.shapes.getByGeometricTypes([
65+
Word.GeometricShapeType.moon,
66+
]);
67+
moons.load();
68+
await context.sync();
69+
70+
console.log("Moons found in the document body:", moons);
71+
});
72+
}
73+
74+
async function getFirstGeometricShape() {
75+
await Word.run(async (context) => {
76+
// Gets the first geometric shape found in the document body.
77+
const geometricShape: Word.Shape = context.document.body.shapes
78+
.getByTypes([Word.ShapeType.geometricShape])
79+
.getFirstOrNullObject();
80+
geometricShape.load();
81+
await context.sync();
82+
83+
if (geometricShape.isNullObject) {
84+
console.log("No geometric shapes found in the document body.");
85+
return;
86+
}
87+
88+
console.log(
89+
`First geometric shape found in the document body is of type ${geometricShape.geometricShapeType}:`,
90+
geometricShape,
91+
);
92+
});
93+
}
94+
95+
async function getFirstHeptagon() {
96+
await Word.run(async (context) => {
97+
// Gets the first heptagon found in the document body.
98+
const heptagon: Word.Shape = context.document.body.shapes
99+
.getByGeometricTypes([Word.GeometricShapeType.heptagon])
100+
.getFirstOrNullObject();
101+
heptagon.load();
102+
await context.sync();
103+
104+
if (heptagon.isNullObject) {
105+
console.log("No heptagons found in the document body.");
106+
return;
107+
}
108+
109+
console.log("First heptagon found in the document body:", heptagon);
110+
});
111+
}
112+
113+
// Default helper for invoking an action and handling errors.
114+
async function tryCatch(callback) {
115+
try {
116+
await callback();
117+
} catch (error) {
118+
// Note: In a production add-in, you'd want to notify the user through your add-in's UI.
119+
console.error(error);
120+
}
121+
}
122+
language: typescript
123+
template:
124+
content: |-
125+
<section class="ms-Fabric ms-font-m">
126+
This sample demonstrates how to work with geometric shapes.
127+
</section>
128+
<section class="ms-Fabric samples ms-font-m">
129+
<h3>Try it out</h3>
130+
<button id="insert-heptagon" class="ms-Button">
131+
<span class="ms-Button-label">Insert heptagon</span>
132+
</button>
133+
<button id="insert-moon" class="ms-Button">
134+
<span class="ms-Button-label">Insert moon</span>
135+
</button>
136+
<button id="get-geometric-shapes" class="ms-Button">
137+
<span class="ms-Button-label">Get geometric shapes</span>
138+
</button>
139+
<button id="get-moons" class="ms-Button">
140+
<span class="ms-Button-label">Get moons</span>
141+
</button>
142+
<button id="get-first-geometric-shape" class="ms-Button">
143+
<span class="ms-Button-label">Get first geometric shape</span>
144+
</button>
145+
<button id="get-first-heptagon" class="ms-Button">
146+
<span class="ms-Button-label">Get first heptagon</span>
147+
</button>
148+
</section>
149+
language: html
150+
style:
151+
content: |-
152+
section.samples {
153+
margin-top: 20px;
154+
}
155+
156+
section.samples .ms-Button, section.setup .ms-Button {
157+
display: block;
158+
margin-bottom: 5px;
159+
margin-left: 20px;
160+
min-width: 80px;
161+
}
162+
language: css
163+
libraries: |-
164+
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
165+
https://appsforoffice.microsoft.com/lib/1/hosted/office.d.ts
166+
167+
https://unpkg.com/[email protected]/dist/css/fabric.min.css
168+
https://unpkg.com/[email protected]/dist/css/fabric.components.min.css
229 Bytes
Binary file not shown.

snippet-extractor-output/snippets.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25098,6 +25098,24 @@ Word.FieldType:enum:
2509825098
console.log("Code of the field: " + field.code, "Result of the field: " + JSON.stringify(field.result));
2509925099
}
2510025100
});
25101+
Word.GeometricShapeType:enum:
25102+
- >-
25103+
// Link to full sample:
25104+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-geometric-shapes.yaml
25105+
25106+
25107+
await Word.run(async (context) => {
25108+
// Inserts a heptagon geometric shape at the beginning of the selection.
25109+
const selection: Word.Range = context.document.getSelection();
25110+
const shapeOptions: Word.InsertShapeOptions = {
25111+
height: 120,
25112+
width: 120,
25113+
};
25114+
selection.insertGeometricShape(Word.GeometricShapeType.heptagon, shapeOptions);
25115+
await context.sync();
25116+
25117+
console.log("Inserted a heptagon.");
25118+
});
2510125119
Word.GetTextOptions:interface:
2510225120
- >-
2510325121
// Link to full sample:
@@ -27448,6 +27466,25 @@ Word.Range#insertInlinePictureFromBase64:member(1):
2744827466
const pictureBase64 =
2744927467
"iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABblBMVEX+7tEYMFlyg5v8zHXVgof///+hrL77qR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2aXP4P485IkSZIkSZIkSZIkSZIkSZIkSZIk8Tv/B3bBREdOWYS3AAAAAElFTkSuQmCC";
2745027468
return pictureBase64;
27469+
Word.Range#insertGeometricShape:member(1):
27470+
- >-
27471+
// Link to full sample:
27472+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-geometric-shapes.yaml
27473+
27474+
27475+
await Word.run(async (context) => {
27476+
// Inserts a moon geometric shape at the beginning of the selection.
27477+
const selection: Word.Range = context.document.getSelection();
27478+
const shapeOptions: Word.InsertShapeOptions = {
27479+
height: 120,
27480+
width: 120,
27481+
left: 120,
27482+
};
27483+
selection.insertGeometricShape(Word.GeometricShapeType.moon, shapeOptions);
27484+
await context.sync();
27485+
27486+
console.log("Inserted a heptagon.");
27487+
});
2745127488
Word.Range#insertTextBox:member(1):
2745227489
- >-
2745327490
// Link to full sample:
@@ -27949,6 +27986,30 @@ Word.Shape#body:member:
2794927986

2795027987
console.log("New content control properties:", newControl);
2795127988
});
27989+
Word.Shape#geometricShapeType:member:
27990+
- >-
27991+
// Link to full sample:
27992+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-geometric-shapes.yaml
27993+
27994+
27995+
await Word.run(async (context) => {
27996+
// Gets the first geometric shape found in the document body.
27997+
const geometricShape: Word.Shape = context.document.body.shapes
27998+
.getByTypes([Word.ShapeType.geometricShape])
27999+
.getFirstOrNullObject();
28000+
geometricShape.load();
28001+
await context.sync();
28002+
28003+
if (geometricShape.isNullObject) {
28004+
console.log("No geometric shapes found in the document body.");
28005+
return;
28006+
}
28007+
28008+
console.log(
28009+
`First geometric shape found in the document body is of type ${geometricShape.geometricShapeType}:`,
28010+
geometricShape,
28011+
);
28012+
});
2795228013
Word.Shape#textFrame:member:
2795328014
- >-
2795428015
// Link to full sample:
@@ -28061,6 +28122,22 @@ Word.ShapeCollection:class:
2806128122
console.log("No shapes found in main document.");
2806228123
}
2806328124
});
28125+
Word.ShapeCollection#getByGeometricTypes:member(1):
28126+
- >-
28127+
// Link to full sample:
28128+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-geometric-shapes.yaml
28129+
28130+
28131+
await Word.run(async (context) => {
28132+
// Gets the moon geometric shapes from the document body.
28133+
const moons: Word.ShapeCollection = context.document.body.shapes.getByGeometricTypes([
28134+
Word.GeometricShapeType.moon,
28135+
]);
28136+
moons.load();
28137+
await context.sync();
28138+
28139+
console.log("Moons found in the document body:", moons);
28140+
});
2806428141
Word.ShapeCollection#getByTypes:member(1):
2806528142
- >-
2806628143
// Link to full sample:

view-prod/word.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"word-tables-manage-formatting": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/40-tables/manage-formatting.yaml",
4040
"word-tables-manage-custom-style": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/40-tables/manage-custom-style.yaml",
4141
"word-shapes-manage-shapes-text-boxes": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-shapes-text-boxes.yaml",
42+
"word-shapes-manage-geometric-shapes": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/45-shapes/manage-geometric-shapes.yaml",
4243
"word-document-manage-body": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/manage-body.yaml",
4344
"word-document-insert-section-breaks": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/insert-section-breaks.yaml",
4445
"word-document-insert-external-document": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/insert-external-document.yaml",

view/word.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"word-tables-manage-formatting": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/40-tables/manage-formatting.yaml",
4040
"word-tables-manage-custom-style": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/40-tables/manage-custom-style.yaml",
4141
"word-shapes-manage-shapes-text-boxes": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/45-shapes/manage-shapes-text-boxes.yaml",
42+
"word-shapes-manage-geometric-shapes": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/45-shapes/manage-geometric-shapes.yaml",
4243
"word-document-manage-body": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/50-document/manage-body.yaml",
4344
"word-document-insert-section-breaks": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/50-document/insert-section-breaks.yaml",
4445
"word-document-insert-external-document": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/word/50-document/insert-external-document.yaml",

0 commit comments

Comments
 (0)