123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- ---
- extends: http://vwf.example.com/kinetic/group.vwf
- properties:
- supportMouseEvents: true
- supportTouchEvents: true
-
- mapPosition:
- set: |
- if ( value !== undefined ) {
- this.mapPosition = value;
- if ( this.icon && this.icon.symbolCenter ) {
- this.position = {
- "x": this.mapPosition.x - this.icon.symbolCenter.x,
- "y": this.mapPosition.y - this.icon.symbolCenter.y
- };
- } else {
- this.position = value;
- }
- }
- value: { "x": 0, "y": 0 }
- threatShape:
- set: |
- if ( this.threatShape !== value ) {
- this.threatShape = value;
- this.updateThreatShape();
- }
- value: "circle"
- showThreat:
- set: |
- if ( this.threatArea !== undefined ) {
- this.threatArea.visible = value;
- }
- get: |
- if ( this.threatArea !== undefined ) {
- return this.threatArea.visible;
- }
- return false;
- value: false
- showBorder:
- set: |
- if ( this.border !== undefined ) {
- this.border.visible = value;
- }
- get: |
- if ( this.border !== undefined ) {
- return this.border.visible;
- }
- return false;
- value: false
- methods:
- updateThreatShape:
- handleRender:
- events:
- threatShapeChanged:
- scripts:
- - source: "unitGroup.js"
|