Skip to content

Commit d6278cf

Browse files
committed
chore: demo update
1 parent b04b487 commit d6278cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo-snippets/vue/Image.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</template>
1010

1111
<script lang="ts">
12-
import { BitmapShader, CanvasView, createRect, Matrix, Paint, Style } from '@nativescript-community/ui-canvas';
12+
import { BitmapShader, CanvasView, createRect, Matrix, Paint, Style, TileMode } from '@nativescript-community/ui-canvas';
1313
import { Frame, TouchGestureEventData, ImageSource, knownFolders, path } from '@nativescript/core';
1414
import Vue, {NativeScriptVue} from 'nativescript-vue';
1515
import { Component } from 'vue-property-decorator';
@@ -52,7 +52,7 @@ export default class Image extends Vue {
5252
2,
5353
this.touchX,this.touchY
5454
)
55-
const shader = new BitmapShader(iconLocalFile, 0, 0);
55+
const shader = new BitmapShader(iconLocalFile, TileMode.CLAMP, TileMode.CLAMP);
5656
shader.setLocalMatrix(matrix)
5757
shaderPaint.setShader(shader)
5858
canvas.drawCircle(this.touchX, this.touchY, 60, shaderPaint)

0 commit comments

Comments
 (0)