MCPcopy
hub / github.com/apache/echarts / windowOpen

Function windowOpen

src/util/format.ts:322–332  ·  view source on GitHub ↗
(link: string, target: string)

Source from the content-addressed store, hash-verified

320 * @param target blank or self
321 */
322export function windowOpen(link: string, target: string): void {
323 /* global window */
324 if (target === '_blank' || target === 'blank') {
325 const blank = window.open();
326 blank.opener = null;
327 blank.location.href = link;
328 }
329 else {
330 window.open(link, target);
331 }
332}
333
334
335export {getTextRect} from '../legacy/getTextRect';

Callers 3

_initEventsMethod · 0.90
_initEventsMethod · 0.90
renderMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…