Autodesk-Forge / library-javascript-viewer-extensions

A collection of various JavaScript extensions for the Forge viewer
MIT License
82 stars 48 forks source link

Issue on Markup2D #2

Open rodrigoconstruflow opened 7 years ago

rodrigoconstruflow commented 7 years ago

When loading the extension with chrome browser, console shows: The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. As it is a minified file, the issue is at line 1. So, i have unminified (http://unminify.com/) the file to track the issue. On the unmified version the issue happens at line 410 (bolded above) within function y(t, e, i, n, o).

function y(t, e, i, n, o) { for (var r, s, a, u, l, c, h = e.createDocumentFragment(), d = [], p = 0, y = t.length; p < y; p++) if (r = t[p], r || 0 === r) if ("object" === lt.type(r)) lt.merge(d, r.nodeType ? [r] : r); else if (jt.test(r)) { for (s = s || h.appendChild(e.createElement("div")), a = (Vt.exec(r) || ["", ""])[1].toLowerCase(), u = Ft[a] || Ft._default, s.innerHTML = u[1] + lt.htmlPrefilter(r) + u[2], c = u[0]; c--;) s = s.lastChild; lt.merge(d, s.childNodes), s = h.firstChild, s.textContent = "" } else d.push(e.createTextNode(r)); for (h.textContent = "", p = 0; r = d[p++];) if (n && lt.inArray(r, n) > -1) o && o.push(r); else if (l = lt.contains(r.ownerDocument, r), s = f(h.appendChild(r), "script"), l && g(s), i) for (c = 0; r = s[c++];) Ht.test(r.type || "") && i.push(r); return h }

leefsmp commented 7 years ago

You can build the extension in dev mode, which will be non-minified and with original variables name, this should help to see the error.

npm run build-dev

Also the markup2D extension is out of date, it was implemented against an older version of the viewer API.

mrestrepoj10 commented 10 months ago

Could you provide guidance on resolving this issue? I am encountering the same problem as the one outlined previously.