{"action":"created","issue":{"url":"https://api.github.com/repos/SVGKit/SVGKit/issues/429","repository_url":"https://api.github.com/repos/SVGKit/SVGKit","labels_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/429/comments","events_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/429/events","html_url":"https://github.com/SVGKit/SVGKit/issues/429","id":141236072,"number":429,"title":"Documentation","user":{"login":"Rufy86","id":17876640,"avatar_url":"https://avatars.githubusercontent.com/u/17876640?v=3","gravatar_id":"","url":"https://api.github.com/users/Rufy86","html_url":"https://github.com/Rufy86","followers_url":"https://api.github.com/users/Rufy86/followers","following_url":"https://api.github.com/users/Rufy86/following{/other_user}","gists_url":"https://api.github.com/users/Rufy86/gists{/gist_id}","starred_url":"https://api.github.com/users/Rufy86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rufy86/subscriptions","organizations_url":"https://api.github.com/users/Rufy86/orgs","repos_url":"https://api.github.com/users/Rufy86/repos","events_url":"https://api.github.com/users/Rufy86/events{/privacy}","received_events_url":"https://api.github.com/users/Rufy86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-16T10:50:59Z","updated_at":"2016-03-19T21:45:37Z","closed_at":null,"body":"I've tried to use the documentation linked in readme page. but result old and not updated. there is a page in which there is updated documentation and that explain not only the visualization of a SVG file but also the parsing a file, the animation and so on?"},"comment":{"url":"https://api.github.com/repos/SVGKit/SVGKit/issues/comments/198788913","html_url":"https://github.com/SVGKit/SVGKit/issues/429#issuecomment-198788913","issue_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/429","id":198788913,"user":{"login":"adamgit","id":292345,"avatar_url":"https://avatars.githubusercontent.com/u/292345?v=3","gravatar_id":"","url":"https://api.github.com/users/adamgit","html_url":"https://github.com/adamgit","followers_url":"https://api.github.com/users/adamgit/followers","following_url":"https://api.github.com/users/adamgit/following{/other_user}","gists_url":"https://api.github.com/users/adamgit/gists{/gist_id}","starred_url":"https://api.github.com/users/adamgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamgit/subscriptions","organizations_url":"https://api.github.com/users/adamgit/orgs","repos_url":"https://api.github.com/users/adamgit/repos","events_url":"https://api.github.com/users/adamgit/events{/privacy}","received_events_url":"https://api.github.com/users/adamgit/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T21:45:37Z","updated_at":"2016-03-19T21:45:37Z","body":"For every element in the DOMtree that has an \"id\" tag, there is a\nCAShapeLayer with the same \"id\" tag in the CALayerTree.\n\nI can't remember how you get one from the other - there are convenience\nmethods to help you, or you can manually iterate over the whole tree\nsearching for them. The convenience methods are described in the \"recipes\"\nlinked from front page, and should not have changed significantly.\n\nOn 19 March 2016 at 21:02, Rufy86 <notifications@github.com> wrote:\n\n> Thank you for your answer. Now I understand a little more. Let me check if\n> I really understand.\n>\n> <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"109\" height=\"109\"\n> viewBox=\"0 0 109 109\">\n> <g id=\"kvg:StrokePaths_08cea\"\n> style=\"fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;\">\n> <g id=\"kvg:08cea\" kvg:element=\"質\">\n> <g id=\"kvg:08cea-g1\" kvg:position=\"top\">\n> <g id=\"kvg:08cea-g2\" kvg:element=\"斤\" kvg:position=\"left\">\n> <path id=\"kvg:08cea-s1\" kvg:type=\"㇒\"\n> d=\"M43.05,11.84c-0.05,1.04-0.57,1.92-1.2,2.53c-3,2.89-6.23,4.88-13.9,7.93\"/>\n> <path id=\"kvg:08cea-s2\" kvg:type=\"㇒\"\n> d=\"M25.96,21.62c0.8,0.88,1.29,2.21,1.29,3.16c0.01,15.46-2.62,20.34-8.18,25.21\"/>\n> <path id=\"kvg:08cea-s3\" kvg:type=\"㇐\"\n> d=\"M29.22,29.63c0.83-0.03,2.06-0.15,3.53-0.34c4.46-0.57,11.15-1.69,15.77-2.27c1.26-0.16,2.37-0.27,3.24-0.32\"/>\n> <path id=\"kvg:08cea-s4\" kvg:type=\"㇑\"\n> d=\"M39.41,28.55c0.73,0.73,1.22,2.31,1.22,3.3c0,0.79-0.12,2.42-0.08,10.4c0.01,2.12,0.04,3.54,0.08,3.75\"/>\n> </g>\n> <g id=\"kvg:08cea-g3\" kvg:element=\"斤\" kvg:position=\"right\">\n> <path id=\"kvg:08cea-s5\" kvg:type=\"㇒\"\n> d=\"M76.8,11.09c0.14,0.93-0.08,1.75-0.79,2.42c-3.76,3.49-6.88,5.99-13.3,8.79\"/>\n> <path id=\"kvg:08cea-s6\" kvg:type=\"㇒\"\n> d=\"M60.58,21.62c0.57,0.73,0.89,1.84,0.91,2.64c0.26,9.11-0.12,15.49-5.43,21.23\"/>\n> <path id=\"kvg:08cea-s7\" kvg:type=\"㇐\"\n> d=\"M63.47,27.88c0.65-0.02,1.71-0.12,3.04-0.26c5.56-0.61,15.93-2.13,21.98-2.83c1.47-0.17,2.68-0.29,3.51-0.34\"/>\n> <path id=\"kvg:08cea-s8\" kvg:type=\"㇑\"\n> d=\"M76.25,26.62c0.73,0.73,1.22,2.31,1.22,3.3c0,0.79-0.12,2.42-0.08,10.4c0.01,2.12,0.04,3.54,0.08,3.75\"/>\n> </g>\n> </g>\n> <g id=\"kvg:08cea-g4\" kvg:element=\"貝\" kvg:position=\"bottom\"\n> kvg:radical=\"general\">\n> <g id=\"kvg:08cea-g5\" kvg:element=\"目\" kvg:position=\"top\">\n> <path id=\"kvg:08cea-s9\" kvg:type=\"㇑\"\n> d=\"M35.12,51.3c0.73,0.73,1.22,2.31,1.22,3.3c0,0.79-0.12,19.17-0.08,27.15c0.01,2.12,0.04,3.54,0.08,3.75\"/>\n> <path id=\"kvg:08cea-s10\" kvg:type=\"㇕a\"\n> d=\"M37.08,53.11c6.04-0.48,29.35-2.67,32.43-2.87c3.74-0.24,4.37,1.26,4.37,4.37c0,4.14-0.06,15.94,0,24.89c0.01,1.69,0.03,3.23,0.06,4.5\"/>\n> <path id=\"kvg:08cea-s11\" kvg:type=\"㇐a\"\n> d=\"M37.28,63.13C45.25,62.5,62,61,72.8,60.36\"/>\n> <path id=\"kvg:08cea-s12\" kvg:type=\"㇐a\"\n> d=\"M37.55,72.8c11.2-1.05,24.2-2.05,34.85-2.75\"/>\n> <path id=\"kvg:08cea-s13\" kvg:type=\"㇐a\"\n> d=\"M37.67,83.38c9.08-0.88,22.95-2,34.85-2.75\"/>\n> </g>\n> <g id=\"kvg:08cea-g6\" kvg:position=\"bottom\">\n> <path id=\"kvg:08cea-s14\" kvg:type=\"㇒\"\n> d=\"M40.73,87.75c0.02,1-0.23,2.25-1.25,2.97c-3.08,2.16-11.58,6.73-17.73,9.28\"/>\n> <path id=\"kvg:08cea-s15\" kvg:type=\"㇔\"\n> d=\"M66.5,87.5c7.74,2.98,16.89,8.39,19,11\"/>\n> </g>\n> </g>\n> </g>\n> </g>\n> <g id=\"kvg:StrokeNumbers_08cea\" style=\"font-size:8;fill:#808080\">\n> <text transform=\"matrix(1 0 0 1 35.75 10.50)\">1</text>\n> <text transform=\"matrix(1 0 0 1 19.50 29.50)\">2</text>\n> <text transform=\"matrix(1 0 0 1 38.50 25.48)\">3</text>\n> <text transform=\"matrix(1 0 0 1 33.50 38.50)\">4</text>\n> <text transform=\"matrix(1 0 0 1 68.50 10.50)\">5</text>\n> <text transform=\"matrix(1 0 0 1 54.75 29.75)\">6</text>\n> <text transform=\"matrix(1 0 0 1 76.50 23.68)\">7</text>\n> <text transform=\"matrix(1 0 0 1 69.75 36.50)\">8</text>\n> <text transform=\"matrix(1 0 0 1 27.75 58.03)\">9</text>\n> <text transform=\"matrix(1 0 0 1 43.20 50.45)\">10</text>\n> <text transform=\"matrix(1 0 0 1 43.20 60.88)\">11</text>\n> <text transform=\"matrix(1 0 0 1 43.20 69.80)\">12</text>\n> <text transform=\"matrix(1 0 0 1 43.20 80.23)\">13</text>\n> <text transform=\"matrix(1 0 0 1 25.50 92.50)\">14</text>\n> <text transform=\"matrix(1 0 0 1 56.70 92.50)\">15</text>\n> </g>\n> </svg>\n>\n> This is my SVG file.\n>\n> in my code i hade, of course, load file\n> SVGKImage *image = [SVGKImage imageNamed:@\"kanji.svg\"]; Right?\n>\n> after that ? what I have to do?\n>\n> The file, as you can see, you have more than one ID. image so I'll have to\n> make a loop, right?\n>\n> `NSString* tagToFind = @\"id\";\n> NodeList* result = [image.DOMDocument getElementsByTagName:tagToFind];\n>\n> for( Element* domElement in result ){\n>     SVGElement* startPoint = (SVGElement*) domElement;\n>\n> //This SVG Element, what it contains? and what do I do? How can I turn it\n> into a CAShaper Layer or in a CGPath?\n> }\n> NSLog(@\"elemento\");\n> }\n>\n> }`\n>\n> This SVG Element, what it contains? and what do I do? How can I turn it\n> into a CAShaper Layer or in a CGPath?\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/SVGKit/SVGKit/issues/429#issuecomment-198785579>\n>\n"}}