-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
399 lines (397 loc) · 25.9 KB
/
index.html
File metadata and controls
399 lines (397 loc) · 25.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!DOCTYPE html>
<!--
sarvataḥ pāṇi-pādaṁ tat sarvato ’kṣhi-śhiro-mukham sarvataḥ śhrutimal loke sarvam āvṛitya tiṣhṭhati
-->
<html lang="en">
<head>
<!-- Primary Meta Tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, maximum-scale=5.0, minimum-scale=0.1, viewport-fit=cover">
<title>Citrana by Vigneswaran Rajkumar</title>
<meta name="robots" content="noarchive">
<meta name="googlebot" content="noarchive">
<meta name="msvalidate.01" content="325120C12888C61306930ACDFB17A57E" />
<meta name="keywords" content="Soothsayer, Citrana, Vigneswaran Rajkumar, Vedanga Jyotisha, Jyotisha, Vedic Astrology, Jothidam, Indian Astrology, Hindu Astrology, Nakshatras, Karma, Destiny, Dosha, Remedies, Panchangam, Siddhanta Jyotisha, Tamil Jothidam, Vimshottari Dasha, Puranic Astrology, Super-Science, Singapore">
<meta name="description" content="Citrana is a Planetary Chart Builder for Vedanga Jyotisha Practitioners.">
<meta name="author" content="Citrana">
<!-- Canonical -->
<link rel="canonical" href="https://citrana.soothsayer.life/">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://citrana.soothsayer.life/">
<meta property="og:title" content="Citrana">
<meta property="og:description" content="Citrana is a Planetary Chart Builder for Vedanga Jyotisha Practitioners.">
<meta property="og:image" content="https://citrana.soothsayer.life/assets/images/soothsayer_citrana_social-preview.jpg">
<meta property="og:site_name" content="Citrana">
<!-- Twitter / X -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://citrana.soothsayer.life/">
<meta property="twitter:title" content="Citrana">
<meta property="twitter:description" content="Citrana is a Planetary Chart Builder for Vedanga Jyotisha Practitioners.">
<meta property="twitter:image" content="https://citrana.soothsayer.life/assets/images/soothsayer_citrana_social-preview.jpg">
<!-- apple -->
<meta name="apple-mobile-web-app-title" content="Citrana">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#ffffff">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- stylesheets -->
<link rel="stylesheet" href="assets/css/styles.css">
<!-- favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="/assets/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/assets/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/assets/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/assets/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/assets/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/assets/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/assets/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/assets/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/assets/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="48x48" href="/assets/favicon/favicon-48x48.png">
<link rel="icon" type="image/png" sizes="96x96" href="/assets/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="icon" type="image/x-icon" href="/assets/favicon/favicon.ico">
<link rel="manifest" href="/assets/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-TileImage" content="/assets/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#000000">
<!-- Scripts -->
<script src="https://unpkg.com/konva@9/konva.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HSXDGXST4D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HSXDGXST4D');
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MNSV7LM4');
</script>
<!-- End Google Tag Manager -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MNSV7LM4"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="app-container">
<!-- Help Button (Desktop Only) -->
<button id="help-btn" class="help-btn" title="Help">
<i data-lucide="help-circle"></i>
</button>
<!-- About Button -->
<button id="about-btn" class="about-btn" title="About Citrana">
<img src="assets/images/Soothsayer-Logo-Black.png" alt="About" class="about-btn-icon about-btn-icon-black" fetchpriority="high">
<img src="assets/images/Soothsayer-Logo-White.png" alt="About" class="about-btn-icon about-btn-icon-white" fetchpriority="high">
</button>
<!-- Floating Top Toolbar -->
<div class="floating-top-toolbar">
<!-- Selection Tools -->
<div class="toolbar-group">
<button id="select-tool" class="toolbar-btn active" title="Select (V)">
<i data-lucide="mouse-pointer"></i>
</button>
<button id="hand-tool" class="toolbar-btn" title="Hand (H)">
<i data-lucide="hand"></i>
</button>
</div>
<!-- Drawing Tools -->
<div class="toolbar-group">
<button id="arrow-tool" class="toolbar-btn" title="Arrow">
<i data-lucide="arrow-right"></i>
</button>
<button id="line-tool" class="toolbar-btn" title="Line">
<i data-lucide="minus"></i>
</button>
<button id="pen-tool" class="toolbar-btn" title="Pen">
<i data-lucide="pen-tool"></i>
</button>
<button id="text-tool" class="toolbar-btn" title="Text">
<i data-lucide="type"></i>
</button>
<button id="heading-tool" class="toolbar-btn" title="Heading">
<i data-lucide="heading"></i>
</button>
</div>
<!-- Export Actions -->
<div class="toolbar-group">
<button id="toggle-transparency-btn" class="toolbar-btn" title="Toggle Transparency">
<i data-lucide="image-off"></i>
</button>
<button id="export-btn" class="toolbar-btn" title="Export">
<i data-lucide="save"></i>
</button>
</div>
</div>
<!-- Floating Graha Library -->
<div class="floating-planet-library" id="graha-library" style="border-radius: 0.75rem; overflow: visible;">
<div class="planet-library-header" style="background: #fff; color: #000; padding: 0.5rem 1rem; font-weight: bold; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 2.5rem; border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem;">Graha Library</div>
<div class="planet-grid" id="planet-library" style="overflow: visible;">
<!-- Grahas will be populated by JavaScript -->
</div>
</div>
<!-- Canvas Container -->
<div class="canvas-container" id="canvas-container">
<canvas id="canvas"></canvas>
</div>
<!-- Floating Zoom Controls -->
<div class="floating-zoom-controls">
<button id="zoom-out" title="Zoom Out (-)">
<i data-lucide="zoom-out"></i>
</button>
<span id="zoom-level" class="zoom-level">100%</span>
<button id="zoom-in" title="Zoom In (+)">
<i data-lucide="zoom-in"></i>
</button>
<button id="reset-zoom" title="Reset Zoom">
<i data-lucide="maximize-2"></i>
</button>
<span class="zoom-divider" style="width:1px;height:24px;background:#000;opacity:0.15;margin:0 8px;display:inline-block;"></span>
<button id="zoom-select-tool" title="Select Tool (V)">
<i data-lucide="mouse-pointer"></i>
</button>
<button id="zoom-hand-tool" title="Hand Tool (H)">
<i data-lucide="hand"></i>
</button>
</div>
<!-- Floating Text Edit Controls -->
<div class="floating-text-edit-controls" id="text-edit-controls" style="display: none;">
<input type="text" id="text-edit-input" placeholder="Enter text (max 8 chars)" maxlength="8" class="text-edit-input">
<input type="color" id="text-edit-color" class="text-edit-color-input" title="Text color">
<button id="text-edit-retrograde" title="Toggle Retrograde">
<i data-lucide="rotate-ccw"></i>
</button>
<button id="text-edit-save" title="Save">
<i data-lucide="check"></i>
</button>
<button id="text-edit-cancel" title="Cancel">
<i data-lucide="x"></i>
</button>
<button id="text-edit-delete" title="Delete" class="text-edit-delete danger" style="display: none;">
<i data-lucide="trash-2"></i>
</button>
</div>
</div>
<!-- Help Modal -->
<div id="help-modal" class="help-modal">
<div class="help-modal-content">
<div class="help-modal-header">
<h2 class="help-modal-title">Help</h2>
<button class="help-modal-close" id="help-modal-close">
<i data-lucide="x"></i>
</button>
</div>
<div class="help-section">
<h3 class="help-section-title">Keyboard Shortcuts</h3>
<div class="help-shortcuts">
<div class="help-shortcut">
<span class="help-shortcut-desc">Select Tool</span>
<span class="help-shortcut-key">V</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Arrow Tool</span>
<span class="help-shortcut-key">A</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Line Tool</span>
<span class="help-shortcut-key">L</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Pen Tool</span>
<span class="help-shortcut-key">P</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Text Tool</span>
<span class="help-shortcut-key">T</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Hand Tool</span>
<span class="help-shortcut-key">H</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Zoom In</span>
<span class="help-shortcut-key">+</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Zoom Out</span>
<span class="help-shortcut-key">-</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Reset Zoom</span>
<span class="help-shortcut-key">0</span>
</div>
<div class="help-shortcut">
<span class="help-shortcut-desc">Delete Selected</span>
<span class="help-shortcut-key">Delete / Fn+Delete</span>
</div>
</div>
</div>
<hr style="margin: 18px 0; border: none; border-top: 1px solid #e9ecef;">
<div class="help-section">
<div class="about-links" style="margin-bottom: 18px;">
<a href="https://github.com/IAmVigneswaran/Soothsayer-Citrana?tab=readme-ov-file#tutorials" target="_blank" class="about-link" style="text-align: center; display: block;">View Citrana Tutorials</a>
</div>
<h3 class="help-section-title">Basic Usage</h3>
<div class="help-instructions">
<p><strong>Screen Size:</strong> If you have a small screen size or if this site appears too large, please utilise your browser's zoom control under the browser's View menu to adjust the browser viewpoint for optimal viewing.</p>
<p><strong>Browser and Device Compatibility:</strong> Citrana is designed exclusively for desktop browsers only (Brave, Chrome, Firefox, Safari, Edge) and is not supported on mobile or touch devices. For optimal performance and full feature access, use a desktop environment. Note: Brave users must disable Brave Shields for full functionality.</p>
<p><strong>Chart Types:</strong> Citrana supports both South Indian and North Indian chart layouts.</p>
<p><strong>South Indian Chart:</strong> Traditional 4x4 grid layout with centre empty. Right-click any Bhava to set it as Lagna. A diagonal line indicator will appear at the top-left corner of the Lagna Bhava.</p>
<p><strong>North Indian Chart:</strong> Diamond layout with dynamic positioning. Right-click any Bhava to set it as Lagna. All Grahas placed in the Bhavas will automatically rotate and renumbered based on the new Lagna position.</p>
<p><strong>Adding Grahas:</strong> Drag Grahas from the Graha Library (top-left) to chart Bhavas. You can place the same Graha multiple times. Double-click any Graha to open a floating editing panel where you can modify text or set it as retrograde (a small "r" subscript will appear).</p>
<p><strong>Graha Library:</strong> Use the page dots in the Graha Library to access Jaimini Karakas, Grahas in Tamil, Grahas in Hindi, and Outer Grahas.</p>
<p><strong>Adding Degrees:</strong> To include degree positions for Grahas, double-click any placed Graha to access the editing panel. Enter the degree value in the text field using the format "Graha-Degree" (e.g., "Su-20" for Sun at 20 degrees).</p>
<p><strong>Custom Graha:</strong> There is also a "Custom" Graha available in the library. Drag and drop it into any Bhava, then double-click to edit the name. There is a maximum character limit of 8 characters for all Graha names.</p>
<p><strong>Editing Panel:</strong> When modifying Graha text or colours, ensure to press the save button (✓) in the editing panel to confirm your changes. Failure to save will result in the modifications reverting to default values when the Graha is moved between Bhavas.</p>
<p><strong>Drawing Tools:</strong> Use the toolbar to add arrows, lines, text, and heading. For all drawing tools, the Select Tool will automatically be activated after an element is created, except for the Pen tool which remains active for continuous drawing. Double-click text elements to edit them. Use the Hand tool to pan around the chart.</p>
<p><strong>Navigation:</strong> Use zoom controls or mouse wheel to zoom in/out. The Hand tool allows you to pan around the canvas.</p>
<p><strong>Export Options:</strong> Click the save button to export your chart as a PNG file with timestamp. Use the transparency toggle button (before save) to choose between solid white background or transparent background for your exported image.</p>
<p><strong>Export Viewpoint:</strong> Exported images will always follow and inherit the browser's current viewpoint. If you resize the browser window, the exported image will reflect the visible area accordingly. Adjust your browser window size and zoom level before exporting to achieve the desired output.</p>
<p><strong>Single Chart Limitation:</strong> Citrana does not and will not support multiple charts in a single canvas. To create another chart, open a new browser window or tab. This ensures optimal performance and prevents conflicts between different chart configurations. Additionally, images can be saved with transparency enabled (Toggle Transparency Button) and imported into other canvas applications such as tldraw for advanced annotation and note-taking workflows.</p>
<hr style="margin: 18px 0; border: none; border-top: 1px solid #e9ecef;">
<p><strong>Note:</strong> All sessions are ephemeral. The moment the browser refreshes, all data and progress will be reset and cleared. Citrana is privacy-focused and nothing is stored on the server.</p>
<hr style="margin: 18px 0; border: none; border-top: 1px solid #e9ecef;">
<p><strong>Contact Information:</strong> Should you encounter an error or issue on this site, feel free to send a message with description and screenshot. Contact information is found in the About button (bottom right).</p>
</div>
</div>
</div>
</div>
<!-- Confirmation Dialog Modal -->
<div id="confirmation-modal" class="confirmation-modal">
<div class="confirmation-modal-content">
<div class="confirmation-modal-header">
<h2 class="confirmation-modal-title">Confirm Action</h2>
<button class="confirmation-modal-close" id="confirmation-modal-close">
<i data-lucide="x"></i>
</button>
</div>
<div class="confirmation-modal-body">
<p id="confirmation-message">Are you sure you want to proceed? This action cannot be undone.</p>
<p class="confirmation-warning"><strong>Warning:</strong> Be sure to save your image before proceeding.</p>
</div>
<div class="confirmation-modal-actions">
<button class="confirmation-btn confirmation-btn-yes" id="confirmation-yes">Yes</button>
<button class="confirmation-btn confirmation-btn-no" id="confirmation-no">No</button>
</div>
</div>
</div>
<!-- Export Progress Modal -->
<div id="export-progress-modal" class="export-progress-modal">
<div class="export-progress-modal-content">
<div class="export-progress-modal-header">
<h2 class="export-progress-modal-title">Exporting Chart</h2>
</div>
<div class="export-progress-modal-body">
<div class="export-progress-container">
<div class="export-progress-bar">
<div class="export-progress-fill" id="export-progress-fill"></div>
</div>
<div class="export-progress-text" id="export-progress-text">Preparing chart for export...</div>
</div>
</div>
</div>
</div>
<!-- About Modal -->
<div id="about-modal" class="about-modal">
<div class="about-modal-content">
<div class="about-modal-header">
<h2 class="about-modal-title">About</h2>
<button class="about-modal-close" id="about-modal-close">
<i data-lucide="x"></i>
</button>
</div>
<div class="about-modal-body">
<div class="about-logo-container">
<img src="assets/images/Soothsayer-Citrana-Full-Logo-Black.png" alt="Citrana Logo" class="about-logo" fetchpriority="high">
</div>
<div class="about-divider"></div>
<div class="about-content">
<h3 class="about-app-name">Citrana</h3>
<p class="about-description">Citrana is a Planetary Chart Builder for Vedanga Jyotisha Practitioners.</p>
<blockquote class="about-definition">
<strong>Sanskrit (संस्कृतम्):</strong> <strong>Citraṇā</strong> (चित्रणा): The act of painting, drawing, illustration, or portrayal. Derived from the Sanskrit root <em>citrayati</em> with the suffix <em>-anā</em>.<br><br>
<strong>Tamil (தமிழ்):</strong> <strong>சித்திரம்</strong> (Cittiram): Artistic representation, drawing, illustration, or systematic arrangement.<br><br>
<strong>Hindi (हिंदी):</strong> <strong>Citraṇa</strong> (चित्रण): Portrayal, delineation, painting, illustration, or drawing.
</blockquote>
<p class="about-creator">Created by Vigneswaran Rajkumar</p>
<p class="about-email">seek@soothsayer.life</p>
<div class="about-links">
<a href="https://soothsayer.life" target="_blank" class="about-link">Soothsayer.life</a>
<a href="https://github.com/IAmVigneswaran/Soothsayer-Citrana" target="_blank" class="about-link">GitHub</a>
<a href="https://bsky.app/profile/soothsayer.life" target="_blank" class="about-link">Bluesky</a>
</div>
<p class="about-version">Version 1.0.0</p>
<p class="about-copyright">© 2025 Soothsayer. All Rights Reserved</p>
</div>
</div>
</div>
</div>
<!-- Welcome Modal -->
<div id="welcome-modal" class="welcome-modal">
<div class="welcome-modal-content">
<div class="welcome-modal-header">
<h2 class="welcome-modal-title">Welcome</h2>
<button class="welcome-modal-close" id="welcome-modal-close">
<i data-lucide="x"></i>
</button>
</div>
<div class="welcome-modal-body">
<div class="welcome-logo-container">
<img src="assets/images/Soothsayer-Citrana-Full-Logo-Black.png" alt="Citrana Logo" class="welcome-logo" fetchpriority="high">
</div>
<div class="welcome-divider"></div>
<div class="welcome-content">
<h3 class="welcome-app-name">Citrana</h3>
<div class="welcome-instructions">
<h5 class="welcome-instructions-title">Creating Your First Chart</h5>
<p class="welcome-browser-note">Screen Size: If the site appears too large, utilise your browser's zoom control to adjust the viewpoint.</p>
<ol class="welcome-steps">
<li>Right-click on the canvas to select between South Indian or North Indian chart layout</li>
<li>For North Indian charts, click anywhere on the chart to "Set as Lagna"; for South Indian charts, right-click any house and select "Set as Lagna"</li>
<li>Click on your desired Bhava, drag Graha from the Graha Library to place them in chart's Bhava</li>
<li>Use the page dots in the Graha Library to access additional planets (Tamil, Hindi or Outer Grahas) and Karakas</li>
<li>Use drawing tools to add annotations and notes to your chart</li>
<li>Click the Save icon to export your chart as a image</li>
</ol>
<p class="welcome-help-note">Please click on the Help button to learn more.</p>
<p class="welcome-browser-note">System Requirements: Citrana is optimised for desktop browsers and is not supported on mobile or touch devices.</p>
</div>
<p class="welcome-copyright">© 2025 Soothsayer. All Rights Reserved</p>
<div class="welcome-loading-container">
<div class="welcome-loading-bar">
<div class="welcome-loading-fill"></div>
</div>
<p class="welcome-loading-text">Loading Citrana...</p>
</div>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.js"></script>
<script src="assets/js/chart-templates-south.js"></script>
<script src="assets/js/chart-templates-north.js"></script>
<script src="assets/js/chart-coordinator.js"></script>
<script src="assets/js/planet-system.js"></script>
<script src="assets/js/drawing-tools.js"></script>
<script src="assets/js/edit-ui.js"></script>
<script src="assets/js/context-menu.js"></script>
<script src="assets/js/app.js"></script>
<script>
// Initialize Lucide icons
lucide.createIcons();
// Initialize the app
document.addEventListener('DOMContentLoaded', function() {
console.log('DOM loaded, initializing Citrana...');
window.app = new CitranaApp();
});
</script>
</body>
</html>