Skip to content

Commit

Permalink
replaceMethod is deprecated
Browse files Browse the repository at this point in the history
Deprecated: use imageReplaceMethod instead.

If you specify both a replaceMethod and an imageReplaceMethod , the imageReplaceMethod takes precedence.
  • Loading branch information
labnol authored May 4, 2020
1 parent f21462a commit d23b10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slides/api/Snippets.gs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Snippets.prototype.imageMerging = function(templatePresentationId, imageUrl, cus
var requests = [{
replaceAllShapesWithImage: {
imageUrl: logoUrl,
replaceMethod: 'CENTER_INSIDE',
imageReplaceMethod: 'CENTER_INSIDE',
containsText: {
text: '{{company-logo}}',
matchCase: true
Expand All @@ -259,7 +259,7 @@ Snippets.prototype.imageMerging = function(templatePresentationId, imageUrl, cus
}, {
replaceAllShapesWithImage: {
imageUrl: customerGraphicUrl,
replaceMethod: 'CENTER_INSIDE',
imageReplaceMethod: 'CENTER_INSIDE',
containsText: {
text: '{{customer-graphic}}',
matchCase: true
Expand Down

0 comments on commit d23b10f

Please sign in to comment.