<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue in adding Library files in tsconfig in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108747#M3786</link>
    <description>&lt;P&gt;Hello gdonnellan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I debug the visual.js file and all the default files, &amp;nbsp;but I didn't found anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Can you please suggest me in which file I need to include this&amp;nbsp;&lt;/P&gt;&lt;P&gt;public _window : any&lt;/P&gt;&lt;P&gt;_window = window;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Tamil&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 06:34:32 GMT</pubDate>
    <dc:creator>Tamil</dc:creator>
    <dc:date>2017-01-04T06:34:32Z</dc:date>
    <item>
      <title>Issue in adding Library files in tsconfig</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/107299#M3749</link>
      <description>&lt;P&gt;We have all library files loaded from a local host source.But I want those library&amp;nbsp;function source to be added in ts config&amp;nbsp;file.&lt;/P&gt;&lt;P&gt;So, I tried adding Jquery and Jquery UI custom libraries, which on execution it throw an error like UI not defined.&lt;/P&gt;&lt;P&gt;This error is not encountered when the same library files are directed to local host and added in the source file.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 10:49:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/107299#M3749</guid>
      <dc:creator>Tamil</dc:creator>
      <dc:date>2016-12-29T10:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in adding Library files in tsconfig</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108534#M3781</link>
      <description>&lt;P&gt;This issue may be related to the sandboxing that is done on custom visual and I ran into the same issue myself and while I have a work around I am not sure if there is a better way of doing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you include a custom library its bound to the window and not globally. jQuery for example would be window.jQuery or window.$. Also if you are using TypeScript you will run into the issue that window is strongly type and therefor jQuery will not be available as a property unless you redefine window as any type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public _window : any&lt;/P&gt;&lt;P&gt;_window = window;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_window.jQuery should now work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;JQuery - 2.2.0&lt;/LI&gt;&lt;LI&gt;d3 - 3.5.5&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;should be loaded by default I assume in their correct name spaces so I dont know if you would need to do the above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are missing the typings for jQuery UI that may also throw errors during build, the documentation should cover how to add typings to the project if they are available, if its a build error that is happening instead of a runtime error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 17:14:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108534#M3781</guid>
      <dc:creator>gdonnellan</dc:creator>
      <dc:date>2017-01-03T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in adding Library files in tsconfig</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108747#M3786</link>
      <description>&lt;P&gt;Hello gdonnellan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I debug the visual.js file and all the default files, &amp;nbsp;but I didn't found anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Can you please suggest me in which file I need to include this&amp;nbsp;&lt;/P&gt;&lt;P&gt;public _window : any&lt;/P&gt;&lt;P&gt;_window = window;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Tamil&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 06:34:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108747#M3786</guid>
      <dc:creator>Tamil</dc:creator>
      <dc:date>2017-01-04T06:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in adding Library files in tsconfig</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108899#M3795</link>
      <description>&lt;P&gt;Add it in the main plugin .ts where you have implemented the IVisual interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I was working with different library from jQuery. it might be different with that one as its a bit of a special case like D3.js when it comes to custom visuals. Your problem may be related to not having the proper typings installed though for jQuery UI if its a compile time problem you are encountering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;export class NetworkVisual implements IVisual {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; private _window : any;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; constructor(options: VisualConstructorOptions) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this._window = window;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debugger;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // this._window.jQuery should be available&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 11:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108899#M3795</guid>
      <dc:creator>gdonnellan</dc:creator>
      <dc:date>2017-01-04T11:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in adding Library files in tsconfig</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108929#M3800</link>
      <description>&lt;P&gt;Hello gdonnellan,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Can you please provide with a sample screenshot/file for how to import the external library files in typescript .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 12:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-in-adding-Library-files-in-tsconfig/m-p/108929#M3800</guid>
      <dc:creator>Tamil</dc:creator>
      <dc:date>2017-01-04T12:42:51Z</dc:date>
    </item>
  </channel>
</rss>

