示例#1
0
        public void RemoteConverterTest()
        {
            var query = new FigmaImageQuery("Jv8kwhoRsrmtJDsSHcTgWGYu", new[] { "I56:3;56:205" });
            var file  = AppContext.Api.GetImage(query);

            Assert.IsNotNull(file);
        }
示例#2
0
        public void GetImage()
        {
            var fileId       = "NxLlq5B5yRY0HbBcia7LmA";
            var fileResponse = AppContext.Api.GetFile(new FigmaFileQuery(fileId));
            var figmaImages  = fileResponse.document.FindImageNodes().ToArray();
            var image        = figmaImages.FirstOrDefault();

            var query = new FigmaImageQuery(fileId, new[] { image.id });
            var file  = AppContext.Api.GetImage(query);

            Assert.IsNotNull(file);
            Assert.IsNotNull(file.images);
            Assert.IsTrue(file.images.Count > 0);
        }