// $Id: n-SABU.tgt 2288 2018-11-06 17:36:38Z dmc $ - target definition file for SABU iron sight // targetfaces; very similar to ICFRA, except modified to UK/CA-style ring intervals // $Author: dmc $ $Revision: 2288 $ $Date: 2018-11-06 13:36:38 -0400 (Tue, 06 Nov 2018) $ var METRESTOFEET = 3.280839; var YARDSTOMETRES = 3 / METRESTOFEET; var INCHESTOMM = 25.4; var MM_PER_MOA_PER_1Y = 1.047 * 25.4 / 100; // multiply this by the distance in yards var MM_PER_MOA_PER_1M = 1.047 * 25.4 / 100 * 39.37 / 36; // multiply this by the distance in metres var v2options = { shot_format: '{1}.{2}V', // TR: "49.6V" }; module.exports = { 'SABU-LR': { distance: 900, // needs to be overridden when used "distances": [ { "d": 700, "name": "700m", "unit": "m" }, { "d": 800, "name": "800m", "unit": "m" }, { "d": 900, "name": "900m", "unit": "m", "p": "true" }, { "d": 800 * YARDSTOMETRES, "name": "800y", "unit": "y" }, { "d": 900 * YARDSTOMETRES, "name": "900y", "unit": "y" }, { "d": 1000 * YARDSTOMETRES, "name": "1000y", "unit": "y" }, ], centrecoords: { x: 0, y: 0 }, targetboard: { width: 2400, height: 1800, colour: "white", bordercolour: "black", borderwidth: 10 }, options: v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name: "V", score: [5, 1], colour: "transparent", bordercolour: "white", borderwidth: 2.3, type: { name: "ring", dia: 254 } }, { name: "5", score: 5, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 508 } }, { name: "4", score: 4, colour: "black", /* no border - aiming mark */ type: { name: "ring", dia: 1117.6 } }, { name: "3", score: 3, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "ring", dia: 1524 } }, { name: "2", score: 2, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "rect", width: 2400, height: 1800 } }, ], scoringzones_f: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:127 } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia: 254 } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia: 508 } }, { name:"3", score:3, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia: 1118 } }, { name: "2", score: 2, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "ring", dia: 1524 } }, { name:"1", score:2, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 2400, height:1800 } }, ], }, 'SABU-300': { distance: 300, "distances": [ { "d": 300, "name": "300m", "unit": "m", "p": "true" }, { "d": 300 * YARDSTOMETRES, "name": "300y", "unit": "y" }, ], centrecoords: { x: 0, y: 0 }, targetboard: { width: 1800, height: 1800, colour: "white", bordercolour: "black", borderwidth: 10 }, options: (t = JSON.parse(JSON.stringify(v2options)), t), scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name: "V", score: [5, 1], colour: "transparent", bordercolour: "white", borderwidth: 2.3, type: { name: "ring", dia: 70 } }, { name: "5", score: 5, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 140 } }, { name: "4", score: 4, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 370 } }, { name: "3", score: 3, colour: "black", /* no border - aiming mark */ type: { name: "ring", dia: 600 } }, { name: "2", score: 2, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "rect", width: 1200, height: 1200 } }, { name: "0", score: 0, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "rect", width: 1800, height: 1800 } }, ], scoringzones_f: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:70/2 } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:70 } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:140 } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:370 } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:600 } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 1200, height: 1200 } }, { name:"0", score:0, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 1800, height: 1800 } }, ], }, 'SABU-MR': { // 500m and 600m distance: 600 * YARDSTOMETRES, // needs to be overridden when used "distances": [ { "d": 500, "name": "500m", "unit": "m" }, { "d": 600, "name": "600m", "unit": "m", "p": "true" }, { "d": 500 * YARDSTOMETRES, "name": "500y", "unit": "y" }, { "d": 600 * YARDSTOMETRES, "name": "600y", "unit": "y" }, ], centrecoords: { x: 0, y: 0 }, targetboard: { width: 1800, height: 1800, colour: "white", bordercolour: "black", borderwidth: 10 }, options: v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name: "V", score: [5, 1], colour: "transparent", bordercolour: "white", borderwidth: 2.3, type: { name: "ring", dia: 160 } }, { name: "5", score: 5, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 320 } }, { name: "4", score: 4, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 660 } }, { name: "3", score: 3, colour: "black", /* no border - aiming mark */ type: { name: "ring", dia: 1000 } }, { name: "2", score: 2, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "rect", width: 1800, height: 1800 } }, ], scoringzones_f: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:160/2 } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:160 } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:320 } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:660 } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:1000 } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 1800, height: 1800 } }, ], }, }