Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7372888
commit 1c78431
Showing
6 changed files
with
80 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export interface WidgetInterface { | ||
|
||
widgetInstanceId:number; | ||
selector:string; | ||
|
||
clbkCreated():void; | ||
clbkResized():void; | ||
clbkMoved():void; | ||
clbkTab():void; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="ros-widget" data-widget-name="topic-publisher" data-min-height="34" data-min-width="66" data-max-height="1200" | ||
data-max-width="1600" data-height="300" data-width="400"> | ||
|
||
<!-- META Tags to describe topics subscription --> | ||
<meta data-ros-topic="1" data-ros-topic-id="1" data-ros-topic-desc="Topic to publish" data-ros-topic-type="" data-ros-topic-chng="onChange" | ||
data-ros-topic-slctd="" /> | ||
<meta data-wdgt-param="1" data-widget-param-id="1" data-widget-param-desc="Array show limit" data-widget-param-var="arrayShowLimit" | ||
data-widget-param-value="10" /> | ||
<meta data-wdgt-param="1" data-widget-param-id="2" data-widget-param-desc="Value show limit" data-widget-param-var="valueShowLimit" | ||
data-widget-param-value="50" /> | ||
|
||
<!-- The content which could be manipulated by widget class --> | ||
<div class="header"> | ||
<p class="name">-- topic name --</p> | ||
<p class="type">-- topic type --</p> | ||
</div> | ||
<div class="datatopic1"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { WidgetInterface } from '../../ts/interface/widget'; | ||
|
||
class WidgetTopicPublisher implements WidgetInterface { | ||
public widgetInstanceId: number; | ||
public selector: string; | ||
|
||
public clbkCreated(): void { | ||
console.log("olá"); | ||
// throw new Error('Not implemented yet.'); | ||
} | ||
|
||
public clbkResized(): void { | ||
// throw new Error('Not implemented yet.'); | ||
} | ||
|
||
public clbkMoved(): void { | ||
// throw new Error('Not implemented yet.'); | ||
} | ||
|
||
public clbkTab(): void { | ||
// throw new Error('Not implemented yet.'); | ||
} | ||
|
||
// selector callbacks | ||
public onChange(): void { | ||
|
||
} | ||
} | ||
|
||
window["WidgetTopicPublisher"] = WidgetTopicPublisher; |