Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Markup2D #2

Open
rodrigoconstruflow opened this issue May 23, 2017 · 2 comments
Open

Issue on Markup2D #2

rodrigoconstruflow opened this issue May 23, 2017 · 2 comments

Comments

@rodrigoconstruflow
Copy link

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
Copy link
Contributor

leefsmp commented May 23, 2017

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants